/* ==========================================================================
   e-Sevai4NRI — design system
   Palette: oxblood / warm ivory / deep charcoal / dusty rose
   Type: Instrument Serif (display) + Inter (UI)
   Typography and spacing do the visual work. Motion communicates state.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #FFFDFA;
  --ivory: #FAF7F2;
  --ivory-deep: #F2ECE4;
  --char: #14100E;
  --char-2: #1D1815;

  /* Ink */
  --ink: #17120F;
  --ink-2: #4A423B;
  --ink-3: #7A7069;

  /* Accent */
  --ox: #7A2231;
  --ox-deep: #5C1724;
  --ox-lift: #93303F;
  --rose: #C08D93;
  --rose-wash: #F4E9E7;
  --green: #2C6B4F;

  /* Lines */
  --line: rgba(23, 18, 15, 0.10);
  --line-2: rgba(23, 18, 15, 0.16);
  --line-dark: rgba(255, 253, 250, 0.12);

  --serif: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --measure: 62ch;

  --s1: 0.5rem;  --s2: 1rem;    --s3: 1.5rem;
  --s4: 2rem;    --s5: 3rem;    --s6: 4.5rem;
  --s7: 6.5rem;  --s8: 9rem;

  --r: 10px;
  --shadow: 0 1px 2px rgba(23,18,15,.04), 0 8px 24px -12px rgba(23,18,15,.10);
  --shadow-lift: 0 2px 4px rgba(23,18,15,.05), 0 18px 44px -18px rgba(23,18,15,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine grain, kept almost invisible. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 var(--s2); max-width: var(--measure); color: var(--ink-2); }
a { color: var(--ox); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ox-deep); }

:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1rem;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: var(--s7) 0; }
.section-tight { padding: var(--s6) 0; }
.section-mist { background: var(--ivory); }
.section-head { margin-bottom: var(--s5); max-width: 46rem; }
.section-head p { font-size: 1.06rem; }

.eyebrow {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--ox); flex: none;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); line-height: 1.6; }
.pending { color: var(--ink-3); font-style: italic; }
.mark { background: var(--rose-wash); padding: 0 .2em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 0.85rem 1.4rem; border-radius: 6px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  position: relative; transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ox); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ox-lift); color: #fff; box-shadow: var(--shadow-lift); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--ivory-deep); color: var(--ink); border-color: var(--ink-3); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.5); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4); }
.btn-note { font-size: 0.88rem; color: var(--ink-3); margin: 0.9rem 0 0; max-width: 44ch; }
/* On the dark band the same note needs a light ink at AA on --char. */
.cta-band .btn-note { color: rgba(255,253,250,.62); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: padding .35s var(--ease);
  padding: 0.35rem 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); padding: 0.7rem 0;
  border-bottom: 1px solid transparent;
  transition: all .35s var(--ease);
}
/* Compact floating state after scroll */
.site-header.is-stuck { padding: 0.5rem 0; }
.site-header.is-stuck .header-inner {
  background: rgba(255,253,250,.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 0.6rem 0.5rem 1.3rem;
  box-shadow: var(--shadow);
}

.brand {
  font-family: var(--serif); font-size: 1.32rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  white-space: nowrap; flex: none;
}
.brand span { color: var(--ox); }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.92rem;
  padding: 0.5rem 0.75rem; border-radius: 6px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--ivory-deep); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 0.4rem; padding: 0.6rem 1.05rem; font-size: 0.9rem; }
/* `.nav a` (0,1,1) outranks `.btn-primary` (0,1,0), so the CTA label must be
   restated here or it inherits --ink-2 and disappears into the oxblood. */
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn-secondary { color: var(--ink); }

.nav-toggle {
  display: none; background: none; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 0.5rem 0.8rem; font-family: var(--sans);
  font-size: 0.88rem; color: var(--ink);
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 var(--s6); position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { max-width: 13ch; margin-bottom: var(--s3); }
.hero-lede { max-width: 46ch; }
.hero-partner {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--ink-3); max-width: 44ch;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }

/* Cursor-reactive light, desktop only, very restrained */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(122,34,49,.055), transparent 65%);
}
.hero:hover .hero-glow { opacity: 1; }
.hero-inner { position: relative; z-index: 1; }

/* ---------- Case readiness dashboard ---------- */

