/* =====================================================================
   FamilyLawPath.ca — V2
   Family-law intelligence console. Dark infrastructure aesthetic.
   From emotional chaos to structured legal opportunity.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Dark ink / midnight-green environment */
  --bg:        #071313;
  --bg-2:      #0B1C1D;
  --surface:   #102728;
  --surface-2: #173536;
  --surface-3: #1d4041;
  --line:      #244647;
  --line-soft: #1a3435;

  /* Ivory + parchment text */
  --ivory:     #F4EFE3;
  --parchment: #D8CBB7;
  --muted:     #9aa9a4;
  --faint:     #6c807b;

  /* Signals */
  --teal:      #27C0B3;   /* live-system signal only */
  --teal-dim:  #1c8a80;
  --copper:    #C08445;   /* financial / opportunity / handoff */
  --copper-hi: #d99a58;
  --oxblood:   #C15048;   /* safety / urgency only */
  --oxblood-bg:#3a1c1a;

  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 20px;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "General Sans", "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --ease-io:  cubic-bezier(0.4, 0, 0.2, 1);
  --t-int: 200ms var(--ease-out);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
}

/* ---------- Light mode (used sparingly for one contrast section + optional toggle) ---------- */
:root[data-theme="light"] {
  --bg:        #F4EFE3;
  --bg-2:      #efe8d8;
  --surface:   #ffffff;
  --surface-2: #f7f2e7;
  --surface-3: #efe7d6;
  --line:      #d8cdb8;
  --line-soft: #e4dccb;
  --ivory:     #14201f;
  --parchment: #3d4a45;
  --muted:     #5b6b64;
  --faint:     #8a978f;
  --teal:      #0f7d74;
  --copper:    #a5662b;
  --shadow-md: 0 12px 40px rgba(30,40,30,.12);
  --shadow-lg: 0 30px 80px rgba(30,40,30,.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--teal); color: #04100f; }

/* ---------- Ambient background field ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 82% -5%, rgba(39,192,179,.10), transparent 60%),
    radial-gradient(760px 620px at 8% 12%, rgba(192,132,69,.08), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
  z-index: -2;
  pointer-events: none;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .22;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 148px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.copper { color: var(--copper-hi); }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 12px currentColor;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4.6vw, 56px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.15; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--parchment); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-int), background var(--t-int);
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .wordmark { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.brand .wordmark .tld { color: var(--faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color var(--t-int); position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--ivory); }
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px; background: var(--teal);
  transition: width var(--t-int);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
  transition: color var(--t-int), border-color var(--t-int), background var(--t-int);
}
.theme-toggle:hover { color: var(--ivory); border-color: var(--teal); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform var(--t-int), box-shadow var(--t-int), background var(--t-int), border-color var(--t-int), color var(--t-int);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--teal); color: #04100f; box-shadow: 0 0 0 rgba(39,192,179,0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(39,192,179,.28); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); background: var(--surface); }
.btn-ghost:active { transform: translateY(0); }
.btn-copper { background: var(--copper); color: #150c04; }
.btn-copper:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(192,132,69,.3); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* =====================================================================
   HERO — full-screen product theater
   ===================================================================== */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-top { text-align: center; max-width: 940px; margin-inline: auto; }
.hero-top h1 {
  font-size: clamp(34px, 6vw, 74px);
  margin: 22px auto 0;
  max-width: 16ch;
}
.hero-top h1 .accent { color: var(--copper-hi); font-style: italic; }
.hero-top .lead { margin: 22px auto 0; text-align: center; }
.hero-top .lead a { color: var(--teal); border-bottom: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); }
.hero-top .lead a:hover { border-bottom-color: var(--teal); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }

