/* ═══════════════════════════════════════════════════════════════
   Savario — landing page
   Brand tokens: Keepify/design/00_DESIGN_TOKENS.md (single source)
   Style: Editorial Apple-native — paper, hairlines, one red-ochre
   accent, Fraunces italic reserved for hero moments.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tokens ───────────────────────────────────────────────── */
:root {
  /* color · Paper theme (default) */
  --paper:       #FAF8F4;
  --paper-2:     #F2EEE7;
  --ink:         #1B1A17;
  --ink-muted:   #6B6760;
  --ink-faint:   #9C988F;
  --rule:        #E5E0D7;
  --accent:      #B8442E;
  --accent-soft: #F4DCD2;
  --ok:          #4F7F4A;

  /* type */
  --display: "Fraunces", "Source Serif Pro", "Songti SC", serif;
  --body: "Inter Tight", system-ui, -apple-system, "PingFang SC", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* spacing · 8px baseline */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px;  --s-8: 64px;  --s-9: 96px;

  /* layout */
  --container: 1120px;
  --measure: 34rem;
  --nav-h: 64px;
  --radius: 10px;

  /* motion — design-skill house curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-ui: 200ms;      /* UI feedback stays under 300ms */
  --dur-press: 160ms;
  --dur-reveal: 640ms;  /* marketing reveal — allowed to breathe */
}

[data-theme="dark"] {
  --paper:       #161513;
  --paper-2:     #211F1C;
  --ink:         #EDE9E1;
  --ink-muted:   #A39D93;
  --ink-faint:   #6E6960;
  --rule:        #33302B;
  --accent:      #D96A50;
  --accent-soft: #3A2620;
}

/* color-scheme drives browser chrome (scrollbars, form controls)
   and opts the page out of forced auto-darkening. */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

/* ─── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-4));
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}

img, svg { display: block; }
a { color: inherit; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--paper); }

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

/* ─── Shared type ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: var(--s-4);
}

.eyebrow--light { color: var(--accent); }

em { font-style: normal; }

.hero__title em,
.section__title em,
.cta__title em {
  font-style: italic;
  color: var(--accent);
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-ui) ease,
    border-color var(--dur-ui) ease,
    color var(--dur-ui) ease;
}

.btn:active { transform: scale(0.97); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--accent { background: var(--accent); color: #FAF8F4; }
.btn--paper { background: #FAF8F4; color: #1B1A17; }
.btn--ghost-dark {
  border-color: rgba(250, 248, 244, 0.3);
  color: #FAF8F4;
  background: transparent;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }

@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--accent); }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn--accent:hover { filter: brightness(1.06); }
  .btn--paper:hover { background: #fff; }
  .btn--ghost-dark:hover { border-color: #FAF8F4; }
}

/* ─── Reveal on scroll (JS adds .is-in) ────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--rule);
}

.nav__inner {
  max-width: var(--container);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__brand {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--dur-ui) ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-left: var(--s-2);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  transition: transform var(--dur-press) var(--ease-out),
              border-color var(--dur-ui) ease, color var(--dur-ui) ease;
}

.theme-toggle:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
}

.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* Contact pill in nav — the one accent element up top */
.nav__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}

.nav__contact:active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .nav__contact:hover { background: var(--accent); color: #FAF8F4; }
  [data-theme="dark"] .nav__contact:hover { color: #161513; }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + var(--s-8));
  border-bottom: 1px solid var(--rule);
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-8);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: var(--s-8);
}

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: var(--s-4) 0 var(--s-5);
}

.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: var(--measure);
  margin-bottom: var(--s-6);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.hero__proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.hero__proof i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.hero__device {
  display: flex;
  justify-content: center;
}

/* ─── Device mockup (the product itself, CSS-only) ─────────── */
.device {
  width: 320px;
  border-radius: 44px;
  border: 1px solid var(--rule);
  background: #1B1A17;  /* device bezel stays dark in both themes */
  padding: 10px;
  position: relative;
}

.device__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 999px;
  background: #1B1A17;
  z-index: 2;
}

.device__screen {
  border-radius: 34px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  font-size: 13px;
}

.scr-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 26px 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.scr-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--s-3) 20px 10px;
}

.scr-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.scr-title { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }

.scr-cal {
  width: 34px; height: 34px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--ink-muted);
}

.scr-chips {
  display: flex;
  gap: 6px;
  padding: 4px 20px 10px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.scr-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.scr-chip b { font-family: var(--mono); font-size: 9.5px; font-weight: 500; color: var(--ink-faint); }
.scr-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.scr-chip.on b { color: var(--paper); opacity: 0.6; }

.scr-month {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px 10px;
}

.scr-month-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
}

.scr-month-cnt { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }
.scr-month-rule { flex: 1; height: 1px; background: var(--rule); }