.dash {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lift);
  padding: var(--s3); position: relative; overflow: hidden;
  will-change: transform;
}
.dash::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .28;
  mask-image: radial-gradient(120% 90% at 80% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000, transparent 72%);
}
.dash > * { position: relative; }
.dash-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s2); padding-bottom: var(--s3); border-bottom: 1px solid var(--line);
}
.dash-label {
  font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 0.25rem;
}
.dash-title { font-size: 0.98rem; color: var(--ink); font-weight: 500; }
.tag {
  font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line-2);
  padding: 0.25rem 0.55rem; border-radius: 100px; white-space: nowrap;
}

.dash-ring { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; }
.ring { width: 96px; height: 96px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .trk { stroke: var(--ivory-deep); }
.ring .val {
  stroke: var(--ox); stroke-linecap: round;
  stroke-dasharray: var(--circ); stroke-dashoffset: var(--circ);
  transition: stroke-dashoffset 1.5s var(--ease);
}
.is-ready .ring .val { stroke-dashoffset: var(--target); }
.ring-num { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--ink); }
.ring-cap {
  font-size: 0.68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 0.3rem;
}

.dash-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dash-list li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0; font-size: 0.92rem; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.dash-list li:last-child { border-bottom: none; }
.tick {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 9px; font-weight: 700;
}
.tick-open { background: transparent; border: 1.5px dashed var(--rose); }
.dash-list li.open { color: var(--ink); font-weight: 500; }

.dash-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  padding-top: var(--s3); margin-top: var(--s1); border-top: 1px solid var(--line);
}
.dash-meta div p { margin: 0; }
.dash-foot {
  margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line);
  font-size: 0.72rem; color: var(--ink-3);
}

/* ---------- Signature: 20 days -> 3 days ---------- */

.cmp { background: var(--char); color: var(--paper); }
.cmp h2, .cmp h3 { color: var(--paper); }
.cmp p { color: rgba(255,253,250,.62); }
.cmp .eyebrow { color: rgba(255,253,250,.5); }
.cmp .eyebrow::before { background: var(--rose); }

.cmp-stage {
  border: 1px solid var(--line-dark); border-radius: 14px;
  background: var(--char-2); padding: clamp(1.25rem, 3vw, 2rem);
  position: relative; overflow: hidden;
}
.cmp-readout {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--s2); margin-bottom: var(--s4);
}
.cmp-side { min-width: 0; }
.cmp-side.right { text-align: right; }
.cmp-state {
  font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,253,250,.45); margin: 0 0 0.3rem;
}
.cmp-days {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1; color: rgba(255,253,250,.34);
  transition: color .4s var(--ease);
}
.cmp-side.is-on .cmp-days { color: var(--paper); }
.cmp-side.is-on .cmp-state { color: var(--rose); }
.cmp-arrow { color: rgba(255,253,250,.28); font-size: 1.1rem; }

.cmp-track {
  position: relative; height: 46px; border-radius: 100px;
  background: rgba(255,253,250,.06);
  border: 1px solid var(--line-dark);
  margin-bottom: var(--s4); touch-action: none; cursor: grab;
}
.cmp-track:active { cursor: grabbing; }
.cmp-fill {
  position: absolute; inset: 2px auto 2px 2px; border-radius: 100px;
  width: calc(var(--p, 0) * (100% - 4px));
  background: linear-gradient(90deg, var(--ox-deep), var(--ox));
  transition: width .05s linear;
}
.cmp-knob {
  position: absolute; top: 50%; left: calc(var(--p, 0) * (100% - 42px) + 2px);
  width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 4px 14px rgba(0,0,0,.4);
  display: grid; place-items: center; color: var(--char);
  transition: left .05s linear, transform .2s var(--ease);
  border: none; padding: 0;
}
.cmp-track:hover .cmp-knob { transform: scale(1.06); }
.cmp-hint {
  text-align: center; font-size: 0.74rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,253,250,.35);
  margin: calc(var(--s4) * -1 + 0.5rem) 0 var(--s4);
}

.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.cmp-col-head {
  font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,253,250,.45); padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-dark); margin-bottom: 0.5rem;
}
.cmp-tasks { list-style: none; margin: 0; padding: 0; min-height: 13rem; }
.cmp-tasks li {
  font-size: 0.92rem; padding: 0.62rem 0.8rem; margin-bottom: 0.4rem;
  border: 1px solid var(--line-dark); border-radius: 7px;
  background: rgba(255,253,250,.03); color: rgba(255,253,250,.82);
  display: flex; align-items: center; gap: 0.6rem;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.cmp-tasks li.moved { border-color: rgba(192,141,147,.4); background: rgba(122,34,49,.16); }
.cmp-tasks li[hidden] { display: none; }
.cmp-tasks .tk { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); flex: none; }