/* ---------- Console: the signature transformation ---------- */
.console {
  margin-top: clamp(40px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.console-bar .title { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.console-bar .live { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; }
.console-bar .live::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s var(--ease-io) infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.console-body {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  min-height: 440px;
}

/* --- left: messy story stream --- */
.story-pane { padding: 26px 24px; border-right: 1px solid var(--line-soft); position: relative; }
.pane-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; display:flex; justify-content:space-between; align-items:center;}
.pane-label .chan { color: var(--copper-hi); }
.story-line {
  font-family: var(--font-display); font-size: 17px; line-height: 1.5; color: var(--parchment);
  opacity: 0; margin-bottom: 12px; font-style: italic;
}
.story-line.in { opacity: 1; }
.story-cursor { display:inline-block; width:2px; height:1em; background: var(--teal); margin-left:2px; vertical-align:-2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.story-modes { display:flex; gap:8px; margin-top: 20px; }
.story-modes .chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing:.06em; text-transform:uppercase;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  display:inline-flex; align-items:center; gap:7px;
}
.story-modes .chip.on { border-color: var(--teal); color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.story-modes .chip svg { width: 13px; height: 13px; }

/* --- center: transformation spine --- */
.spine { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.spine-track { position:absolute; top: 34px; bottom: 34px; width: 2px; background: var(--line); left:50%; transform:translateX(-50%); }
.spine-fill { position:absolute; top:0; left:0; right:0; height:0; background: linear-gradient(180deg, var(--teal), var(--copper)); box-shadow: 0 0 14px var(--teal); }
.spine-node {
  position: relative; z-index: 2; width: 100%; display:flex; flex-direction:column; align-items:center; gap:5px;
  padding-block: 12px; opacity:.4; transition: opacity 400ms var(--ease-out);
}
.spine-node.on { opacity: 1; }
.spine-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--line); transition: all 400ms var(--ease-out); }
.spine-node.on .spine-dot { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 16px var(--teal); }
.spine-node.pay.on .spine-dot { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 16px var(--copper); }
.spine-lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); text-align:center; max-width:80px; }
.spine-node.pay.on .spine-lbl { color: var(--copper-hi); }

/* --- right: structured file --- */
.file-pane { padding: 26px 24px; background: color-mix(in srgb, var(--surface) 40%, transparent); }
.file-field {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px;
  opacity: 0; transform: translateY(0);
  background: var(--bg-2);
}
.file-field.in { opacity: 1; }
.file-field .k { font-family: var(--font-mono); font-size: 10px; letter-spacing:.14em; text-transform:uppercase; color: var(--faint); display:block; margin-bottom:5px; }
.file-field .v { font-size: 14px; color: var(--ivory); }
.file-field .tag { display:inline-block; font-family:var(--font-mono); font-size:11px; padding:3px 9px; border-radius:6px; background: var(--surface-3); color: var(--parchment); margin:2px 4px 2px 0; }
.file-field.flag { border-color: var(--oxblood); background: var(--oxblood-bg); }
.file-field.flag .k { color: var(--oxblood); }
.file-field.flag .v { color: #f3d7d3; }
.file-field.pay { border-color: color-mix(in srgb, var(--copper) 55%, var(--line)); }
.file-field.pay .k { color: var(--copper-hi); }
.file-field.pay .v a { color: var(--copper-hi); border-bottom: 1px solid color-mix(in srgb, var(--copper) 40%, transparent); }
.file-ready {
  margin-top: 6px; border: 1px solid var(--teal); border-radius: var(--radius-sm);
  padding: 13px 15px; background: color-mix(in srgb, var(--teal) 10%, transparent);
  display:flex; align-items:center; gap:11px; opacity:0;
}
.file-ready.in { opacity: 1; }
.file-ready svg { width: 22px; height: 22px; color: var(--teal); flex:none; }
.file-ready .t { font-size: 13.5px; } .file-ready .t b { color: var(--teal); }

.console-foot {
  border-top: 1px solid var(--line-soft); padding: 13px 22px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing:.03em;
  display:flex; justify-content:space-between; gap: 12px; flex-wrap: wrap;
}
.console-foot .sim { color: var(--muted); }

/* =====================================================================
   Reveal system (opacity/clip only — no CLS)
   ===================================================================== */
.reveal { opacity: 0; transition: opacity 700ms var(--ease-out), clip-path 700ms var(--ease-out); }
.reveal.in { opacity: 1; }
.reveal-clip { opacity: 1; clip-path: inset(0 0 100% 0); transition: clip-path 800ms var(--ease-out); }
.reveal-clip.in { clip-path: inset(0 0 0 0); }

/* =====================================================================
   AUDIENCES — offset editorial trio
   ===================================================================== */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 130%);
  transition: transform var(--t-int), border-color var(--t-int), box-shadow var(--t-int);
  position: relative; overflow: hidden;
}
.aud-card:nth-child(2) { transform: translateY(28px); }
.aud-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.aud-card:nth-child(2):hover { transform: translateY(24px); }
.aud-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing:.1em; }
.aud-card h3 { margin: 14px 0 12px; }
.aud-card p { color: var(--muted); font-size: 15.5px; }
.aud-card .edge { position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--teal); transform: scaleY(0); transform-origin: top; transition: transform 300ms var(--ease-out); }
.aud-card:hover .edge { transform: scaleY(1); }
.aud-card:nth-child(2) .edge { background: var(--copper); }

