/* =========================================================================
   SAFE2RECOVER — Design System
   Mood: the steady green "verified" light in a calm room. Protective, human.
   Color in OKLCH. Light-primary with a deep-green identity + tasteful dark.
   ========================================================================= */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* surfaces */
  --bg:        oklch(1 0 0);
  --surface:   oklch(0.984 0.008 162);
  --surface-2: oklch(0.965 0.013 162);
  --line:      oklch(0.905 0.012 165);
  --line-soft: oklch(0.945 0.009 165);

  /* ink */
  --ink:       oklch(0.235 0.022 165);
  --ink-soft:  oklch(0.405 0.020 165);
  --muted:     oklch(0.475 0.018 165);

  /* brand greens */
  --primary:       oklch(0.475 0.118 159);   /* CTAs, links */
  --primary-ink:   oklch(0.360 0.100 160);   /* link text / hover */
  --hero-bg:       oklch(0.285 0.072 163);   /* drenched hero block */
  --hero-bg-2:     oklch(0.235 0.058 165);   /* hero gradient floor */
  --deepest:       oklch(0.205 0.050 166);   /* footer */
  --on-primary:    oklch(0.985 0.013 160);   /* off-white on deep-green surfaces (hero/footer/logo) — always light */
  --btn-ink:       oklch(0.985 0.013 160);   /* text on primary buttons (flips in dark) */
  --accent:        oklch(0.660 0.155 156);   /* bright approve-green */
  --accent-glow:   oklch(0.720 0.150 156);

  /* state language */
  --held:      oklch(0.730 0.125 71);        /* amber: held / pending */
  --held-ink:  oklch(0.470 0.095 60);
  --danger:    oklch(0.520 0.150 25);        /* oxblood: takeover, rare */
  --danger-soft: oklch(0.945 0.030 30);

  /* tints */
  --tint-green: oklch(0.965 0.022 162);
  --tint-amber: oklch(0.968 0.030 78);

  /* focus */
  --focus: oklch(0.560 0.150 156);

  /* type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* fluid scale (1.25) */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2.1rem);
  --step-3:  clamp(1.8rem, 1.45rem + 1.7vw, 2.9rem);
  --step-4:  clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-5:  clamp(2.7rem, 1.7rem + 4.7vw, 5.2rem);

  /* space */
  --sp-1: 0.5rem; --sp-2: 0.75rem; --sp-3: 1rem; --sp-4: 1.5rem;
  --sp-5: 2rem; --sp-6: 3rem; --sp-7: 4.5rem; --sp-8: 6.5rem;
  --section: clamp(4rem, 2.5rem + 7vw, 8rem);

  /* form */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.04 165 / 0.06), 0 2px 6px oklch(0.3 0.04 165 / 0.05);
  --shadow:    0 6px 20px oklch(0.3 0.05 165 / 0.09), 0 2px 6px oklch(0.3 0.05 165 / 0.06);
  --shadow-lg: 0 24px 60px oklch(0.28 0.06 165 / 0.16), 0 8px 20px oklch(0.28 0.06 165 / 0.08);
  --ring: 0 0 0 1px var(--line);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);     /* expo out */
  --ease-2: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s; --t: 0.34s; --t-slow: 0.6s;

  /* z */
  --z-nav: 100; --z-dropdown: 200; --z-overlay: 300; --z-toast: 400;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        oklch(0.195 0.020 166);
    --surface:   oklch(0.230 0.026 166);
    --surface-2: oklch(0.270 0.030 166);
    --line:      oklch(0.330 0.026 166);
    --line-soft: oklch(0.290 0.022 166);
    --ink:       oklch(0.955 0.010 160);
    --ink-soft:  oklch(0.815 0.013 160);
    --muted:     oklch(0.680 0.015 160);
    --primary:       oklch(0.720 0.135 157);
    --primary-ink:   oklch(0.800 0.120 157);
    --hero-bg:       oklch(0.255 0.060 165);
    --hero-bg-2:     oklch(0.205 0.048 166);
    --deepest:       oklch(0.170 0.040 167);
    --btn-ink:       oklch(0.165 0.030 166);
    --accent:        oklch(0.760 0.150 156);
    --tint-green: oklch(0.270 0.040 163);
    --tint-amber: oklch(0.300 0.055 75);
    --danger-soft: oklch(0.300 0.060 28);
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow:    0 8px 26px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 30px 70px oklch(0 0 0 / 0.55);
    color-scheme: dark;
  }
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv05";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--primary-ink); text-decoration-color: color-mix(in oklch, var(--primary) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--primary); }
strong, b { font-weight: 650; color: var(--ink); }
::selection { background: color-mix(in oklch, var(--accent) 30%, transparent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.034em; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.018em; }
p { text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 38ch; }

/* ---- Layout ---------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, 1140px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em;
  color: var(--primary-ink);
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  background: var(--tint-green); border-radius: var(--radius-pill);
  border: 1px solid color-mix(in oklch, var(--primary) 18%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent); }
.section-head { max-width: 40rem; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-top: var(--sp-3); max-width: 46ch; }
.section-head.center p { margin-inline: auto; }

/* skip link + focus */
.skip { position: absolute; left: -999px; top: 0; z-index: var(--z-toast); }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
:where(a, button, summary):focus:not(:focus-visible) { outline: none; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  --bg-btn: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  padding: 0.92rem 1.4rem; border-radius: var(--radius-pill);
  background: var(--bg-btn); color: var(--btn-ink);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t-fast) var(--ease);
  box-shadow: 0 1px 2px oklch(0.2 0.05 165 / 0.2), inset 0 1px 0 oklch(1 0 0 / 0.12);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in oklch, var(--primary) 40%, transparent), inset 0 1px 0 oklch(1 0 0 / 0.16); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 1.1rem 1.7rem; font-size: var(--step-1); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: color-mix(in oklch, var(--primary) 30%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-on-dark { background: var(--on-primary); color: oklch(0.26 0.06 164); box-shadow: 0 8px 24px oklch(0 0 0 / 0.25); }
.btn-on-dark:hover { background: #fff; box-shadow: 0 14px 34px oklch(0 0 0 / 0.3); }
.btn-ghost-dark { background: oklch(1 0 0 / 0.06); color: var(--on-primary); border-color: oklch(1 0 0 / 0.22); box-shadow: none; }
.btn-ghost-dark:hover { background: oklch(1 0 0 / 0.12); border-color: oklch(1 0 0 / 0.4); }
.cta-note { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ---- Nav ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in oklch, var(--bg) 90%, transparent); }
.nav-inner { display: flex; align-items: center; gap: var(--sp-4); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { flex: none; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links > a, .nav-trigger {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); text-decoration: none;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links > a:hover, .nav-trigger:hover { color: var(--ink); background: var(--surface); }
.nav-links > a[aria-current="page"] { color: var(--primary-ink); }
.nav-cta { margin-left: 0.4rem; }
.has-menu { position: relative; }
.nav-trigger .chev { transition: transform var(--t-fast); }
.has-menu[data-open="true"] .chev { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0;
  min-width: 290px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.5rem;
  z-index: var(--z-dropdown);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
}
.has-menu[data-open="true"] .menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.menu a { display: flex; gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: var(--radius-sm); text-decoration: none; align-items: flex-start; }
.menu a:hover { background: var(--surface); }
.menu .m-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--tint-green); color: var(--primary-ink); margin-top: 1px; }
.menu .m-t { display: block; font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.3; }
.menu .m-d { display: block; color: var(--muted); font-size: 0.83rem; line-height: 1.4; margin-top: 1px; }
.nav-toggle { display: none; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative; overflow: clip;
  background: radial-gradient(120% 130% at 78% -10%, color-mix(in oklch, var(--accent) 30%, var(--hero-bg)) 0%, var(--hero-bg) 42%, var(--hero-bg-2) 100%);
  color: var(--on-primary);
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem) clamp(3.5rem, 2rem + 7vw, 6.5rem);
  isolation: isolate;
}
.hero::before { /* soft grid / vault texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(oklch(1 0 0 / 0.05) 1px, transparent 1.4px);
  background-size: 26px 26px; mask: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
}
.hero .eyebrow { background: oklch(1 0 0 / 0.1); color: oklch(0.97 0.02 160); border-color: oklch(1 0 0 / 0.2); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.hero h1 { color: var(--on-primary); max-width: 16ch; }
.hero .lead { color: oklch(0.94 0.015 160); max-width: 44ch; margin-top: var(--sp-4); font-size: var(--step-1); }
.hero .cta-row { margin-top: var(--sp-5); }
.hero .cta-note { color: oklch(0.86 0.02 160); margin-top: var(--sp-4); max-width: 40ch; }
.hero-foot { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; color: oklch(0.85 0.02 160); font-size: var(--step--1); }
.hero-foot .ck { color: var(--accent-glow); }

/* hero mechanism card */
.mech {
  background: oklch(1 0 0 / 0.07); border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--radius-lg); padding: 1.3rem; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg); position: relative;
}
.mech-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem; border-radius: var(--radius); background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.09); }
.mech-row + .mech-row { margin-top: 0.7rem; }
.mech-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.mech-ico.danger { background: color-mix(in oklch, var(--danger) 35%, transparent); color: oklch(0.93 0.05 30); }
.mech-ico.held { background: color-mix(in oklch, var(--held) 38%, transparent); color: oklch(0.97 0.04 80); }
.mech-ico.ok { background: color-mix(in oklch, var(--accent) 40%, transparent); color: oklch(0.98 0.03 160); }
.mech-tt { display: block; font-weight: 600; font-size: 0.95rem; color: var(--on-primary); line-height: 1.3; }
.mech-dd { display: block; font-size: 0.8rem; color: oklch(0.82 0.02 160); line-height: 1.35; margin-top: 2px; }
.mech-status { margin-left: auto; font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: var(--radius-pill); white-space: nowrap; }
.s-held { background: color-mix(in oklch, var(--held) 26%, transparent); color: oklch(0.95 0.05 82); }
.s-ok { background: color-mix(in oklch, var(--accent) 26%, transparent); color: oklch(0.96 0.04 160); }
.mech-arrow { display: grid; place-items: center; color: oklch(0.8 0.02 160); padding: 0.15rem 0; }
.mech-decide { display: flex; gap: 0.6rem; margin-top: 0.7rem; }
.mech-btn { flex: 1; text-align: center; font-weight: 600; font-size: 0.9rem; padding: 0.7rem; border-radius: var(--radius); border: 1px solid oklch(1 0 0 / 0.16); color: var(--on-primary); background: oklch(1 0 0 / 0.05); }
.mech-btn.yes { background: var(--accent); color: oklch(0.2 0.04 160); border-color: transparent; }

