:root {
  --cimeda-red: #990612;
  --cimeda-red-dark: #67030b;
  --cimeda-gold: #c9ad59;
  --cimeda-gold-soft: #eadfae;
  --ivory: #fbf7ee;
  --paper: #fffdf8;
  --line: #e8dec9;
  --ink: #24211e;
  --muted: #667287;
  --night: #07182d;
  --night-soft: #132946;
  --success: #2f7151;
  --warning: #9c6a12;
  --danger: #a11a25;
  --shadow: 0 18px 60px rgba(47, 39, 25, 0.12);
  --shadow-soft: 0 10px 28px rgba(47, 39, 25, 0.08);
  --radius: 8px;
  --container: min(1320px, calc(100vw - 40px));
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(234, 223, 174, 0.18), transparent 14%, transparent 86%, rgba(234, 223, 174, 0.18)),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(201, 173, 89, 0.9);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--night);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 222, 201, 0.9);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(47, 39, 25, 0.05);
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
}

.brand__logo-wrap {
  width: min(310px, 42vw);
  height: 70px;
  display: grid;
  place-items: center;
  background: white;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__divider {
  width: 1px;
  height: 54px;
  background: var(--line);
}

.brand__text {
  display: grid;
  gap: 0;
  min-width: 170px;
}

.brand__text strong {
  color: var(--cimeda-red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__text span {
  color: #5e5549;
  font-size: 0.9rem;
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 650px;
}

.nav__item {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #4d5a6f;
  padding: 9px 10px;
  font-weight: 750;
  white-space: nowrap;
}

.nav__item:hover,
.nav__item.is-active {
  background: #f5efe3;
  color: var(--cimeda-red-dark);
}

.nav__item--outline {
  color: var(--warning);
}

.language {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff9ec;
  box-shadow: var(--shadow-soft);
}

.language__button {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #596579;
  font-weight: 800;
}

.language__button.is-active {
  background: var(--cimeda-red);
  color: white;
  box-shadow: 0 10px 24px rgba(153, 6, 18, 0.26);
}

.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  place-items: center;
  padding: 10px;
}

.mobile-menu span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--cimeda-red-dark);
}

.app-shell {
  min-height: calc(100vh - 86px);
}

.tab-panel {
  display: none;
  animation: panel-in 280ms ease both;
}

.tab-panel.is-active {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) 0;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.eyebrow,
.status-pill {
  color: var(--cimeda-red);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.status-pill span:first-child {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cimeda-gold);
  box-shadow: 0 0 0 5px rgba(201, 173, 89, 0.18);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
}

h3 {
  font-size: 1.15rem;
}

.hero__copy {
  display: grid;
  gap: 24px;
}

.hero__lead {
  max-width: 760px;
  margin: 0;
  color: #4c5c73;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 5.15rem);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__badges span,
.secure-dashboard__top span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(201, 173, 89, 0.4);
  border-radius: 999px;
  background: #fff8e6;
  color: #775812;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero__actions,
.intro__actions,
.intake-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.intro__language-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(231, 210, 148, 0.45);
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.12);
  color: #f4e6be;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.intro__language {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: none;
}

.intro__language .language__button {
  min-width: 38px;
  min-height: 38px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--cimeda-red);
  color: white;
  box-shadow: 0 14px 30px rgba(153, 6, 18, 0.22);
}

.button--primary:hover {
  background: var(--cimeda-red-dark);
}

.button--secondary,
.button--ghost {
  border-color: var(--line);
  background: #fffdf8;
  color: var(--cimeda-red-dark);
}

.button--secondary:hover,
.button--ghost:hover {
  background: #fff7e5;
}

.button--gold {
  background: linear-gradient(135deg, #d9c06d, #b7973f);
  color: #241d12;
  box-shadow: 0 14px 30px rgba(201, 173, 89, 0.2);
}

.notice {
  max-width: 720px;
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--cimeda-gold);
  border-radius: var(--radius);
  background: #fff6dc;
  color: #765913;
}

.demo-card,
.intro__panel,
.concept-statement,
.intake-card,
.analysis-panel,
.tool-card,
.glossary-card,
.deadline-card,
.secure-dashboard,
.official-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.demo-card {
  padding: 28px;
  background:
    linear-gradient(155deg, rgba(20, 20, 20, 0.96), rgba(59, 43, 38, 0.94) 52%, rgba(117, 8, 16, 0.98)),
    var(--night);
  color: white;
}