/* =====================================================================
   NOT A FORM — big editorial statement
   ===================================================================== */
.manifesto { text-align: center; }
.manifesto .kicker { font-family: var(--font-mono); font-size:12px; letter-spacing:.2em; text-transform:uppercase; color: var(--muted); }
.manifesto h2 {
  font-size: clamp(38px, 7vw, 92px); line-height: 1.0; margin: 24px auto; max-width: 15ch;
}
.manifesto h2 .strike { color: var(--faint); position: relative; }
.manifesto h2 .strike::after { content:""; position:absolute; left:-2%; right:-2%; top:52%; height:3px; background: var(--oxblood); transform: scaleX(0); transform-origin:left; transition: transform 600ms var(--ease-out) 200ms; }
.manifesto.in h2 .strike::after { transform: scaleX(1); }
.manifesto h2 .keep { color: var(--teal); }
.manifesto p { max-width: 62ch; margin: 0 auto; color: var(--parchment); font-size: clamp(16px,1.7vw,19px); }

/* =====================================================================
   STORY / FILE toggle — interactive split
   ===================================================================== */
.split { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items:center; }
.split-copy .toggle { display:inline-flex; padding:4px; border:1px solid var(--line); border-radius:999px; margin: 22px 0 20px; }
.split-copy .toggle button { padding:8px 18px; border-radius:999px; font-size:13.5px; font-weight:600; color: var(--muted); transition: color var(--t-int), background var(--t-int); }
.split-copy .toggle button.on { background: var(--teal); color:#04100f; }
.split-copy .toggle button.on.copper { background: var(--copper); color:#150c04; }
.split-body p { color: var(--muted); }
.split-body .set { display:none; }
.split-body .set.on { display:block; animation: fade .4s var(--ease-out); }
@keyframes fade { from { opacity:0; } to { opacity:1; } }

.demo-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg,var(--surface),var(--bg-2)); box-shadow: var(--shadow-md); overflow:hidden;
}
.demo-head { padding:14px 18px; border-bottom:1px solid var(--line-soft); font-family:var(--font-mono); font-size:12px; color:var(--muted); letter-spacing:.06em; display:flex; justify-content:space-between; }
.demo-head .st { color: var(--copper-hi); }
.demo-head .st.file { color: var(--teal); }
.demo-view { padding: 22px; min-height: 320px; }
.demo-view .story-raw p { font-family: var(--font-display); font-style:italic; font-size:17px; color: var(--parchment); line-height:1.55; }
.demo-view .story-raw .mess { color: var(--faint); }
.demo-view.hidden { display:none; }
.file-row { display:grid; grid-template-columns: 96px 1fr; gap:10px; padding:10px 0; border-bottom:1px solid var(--line-soft); }
.file-row:last-child { border-bottom:0; }
.file-row .k { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); padding-top:2px;}
.file-row .v { font-size:14px; }
.file-row .v .tag { display:inline-block; font-family:var(--font-mono); font-size:11px; padding:2px 8px; border-radius:6px; background:var(--surface-3); color:var(--parchment); margin:2px 4px 2px 0;}
.file-row .v .warn { color: var(--oxblood); border:1px solid var(--oxblood); background: var(--oxblood-bg); }

/* =====================================================================
   AI VALUE — asymmetric feature
   ===================================================================== */