/* ---------- Trust strip ---------- */

.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item {
  /* A <button> carries a 2px outset UA border and vertically centres its
     content. Both must be cleared: the border draws a stray box, and the
     centring lifts cards whose text wraps to an extra line out of alignment. */
  border: 0; -webkit-appearance: none; appearance: none;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  padding: var(--s4) var(--s3) var(--s4) 0; text-align: left;
  background: none; font-family: inherit; color: inherit;
  cursor: pointer; width: 100%;
  transition: background-color .2s var(--ease);
}
.trust-item:not(:first-child) { padding-left: var(--s3); }
.trust-item:last-child { border-right: 0; padding-right: 0; }
.trust-item:hover { background: var(--ivory); }
.trust-ico { color: var(--ox); margin-bottom: 0.9rem; display: block; flex: none; }
.trust-t { font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.4rem; font-weight: 500; }
.trust-d { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.trust-more {
  font-size: 0.9rem; color: var(--ink-2); margin: 0.6rem 0 0;
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), margin .35s var(--ease);
}
.trust-item[aria-expanded="true"] .trust-more { max-height: 9rem; opacity: 1; }

/* ---------- Problem storytelling ---------- */

.prob-list { list-style: none; margin: 0; padding: 0; }
.prob-list li {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.3vw, 2.4rem);
  line-height: 1.22; letter-spacing: -0.015em; color: var(--ink);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s2); align-items: baseline;
}
.prob-list li:first-child { border-top: 1px solid var(--line); }
.prob-n {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: .1em;
  color: var(--ox); padding-top: 0.6rem;
}

/* ---------- Process timeline ---------- */

.tl { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tl-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-steps::before {
  content: ""; position: absolute; left: 15px; top: 1.6rem; bottom: 1.6rem;
  width: 1px; background: var(--line-2);
}
.tl-prog {
  position: absolute; left: 15px; top: 1.6rem; width: 1px;
  background: var(--ox); height: var(--h, 0%);
  transition: height .5s var(--ease);
}
.tl-step {
  display: grid; grid-template-columns: 32px 1fr; gap: var(--s3);
  padding: var(--s3) 0; position: relative; cursor: pointer;
}
.tl-dot {
  width: 31px; height: 31px; border-radius: 50%; z-index: 1;
  border: 1px solid var(--line-2); background: var(--paper);
  display: grid; place-items: center; font-size: 0.72rem; color: var(--ink-3);
  transition: all .3s var(--ease);
}
.tl-step.is-on .tl-dot { background: var(--ox); border-color: var(--ox); color: #fff; }
.tl-step h3 { margin-bottom: 0.3rem; color: var(--ink-3); transition: color .3s var(--ease); }
.tl-step.is-on h3 { color: var(--ink); }
.tl-step p { margin: 0; font-size: 0.95rem; opacity: .55; transition: opacity .3s var(--ease); }
.tl-step.is-on p { opacity: 1; }

.tl-panel {
  position: sticky; top: 7rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); box-shadow: var(--shadow); padding: var(--s4);
}
.tl-panel-body > div { display: none; }
.tl-panel-body > div.is-on { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Service cards ---------- */

.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.svc-card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: var(--s3); text-decoration: none; display: block; position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.svc-card:hover {
  transform: translateY(-3px); border-color: var(--line-2);
  box-shadow: var(--shadow-lift); color: inherit;
}
.svc-card .ico {
  color: var(--ox); margin-bottom: var(--s3); display: block;
  transition: transform .25s var(--ease);
}
.svc-card:hover .ico { transform: translateY(-2px); }
.svc-card h3 { font-size: 1.16rem; margin-bottom: 0.4rem; }
.svc-card p { font-size: 0.94rem; margin: 0; }
.svc-card .go {
  margin-top: var(--s3); font-size: 0.85rem; color: var(--ox);
  display: flex; align-items: center; gap: 0.4rem;
}
.svc-card:hover .go .arw { transform: translateX(4px); }
.svc-card .go .arw { transition: transform .25s var(--ease); }

/* ---------- Readiness tool ---------- */

.tool { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.q { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.q:first-child { border-top: 1px solid var(--line); }
.q-t { font-size: 0.98rem; color: var(--ink); margin: 0 0 0.8rem; font-weight: 500; }
.q-opts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.q-opt {
  font-family: var(--sans); font-size: 0.88rem; cursor: pointer;
  padding: 0.5rem 0.95rem; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2);
  transition: all .18s var(--ease);
}
.q-opt:hover { border-color: var(--ink-3); color: var(--ink); }
.q-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tool-out {
  position: sticky; top: 7rem; border: 1px solid var(--line);
  border-radius: 14px; background: var(--ivory); padding: var(--s4);
}
.tool-score { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--ink); }
.tool-split { margin-top: var(--s3); }
.tool-split h4 {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); margin: var(--s3) 0 0.6rem;
  font-weight: 500;
}
.tool-split ul { list-style: none; margin: 0; padding: 0; }
.tool-split li {
  font-size: 0.92rem; color: var(--ink-2); padding: 0.35rem 0;
  display: flex; gap: 0.6rem; align-items: center;
}
.disclaim {
  margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--ink-3);
}