.demo-card__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
}

.demo-card__chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.demo-card__chrome span:nth-child(1) {
  background: #ff625d;
}

.demo-card__chrome span:nth-child(2) {
  background: #ffc13b;
}

.demo-card__chrome span:nth-child(3) {
  background: #34c759;
}

.demo-card__chrome strong {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd4e2;
  font-size: 0.78rem;
}

.demo-card__brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.demo-card__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.demo-card__brand h2 {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-grid div {
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.metric-grid div:nth-child(2n) {
  border-right: 0;
}

.metric-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: #b9c7da;
  font-weight: 750;
}

.metric-grid strong {
  display: block;
  margin: 4px 0;
  color: white;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.metric-grid small {
  color: var(--cimeda-gold-soft);
}

.demo-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.demo-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: rgba(153, 6, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.demo-steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cimeda-gold-soft);
  color: #403017;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading--wide {
  max-width: 980px;
}

.section-heading--with-action {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: #6d675f;
  font-size: 1.08rem;
}

.value-grid,
.concept-cards,
.benefit-grid,
.principle-grid,
.space-grid,
.resources-grid {
  display: grid;
  gap: 16px;
}

.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.concept-card,
.benefit-card,
.principle-card,
.space-card,
.resource-card {
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.value-card span,
.timeline__number {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #f0e5d1;
  color: var(--cimeda-red);
  font-weight: 900;
}

.value-card h3,
.concept-card h3,
.benefit-card h3,
.principle-card h3,
.space-card h3,
.resource-card h3 {
  margin-bottom: 10px;
}

.value-card p,
.concept-card p,
.benefit-card p,
.principle-card p,
.space-card p,
.resource-card p {
  margin: 0;
  color: #58677e;
}

.muted-band {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1320px) / 2));
  padding-right: max(20px, calc((100vw - 1320px) / 2));
  background: rgba(247, 241, 228, 0.62);
}

.concept-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.concept-statement {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(155deg, rgba(7, 24, 45, 0.96), rgba(79, 8, 14, 0.96)),
    var(--night);
  color: white;
}

.concept-statement img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.concept-statement h2,
.concept-statement p {
  color: white;
}

.concept-statement p {
  margin: 0;
  color: #d7dde6;
}

.concept-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intake-card {
  overflow: hidden;
}

.intake-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(110deg, #26231f, var(--cimeda-red-dark));
  color: white;
  border-bottom: 3px solid var(--cimeda-gold);
}

.intake-card__header h2,
.intake-card__header p {
  color: white;
}

.intake-card__header p {
  margin: 4px 0 0;
  color: #d9e1ee;
}

.case-ref {
  align-self: start;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6dfed;
  font-weight: 800;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
}

label,
fieldset {
  min-width: 0;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: #3e4a5d;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: var(--radius);
  background: #f9fafc;
  color: var(--ink);
  padding: 13px 14px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cimeda-gold);
  background: white;
  box-shadow: 0 0 0 4px rgba(201, 173, 89, 0.16);
  outline: none;
}

.form-grid__wide {
  grid-column: 1 / -1;
}

.document-fieldset {
  margin: 0;
  padding: 18px;
  border: 1px dashed #d9b8b8;
  border-radius: var(--radius);
  background: #fffafa;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.checkline,
.check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 750;
}

.checkline input,
.check-grid input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--cimeda-red);
}