.feature-split { display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px,5vw,64px); align-items:center; }
.stat-strip { display:flex; gap:28px; flex-wrap:wrap; margin-top: 26px; }
.stat b { font-family: var(--font-display); font-size: clamp(28px,3.4vw,40px); color: var(--teal); display:block; line-height:1; }
.stat span { font-size: 13px; color: var(--muted); }
.pipe-visual {
  border:1px solid var(--line); border-radius: var(--radius); padding: 26px; background: linear-gradient(150deg,var(--surface),var(--bg-2)); box-shadow: var(--shadow-md);
}
.pipe-row { display:flex; align-items:center; gap:14px; padding: 13px 0; }
.pipe-row + .pipe-row { border-top: 1px dashed var(--line-soft); }
.pipe-ico { width:38px; height:38px; flex:none; border-radius:10px; display:grid; place-items:center; border:1px solid var(--line); color: var(--teal); background: var(--bg-2); }
.pipe-ico svg { width:19px; height:19px; }
.pipe-ico.copper { color: var(--copper-hi); }
.pipe-ico.ox { color: var(--oxblood); }
.pipe-row .pt { font-size:14.5px; font-weight:600; }
.pipe-row .pd { font-size:12.5px; color:var(--muted); }

/* =====================================================================
   ADAPTIVE INTAKE — three modes
   ===================================================================== */
.mode-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.mode-card { border:1px solid var(--line); border-radius:var(--radius); padding:28px 24px; background: var(--surface); transition: transform var(--t-int), border-color var(--t-int); }
.mode-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.mode-ico { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; border:1px solid var(--line); color:var(--teal); margin-bottom:18px; }
.mode-ico svg { width:23px; height:23px; }
.mode-card h3 { font-size:21px; margin-bottom:10px; }
.mode-card p { font-size:14.5px; color:var(--muted); }
.mode-card .meter { height:4px; border-radius:2px; background:var(--line); margin-top:18px; overflow:hidden; }
.mode-card .meter i { display:block; height:100%; background:var(--teal); width:0; transition: width 900ms var(--ease-out); }
.mode-card.in .meter i { width: var(--w, 70%); }

/* =====================================================================
   FINANCIAL REALITY — RetainerFund ladder
   ===================================================================== */
.fin { background: var(--bg-2); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.rf-badge { display:inline-flex; align-items:center; gap:10px; border:1px solid color-mix(in srgb,var(--copper) 45%,var(--line)); border-radius:999px; padding:8px 16px; font-family:var(--font-mono); font-size:12px; letter-spacing:.05em; color:var(--copper-hi); background: color-mix(in srgb,var(--copper) 8%,transparent); }
.rf-badge .dot { width:8px;height:8px;border-radius:50%;background:var(--copper); box-shadow:0 0 10px var(--copper); }
.ladder { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top: 44px; }
.rung { border:1px solid var(--line); border-radius:var(--radius); padding:24px 20px; background: var(--surface); position:relative; transition: transform var(--t-int), border-color var(--t-int); }
.rung:hover { transform: translateY(-4px); }
.rung .step { font-family:var(--font-mono); font-size:11px; color:var(--faint); letter-spacing:.1em; }
.rung h3 { font-size:19px; margin:10px 0; }
.rung p { font-size:13.5px; color:var(--muted); }
.rung .tagline { margin-top:14px; font-size:12.5px; font-style:italic; color:var(--parchment); }
.rung.copper { border-color: color-mix(in srgb,var(--copper) 55%,var(--line)); }
.rung.copper:hover { border-color: var(--copper); }
.rung.ox { border-color: color-mix(in srgb,var(--oxblood) 45%,var(--line)); }
.rung.ox:hover { border-color: var(--oxblood); }
.rung.ox h3 { color: #f0c9c5; }
.safety-first { margin-top: 26px; display:flex; align-items:center; gap:12px; font-size:14px; color:var(--parchment); }
.safety-first svg { width:20px; height:20px; color:var(--oxblood); flex:none; }

/* =====================================================================
   HOW IT WORKS — sticky journey rail
   ===================================================================== */
.how-layout { display:grid; grid-template-columns: 300px 1fr; gap: clamp(30px,5vw,72px); align-items:start; }
.rail { position: sticky; top: 100px; }
.rail-line { position:relative; padding-left: 28px; }
.rail-line::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--line); }
.rail-fill { position:absolute; left:7px; top:6px; width:2px; background: linear-gradient(180deg,var(--teal),var(--copper)); height:0; transition: height 300ms var(--ease-out); }
.rail-item { position:relative; padding: 14px 0; cursor:default; }
.rail-item::before { content:""; position:absolute; left:-25px; top:20px; width:14px; height:14px; border-radius:50%; background:var(--surface-3); border:2px solid var(--line); transition: all 300ms var(--ease-out); }
.rail-item.active::before { background:var(--teal); border-color:var(--teal); box-shadow:0 0 14px var(--teal); }
.rail-item .rl { font-family:var(--font-mono); font-size:11px; color:var(--faint); letter-spacing:.08em; }
.rail-item .rt { font-size:15px; font-weight:600; color:var(--muted); transition: color 300ms var(--ease-out); }
.rail-item.active .rt { color: var(--ivory); }

