/* ============================================================
   Kistvault — marketing site · "The Keep"
   Type:  Schibsted Grotesk (display) · Hanken Grotesk (body) · IBM Plex Mono (code)
   Theme: evergreen vault = confidentiality · brass = recovery · archival paper
   Craft: layered contextual shadows, material top-edge on cards, scroll-edge
          nav, spring-eased lifts, size-tuned type — premium but quiet.
   ============================================================ */

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a, button, summary, label, input { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ----------  Tokens: LIGHT (default) — archival paper + evergreen vault + brass  ---------- */
:root {
  --bg:        #EEEDE4;   /* warm archival paper */
  --bg-tint:   #E6E4D8;
  --surface:   #FBFAF4;   /* bright card paper */
  --surface-2: #F2F0E6;
  --border:        rgba(22, 38, 31, 0.12);
  --border-strong: rgba(22, 38, 31, 0.20);

  --ink:    #14231D;      /* deep evergreen-black */
  --ink-2:  #3A4A42;
  --muted:  #697771;

  --brand:     #1C6B55;   /* vault green — fills (confidentiality) */
  --brand-ink: #13543F;   /* green text/links on paper */
  --accent:    #2E9E80;   /* brighter spruce for gradients */
  --on-brand:  #FBFAF4;

  --recover:     #AE7016;  /* brass text on light (recovery) */
  --recover-ink: #8A560F;
  --recover-fill:#D4913A;  /* brass / amber fills */
  --warm-bg:     #F4E9D6;
  --warm-border: rgba(174, 112, 22, 0.26);

  --nav-bg: rgba(238, 237, 228, 0.72);
  --focus:  #1C6B55;

  /* Layered contextual shadows — a tight contact layer + soft ambient, low alpha.
     The leading inset is a material top-edge highlight (light catching the card). */
  --ring-hi: inset 0 1px 0 rgba(255,255,255,.65);
  --shadow-sm:
    var(--ring-hi),
    0 1px 1px rgba(22,38,31,.04),
    0 2px 4px rgba(22,38,31,.045),
    0 6px 14px rgba(22,38,31,.055);
  --shadow-md:
    var(--ring-hi),
    0 1px 2px rgba(22,38,31,.05),
    0 8px 18px rgba(22,38,31,.07),
    0 26px 50px rgba(22,38,31,.10);
  --shadow-kit:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 2px 6px rgba(22,38,31,.08),
    0 16px 34px rgba(22,38,31,.13),
    0 46px 84px rgba(22,38,31,.18);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --maxw: 1120px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);     /* strong, intentional ease-out */
  --ease-spring: cubic-bezier(.34, 1.3, .5, 1); /* slight overshoot for hover lifts */

  --font-display: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Menlo", monospace;
}

/* ----------  Tokens: DARK (system) — forest-night ink, never navy  ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0C120E;   /* deep green-black */
    --bg-tint:   #101712;
    --surface:   #15201A;
    --surface-2: #1B271F;
    --border:        rgba(233, 240, 230, 0.10);
    --border-strong: rgba(233, 240, 230, 0.18);

    --ink:    #EAF1EA;
    --ink-2:  #BECDC4;
    --muted:  #879189;

    --brand:     #45B997;   /* bright spruce */
    --brand-ink: #74D8B8;
    --accent:    #5FD0AE;
    --on-brand:  #07110C;

    --recover:     #E3A64D;
    --recover-ink: #F0BE6E;
    --recover-fill:#E3A64D;
    --warm-bg:     #1E180E;
    --warm-border: rgba(227, 166, 77, 0.24);

    --nav-bg: rgba(12, 18, 14, 0.66);
    --focus:  #5FD0AE;

    --ring-hi: inset 0 1px 0 rgba(255,255,255,.055);
    --shadow-sm:
      var(--ring-hi),
      0 1px 2px rgba(0,0,0,.4),
      0 4px 12px rgba(0,0,0,.32);
    --shadow-md:
      var(--ring-hi),
      0 2px 8px rgba(0,0,0,.45),
      0 14px 32px rgba(0,0,0,.5),
      0 28px 56px rgba(0,0,0,.42);
    --shadow-kit:
      inset 0 1px 0 rgba(255,255,255,.07),
      0 2px 10px rgba(0,0,0,.5),
      0 20px 48px rgba(0,0,0,.55),
      0 48px 96px rgba(0,0,0,.6);
  }
}

/* ----------  Base  ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.001em;        /* body sits at ~0; a hair tighter reads cleaner */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ----------  Shared type elements  ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 1rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--warm { color: var(--recover); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;   /* display grows → tighter tracking */
  font-optical-sizing: auto;
  color: var(--ink);
  text-wrap: balance;
}
.section-title--center { text-align: center; margin-inline: auto; }