/* ---- Generic surface / split / steps -------------------------------- */
.alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 0.4rem + 2.5vw, 2rem); }
.lane { border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.lane.fast { background: linear-gradient(180deg, var(--tint-green), var(--bg) 80%); }
.lane.guard { background: linear-gradient(180deg, var(--tint-amber), var(--bg) 80%); }
.lane-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.32rem 0.7rem; border-radius: var(--radius-pill); margin-bottom: var(--sp-3); }
.lane.fast .lane-tag { background: color-mix(in oklch, var(--accent) 20%, transparent); color: var(--primary-ink); }
.lane.guard .lane-tag { background: color-mix(in oklch, var(--held) 24%, transparent); color: var(--held-ink); }
.lane h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.lane p { color: var(--muted); font-size: 0.97rem; }
.lane .lane-eg { margin-top: var(--sp-3); font-size: 0.88rem; color: var(--ink-soft); padding-top: var(--sp-3); border-top: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 0.4rem + 2vw, 2rem); counter-reset: step; }
.step { position: relative; }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-green); color: var(--primary-ink); border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent); margin-bottom: var(--sp-3); }
.step h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.step p { color: var(--muted); font-size: 0.96rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 46px; right: -1rem; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
/* Stacked steps (e.g. start page beside the form): vertical, no horizontal connector */
.steps-stack { grid-template-columns: 1fr; gap: 1.6rem; }
.steps-stack .step:not(:last-child)::after { display: none; }

/* ---- Ladder (safeguards) -------------------------------------------- */
.ladder { display: grid; gap: 0.65rem; counter-reset: rung; }
.rung { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t); }
.rung:hover { transform: translateX(4px); border-color: color-mix(in oklch, var(--primary) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.rung-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-green); color: var(--primary-ink); flex: none; }
.rung-t { font-weight: 650; color: var(--ink); }
.rung-d { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.tier { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.28rem 0.6rem; border-radius: var(--radius-pill); white-space: nowrap; }
.tier.free { background: color-mix(in oklch, var(--accent) 18%, transparent); color: var(--primary-ink); }
.tier.plus { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---- Who / personas -------------------------------------------------- */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.persona { padding: clamp(1.3rem, 1rem + 1vw, 1.8rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); }
.persona.soul { background: linear-gradient(180deg, var(--tint-green), var(--bg)); border-color: color-mix(in oklch, var(--primary) 24%, var(--line)); }
.persona-q { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -0.02em; color: var(--ink); margin-bottom: var(--sp-3); }
.persona p { color: var(--muted); font-size: 0.96rem; }
.persona .more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: var(--sp-3); font-weight: 600; font-size: 0.92rem; }

/* ---- Trust strip ----------------------------------------------------- */
.trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.trust-list { list-style: none; display: grid; gap: 0.9rem; }
.trust-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink-soft); }
.trust-list .ck { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--tint-green); color: var(--primary-ink); display: grid; place-items: center; margin-top: 1px; }