.check-grid label {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.intake-actions {
  padding: 0 26px 26px;
}

.form-error {
  margin: 0 26px 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  background: #fff0f1;
  color: var(--danger);
  font-weight: 850;
}

.analysis-panel {
  margin-top: 22px;
  padding: 26px;
}

.empty-state {
  color: #667287;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.score-ring {
  --score: 0;
  width: 174px;
  height: 174px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 57%, transparent 58%),
    conic-gradient(var(--success) calc(var(--score) * 1%), #eadfcb 0);
  box-shadow: inset 0 0 0 1px var(--line);
}

.score-ring strong {
  color: var(--night);
  font-size: 2.4rem;
  line-height: 1;
}

.score-ring span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.analysis-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.analysis-lists article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.analysis-lists h3 {
  margin-bottom: 8px;
  color: var(--cimeda-red-dark);
}

.analysis-lists ul {
  margin: 0;
  padding-left: 18px;
  color: #536177;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.tool-card,
.glossary-card {
  padding: 28px;
}

.tool-card > p {
  margin: 8px 0 20px;
  color: #6c665f;
}

.tool-form {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-form--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-box {
  min-height: 58px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dee4eb;
  border-radius: var(--radius);
  background: #f8fafc;
}

.result-box strong {
  color: var(--night);
  font-size: 1.4rem;
}

.fee-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #58677e;
}

.fee-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.clause-output {
  margin-top: 16px;
  min-height: 210px;
  background: #f8fafc;
}

.inline-actions {
  margin-top: 12px;
}

.glossary-card {
  margin-top: 22px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid #e9e4da;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--night);
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

td {
  color: #526177;
  font-weight: 650;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  overflow: visible;
  padding-bottom: 8px;
}

.timeline__item {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
  overflow-wrap: normal;
  word-break: normal;
}

.timeline__item h3 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.timeline__number {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cimeda-red), var(--cimeda-gold));
  color: white;
}

.timeline__item p {
  margin: 10px 0 0;
  color: #675f57;
}

.deadline-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 26px;
}

.deadline-card h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.02;
}

.deadline-track {
  position: relative;
  height: 76px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--cimeda-red) 0%, var(--cimeda-gold) 82%, #eadfcb 82%),
    #eadfcb;
  overflow: hidden;
}

.deadline-track::after {
  content: "";
  position: absolute;
  inset: 50% 8% auto 8%;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
}

.deadline-track span {
  position: absolute;
  left: var(--position);
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--cimeda-red-dark);
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.principle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.spaces-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
}

.secure-dashboard {
  padding: 24px;
  background: var(--night);
  color: white;
}

.secure-dashboard__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.secure-dashboard h2 {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.dashboard-rows {
  display: grid;
  gap: 10px;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: #d5deea;
  font-weight: 850;
}

.dashboard-row span:last-child {
  color: white;
}

.space-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
  display: grid;
  gap: 18px;
}

.resource-card a {
  color: var(--cimeda-red-dark);
  font-weight: 900;
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

.resources-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.official-note {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
}

.official-note img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.official-note p {
  margin: 0;
  color: #5b6573;
  font-weight: 700;
}

.quick-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(260px, calc(100vw - 44px));
}

.quick-actions .button {
  width: 100%;
}

body[data-active-tab="home"] .quick-actions {
  display: none;
}

body[data-active-tab="procedure"] .quick-actions {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--night);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px max(20px, calc((100vw - 1320px) / 2));
  border-top: 3px solid var(--cimeda-gold);
  background: #25221e;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer strong,
.site-footer span {
  display: inline;
}

.site-footer span {
  margin-left: 6px;
  color: var(--cimeda-gold-soft);
  font-weight: 850;
}

.site-footer p {
  margin: 3px 0 0;
}


.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  background: #1f1c18;
}

.intro[hidden] {
  display: none;
}

.intro__background {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(28, 25, 21, 0.98), rgba(28, 25, 21, 0.88) 50%, rgba(153, 6, 18, 0.84)),
    radial-gradient(circle at 82% 82%, rgba(153, 6, 18, 0.38), transparent 28%);
}

.intro__background::after {
  content: "Médiarbitrage©";
  position: absolute;
  left: 7vw;
  top: 22vh;
  color: rgba(0, 0, 0, 0.15);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  pointer-events: none;
}

.intro__content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 52px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: clamp(24px, 4.6vw, 68px);
  align-items: center;
  padding: clamp(18px, 3vh, 34px) 0;
}

.intro__copy {
  display: grid;
  gap: clamp(11px, 1.75vh, 18px);
  min-width: 0;
}

.intro .eyebrow {
  width: fit-content;
  padding: 7px 13px;
  border: 1px solid rgba(234, 223, 174, 0.34);
  border-radius: 999px;
  background: rgba(234, 223, 174, 0.08);
  color: #f4df8c;
}

.intro h1 {
  max-width: 720px;
  margin: 0;
  color: #f2db88;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.intro__lead {
  max-width: 720px;
  margin: 0;
  color: #dce4ef;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

.intro__actions {
  gap: 10px;
}

.intro .checkline {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7edf7;
}

.intro__skip {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 18px;
}

.glass-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 9px 17px;
  font-weight: 900;
}