.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 1.1rem;
  max-width: 62ch;
}
.lead--center { margin-inline: auto; text-align: center; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s var(--ease-spring), background .2s ease,
              border-color .2s ease, box-shadow .25s var(--ease-out), filter .2s ease;
  will-change: transform;
}
.btn--small { padding: 0.55rem 1.15rem; font-size: .92rem; }
.btn--primary {
  color: var(--on-brand);
  /* soft vertical sheen gives the pill physical depth */
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 86%, white), var(--brand));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 1px 2px rgba(22,38,31,.16),
    0 8px 20px rgba(28,107,85,.26);
}
@media (hover: hover) {
  .btn--primary:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, white), var(--accent));
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.3),
      0 2px 4px rgba(22,38,31,.16),
      0 12px 28px rgba(28,107,85,.34);
  }
  .btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--surface-2); transform: translateY(-1px); }
}
.btn--ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--ring-hi), 0 1px 2px rgba(22,38,31,.04);
}
.btn:active { transform: scale(0.97); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  /* scroll-edge, not a hard divider: a transparent edge that softens into a
     shadow once content slides under the bar (toggled in app.js). */
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out),
              background-color .3s ease;
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 10px 26px -18px rgba(22,38,31,.4);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); }
.brand__mark { filter: drop-shadow(0 2px 6px rgba(28,107,85,.30)); transition: transform .3s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__name { font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  transition: color .18s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .24s var(--ease-out), opacity .24s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); opacity: .9; }
.nav__cta { margin-left: 1.6rem; }

/* ============================================================
   HERO — split: thesis copy + the printed Recovery Kit (signature)
   ============================================================ */
.hero { position: relative; padding: clamp(3rem, 2rem + 6vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
/* signature: two fine diagonal hairlines (brass + green) crossing the hero — our quiet motif */
.hero::before, .hero::after {
  content: ""; position: absolute; left: -12%; width: 124%; height: 1px; z-index: 1;
  pointer-events: none;
}
.hero::before {
  top: 20%; transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--recover-fill) 72%, transparent) 42%, color-mix(in srgb, var(--recover-fill) 72%, transparent) 58%, transparent);
  opacity: .5;
}
.hero::after {
  top: 62%; transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 60%, transparent) 46%, transparent);
  opacity: .42;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
}
.hero__copy { text-align: left; }
.hero .eyebrow { display: inline-block; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.042em;   /* big display → tighter, more confident */
  font-optical-sizing: auto;
  text-wrap: balance;
}
/* the "recovery" line carries the warm/recovery color — thesis in type */
.hero__title-accent {
  background: linear-gradient(94deg, var(--recover-fill), var(--recover));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 1.3rem 0 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: flex-start; margin-top: 2rem; }

.hero__glow {
  position: absolute; inset: -24% -10% auto auto; width: 70%; height: 620px; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 72% 8%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(34% 40% at 90% 30%, color-mix(in srgb, var(--recover-fill) 16%, transparent), transparent 72%);
  filter: blur(10px);
  opacity: .85;
}

/* two equal guarantees, as refined chips (cool green = private · brass = recovery) */
.guarantees {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
  margin: clamp(2rem, 1.5rem + 2vw, 2.75rem) 0 0;
  max-width: 540px;
}
.guarantee {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .9rem 1rem;
  box-shadow: var(--shadow-sm);
}
.guarantee__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.guarantee__icon svg { width: 20px; height: 20px; }
.guarantee--cool .guarantee__icon { color: var(--brand); background: color-mix(in srgb, var(--brand) 13%, transparent); }
.guarantee--warm .guarantee__icon { color: var(--recover); background: color-mix(in srgb, var(--recover-fill) 18%, transparent); }
.guarantee__text { display: flex; flex-direction: column; gap: .1rem; }
.guarantee__label { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.guarantee__note { font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* hero signature artifact slot */
.hero__art { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kit--hero { width: 100%; max-width: 390px; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0; }
.problem .section-title { text-align: center; margin-inline: auto; }
.problem .lead { margin-inline: auto; text-align: center; }
.problem .lead + .lead { margin-top: 1.3rem; }

/* ============================================================
   ANSWER + RECOVERY KIT (signature)
   ============================================================ */
.answer {
  padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0;
  background:
    linear-gradient(180deg, transparent, var(--warm-bg) 42%, var(--warm-bg) 58%, transparent);
}
.answer__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.checklist li {
  position: relative; padding-left: 2rem;
  color: var(--ink-2); font-size: 1.02rem; line-height: 1.5;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--recover-fill);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.6 16.3 5.3 12l1.4-1.4 2.9 2.9 7-7L18 7.9z'/%3E%3C/svg%3E") center/82% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.6 16.3 5.3 12l1.4-1.4 2.9 2.9 7-7L18 7.9z'/%3E%3C/svg%3E") center/82% no-repeat;
}
.checklist em { font-style: italic; color: var(--ink); }

/* the printed kit card */
.kit { margin: 0; perspective: 1400px; }
.kit__card {
  position: relative;
  /* faint fractal paper-grain over a soft paper gradient */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(168deg, var(--surface), var(--surface-2));
  background-size: 120px 120px, auto;
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: var(--shadow-kit);
  transform: rotate(-1.5deg);
  transition: transform .5s var(--ease-out);
  overflow: hidden;
}
.kit__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 42%);
}
.kit:hover .kit__card { transform: rotate(0deg) translateY(-5px); }
.kit__head {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--ink);
}
/* brass ink-stamp */
.kit__chip {
  margin-left: auto; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .14em; font-weight: 600;
  color: var(--recover-ink);
  background: color-mix(in srgb, var(--recover-fill) 22%, transparent);
  border: 1.5px solid var(--recover-fill);
  padding: .28rem .55rem; border-radius: 5px;
  transform: rotate(2.5deg);
}
.kit__hint { font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: .85rem; }
.kit__code {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem .55rem;
  margin: 1.1rem 0 1.1rem;
  font-family: var(--font-mono); font-weight: 500;
}
.kit__code span {
  text-align: center; padding: .5rem 0;
  font-size: clamp(.82rem, .5rem + 1vw, 1rem); letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 7px; color: var(--ink);
}
.kit__code .kit__sum {
  color: var(--recover-ink);
  background: color-mix(in srgb, var(--recover-fill) 16%, var(--bg-tint));
  border-color: var(--warm-border);
}
.kit__meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  padding-top: 1rem; border-top: 1px dashed var(--border-strong);
}
.kit__meta div { display: flex; flex-direction: column; }
.kit__meta span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kit__meta code { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); }
.kit__foot { margin-top: 1rem; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); letter-spacing: .02em; }
/* tear perforation: a dashed line with punched side-notches, like a real stub */
.kit__perf {
  position: absolute; left: 0; right: 0; bottom: 46px; height: 10px;
  background:
    radial-gradient(circle 5px at left center, var(--bg) 46%, transparent 48%) left center / 10px 10px no-repeat,
    radial-gradient(circle 5px at right center, var(--bg) 46%, transparent 48%) right center / 10px 10px no-repeat;
  pointer-events: none;
}
.kit__perf::after {
  content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1px; margin-top: -.5px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 11px);
  opacity: .55;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.features .section-title { max-width: 18ch; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.25rem);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-spring), border-color .25s ease, box-shadow .35s var(--ease-out);
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 16%, transparent);
  margin-bottom: 1.1rem;
  transition: transform .4s var(--ease-spring);
}
@media (hover: hover) {
  .feature:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
  .feature:hover .feature__icon { transform: scale(1.06) rotate(-3deg); }
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .5rem; }
.feature p { font-size: .97rem; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; background: var(--bg-tint); }
.steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.25rem);
  counter-reset: none;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: var(--font-mono); font-weight: 600; font-size: 1rem;
  color: var(--brand-ink);
  display: inline-block; margin-bottom: 1rem;
  padding: .25rem .6rem; border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.step h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .5rem; }