/* ---- Pricing teaser -------------------------------------------------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.2rem); background: var(--bg); display: flex; flex-direction: column; }
.plan.free { border-color: color-mix(in oklch, var(--primary) 34%, var(--line)); box-shadow: var(--shadow); position: relative; }
.plan-badge { position: absolute; top: -12px; left: 24px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: var(--accent); color: oklch(0.2 0.04 160); }
.plan-name { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.plan-price { font-family: var(--font-display); font-size: var(--step-4); letter-spacing: -0.03em; color: var(--ink); margin: 0.3rem 0 0.2rem; }
.plan-price small { font-size: var(--step-0); font-family: var(--font-body); color: var(--muted); font-weight: 500; }
.plan-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: var(--sp-4); }
.plan ul { list-style: none; display: grid; gap: 0.6rem; margin-bottom: var(--sp-5); }
.plan li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.plan li .ck { color: var(--primary); flex: none; }
.plan .btn { margin-top: auto; }

/* ---- Founder note ---------------------------------------------------- */
.founder { max-width: 60ch; margin-inline: auto; text-align: center; }
.founder blockquote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.founder blockquote::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: var(--accent); margin: 0 auto var(--sp-4); }

/* ---- Final CTA ------------------------------------------------------- */
.final {
  background: radial-gradient(110% 130% at 50% 120%, color-mix(in oklch, var(--accent) 24%, var(--hero-bg)) 0%, var(--hero-bg) 55%, var(--hero-bg-2) 100%);
  color: var(--on-primary); border-radius: clamp(20px, 3vw, 34px);
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem); text-align: center; position: relative; overflow: clip;
}
.final h2 { color: var(--on-primary); max-width: 18ch; margin-inline: auto; }
.final p { color: oklch(0.9 0.02 160); max-width: 44ch; margin: var(--sp-3) auto var(--sp-5); font-size: var(--step-1); }