.scr-card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 12px 12px 10px;
  margin: 0 14px 8px;
}

.scr-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }

.scr-src {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-muted);
}

.scr-cat { font-size: 10.5px; color: var(--ink-faint); }
.scr-time { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint); }

.scr-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
}

.scr-card-sum {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scr-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.scr-tags span {
  font-size: 10.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 7px;
}

.scr-tabbar {
  margin-top: auto;
  display: flex;
  border-top: 1px solid var(--rule);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.scr-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: var(--ink-faint);
}

.scr-tab.on { color: var(--accent); }

/* ─── Sources marquee ──────────────────────────────────────── */
.sources {
  padding-bottom: var(--s-8);
  text-align: center;
}

.sources__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin-bottom: var(--s-5);
}

.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-5) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  flex: none;
  display: flex;
  align-items: baseline;
  min-width: 100%;
  animation: marquee-scroll 42s linear infinite;
}

.marquee__item {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}

/* accent dot separator */
.marquee__item::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 clamp(24px, 3vw, 44px);
  align-self: center;
}

@keyframes marquee-scroll {
  to { transform: translateX(-100%); }
}

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* ─── Film (embedded promo) ─────────────────────────────── */
.film {
  padding: var(--s-9) var(--s-5);
  border-bottom: 1px solid var(--rule);
}

.film__frame {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
}

.film__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ─── Sections ─────────────────────────────────────────────── */
.section {
  padding: var(--s-9) var(--s-5);
}

.section--alt {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section__head {
  max-width: var(--container);
  margin: 0 auto var(--s-8);
}

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-5);
}

.section__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* ─── Capture: steps ───────────────────────────────────────── */
.steps {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}

.step {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-4);
}

.step__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-3);
}

.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.step p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.6; }

/* ─── Honesty band: what actually gets saved ─────────────── */
.tiers {
  max-width: var(--container);
  margin: var(--s-8) auto 0;
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: var(--s-6) var(--s-7);
  background: var(--paper);
}

.tiers__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  margin-bottom: var(--s-6);
}

.tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}

.tier__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: var(--s-3);
}

.tier h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.tier p { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.tier p em { font-style: italic; }

.tiers__foot {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ─── Keep demo: the original 404s, your snapshot survives ────── */
.keep { max-width: 720px; margin: 0 auto; }

.keep__card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: var(--s-5) var(--s-6) var(--s-6);
}

.keep__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}

.keep__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ok);
}

.keep__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.keep__replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: transform var(--dur-press) var(--ease-out),
              color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}

.keep__replay:active { transform: scale(0.95); }

@media (hover: hover) and (pointer: fine) {
  .keep__replay:hover { color: var(--ink); border-color: var(--ink); }
}

.keep__src {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
}

.keep__meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

.keep__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-5);
}

.keep__compare {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-4);
}

.keep__orig,
.keep__snap {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-4);
}

.keep__orig { background: var(--paper-2); }

.keep__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
}

.keep__tag--ok { color: var(--ok); }

.keep__url {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
  transition: color var(--dur-ui) ease;
}

.keep__dead {
  display: inline-block;
  margin-top: var(--s-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 3px 9px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.keep__orig.is-dead .keep__dead { opacity: 1; transform: none; }

.keep__orig.is-dead .keep__url {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.keep__snap { background: var(--paper); }

.keep__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* highlight sweep: background grows left → right */
.keep__mark {
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat 0 0 / 0% 100%;
  transition: background-size 700ms var(--ease-in-out);
}

.keep__mark.is-lit { background-size: 100% 100%; }

.keep__note-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.keep__note-inline.is-in { opacity: 1; transform: none; }

.keep__note {
  margin-top: var(--s-4);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  text-align: center;
}

/* Search typing caret (JS-driven) */
.recall__caret {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

/* ─── Features matrix ────────────────────────────────────── */
.features {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}

.feature {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-4);
}

.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.feature p { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

/* ─── Recall demo ──────────────────────────────────────────── */
.recall { max-width: 720px; margin: 0 auto; }

.recall__box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 22px;
  color: var(--ink-muted);
}

.recall__query { font-size: 15px; color: var(--ink); min-height: 1.5em; }

.recall__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  padding: var(--s-3) 6px var(--s-4);
  opacity: 0;
  transition: opacity var(--dur-ui) ease;
}

.recall__meta.is-in { opacity: 1; }

.recall__results { display: grid; gap: var(--s-3); }

.recall__hit {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-4) var(--s-3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out),
              border-color var(--dur-ui) ease;
}

.recall__hit.is-in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .recall__hit:hover { border-color: var(--ink-faint); }
}

.recall__score {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ok);
}