.step p { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   SECURITY
   ============================================================ */
.security { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.security__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.security__honest {
  margin-top: 1.4rem; padding: 1rem 1.2rem;
  border-left: 3px solid var(--recover-fill);
  background: var(--warm-bg);
  border-radius: 0 10px 10px 0;
  font-size: .98rem; color: var(--ink-2); line-height: 1.55;
}
.crypto { display: grid; gap: .8rem; }
.crypto__row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.crypto__row dt {
  font-family: var(--font-mono); font-weight: 600; font-size: 1rem;
  color: var(--brand-ink); margin-bottom: .3rem; letter-spacing: -0.01em;
}
.crypto__row dd { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }

/* ============================================================
   PLATFORMS
   ============================================================ */
.platforms { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.platforms__inner { text-align: center; }
.platforms__badges { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.plat-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.plat-badge svg { width: 22px; height: 22px; }

/* ============================================================
   CTA / WAITLIST
   ============================================================ */
.cta {
  padding: clamp(4rem, 2rem + 6vw, 7rem) 0;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    var(--bg-tint);
  border-top: 1px solid var(--border);
}
.cta__inner { text-align: center; }
.cta__mark { margin: 0 auto 1.4rem; filter: drop-shadow(0 6px 18px rgba(28,107,85,.35)); }
.waitlist {
  display: flex; gap: .6rem; justify-content: center;
  margin: 2rem auto 0; max-width: 480px; flex-wrap: wrap;
}
.waitlist input {
  flex: 1 1 240px; min-width: 0;
  padding: .85rem 1.1rem; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus-visible {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent);
}
.waitlist input[aria-invalid="true"] { border-color: #d9534f; }
.waitlist__status { min-height: 1.4rem; margin-top: 1rem; font-weight: 600; color: var(--brand-ink); font-size: .98rem; }
.waitlist__fine { margin-top: .4rem; font-size: .84rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; border-top: 1px solid var(--border); }
.footer__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.footer__brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer__tag { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--brand-ink); }
.footer__note { color: var(--ink-2); max-width: 52ch; font-size: .96rem; }
.footer__legal { color: var(--muted); font-size: .82rem; max-width: 60ch; margin-top: .4rem; }

/* ----------  link arrow + features more  ---------- */
.features__more { margin-top: 2.25rem; text-align: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--brand-ink);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .18s ease, border-color .18s ease;
}
.link-arrow:hover { gap: .7rem; border-color: var(--brand-ink); }

/* ----------  code block (security)  ---------- */
.codeblock {
  margin: clamp(2rem, 1rem + 3vw, 3rem) auto 0;
  max-width: 680px;
  background: #0B130E;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.codeblock__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.codeblock__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.codeblock__file { margin-left: .4rem; font-family: var(--font-mono); font-size: .76rem; color: #7f978a; }
.codeblock pre { margin: 0; padding: 1.3rem 1.4rem; overflow-x: auto; }
.codeblock code {
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.75;
  color: #CFE3D6; white-space: pre;
}
.c-k { color: #5FD0AE; } .c-v { color: #EAF4ED; } .c-p { color: #86D9BD; }
.c-s { color: #E3A64D; } .c-n { color: #E79B7A; } .c-c { color: #5e7568; font-style: italic; }
.codeblock__caption {
  text-align: center; margin: 1.1rem auto 0; max-width: 52ch;
  font-size: .98rem; color: var(--muted);
}

/* ----------  scenarios  ---------- */
.scenarios { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.scenario-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.25rem);
}
.scenario {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--brand);
  transition: transform .4s var(--ease-spring), box-shadow .35s var(--ease-out), border-color .25s ease;
}
.scenario:nth-child(even) { border-top-color: var(--recover-fill); }
@media (hover: hover) {
  .scenario:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.scenario h3 { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .55rem; }
.scenario p { font-size: .98rem; color: var(--ink-2); line-height: 1.55; }

/* ----------  transparency  ---------- */
.transparency { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; background: var(--bg-tint); }
.transparency__list { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: .9rem; }
.transparency__list li {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--recover-fill);
  border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem;
  font-size: 1rem; color: var(--ink-2); line-height: 1.55;
}
.transparency__list strong { color: var(--ink); }

/* ----------  faq  ---------- */
.faq { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.faq__list { margin-top: 2.25rem; display: grid; gap: .7rem; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .3s var(--ease-out);
}
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 1.35rem; padding-right: 3rem; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -0.01em; color: var(--ink);
  transition: color .18s ease, background-color .18s ease;
}
@media (hover: hover) { .faq__item summary:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); color: var(--brand-ink); } }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary em { font-style: italic; color: var(--brand-ink); }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 1.3rem 1.2rem; }
.faq__body p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

/* ----------  pick your path  ---------- */
.paths { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; background: var(--bg-tint); }
.paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: clamp(2rem, 1rem + 3vw, 3.25rem); }
.path {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-spring), border-color .2s ease, box-shadow .35s var(--ease-out);
}
@media (hover: hover) {
  .path:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-md); }
}
.path__k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.path__t { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); }
.path:hover .path__t { color: var(--brand-ink); }
.path__d { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }

/* ============================================================
   SUB-PAGES (compare / features)
   ============================================================ */
.subhero { padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); position: relative; overflow: hidden; }
.subhero__inner { position: relative; z-index: 2; text-align: center; }
.subhero .hero__glow { height: 420px; }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 600; color: var(--muted);
  margin-bottom: 1.5rem; transition: color .18s ease, gap .18s ease;
}
.back-link:hover { color: var(--brand-ink); gap: .6rem; }
.subhero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.03em; font-optical-sizing: auto;
  text-wrap: balance;
}
.subhero__sub { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--ink-2); max-width: 58ch; margin: 1.2rem auto 0; line-height: 1.55; }

/* honest edges */
.edges { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.edges__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.edge {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
}
.edge__num { font-family: var(--font-mono); font-weight: 600; color: var(--brand-ink); font-size: .9rem; }
.edge h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin: .5rem 0 .4rem; }
.edge p { font-size: .96rem; color: var(--ink-2); line-height: 1.5; }

/* comparison table */
.compare-section { padding: clamp(2rem, 1rem + 3vw, 4rem) 0; }
.ctable-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-md);
  background: var(--surface);
}
.ctable { width: 100%; min-width: 760px; border-collapse: collapse; background: transparent; }
.ctable th, .ctable td { padding: 1.05rem 1.2rem; text-align: left; font-size: .93rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.ctable thead th {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: -0.01em; color: var(--ink);
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-strong);
  position: sticky; top: 0; z-index: 2;
}
.ctable tbody th { font-weight: 600; color: var(--ink); width: 180px; background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.ctable td { color: var(--ink-2); }
/* zebra + row hover for scanability */
.ctable tbody tr:nth-child(even) td,
.ctable tbody tr:nth-child(even) th { background-color: color-mix(in srgb, var(--bg-tint) 42%, transparent); }
.ctable tbody tr { transition: background-color .15s ease; }
.ctable tbody tr:hover td, .ctable tbody tr:hover th { background-color: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
/* the winner lane: stronger tint + continuous vertical rails down the column */
.ctable col.col--kistvault, .ctable .col-kistvault { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.ctable thead th.col-kistvault {
  background: color-mix(in srgb, var(--brand) 20%, var(--surface-2)); color: var(--brand-ink);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--brand) 32%, transparent),
              inset -1px 0 0 color-mix(in srgb, var(--brand) 32%, transparent);
}
.ctable td.col-kistvault {
  color: var(--ink); font-weight: 500;
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--brand) 30%, transparent),
              inset -1px 0 0 color-mix(in srgb, var(--brand) 30%, transparent);
}
.ctable tbody tr:hover td.col-kistvault { background-color: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.ctable tbody tr:last-child td.col-kistvault { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--brand) 30%, transparent), inset -1px -1px 0 color-mix(in srgb, var(--brand) 30%, transparent); }
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: none; }
.ckistvault-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.ckistvault-badge img { width: 18px; height: 18px; }
.cmark { color: #2e9e6b; font-weight: 700; }
@media (prefers-color-scheme: dark) { .cmark { color: #5fd3a0; } }

.disclaimer {
  margin-top: 1.4rem; font-size: .84rem; color: var(--muted); line-height: 1.55;
  max-width: 76ch;
}
.disclaimer strong { color: var(--ink-2); }

/* fair "where they shine" */
.fair { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; background: var(--bg-tint); }
.fair__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.fair__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
.fair__item h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; margin-bottom: .35rem; }
.fair__item p { font-size: .94rem; color: var(--ink-2); line-height: 1.5; }

/* feature deep sections */
.fdeep { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.fdeep:nth-child(even) { background: var(--bg-tint); }
.fdeep__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.fdeep__kicker { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.fdeep h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); letter-spacing: -0.02em; margin: .6rem 0 .8rem; line-height: 1.12; }
.fdeep__def { font-size: 1.05rem; color: var(--ink-2); line-height: 1.6; }
.fdeep__threat {
  margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: var(--warm-bg); border-left: 3px solid var(--recover-fill);
  border-radius: 0 10px 10px 0; font-size: .96rem; color: var(--ink-2); line-height: 1.55;
}
.fdeep__threat strong { color: var(--recover-ink); }
.fdeep__side { display: grid; gap: 1.1rem; }
.fdeep__steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: .7rem; }
.fdeep__steps li { position: relative; padding-left: 2.5rem; color: var(--ink-2); font-size: .98rem; line-height: 1.5; counter-increment: step; }
.fdeep__steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 13%, transparent);
  border-radius: 8px;
}
.fdeep__diff {
  padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.fdeep__diff h3 { font-family: var(--font-display); font-size: .96rem; font-weight: 600; color: var(--brand-ink); margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem; }
.fdeep__diff p { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.fdeep .codeblock { margin-top: 0; max-width: none; }
.fdeep .codeblock code { font-size: .8rem; }

@media (max-width: 920px) {
  .edges__grid { grid-template-columns: 1fr; }
  .fdeep__inner { grid-template-columns: 1fr; }
  .fair__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HUB PAGES + ARTICLE/PROSE + RELATED LINKS
   ============================================================ */
.hub { padding: clamp(2rem, 1rem + 3vw, 4rem) 0; }
.hub__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.hubcard {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-spring), border-color .2s ease, box-shadow .35s var(--ease-out);
}
@media (hover: hover) {
  .hubcard:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow-md); }
}
.hubcard__k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hubcard__t { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: -0.01em; color: var(--ink); }
.hubcard:hover .hubcard__t { color: var(--brand-ink); }
.hubcard__d { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.hubcard__go { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--brand-ink); }