.intro__language-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 4px;
  padding: 7px 9px 7px 13px;
  border: 1px solid rgba(231, 210, 148, 0.45);
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.12);
  color: #f4e6be;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.intro__language {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: none;
}

.intro__language .language__button {
  min-width: 36px;
  min-height: 36px;
}

.intro__panel {
  padding: 18px;
  border: 1px solid rgba(234, 223, 174, 0.65);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.97);
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  max-height: calc(100dvh - 62px);
  overflow: hidden;
}

.intro__brand {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.intro__seal {
  width: 56px;
  height: 56px;
  object-fit: contain;
  grid-row: span 2;
}

.intro__logo {
  width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.intro__brand strong {
  display: block;
  color: var(--cimeda-red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  text-transform: uppercase;
  line-height: 1.05;
}

.intro__brand span {
  display: block;
  color: #5c554e;
  font-weight: 800;
  line-height: 1.2;
}

.intro__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.intro__grid article {
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.intro__grid h2 {
  margin-bottom: 5px;
  color: var(--cimeda-red-dark);
  font-size: 0.95rem;
  line-height: 1.15;
}

.intro__grid p {
  margin: 0;
  color: #617087;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.42;
}

.intro__proof {
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, #3d1717, var(--cimeda-red-dark));
  color: white;
}

.intro__proof h2 {
  color: white;
  font-size: 0.96rem;
  margin-bottom: 9px;
}

.intro__proof ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro__proof li {
  position: relative;
  padding-left: 28px;
  color: #fff7e8;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.intro__proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--cimeda-gold-soft);
  color: #473511;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-height: 760px) and (min-width: 921px) {
  .intro__content {
    width: min(1130px, calc(100vw - 48px));
    gap: clamp(20px, 3.8vw, 56px);
    padding: 16px 0;
  }

  .intro__copy {
    gap: 10px;
  }

  .intro h1 {
    max-width: 690px;
    font-size: clamp(2.8rem, 5vw, 4.25rem);
    line-height: 0.94;
  }

  .intro__lead {
    font-size: 1rem;
    line-height: 1.48;
  }

  .intro__panel {
    padding: 15px;
    max-height: calc(100dvh - 42px);
  }

  .intro__brand {
    grid-template-columns: 48px 1fr;
    padding-bottom: 10px;
  }

  .intro__seal {
    width: 46px;
    height: 46px;
  }

  .intro__logo {
    max-height: 44px;
  }

  .intro__grid {
    gap: 8px;
    margin: 11px 0;
  }

  .intro__grid article {
    min-height: 84px;
    padding: 10px;
  }

  .intro__grid p,
  .intro__proof li {
    font-size: 0.84rem;
  }

  .intro__proof {
    padding: 12px;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .mobile-menu {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  .language {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    max-width: none;
    justify-content: start;
    padding-bottom: 16px;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .hero,
  .concept-layout,
  .spaces-layout,
  .intro__content {
    grid-template-columns: 1fr;
  }

  .intro__panel {
    max-width: 560px;
  }

  .value-grid,
  .benefit-grid,
  .principle-grid,
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(100vw - 28px, 720px);
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 72px;
    gap: 10px;
  }

  .brand__logo-wrap {
    width: min(210px, 58vw);
    height: 52px;
  }

  .brand__divider,
  .brand__text span {
    display: none;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__text strong {
    font-size: 1rem;
  }

  .language {
    padding: 4px;
  }

  .language__button {
    min-width: 38px;
    min-height: 38px;
  }

  .app-section {
    padding: 38px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.4rem);
  }

  .hero__actions,
  .intro__actions,
  .intake-actions,
  .inline-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .demo-card,
  .tool-card,
  .glossary-card,
  .analysis-panel {
    padding: 18px;
  }

  .metric-grid,
  .value-grid,
  .concept-cards,
  .benefit-grid,
  .principle-grid,
  .space-grid,
  .resources-grid,
  .tools-grid,
  .form-grid,
  .tool-form,
  .tool-form--two,
  .analysis-grid,
  .analysis-lists,
  .deadline-card {
    grid-template-columns: 1fr;
  }

  .metric-grid div,
  .metric-grid div:nth-child(2n),
  .metric-grid div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .metric-grid div:last-child {
    border-bottom: 0;
  }

  .section-heading--with-action {
    display: grid;
    align-items: start;
  }

  .intake-card__header {
    display: grid;
    padding: 20px;
  }

  .form-grid,
  .intake-actions {
    padding: 20px;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    justify-items: start;
  }

  .quick-actions {
    display: none;
  }

  .site-footer {
    display: grid;
    padding-bottom: 26px;
  }

  .intro__content {
    width: min(100vw - 28px, 720px);
    padding: 72px 0 28px;
    min-height: auto;
  }

  .intro__skip {
    top: 14px;
    right: 14px;
  }

  .intro h1 {
    font-size: clamp(2.35rem, 16vw, 4.5rem);
  }

  .intro__grid {
    grid-template-columns: 1fr;
  }

  .intro__language-wrap {
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius);
  }

  .intro .checkline {
    border-radius: var(--radius);
  }

  .official-note {
    align-items: start;
  }
}

@media (max-width: 470px) {
  .brand {
    gap: 8px;
  }

  .brand__logo-wrap {
    width: 170px;
  }

  .brand__text {
    display: none;
  }

  .nav__item {
    width: 100%;
    text-align: left;
  }

  .intro__brand {
    grid-template-columns: 52px 1fr;
  }

  .intro__seal {
    width: 52px;
    height: 52px;
  }

  .intro__logo {
    max-height: 54px;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .quick-actions,
  .site-footer,
  .intro,
  .intake-card,
  .section-heading,
  .toast {
    display: none !important;
  }

  .tab-panel {
    display: block !important;
  }

  .tab-panel:not(#intake) {
    display: none !important;
  }

  .analysis-panel {
    box-shadow: none;
    border-color: #999;
  }
}

/* --- Optimisation finale présentation CIMEDA --- */
.header-inner {
  min-height: 76px;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr) auto;
  gap: 14px;
}

.brand__logo-wrap {
  width: min(260px, 34vw);
  height: 60px;
}

.brand__divider {
  height: 46px;
}

.brand__text strong {
  font-size: 1.08rem;
}

.brand__text span {
  font-size: 0.82rem;
}

.nav {
  max-width: 760px;
}

.nav__item {
  padding: 8px 9px;
  font-size: 0.94rem;
}

.app-shell {
  min-height: calc(100vh - 76px);
}

.app-section--compact {
  padding-top: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.impact-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.impact-card,
.why-card {
  position: relative;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 232, 0.82));
  box-shadow: var(--shadow-soft);
}

.impact-card::before,
.why-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--cimeda-red), var(--cimeda-gold));
}

.impact-card h3,
.why-card h3 {
  margin-bottom: 10px;
  color: var(--cimeda-red-dark);
}

.impact-card p,
.why-card p {
  margin: 0;
  color: #536177;
}

.why-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--night);
  color: var(--cimeda-gold-soft);
  font-weight: 900;
}