.recall__hit .scr-card-title { font-size: 14.5px; }
.recall__hit .scr-card-sum { margin-bottom: 0; }

.recall__hit mark {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 2px;
  border-radius: 2px;
}

/* ─── Privacy rules ────────────────────────────────────────── */
.rules { max-width: var(--container); margin: 0 auto; }

.rule {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule);
}

.rule:last-child { border-bottom: 1px solid var(--rule); }

.rule__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.rule h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.rule p { font-size: 15px; color: var(--ink-muted); line-height: 1.65; max-width: 56ch; }

/* ─── Pricing: two editions, no numbers — editorial, not a checkout ── */
.editions {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.edition {
  padding: var(--s-6) var(--s-7) var(--s-7);
  display: flex;
  flex-direction: column;
}

.edition--pro { border-left: 1px solid var(--rule); }

.edition__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}

.edition__model {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
}

.edition__model--accent { color: var(--accent); }

.edition__desc { font-size: 14px; color: var(--ink-muted); margin-bottom: var(--s-5); }

.edition__list {
  display: grid;
  gap: 10px;
  margin-bottom: var(--s-6);
}

.edition__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink);
}

.edition__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}

.edition__cta { margin-top: auto; align-self: flex-start; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }

.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-2);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-ui) ease;
}

.faq__item summary::-webkit-details-marker { display: none; }

@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover { color: var(--accent); }
}

.faq__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink-faint);
  transition: transform var(--dur-ui) var(--ease-out);
}

.faq__icon::before { width: 14px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 14px; }

.faq__item[open] .faq__icon::after { transform: rotate(90deg); }

.faq__body { padding: 0 var(--s-2) var(--s-5); }
.faq__body p { font-size: 15px; color: var(--ink-muted); line-height: 1.65; max-width: 60ch; }

/* ─── Final CTA (ink band) ─────────────────────────────────── */
.cta {
  background: #1B1A17;
  color: #FAF8F4;
  padding: calc(var(--s-9) + var(--s-5)) var(--s-5);
  text-align: center;
}

.cta__inner { max-width: 720px; margin: 0 auto; }

.cta .eyebrow { color: #D96A50; }

.cta__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
}

.cta__title em { color: #D96A50; }

.cta__lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: #A39D93;
  margin-bottom: var(--s-6);
}

.cta__actions { margin-bottom: var(--s-4); }

.cta__note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #6E6960;
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  padding: var(--s-8) var(--s-5) var(--s-5);
}

/* Contact band — the loudest thing in the footer */
.footer__contact {
  max-width: var(--container);
  margin: 0 auto var(--s-8);
  padding-top: var(--s-7);
  border-top: 1px solid var(--ink);
}

.footer__mail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

.footer__mail em { font-style: italic; color: var(--accent); }

.footer__mail-arrow {
  display: inline-block;
  font-family: var(--body);
  color: var(--accent);
  transition: transform var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__mail:hover .footer__mail-arrow { transform: translateX(8px); }
  .footer__mail:hover em { text-decoration: underline; text-underline-offset: 6px; }
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--s-8);
}

.footer__wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  display: block;
  margin-bottom: var(--s-3);
}

.footer__tag { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

.footer__col { display: grid; gap: 10px; align-content: start; }

.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--dur-ui) ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--ink); }
}

.footer__base {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }

  .hero__device { order: 2; }

  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .features { grid-template-columns: 1fr; gap: var(--s-5); }
  .tiers { padding: var(--s-5); }
  .tiers__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .keep__compare { grid-template-columns: 1fr; }
  .editions {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .edition--pro { border-left: 0; border-top: 1px solid var(--rule); }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .section { padding: var(--s-8) var(--s-4); }
  .hero__inner { padding: var(--s-6) var(--s-4) var(--s-7); }

  .nav__contact { display: none; }  /* footer contact band still covers it */

  .device { width: 100%; max-width: 320px; }

  .keep__card { padding: var(--s-4) var(--s-4) var(--s-5); }

  .rule { grid-template-columns: 1fr; gap: var(--s-2); }

  .footer__base { justify-content: flex-start; }
}

/* ─── Reduced motion / transparency / contrast ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal],
  .recall__hit,
  .recall__meta {
    transform: none !important;
    transition-duration: 160ms !important;
    transition-property: opacity !important;
  }

  .recall__caret { animation: none; }

  /* keep demo: no sweep motion, final state only */
  .keep__dead,
  .keep__note-inline { transition-property: opacity !important; transform: none !important; }
  .keep__mark { transition: none !important; }

  /* marquee: stop the scroll, show the full list statically */
  .marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .marquee__track {
    animation: none;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--s-4);
  }
  .marquee__track[aria-hidden="true"] { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .btn--ghost, .recall__hit { border-color: var(--ink-muted); }
}