/* prose article (scenario + compare detail) */
.article { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.article__body { max-width: 760px; }
.article__body > * + * { margin-top: 1.1rem; }
.article__body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; margin-top: 2.4rem; }
.article__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; margin-top: 1.8rem; }
.article__body p { font-size: 1.06rem; color: var(--ink-2); line-height: 1.65; }
.article__body strong { color: var(--ink); }
.article__body ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .7rem; }
.article__body ul li { position: relative; padding-left: 1.8rem; color: var(--ink-2); line-height: 1.55; }
.article__body ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.article__lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.28rem) !important; color: var(--ink) !important; line-height: 1.55 !important; }
.callout-bottom {
  margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.callout-bottom strong { color: var(--brand-ink); }

/* related links footer block */
.related { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; background: var(--bg-tint); border-top: 1px solid var(--border); }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.related a {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .35s var(--ease-spring), box-shadow .3s var(--ease-out);
}
@media (hover: hover) {
  .related a:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.related a span { display: block; }
.related__t { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: .2rem; }
.related__d { font-size: .88rem; color: var(--muted); line-height: 1.4; }

@media (max-width: 920px) {
  .hub__grid { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL / DOC PAGES + footer links
   ============================================================ */
.notice {
  max-width: 760px; margin: 0 0 1.5rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--warm-bg); border: 1px solid var(--warm-border);
  color: var(--ink-2); font-size: .92rem; line-height: 1.55;
}
.notice strong { color: var(--recover-ink); }
.article__body blockquote {
  margin: 1.4rem 0; padding: 1rem 1.3rem;
  border-left: 3px solid var(--brand); background: var(--surface-2);
  border-radius: 0 10px 10px 0; font-weight: 500; color: var(--ink);
}
.article__body h2 { scroll-margin-top: 80px; }
.doc-meta { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); margin-top: .4rem; }

.footer__links {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center;
  margin-top: .3rem;
}
.footer__links a { font-size: .9rem; color: var(--ink-2); transition: color .18s ease; }
.footer__links a:hover { color: var(--brand-ink); }

/* ----------  language switcher (nav/footer)  ---------- */
.langbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .35rem .4rem; margin-top: .9rem;
}
.langbar__label {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-right: .3rem;
}
.langbar a {
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
  padding: .25rem .6rem; border-radius: 999px;
  border: 1px solid var(--border);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.langbar a:hover { color: var(--brand-ink); border-color: var(--brand); background: var(--surface-2); }
.langbar a[aria-current="true"] {
  color: var(--brand-ink); border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

/* ----------  tools (client-side utilities)  ---------- */
.tool {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2.1rem);
  box-shadow: var(--shadow-md);
}
.tool__controls { display: grid; gap: 1.2rem; }
.tool__field { display: grid; gap: .5rem; }
.tool__field label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.tool__field .tool__hint { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.tool__row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.tool input[type="text"], .tool input[type="password"], .tool input[type="number"] {
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-tint); border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 1rem; width: 100%;
}
.tool input[type="range"] { accent-color: var(--brand); width: 100%; }
.tool input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent); }
.tool select {
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--bg-tint); border: 1px solid var(--border-strong); color: var(--ink); font-size: .96rem;
}
.tool__checkrow { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.tool__check { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--ink-2); }
.tool__check input { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; }
.tool__out {
  margin-top: 1.4rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm);
  background: var(--bg-tint); border: 1px dashed var(--border-strong);
  font-family: var(--font-mono); font-size: clamp(1rem, .8rem + 1vw, 1.3rem);
  word-break: break-word; line-height: 1.6; color: var(--ink); min-height: 2.4rem;
}
.tool__out--empty { color: var(--muted); font-family: var(--font-body); font-size: 1rem; }
.tool__meter { height: 10px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--border); overflow: hidden; margin-top: .4rem; }
.tool__meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--recover-fill); transition: width .3s var(--ease-out), background-color .3s ease; }
.tool__stat { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin-top: 1rem; }
.tool__stat div { display: flex; flex-direction: column; }
.tool__stat dt, .tool__stat .tool__statk { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); }
.tool__stat dd, .tool__stat .tool__statv { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.tool__value { font-family: var(--font-mono); font-weight: 600; color: var(--brand-ink); }
.tool__note { margin-top: 1.3rem; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.tool__note strong { color: var(--ink-2); }
.tool .btn { margin-top: .2rem; }
.tool__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* tasteful cascade when a grid of cards reveals together (transform/opacity only) */
.feature-grid .reveal:nth-child(2), .paths__grid .reveal:nth-child(2),
.hub__grid .reveal:nth-child(2), .edges__grid .reveal:nth-child(2),
.scenario-grid .reveal:nth-child(2) { transition-delay: .05s; }
.feature-grid .reveal:nth-child(3), .paths__grid .reveal:nth-child(3),
.hub__grid .reveal:nth-child(3), .edges__grid .reveal:nth-child(3),
.scenario-grid .reveal:nth-child(3) { transition-delay: .1s; }
.feature-grid .reveal:nth-child(4), .paths__grid .reveal:nth-child(4) { transition-delay: .13s; }
.feature-grid .reveal:nth-child(5), .paths__grid .reveal:nth-child(5) { transition-delay: .16s; }
.feature-grid .reveal:nth-child(6), .paths__grid .reveal:nth-child(6) { transition-delay: .19s; }

/* hero arrives as a composed sequence, top-down, with the Kit settling in alongside */
.hero__copy .reveal:nth-child(1) { transition-delay: .02s; }
.hero__copy .reveal:nth-child(2) { transition-delay: .09s; }
.hero__copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero__copy .reveal:nth-child(4) { transition-delay: .23s; }
.hero__copy .reveal:nth-child(5) { transition-delay: .30s; }
.hero__art.reveal { transition-delay: .20s; transform: translateY(20px) scale(.985); }
.hero__art.reveal.is-in { transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  /* hero stacks: copy first, then the Kit artifact, centered */
  .hero__inner { grid-template-columns: 1fr; gap: clamp(2rem, 1rem + 4vw, 3rem); text-align: center; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .guarantees { margin-inline: auto; }
  .hero__glow { inset: -20% 0 auto 0; width: 100%; }
  .kit--hero { max-width: 420px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .paths__grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: 1fr; }
  .answer__grid, .security__grid { grid-template-columns: 1fr; }
  .answer__grid { gap: 2.5rem; }
  .kit { max-width: 460px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .security__grid { gap: 2rem; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .paths__grid { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .nav__cta { display: none; }
  .kit__card { padding: 1.3rem 1.2rem 1.1rem; }
  .kit__code { gap: .4rem; }
}

/* ============================================================
   MOTION / TRANSPARENCY / CONTRAST PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, .hero__art.reveal { opacity: 1; transform: none; }
  .kit__card { transform: none; }
  .kit:hover .kit__card, .feature:hover, .feature:hover .feature__icon,
  .scenario:hover, .path:hover, .hubcard:hover, .related a:hover,
  .brand:hover .brand__mark, .btn--primary:hover, .btn--ghost:hover, .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ctable thead th { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --border: rgba(22,38,31,.34); --border-strong: rgba(22,38,31,.48); --muted: #4a5a52; }
}

/* ============================================================
   HERO DEMO — dual-platform, one vault (our edge over iOS-only rivals)
   iPhone unlocks by pattern · Android by password · both Argon2id · same files
   ============================================================ */
.demo { display: flex; align-items: center; justify-content: center; gap: clamp(.3rem, .1rem + 1.4vw, 1rem); width: 100%; }
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.phone__frame {
  position: relative; width: clamp(124px, 11vw + 72px, 168px); aspect-ratio: 9 / 19;
  border-radius: 26px; padding: 6px;
  background: linear-gradient(158deg, #24342d, #0b130e);
  box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.06), var(--shadow-kit);
}
.phone--android .phone__frame { border-radius: 20px; background: linear-gradient(158deg, #27352e, #0d1510); }
.phone__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36%; height: 10px; border-radius: 0 0 8px 8px; background: #050a07; z-index: 4; }
.phone__punch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: #050a07; z-index: 4; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: radial-gradient(130% 80% at 50% 0%, var(--surface-2), var(--surface)); }
.phone--android .phone__screen { border-radius: 15px; }
.phone__label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .02em; color: var(--muted); }

/* stacked screens, crossfaded by [data-phase] */
.screen { position: absolute; inset: 0; padding: 13px 10px 11px; display: flex; flex-direction: column; transition: opacity .5s var(--ease-out), transform .55s var(--ease-out); }
.screen--lock { opacity: 1; }
.screen--vault { opacity: 0; transform: scale(1.04); }
.demo[data-phase="vault"] .screen--lock { opacity: 0; transform: scale(.96); }
.demo[data-phase="vault"] .screen--vault { opacity: 1; transform: none; }
.screen__brand { display: flex; align-items: center; gap: .3rem; font-family: var(--font-display); font-weight: 600; font-size: .62rem; color: var(--ink); }
.screen__brand img { width: 14px; height: 14px; }
.screen__prompt { margin-top: .45rem; font-size: .62rem; font-weight: 600; color: var(--ink-2); }

/* pattern (iPhone) */
.pattern { position: relative; margin: .5rem auto 0; width: 88%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(4, 1fr); place-items: center; }
.pattern .dot { width: 30%; max-width: 12px; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: background-color .3s var(--ease-out), transform .3s var(--ease-spring), box-shadow .3s ease; }
.demo[data-phase="draw"] .pattern .dot.is-path,
.demo[data-phase="vault"] .pattern .dot.is-path {
  background: var(--brand); transform: scale(1.22);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  transition-delay: calc(var(--s) * .12s);
}
.pattern__trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pattern__trace polyline { fill: none; stroke: var(--brand); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 170; stroke-dashoffset: 170; opacity: .9; transition: stroke-dashoffset .95s var(--ease-out) .12s; }
.demo[data-phase="draw"] .pattern__trace polyline,
.demo[data-phase="vault"] .pattern__trace polyline { stroke-dashoffset: 0; }

/* password (Android) */
.pwd { position: relative; margin: 1.1rem auto 0; display: flex; align-items: center; justify-content: center; gap: .32rem; width: 82%; padding: .45rem .5rem; border-radius: 8px; background: var(--bg-tint); border: 1px solid var(--border); }
.pwd__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .25s var(--ease-out), transform .25s var(--ease-spring); }
.demo[data-phase="draw"] .pwd__dot, .demo[data-phase="vault"] .pwd__dot { opacity: 1; transform: none; transition-delay: calc(var(--s) * .13s); }
.pwd__caret { width: 1.5px; height: 12px; background: var(--brand); margin-left: 1px; animation: caretBlink 1.05s steps(2, jump-none) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

.screen__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .3rem; }
.screen__unlocking { font-family: var(--font-mono); font-size: .54rem; color: var(--brand-ink); opacity: 0; transition: opacity .3s ease; }
.demo[data-phase="draw"] .screen__unlocking { opacity: 1; }
.screen__kdf { font-family: var(--font-mono); font-size: .52rem; letter-spacing: .02em; color: var(--muted); }

/* vault payoff */
.screen--vault { padding: 12px 10px; justify-content: flex-start; }
.screen__vhead { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: .6rem; color: var(--ink); margin-bottom: .5rem; }
.screen__badge { font-family: var(--font-mono); font-size: .5rem; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 15%, transparent); padding: .12rem .34rem; border-radius: 4px; }
.vault-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tile { aspect-ratio: 1; border-radius: 6px; opacity: 0; transform: scale(.82); transition: opacity .4s var(--ease-out), transform .45s var(--ease-spring); background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 42%, var(--surface)), color-mix(in srgb, var(--brand) 14%, var(--surface))); }
.tile:nth-child(3n+2) { background: linear-gradient(145deg, color-mix(in srgb, var(--recover-fill) 46%, var(--surface)), color-mix(in srgb, var(--recover-fill) 14%, var(--surface))); }
.tile:nth-child(3n) { background: linear-gradient(145deg, color-mix(in srgb, var(--ink) 24%, var(--surface)), color-mix(in srgb, var(--ink) 7%, var(--surface))); }
.demo[data-phase="vault"] .tile { opacity: 1; transform: none; transition-delay: calc(var(--t) * .05s); }

/* link between phones */
.demo__sync { flex: none; display: flex; flex-direction: column; align-items: center; gap: .3rem; color: var(--brand); }
.demo__sync svg { width: 24px; height: 24px; opacity: .85; }
.demo__sync span { font-family: var(--font-mono); font-size: .54rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.demo__caption { margin: 1.1rem auto 0; max-width: 380px; text-align: center; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.demo__caption strong { color: var(--ink); }

/* ============================================================
   DIAGONAL TRUST BAND — real facts, our palette (beat their coral band)
   ============================================================ */
/* outer wrapper clips the tilted band so it can never cause page overflow */
.trustband { position: relative; margin: clamp(1rem, 0rem + 2.5vw, 2.25rem) 0; overflow: hidden; }
.trustband__band {
  background: linear-gradient(92deg, var(--brand-ink), var(--brand));
  transform: rotate(-2.4deg) scale(1.06); transform-origin: center;
  box-shadow: 0 14px 34px -18px rgba(22,38,31,.55), inset 0 1px 0 rgba(255,255,255,.12);
  border-block: 1px solid color-mix(in srgb, var(--brand-ink) 55%, #000);
}
.trustband__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.trustband:hover .trustband__track { animation-play-state: paused; }
.trustband__list { display: flex; align-items: center; margin: 0; padding: .7rem 0; list-style: none; flex: none; }
.trustband__list li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(.9rem, .7rem + .55vw, 1.12rem);
  letter-spacing: .015em; text-transform: uppercase; color: var(--on-brand);
  padding: 0 0 0 0; margin-right: 2.6rem;
}
.trustband__list li::before { content: "◆"; margin-right: 2.6rem; font-size: .5em; color: var(--recover-fill); opacity: .92; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   NUMBERED TIMELINE — ghost numbers + brass diamonds, animated reveal
   ============================================================ */
.timeline { list-style: none; position: relative; margin: clamp(2rem, 1rem + 3vw, 3.5rem) auto 0; padding: 0; max-width: 840px; }
.timeline::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: 50%; width: 2px; transform: translateX(-50%); background: var(--border-strong); border-radius: 2px; }
.tl { position: relative; display: flex; padding: .55rem 0; min-height: 112px; }
.tl:nth-child(odd) { justify-content: flex-start; }
.tl:nth-child(even) { justify-content: flex-end; }
.tl__card { position: relative; z-index: 1; width: calc(50% - 46px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.tl__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; margin-bottom: .4rem; }
.tl__card p { font-size: .98rem; color: var(--ink-2); line-height: 1.55; }
.tl__card em { font-style: italic; color: var(--brand-ink); }
.tl__card strong { color: var(--ink); }
.tl__num { position: absolute; top: -.6rem; z-index: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--brand); opacity: .12; pointer-events: none; }
.tl:nth-child(odd) .tl__num { left: calc(50% + 42px); }
.tl:nth-child(even) .tl__num { right: calc(50% + 42px); }
.tl__diamond { position: absolute; left: 50%; top: 1.5rem; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: var(--recover-fill); border: 2px solid var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--recover-fill) 20%, transparent); z-index: 2; }
/* spring reveal, sliding in from each item's own side */
.timeline .tl.reveal { opacity: 0; transition: opacity .6s var(--ease-out), transform .75s var(--ease-spring); }
.timeline .tl:nth-child(odd).reveal { transform: translateX(-26px); }
.timeline .tl:nth-child(even).reveal { transform: translateX(26px); }
.timeline .tl.reveal.is-in { opacity: 1; transform: none; }

/* ----------  responsive: demo + timeline ---------- */
@media (max-width: 920px) {
  .demo { gap: .5rem; }
  .demo__caption { max-width: 420px; }
}
@media (max-width: 680px) {
  .timeline::before { left: 18px; }
  .tl, .tl:nth-child(odd), .tl:nth-child(even) { justify-content: flex-start; }
  .tl__card { width: calc(100% - 48px); margin-left: 48px; }
  .tl__diamond { left: 18px; }
  .tl:nth-child(odd) .tl__num, .tl:nth-child(even) .tl__num { left: 48px; right: auto; }
  .timeline .tl:nth-child(odd).reveal, .timeline .tl:nth-child(even).reveal { transform: translateX(20px); }
}
@media (max-width: 400px) {
  .phone__frame { width: 118px; }
  .demo__sync span { display: none; }
}

/* ----------  motion/transparency prefs for the new components ---------- */
@media (prefers-reduced-motion: reduce) {
  .trustband__track { animation-name: none !important; transform: none !important; }
  .pwd__caret { animation-name: none !important; }
  /* show the payoff (unlocked, same vault) with no motion */
  .demo .screen--lock { opacity: 0 !important; transform: none !important; }
  .demo .screen--vault { opacity: 1 !important; transform: none !important; }
  .demo .tile { opacity: 1 !important; transform: none !important; }
  .demo .pattern .dot.is-path { background: var(--brand); transform: none !important; }
  .demo .pattern__trace polyline { stroke-dashoffset: 0 !important; }
  .demo .pwd__dot { opacity: 1 !important; transform: none !important; }
  .timeline .tl.reveal, .timeline .tl:nth-child(odd).reveal, .timeline .tl:nth-child(even).reveal { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .trustband__band { transform: rotate(-2.4deg); }
}