.tool-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
  width: fit-content;
  max-width: 100%;
}

.tool-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #566174;
  padding: 10px 16px;
  font-weight: 900;
}

.tool-tab.is-active {
  background: var(--cimeda-red);
  color: white;
  box-shadow: 0 12px 24px rgba(153, 6, 18, 0.2);
}

.tool-pane {
  animation: panel-in 240ms ease both;
}

.tool-pane[hidden] {
  display: none !important;
}

.tool-card--wide {
  max-width: 1060px;
}

.tool-card__heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.tool-card__heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #6c665f;
}

.tool-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(201, 173, 89, 0.5);
  border-radius: 999px;
  background: #fff6dc;
  color: var(--warning);
  font-weight: 900;
  font-size: 0.82rem;
}

.clause-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.analysis-panel .result-box {
  margin-top: 20px;
}

.analysis-panel .notice {
  margin-top: 14px;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand__logo-wrap {
    width: min(250px, 44vw);
  }

  .impact-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 66px;
  }

  .brand__logo-wrap {
    width: min(190px, 56vw);
    height: 48px;
  }

  .impact-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .tool-switcher {
    width: 100%;
    border-radius: var(--radius);
  }

  .tool-tab {
    flex: 1 1 100%;
  }

  .tool-card__heading {
    display: grid;
  }

  .tool-badge {
    width: fit-content;
  }
}