/* ---------- Illustrative case workflow ---------- */

.case {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); box-shadow: var(--shadow); overflow: hidden;
}
.case-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); padding: var(--s3); border-bottom: 1px solid var(--line);
  background: var(--ivory); flex-wrap: wrap;
}
.case-id { font-family: var(--sans); font-size: 0.9rem; letter-spacing: .04em; color: var(--ink); font-weight: 500; }
.case-body { padding: var(--s3); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.case-stage { padding: 0 var(--s3); border-right: 1px solid var(--line); }
.case-stage:first-child { padding-left: 0; }
.case-stage:last-child { border-right: none; padding-right: 0; }
.case-stage .tick { margin-bottom: 0.7rem; }
.case-stage p { font-size: 0.9rem; margin: 0; }
.case-when { font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.5rem; }

/* ---------- FAQ accordion ---------- */

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  color: var(--ink); padding: var(--s3) 2.5rem var(--s3) 0;
  position: relative; letter-spacing: -0.01em;
}
.acc-btn:hover { color: var(--ox); }
.acc-btn::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.acc-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.acc-panel .inner { padding: 0 3rem var(--s3) 0; }
.acc-panel p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */

.cta-band {
  background: var(--char); color: var(--paper);
  padding: var(--s7) 0; position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--paper); max-width: 16ch; }
.cta-band p { color: rgba(255,253,250,.62); }
.cta-net { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.cta-band .wrap { position: relative; z-index: 1; }

/* ---------- Footer ---------- */

.site-footer { background: var(--char); color: rgba(255,253,250,.6); padding: var(--s6) 0 var(--s4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s4); }
.site-footer h4 {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,253,250,.58);
  margin-bottom: var(--s2); font-weight: 500;
}
.site-footer .brand { color: var(--paper); font-size: 1.3rem; }
.site-footer p { color: rgba(255,253,250,.55); font-size: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,253,250,.72); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--paper); }
.footer-disclaimer {
  margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--line-dark);
}
.footer-disclaimer p { font-size: 0.8rem; color: rgba(255,253,250,.6); max-width: 76ch; }

/* ---------- Floating WhatsApp + mobile CTA ---------- */

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green); color: #fff; text-decoration: none;
  padding: 0.75rem 1.1rem; border-radius: 100px; font-size: 0.9rem;
  box-shadow: 0 6px 24px -6px rgba(0,0,0,.35);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); color: #fff; }

.mobile-cta { display: none; }

/* ==========================================================================
   Legacy components — kept so the other 8 pages keep working
   ========================================================================== */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s4); }
.prose ul { padding-left: 1.2rem; margin: 0 0 var(--s2); }
.prose li { margin-bottom: 0.4rem; color: var(--ink-2); }