.steps { display:flex; flex-direction:column; gap: 20px; }
.step-card { border:1px solid var(--line); border-radius:var(--radius); padding: 30px 28px; background: linear-gradient(150deg,var(--surface),var(--bg-2)); }
.step-card .snum { font-family:var(--font-display); font-size: 46px; color: var(--surface-3); line-height:1; float:right; }
.step-card h3 { margin-bottom:12px; max-width: 24ch; }
.step-card p { color: var(--muted); max-width: 60ch; }
.step-card p a { color: var(--copper-hi); border-bottom:1px solid color-mix(in srgb,var(--copper) 40%,transparent); }

/* =====================================================================
   WHY NOW
   ===================================================================== */
.whynow-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,60px); align-items:start; }
.fact-list { display:flex; flex-direction:column; gap:2px; }
.fact { display:flex; gap:20px; padding: 20px 0; border-top:1px solid var(--line-soft); }
.fact:first-child { border-top:0; }
.fact .big { font-family:var(--font-display); font-size: clamp(30px,3.6vw,42px); color:var(--teal); line-height:1; flex:none; width: 4.5ch; }
.fact .ft { font-size:14.5px; color:var(--muted); }
.fact .ft a { color: var(--parchment); text-decoration: underline; text-decoration-color: var(--faint); }
.ai-era { border:1px solid var(--line); border-radius:var(--radius); padding:28px 26px; background: linear-gradient(160deg,var(--surface),var(--bg-2)); }
.ai-era .eyebrow { margin-bottom:14px; }
.ai-era h3 { margin-bottom:14px; }
.ai-era p { font-size:14.5px; color:var(--muted); }
.src-note { margin-top:22px; font-family:var(--font-mono); font-size:11px; color:var(--faint); }
.src-note a { color: var(--muted); text-decoration: underline; }

/* =====================================================================
   BUILT FOR LAWYERS — partner dashboard
   ===================================================================== */