/* ---- Footer ---------------------------------------------------------- */
.footer { background: var(--deepest); color: oklch(0.86 0.02 160); padding-block: var(--sp-7) var(--sp-5); }
.footer a { color: oklch(0.86 0.02 160); text-decoration: none; }
.footer a:hover { color: var(--on-primary); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand .brand { color: var(--on-primary); }
.foot-tag { margin-top: var(--sp-3); max-width: 30ch; color: oklch(0.78 0.02 160); font-size: 0.95rem; }
.foot-col h5 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: oklch(0.7 0.03 160); margin-bottom: var(--sp-3); font-weight: 600; }
.foot-col ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.94rem; }
.foot-bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid oklch(1 0 0 / 0.1); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: oklch(0.72 0.02 160); }

/* ---- Breadcrumbs / page header --------------------------------------- */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: var(--sp-5); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-ink); }
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: var(--sp-4); font-size: var(--step-1); max-width: 50ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p { margin-bottom: var(--sp-3); color: var(--ink-soft); }
.prose ul { margin: 0 0 var(--sp-4) 1.1rem; color: var(--ink-soft); display: grid; gap: 0.5rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: var(--sp-4) 0; color: var(--ink-soft); }
.callout.care { background: var(--tint-green); border-color: color-mix(in oklch, var(--primary) 22%, var(--line)); }

/* ---- Reveal motion --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
html:not(.js) .reveal { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .mech { max-width: 460px; }
  .trust { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--ink); }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow-lg); transform: translateY(-110%); transition: transform var(--t) var(--ease); margin-left: 0; }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a, .nav-trigger { padding: 0.85rem 0.5rem; font-size: 1rem; width: 100%; justify-content: flex-start; white-space: normal; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .has-menu { position: static; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 0; padding: 0 0 0 1rem; min-width: 0; background: transparent; display: none; }
  .has-menu[data-open="true"] .menu { display: block; }
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step:not(:last-child)::after { display: none; }
  .trust { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .rung { grid-template-columns: auto 1fr; }
  .rung .tier { grid-column: 2; justify-self: start; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
  .mech-decide { flex-direction: column; }
}

/* ---- Forms ----------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); max-width: 460px; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field input { font: inherit; font-size: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent); }
.field input:user-invalid { border-color: var(--danger); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.form-note { font-size: 0.86rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: flex-start; max-width: 460px; }
.form-note .ck { color: var(--primary); flex: none; }

/* ---- Link cards (hub) ------------------------------------------------ */
.linkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.1rem; }
.linkcard { display: block; padding: clamp(1.4rem, 1rem + 1vw, 1.9rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--ink); transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t); }
.linkcard:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--primary) 30%, var(--line)); box-shadow: var(--shadow); color: var(--ink); }
.linkcard .lc-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--tint-green); color: var(--primary-ink); display: grid; place-items: center; margin-bottom: var(--sp-3); }
.linkcard h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.linkcard p { color: var(--muted); font-size: 0.95rem; }
.linkcard .more { margin-top: var(--sp-3); color: var(--primary-ink); font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 0.35rem; align-items: center; }

/* ---- FAQ ------------------------------------------------------------- */
.faq { max-width: 720px; margin-inline: auto; display: grid; gap: 0.5rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1.05rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 1.1rem; }

/* ---- 404 ------------------------------------------------------------- */
.notfound { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: var(--sp-3); padding-block: var(--sp-7); }
.notfound .code { font-family: var(--font-display); font-size: var(--step-5); color: var(--primary); letter-spacing: -0.03em; }