.callout {
  border-left: 2px solid var(--ox); background: var(--ivory);
  padding: var(--s3); border-radius: 0 var(--r) var(--r) 0; margin: var(--s3) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.card { border: 1px solid var(--line); border-radius: 12px; padding: var(--s3); background: var(--paper); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { font-size: 1.14rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card p + p { margin-top: 0.6rem; }
.card-caveat { font-size: 0.88rem; color: var(--ink-3); }
.card-icon { width: 26px; height: 26px; display: block; margin-bottom: 0.7rem; fill: none; stroke: var(--ox); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.assurance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory); padding: var(--s4) 0; }
.assurance-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(4, 1fr); }
.assurance-item { font-size: 0.93rem; line-height: 1.5; padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.assurance-item::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.assurance-item strong { display: block; color: var(--ink); }

.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.ledger-col { padding: var(--s3); }
.ledger-col + .ledger-col { border-left: 1px solid var(--line); }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-bottom: var(--s2); margin-bottom: var(--s2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ledger-head h3 { margin: 0; font-size: 1.1rem; }
.ledger-count { font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-list li { font-size: 0.93rem; color: var(--ink-2); padding: 0.4rem 0 0.4rem 1.3rem; position: relative; }
.ledger-list li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.ledger-col-present .ledger-list li::before { background: var(--ox); }
.ledger-note { font-size: 0.85rem; color: var(--ink-3); margin-top: var(--s2); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step-num { counter-increment: step; font-family: var(--serif); font-size: 1.5rem; color: var(--ox); }
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 0.35rem; }
.step p { margin-bottom: 0; font-size: 0.96rem; }


.service-block + .service-block { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.col-narrow { max-width: 46rem; }
.faq-group + .faq-group { margin-top: var(--s5); }
.qa { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.qa h3 { margin-bottom: 0.4rem; }
.qa p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: var(--s3) 0; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { text-align: left; padding: 0.7rem; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--sans); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s5); }
.contact-aside { border-left: 1px solid var(--line); padding-left: var(--s4); }
.form-field { margin-bottom: var(--s3); }
.form-field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: 0.97rem;
  color: var(--ink); padding: 0.7rem 0.85rem; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 7px;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-privacy { font-size: 0.85rem; color: var(--ink-3); }
.honeypot { position: absolute !important; left: -9999px !important; }
.hint { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.3rem; }

/* Trip chart (legacy hero figure, still used nowhere but kept safe) */
.trip-chart { width: 100%; height: auto; display: block; overflow: visible; }
.trip-chart text { font-family: var(--sans); }
.tc-label { font-size: 10px; fill: var(--ink-3); letter-spacing: .07em; text-transform: uppercase; }
.tc-row { font-size: 12px; font-weight: 500; fill: var(--ink-2); }
.tc-figure { font-size: 15px; font-weight: 600; fill: var(--ink); }
.tc-note { font-size: 11px; fill: var(--ink-3); }
.tc-rule { stroke: var(--line); stroke-width: 1; }
.tc-fill-remote { fill: var(--ivory-deep); stroke: var(--line); stroke-width: 1; }
.tc-fill-present { fill: var(--ox); }
.hero-figure figcaption { margin-top: var(--s2); font-size: 0.85rem; line-height: 1.5; color: var(--ink-3); }

/* Service directory */
.svc-controls { margin: var(--s4) 0 var(--s3); }
.svc-search-label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.svc-search { width: 100%; max-width: 34rem; box-sizing: border-box; font-family: var(--sans); font-size: 0.97rem; color: var(--ink); padding: 0.65rem 0.85rem; background: var(--paper); border: 1px solid var(--line-2); border-radius: 7px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s3); }
.svc-chip { font-family: var(--sans); font-size: 0.86rem; cursor: pointer; padding: 0.4rem 0.85rem; border-radius: 100px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); transition: all .15s var(--ease); }
.svc-chip:hover { color: var(--ink); border-color: var(--ink-3); }
.svc-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc-count { font-size: 0.86rem; color: var(--ink-3); margin: var(--s2) 0 0; }
.svc-group + .svc-group { margin-top: var(--s4); }
.svc-group-title { font-family: var(--sans); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.6rem; font-weight: 500; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s2); padding: 0.7rem 0; border-top: 1px solid var(--line); }
.svc-list .svc-item:last-child { border-bottom: 1px solid var(--line); }
.svc-name { color: var(--ink); font-size: 0.97rem; }
.svc-code { font-size: 0.76rem; color: var(--ink-3); letter-spacing: .04em; white-space: nowrap; }
.svc-empty { color: var(--ink-2); margin-top: var(--s3); }
.svc-more { margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); }
.svc-more summary { cursor: pointer; font-weight: 500; color: var(--ink); font-size: 0.97rem; }
.svc-more-count { color: var(--ink-3); font-weight: 400; }
.svc-more-body { margin-top: var(--s3); }
.svc-more-body h4 { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: var(--s3) 0 0.4rem; }
.svc-more-body ul { margin: 0; padding-left: 1.2rem; }
.svc-more-body li { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 0.25rem; }
.svc-source { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 0.83rem; color: var(--ink-3); }