.partner-split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,60px); align-items:center; }
.value-list { list-style:none; margin-top:22px; display:flex; flex-direction:column; gap:14px; }
.value-list li { display:flex; gap:13px; font-size:15px; color:var(--parchment); }
.value-list svg { width:20px; height:20px; color:var(--teal); flex:none; margin-top:2px; }
.dash {
  border:1px solid var(--line); border-radius:var(--radius); background: linear-gradient(160deg,var(--surface),var(--bg-2)); box-shadow: var(--shadow-md); overflow:hidden;
}
.dash-head { padding:14px 18px; border-bottom:1px solid var(--line-soft); display:flex; justify-content:space-between; align-items:center; }
.dash-head .dt { font-family:var(--font-mono); font-size:12px; color:var(--muted); letter-spacing:.05em; }
.dash-head .prio { font-family:var(--font-mono); font-size:11px; padding:4px 10px; border-radius:999px; background: var(--oxblood-bg); color:#f0c9c5; border:1px solid var(--oxblood); }
.dash-body { padding: 18px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.dash-tile { border:1px solid var(--line-soft); border-radius:var(--radius-sm); padding:13px 14px; background: var(--bg-2); }
.dash-tile .dl { font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.dash-tile .dv { font-size:14px; margin-top:5px; color:var(--ivory); }
.dash-tile.wide { grid-column: 1 / -1; }
.dash-tile .dv .tag { display:inline-block; font-family:var(--font-mono); font-size:10.5px; padding:2px 8px; border-radius:5px; background:var(--surface-3); color:var(--parchment); margin:2px 4px 2px 0;}
.dash-tile.pay .dl { color: var(--copper-hi); } .dash-tile.pay { border-color: color-mix(in srgb,var(--copper) 45%,var(--line)); }
.dash-tile.pay .dv a { color: var(--copper-hi); }

/* =====================================================================
   BUSINESS IMPACT BAND
   ===================================================================== */
.impact-sec { background: var(--bg-2); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.impact-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top: 8px; }
.impact-card {
  border:1px solid var(--line); border-radius:var(--radius); padding:26px 22px 24px;
  background: linear-gradient(170deg,var(--surface),var(--bg-2));
  position:relative; overflow:hidden; transition: transform var(--t-int), border-color var(--t-int), box-shadow var(--t-int);
}
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--copper); }
.impact-card.teal:hover { border-color: var(--teal); }
.impact-card::after { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--copper); opacity:.75; }
.impact-card.teal::after { background: var(--teal); }
.impact-card .ic-lbl { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); display:block; }
.impact-card .ic-val { font-family:var(--font-display); font-size: clamp(30px,3.4vw,42px); line-height:1; color: var(--copper-hi); display:block; margin:14px 0 12px; letter-spacing:-.01em; }
.impact-card.teal .ic-val { color: var(--teal); }
.impact-card .ic-desc { font-size:13.5px; color:var(--muted); line-height:1.5; }
.impact-card .ic-desc a { color: var(--copper-hi); border-bottom:1px solid color-mix(in srgb,var(--copper) 40%,transparent); }
.impact-foot { margin-top: 24px; font-family:var(--font-mono); font-size:11px; color:var(--faint); letter-spacing:.03em; }

/* =====================================================================
   MARKET GEOGRAPHY
   ===================================================================== */
.geo { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top: 40px; }
.geo-card { border:1px solid var(--line); border-radius:var(--radius); padding:28px 26px; background: var(--surface); position:relative; overflow:hidden; }
.geo-card .status { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
.geo-card.live { border-color: color-mix(in srgb,var(--teal) 45%,var(--line)); }
.geo-card.live .status { color: var(--teal); }
.geo-card.next .status { color: var(--copper-hi); }
.geo-card.future .status { color: var(--muted); }
.geo-card h3 { font-size: 30px; margin:12px 0 10px; }
.geo-card p { font-size:14px; color:var(--muted); }
.geo-card .num { position:absolute; right:18px; top:14px; font-family:var(--font-mono); font-size:12px; color:var(--faint); }

/* =====================================================================
   FIRM VIEW dashboard — multi-card intake queue
   ===================================================================== */
.value-list-row { flex-direction:row; flex-wrap:wrap; gap:14px 28px; margin-top: 4px; margin-bottom: 40px; }
.value-list-row li { flex: 1 1 240px; font-size:14.5px; color:var(--parchment); }

.firm {
  border:1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow-lg); overflow:hidden;
}
.firm-bar {
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  padding:14px 20px; border-bottom:1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.fb-title { font-family:var(--font-mono); font-size:12.5px; color:var(--muted); letter-spacing:.03em; display:inline-flex; align-items:center; gap:9px; }
.fb-dot { width:8px; height:8px; border-radius:50%; background: var(--teal); box-shadow:0 0 10px var(--teal); animation: pulse 2s var(--ease-io) infinite; }
.firm-filters { display:inline-flex; gap:6px; margin-left:auto; padding:3px; border:1px solid var(--line); border-radius:999px; }
.firm-filters .ff { font-family:var(--font-mono); font-size:11px; letter-spacing:.04em; padding:6px 13px; border-radius:999px; color:var(--muted); transition: color var(--t-int), background var(--t-int); }
.firm-filters .ff.on { background: var(--teal); color:#04100f; }
.fb-meta { font-family:var(--font-mono); font-size:11px; color:var(--faint); letter-spacing:.03em; }

.firm-body { padding: 18px; display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.lead-card {
  border:1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-2); padding: 18px 18px 16px;
  transition: transform var(--t-int), border-color var(--t-int), box-shadow var(--t-int), opacity 300ms var(--ease-out);
  display:flex; flex-direction:column; gap:12px;
}
.lead-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.lead-card.hide { display:none; }
.lc-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.lc-id { font-family:var(--font-mono); font-size:11px; color:var(--faint); letter-spacing:.06em; }
.prio { font-family:var(--font-mono); font-size:10.5px; padding:4px 10px; border-radius:999px; letter-spacing:.04em; white-space:nowrap; border:1px solid transparent; }
.prio-1 { background: color-mix(in srgb,var(--copper) 16%,transparent); color: var(--copper-hi); border-color: color-mix(in srgb,var(--copper) 55%,var(--line)); }
.prio-2 { background: color-mix(in srgb,var(--teal) 12%,transparent); color: var(--teal); border-color: color-mix(in srgb,var(--teal) 50%,var(--line)); }
.prio-3 { background: var(--surface-3); color: var(--muted); border-color: var(--line); }
.prio-safety { background: var(--oxblood-bg); color:#f0c9c5; border-color: var(--oxblood); }
.lc-issue { font-family:var(--font-display); font-size:18px; color:var(--ivory); line-height:1.2; }
.lc-fields { display:grid; grid-template-columns: 1fr 1fr; gap:9px 14px; }
.lf { display:flex; flex-direction:column; gap:3px; }
.lf-k { font-family:var(--font-mono); font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.lf-v { font-size:13px; color:var(--parchment); }
.lf-v.urg { color: var(--oxblood); }
.lf-v.ok { color: var(--teal); }
.lf-v.flag { color:#f0c9c5; }
.lf-v.pay { color: var(--copper-hi); }
.lf-v.muted { color: var(--faint); }
.lc-status { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-top:10px; border-top:1px dashed var(--line-soft); }
.chip-fin { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.03em; padding:4px 10px; border-radius:6px; border:1px solid var(--line); color:var(--muted); }
.chip-fin.ready { color: var(--copper-hi); border-color: color-mix(in srgb,var(--copper) 55%,var(--line)); background: color-mix(in srgb,var(--copper) 8%,transparent); }
.chip-fin.watch { color: var(--muted); }
.chip-fin.hold { color:#e8b9b4; border-color: var(--oxblood); background: color-mix(in srgb,var(--oxblood) 14%,transparent); }
.lc-note { font-size:12px; color:var(--faint); font-style:italic; }
.lc-action { display:flex; flex-direction:column; gap:3px; border-radius: var(--radius-sm); padding:10px 12px; background: color-mix(in srgb,var(--teal) 7%,transparent); border:1px solid color-mix(in srgb,var(--teal) 30%,var(--line-soft)); }
.la-k { font-family:var(--font-mono); font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color: var(--teal); }
.la-v { font-size:13.5px; color: var(--ivory); }
.firm-foot {
  border-top:1px solid var(--line-soft); padding: 13px 22px;
  font-family:var(--font-mono); font-size:11px; color:var(--faint); letter-spacing:.03em;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.firm-foot .ff-sim { color: var(--muted); }

/* =====================================================================
   GUARDRAILS
   ===================================================================== */
.guard { background: var(--bg-2); border-top:1px solid var(--line-soft); }
.guard-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.guard-item { display:flex; gap:14px; border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; background: var(--surface); }
.guard-item svg { width:22px; height:22px; color:var(--teal); flex:none; margin-top:2px; }
.guard-item .gt { font-size:15px; font-weight:600; margin-bottom:5px; }
.guard-item .gd { font-size:13.5px; color:var(--muted); }
.guard-line { text-align:center; margin-top: 40px; font-family: var(--font-display); font-size: clamp(22px,3vw,32px); color: var(--ivory); }
.guard-line .a { color: var(--teal); } .guard-line .b { color: var(--copper-hi); }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.final { text-align:center; position:relative; overflow:hidden; }
.final .wrap { position:relative; z-index:1; }
.final h2 { font-size: clamp(34px,5.5vw,68px); max-width: 18ch; margin: 20px auto 0; }
.final .lead { margin: 22px auto 0; text-align:center; }
.final .tri { display:flex; gap: clamp(20px,5vw,60px); justify-content:center; flex-wrap:wrap; margin: 40px auto; max-width:820px; }
.final .tri div { flex:1; min-width:200px; }
.final .tri .th { font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); margin-bottom:8px; }
.final .tri .td { font-size:14.5px; color:var(--muted); }
.final .hero-cta { margin-top: 8px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top:1px solid var(--line); padding-block: 48px; }
.footer-top { display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; align-items:flex-start; }
.footer .brand .wordmark { font-size:18px; }
.footer .tagline { color:var(--muted); font-size:14px; margin-top:12px; max-width:36ch; }
.footer-cols { display:flex; gap:56px; flex-wrap:wrap; }
.footer-col h4 { font-family:var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); margin-bottom:14px; }
.footer-col a { display:block; font-size:14px; color:var(--muted); margin-bottom:9px; transition:color var(--t-int); }
.footer-col a:hover { color:var(--ivory); }
.footer-bottom { margin-top:40px; padding-top:24px; border-top:1px solid var(--line-soft); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:12.5px; color:var(--faint); }
.footer-legal { max-width: 90ch; line-height:1.7; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .console-body { grid-template-columns: 1fr; }
  .story-pane { border-right:0; border-bottom:1px solid var(--line-soft); }
  .spine { flex-direction: row; padding: 18px 0; }
  .spine-track { top:50%; bottom:auto; left: 34px; right: 34px; width:auto; height:2px; transform:translateY(-50%); }
  .spine-fill { top:0; bottom:0; height:auto; width:0; background: linear-gradient(90deg,var(--teal),var(--copper)); }
  .spine-node { padding-block:0; padding-inline: 6px; }
  .feature-split, .whynow-grid, .partner-split, .split { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .firm-body { grid-template-columns: 1fr; }
  .how-layout { grid-template-columns: 1fr; }
  .how-layout > * { min-width: 0; }
  .rail { display: none; }
  .steps { min-width: 0; }
  .step-card { max-width: 100%; }
}
@media (max-width: 860px) {
  .nav-links { display:none; }
  .nav-cta .btn-ghost { display:none; }
  .nav-cta > a.btn-primary { display:none; }
  .menu-btn { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; border:1px solid var(--line); margin-left:auto; }
  .menu-btn svg { width:20px; height:20px; }
  .nav-cta { margin-left:0; }
  .mobile-menu {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg-2); border-bottom:1px solid var(--line);
    padding: 20px var(--gutter); display:none; flex-direction:column; gap:4px; z-index:59;
  }
  .mobile-menu.open { display:flex; }
  .mobile-menu a { padding:12px 0; font-size:16px; color:var(--parchment); border-bottom:1px solid var(--line-soft); }
  .mobile-menu .btn { margin-top:14px; justify-content:center; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .aud-grid, .mode-grid, .ladder, .geo, .guard-grid, .impact-grid { grid-template-columns: 1fr; }
  .firm-bar { gap:10px; }
  .firm-filters { margin-left:0; order:3; }
  .fb-meta { order:2; margin-left:auto; }
  .lc-fields { grid-template-columns: 1fr 1fr; }
  .aud-card:nth-child(2), .aud-card:nth-child(2):hover { transform: none; }
  .dash-body { grid-template-columns: 1fr; }
  .story-pane, .file-pane { padding: 20px 18px; }
  .section-pad { padding-block: clamp(56px, 12vw, 90px); }
  .step-card .snum { font-size: 34px; }
  .fact .big { width: auto; }
  .fact { flex-direction: column; gap:8px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-clip { opacity: 1 !important; clip-path: none !important; }
  .story-line { opacity: 1 !important; }
  .file-field, .file-ready { opacity: 1 !important; }
  .spine-node { opacity: 1 !important; }
  .story-cursor { display: none; }
}