/* Scroll reveal — only active once JS confirms motion is wanted */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal-delay.is-visible { transition-delay: .1s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s5); }
  .dash { max-width: 30rem; }
  .tl { grid-template-columns: 1fr; }
  .tl-panel { position: static; }
  .tool { grid-template-columns: 1fr; }
  .tool-out { position: static; }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .case-body { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .case-stage:nth-child(2) { border-right: none; }
  .case-stage:nth-child(3) { padding-left: 0; }
}

@media (max-width: 900px) {
  .assurance-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .contact-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { padding-left: 0; }
}

@media (max-width: 720px) {
  .section { padding: var(--s6) 0; }
  .section-tight { padding: var(--s5) 0; }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 1.25rem; right: 1.25rem; top: calc(100% + 0.5rem);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 12px; padding: 0.6rem; box-shadow: var(--shadow-lift);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0.85rem; }
  .nav .btn { margin: 0.35rem 0 0; justify-content: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .site-header.is-stuck .header-inner { border-radius: 14px; padding-left: 1rem; }

  .ledger { grid-template-columns: 1fr; }
  .ledger-col + .ledger-col { border-left: none; border-top: 1px solid var(--line); }
  .card-grid, .svc-cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 2.4rem 1fr; gap: var(--s2); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .svc-item { align-items: start; }
  .svc-code { padding-top: 0.15rem; }

  .cmp-cols { grid-template-columns: 1fr; gap: var(--s3); }
  .cmp-tasks { min-height: 0; }
  .cmp-readout { grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }

  .prob-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  .prob-n { padding-top: 0; }

  .case-body { grid-template-columns: 1fr; }
  .case-stage { padding: var(--s2) 0; border-right: none; border-bottom: 1px solid var(--line); }
  .case-stage:last-child { border-bottom: none; }

  .dash-meta { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item {
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: var(--s3) 0 !important;
  }
  .trust-item:last-child { border-bottom: 0; }

  /* Persistent thumb-reachable CTA */
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    gap: 0.6rem; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255,253,250,.9); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; justify-content: center; padding: 0.8rem 1rem; }
  body { padding-bottom: 4.5rem; }
  .wa-float { display: none; }
}

@media (max-width: 420px) {
  .assurance-grid { grid-template-columns: 1fr; }
  .ring { width: 76px; height: 76px; }
  .ring-num { font-size: 2rem; }
}

/* ==========================================================================
   Inner pages — editorial treatment
   ========================================================================== */

/* Page opening: eyebrow, oversized headline, lede, then a hairline. */
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 0; }
.page-hero .section-head { margin-bottom: 0; max-width: 54rem; }
.page-hero h1 { max-width: 18ch; margin-bottom: var(--s3); }
.page-hero .lede { max-width: 56ch; }
.page-hero::after {
  content: ""; display: block; height: 1px;
  background: var(--line); margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Long-form documents (privacy, terms, 404): same rhythm without a wrapper. */
.prose > h1 { max-width: 18ch; margin-bottom: var(--s3); }
.prose > h1 + .lede {
  max-width: 56ch; padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line); margin-bottom: var(--s4);
}

/* Section labels inside inner pages sit tighter than the homepage's. */
.section-head .eyebrow { margin-bottom: var(--s2); }

/* Service blocks read as chapters rather than stacked divs. */
.service-block > h2 { max-width: 20ch; }
.service-block + .service-block { margin-top: var(--s7); padding-top: var(--s6); }

/* FAQ groups get a quiet running label. */
.faq-group > h2 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
  margin-bottom: var(--s2);
}
.qa { padding: var(--s4) 0; }
.qa h3 { max-width: 34ch; }

/* Numbered steps: the numeral carries the editorial weight. */
.step { grid-template-columns: 4.5rem 1fr; padding: var(--s4) 0; }
.step-num { font-size: 2.1rem; color: var(--ox); line-height: 1; }
.step h3 { font-size: 1.35rem; }

@media (max-width: 720px) {
  .step { grid-template-columns: 2.8rem 1fr; padding: var(--s3) 0; }
  .step-num { font-size: 1.5rem; }
  .service-block + .service-block { margin-top: var(--s6); padding-top: var(--s5); }
}
