/* ==========================================================================
   Noxium: Nocturne for the web.
   Tokens, shared components and the homepage. Subpage components live in pages.css.
   Design reference: design-system/nocturne/MASTER.md. Dark is the default; Light follows the device.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark light;

  --bg: #000000;
  --panel: #1C1C1E;
  --line: #2C2C2E;
  --text: #FFFFFF;
  --muted: #98989F;
  --text-2: #C7C7CC;
  --safelight: #FF453A;
  --safelight-text: #FF6961;
  --ok: #30D158;
  --ink: #FFFFFF;
  --on-ink: #000000;
  --fill: rgba(255, 255, 255, .07);
  --tile: #0D0D0F;
  --tile-text: #4A4A52;
  --stage-1: #18181C;
  --stage-2: #000000;
  --stage-3: #000000;
  --glow: rgba(255, 255, 255, .075);
  --scrim: rgba(0, 0, 0, .55);

  --bolt-ring: rgba(255, 255, 255, .45);
  --bolt-on: #FFFFFF;
  --bolt-halo: rgba(255, 255, 255, .08);
  --bolt-glow: rgba(255, 255, 255, .55);

  --glass-bg: rgba(255, 255, 255, .12);
  --glass-hi: rgba(255, 255, 255, .38);
  --glass-line: rgba(255, 255, 255, .22);
  --glass-shadow: rgba(0, 0, 0, .40);
  --glass-saturate: 180%;

  --phone-ring: 0 0 0 8px #161618, 0 0 0 9px #3A3A3C, 0 34px 80px rgba(0, 0, 0, .7);
  --fab-bg: rgba(255, 69, 58, .85);
  --fab-fg: #FFFFFF;

  --r-capsule: 999px;
  --r-card: 28px;
  --r-group: 22px;
  --r-sheet: 34px;
  --r-chip: 12px;

  --font-serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter Tight", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-settle: cubic-bezier(.22, .9, .26, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-shake: cubic-bezier(.36, .07, .19, .97);

  --stage-at: 72% 48%;
  --gutter: 32px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAF9F6;
    --panel: #FFFFFF;
    --line: #DEDBD3;
    --text: #111111;
    --muted: #6B6B6B;
    --text-2: #3D3D3D;
    --safelight: #C8372B;
    --safelight-text: #C8372B;
    --ok: #2F6B4A;
    --ink: #111111;
    --on-ink: #FAF9F6;
    --fill: rgba(255, 255, 255, .55);
    --tile: #F1EFE9;
    --tile-text: #B4AE9F;
    --stage-1: #FFFFFF;
    --stage-2: #FAF9F6;
    --stage-3: #EFECE5;
    --glow: rgba(255, 186, 120, .14);
    --scrim: rgba(250, 249, 246, .7);

    --bolt-ring: #A9A395;
    --bolt-on: #111111;
    --bolt-halo: rgba(17, 17, 17, .07);
    --bolt-glow: transparent;

    --glass-bg: rgba(255, 255, 255, .5);
    --glass-hi: rgba(255, 255, 255, .95);
    --glass-line: rgba(0, 0, 0, .10);
    --glass-shadow: rgba(60, 50, 30, .12);
    --glass-saturate: 170%;

    --phone-ring: 0 0 0 8px #FFFFFF, 0 0 0 9px #DEDBD3, 0 34px 80px rgba(60, 50, 30, .18);
    --fab-bg: #111111;
    --fab-fg: #FAF9F6;
  }
}

@media (max-width: 760px) {
  :root {
    --stage-at: 50% 50%;
    --gutter: 20px;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: 3px; }
p, li, dd { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
[hidden] { display: none !important; }
code, kbd, pre { font-family: var(--font-mono); }

::selection { background: color-mix(in srgb, var(--safelight) 35%, transparent); }

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

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  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;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-capsule);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-settle);
}

.skip-link:focus-visible { transform: none; }

.anchor {
  display: block;
  position: relative;
  top: -96px;
  height: 0;
}

/* Type helpers */
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.serif em, em.it, .it {
  font-style: italic;
  font-weight: 400;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }

/* ---------- 3. Liquid Glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(30px) saturate(var(--glass-saturate));
  backdrop-filter: blur(30px) saturate(var(--glass-saturate));
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-line), 0 12px 32px var(--glass-shadow);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--panel);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 0 0 1px var(--line);
  }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-capsule);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease, transform .1s ease;
}

.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-ink, .btn-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-ink:hover, .btn-primary:hover { opacity: .88; }

.btn-glass, .btn-outline {
  padding: 0 22px;
  font-size: 15px;
  color: var(--text);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(30px) saturate(var(--glass-saturate));
  backdrop-filter: blur(30px) saturate(var(--glass-saturate));
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-line), 0 12px 32px var(--glass-shadow);
}

.btn-glass:hover, .btn-outline:hover { opacity: .88; }

.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-nav {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* App Store badge (placeholder until Apple's official artwork is added) */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 54px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  line-height: 1.08;
  box-shadow: 0 0 0 1px var(--line);
}

.store-badge-small { font-size: 11px; font-weight: 500; }
.store-badge-big { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }

.qr-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.qr-tile {
  width: 64px;
  height: 64px;
  flex: none;
  padding: 5px;
  border-radius: 12px;
  background: #FFFFFF;
}

.qr-tile svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.qr-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.qr-sub { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

/* ---------- 5. Eyebrow, status line, dots, PRO ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--text);
}

.dot-red, .dot-locked { background: var(--safelight); }
.dot-ok { background: var(--ok); }
.dot-ink { background: var(--text); }
.dot-muted { background: var(--muted); }

.pro-badge {
  display: inline-block;
  font: 700 10px/1 var(--font-sans);
  letter-spacing: .1em;
  padding: 2px 8px;
  border: 1px solid var(--text);
  border-radius: var(--r-capsule);
  opacity: .85;
  vertical-align: middle;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 16px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
  padding: 0 8px 0 22px;
  border-radius: var(--r-capsule);
  max-width: 100%;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.wordmark span { font-style: italic; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding-block: 8px;
}

.nav-links a:hover { color: var(--text); }

.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  border-radius: var(--r-capsule);
  color: var(--text);
}

.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.open .icon-menu { display: none; }
.mobile-menu-btn.open .icon-close { display: block; }

.mobile-drawer {
  position: absolute;
  top: 84px;
  left: 16px;
  right: 16px;
  padding: 8px 22px;
  border-radius: var(--r-sheet);
  animation: chrome-in .45s var(--ease-settle) both;
}

.mobile-drawer-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.mobile-drawer-list a + a { border-top: .5px solid var(--glass-line); }

@media (max-width: 760px) {
  .nav { gap: 12px; padding: 0 6px 0 20px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  body.sticky-on .nav-cta { display: none; }
}

@media (min-width: 761px) {
  .mobile-drawer { display: none !important; }
}

/* ---------- 7. Sections ---------- */
.section {
  padding-block: 168px 150px;
}

.section-panel {
  background: var(--panel);
  border-block: .5px solid var(--line);
}

.section-rule { border-top: .5px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 64px;
  margin-bottom: 64px;
}

.section-head > :first-child { flex: 1 1 560px; min-width: 0; }
.section-head > .lede { flex: 0 1 400px; }
.section-head.is-centered { justify-content: center; text-align: center; }
.section-head.is-centered > :first-child { flex: 0 1 auto; }

.section-head .eyebrow { margin-bottom: 18px; }
.section-head.is-centered .eyebrow { justify-content: center; }

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw + 8px, 88px);
  line-height: .95;
  letter-spacing: -.005em;
}

.h2 em { font-style: italic; }

.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}

.lede .text-link { display: inline-block; margin-top: 14px; }

.card {
  background: var(--panel);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 .5px var(--line);
  padding: 28px;
}

@media (max-width: 760px) {
  .section { padding-block: 96px 88px; }
  .section-head { margin-bottom: 40px; }
  .lede { font-size: 17px; }
  .h3 { font-size: 26px; }
}

/* ---------- 8. Hero: lock layer over vault layer ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.lock {
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse 70% 60% at var(--stage-at), var(--stage-1) 0%, var(--stage-2) 62%, var(--stage-3) 100%);
  transform-origin: 50% 0;
  transition: transform .72s var(--ease-settle), opacity .5s ease .08s, box-shadow .72s ease, visibility 0s linear 0s;
}

.lock.lifted {
  transform: translateY(-40px) scale(.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  transition: transform .72s var(--ease-settle), opacity .5s ease .08s, box-shadow .72s ease, visibility 0s linear .72s;
}

.lock .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 46%), var(--glow), transparent 70%);
}

@media (hover: hover) and (pointer: fine) {
  .lock .glow { display: block; }
}

.lock-inner {
  position: relative;
  min-height: 920px;
  padding-top: 150px;
  padding-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px 48px;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(50px, 6.4vw + 12px, 104px);
  line-height: .94;
  letter-spacing: -.005em;
}

.hero-title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}

.hero-title .ln > span {
  display: inline-block;
  animation: line-up 1s var(--ease-out) both;
}

.hero-title .ln:nth-child(1) > span { animation-delay: .10s; }
.hero-title .ln:nth-child(2) > span { animation-delay: .22s; font-style: italic; }

.hero-lede {
  max-width: 36ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-2);
}

.fade-up { animation: fade-up .9s var(--ease-out) both; }
.d-05 { animation-delay: .05s; }
.d-40 { animation-delay: .40s; }
.d-52 { animation-delay: .52s; }
.d-60 { animation-delay: .60s; }

.small-print {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.beta-line {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* Pad column */
.pad-col {
  flex: 0 1 auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.prompt {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.prompt-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
}

.prompt-sub { font-size: 13px; color: var(--muted); }

.prompt-error {
  padding-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--safelight-text);
}

.demo-btn svg { width: 12px; height: 12px; fill: currentColor; }

@media (max-width: 760px) {
  .lock-inner { min-height: auto; padding-top: 120px; padding-bottom: 64px; }
  .hero-lede { font-size: 17px; }
}

/* ---------- 9. Bolt pad ---------- */
.pad {
  position: relative;
  width: min(440px, 82vw);
  aspect-ratio: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: crosshair;
}

.pad svg,
.mpad svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pad-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  pointer-events: none;
}

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--bolt-ring);
  animation: bolt-in .8s var(--ease-out) var(--d1, .35s) both, breathe 3.2s ease-in-out var(--d2, 1.3s) 1;
}

.pad:hover .b:not(.on) { animation: breathe 3.2s ease-in-out infinite; }

.b.on {
  width: 28px;
  height: 28px;
  background: var(--bolt-on);
  box-shadow: 0 0 0 9px var(--bolt-halo), 0 0 24px var(--bolt-glow);
  animation: pop .34s var(--ease-pop) both;
}

.pad.err .b.on {
  background: var(--safelight);
  box-shadow: 0 0 0 9px rgba(255, 69, 58, .14), 0 0 22px rgba(255, 69, 58, .45);
}

.pad.ok .b.on {
  background: var(--ok);
  box-shadow: 0 0 0 9px rgba(48, 209, 88, .14), 0 0 22px rgba(48, 209, 88, .4);
}

.pad.err .pad-grid,
.pad.err svg { animation: shake .42s var(--ease-shake) both; }

.trail {
  fill: none;
  stroke: var(--bolt-on);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.pad.err .trail { stroke: var(--safelight); }
.pad.ok .trail { stroke: var(--ok); }

.live {
  stroke: var(--bolt-on);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

.live.on { opacity: .5; }

/* Mini pads (decoy section, feature card, final CTA, subpage CTA cards) */
.mpad {
  position: relative;
  width: 132px;
  height: 132px;
  flex: none;
}

.mb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--bolt-ring);
}

.mb.on {
  width: 12px;
  height: 12px;
  background: var(--bolt-on);
  box-shadow: 0 0 0 4px var(--bolt-halo), 0 0 10px var(--bolt-glow);
}

.mpad-84 { width: 84px; height: 84px; }
.mpad-84 .mb { width: 6px; height: 6px; }
.mpad-84 .mb.on { width: 8px; height: 8px; box-shadow: none; }

.mpad-200 { width: 200px; height: 200px; }
.mpad-200 .mb { width: 12px; height: 12px; }
.mpad-200 .mb.on { width: 16px; height: 16px; box-shadow: 0 0 0 5px var(--bolt-halo), 0 0 16px var(--bolt-glow); }

.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- 10. Vault layer ---------- */
.vault {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transform: scale(.98);
  opacity: .5;
  transition: transform .9s var(--ease-settle) .06s, opacity .6s ease;
}

.vault.open { transform: none; opacity: 1; }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--panel);
}

.tile img,
.tile picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-tile {
  padding: 14px;
  background: var(--panel);
  box-shadow: inset 0 0 0 .5px var(--line);
}

.note-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.05;
}

.note-kind { font-size: 12px; color: var(--muted); margin-top: 6px; }

.tile-badge {
  position: absolute;
  right: 7px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.tile-badge svg { width: 10px; height: 10px; fill: #FFFFFF; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }

.heart {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  fill: var(--safelight);
}

.scrim-top, .scrim-bottom, .scrim-centre { position: absolute; left: 0; right: 0; pointer-events: none; }
.scrim-top { top: 0; height: 320px; background: linear-gradient(180deg, var(--bg) 38%, transparent); }
.scrim-bottom { bottom: 0; height: 240px; background: linear-gradient(0deg, var(--bg) 8%, transparent); }
.scrim-centre { inset: 0; background: radial-gradient(ellipse 46% 40% at 50% 54%, var(--scrim), transparent 72%); }

.vault-chrome { opacity: 0; }
.vault.open .vault-chrome { animation: chrome-in .7s var(--ease-settle) .28s both; }

.vault-head {
  position: absolute;
  top: 112px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.vault-title {
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1;
}

.vault-tools { display: flex; gap: 10px; padding-bottom: 8px; }

.chip-circle, .chip-capsule {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
}

.chip-circle { width: 44px; border-radius: 50%; }
.chip-capsule { padding: 0 18px; border-radius: var(--r-capsule); }

.vault-card {
  position: absolute;
  left: 50%;
  top: 52%;
  translate: -50% -50%;
  width: min(560px, calc(100% - 48px));
  padding: 44px 40px 36px;
  border-radius: var(--r-sheet);
  text-align: center;
}

.vault-card .status { justify-content: center; }

.vault-card-title {
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
}

.vault-card-title:focus { outline: none; }

.vault-card p {
  max-width: 32ch;
  margin: 0 auto 26px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
}

.vault-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.vault-bar {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tabbar {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 6px;
  border-radius: var(--r-capsule);
  font-size: 15px;
  font-weight: 600;
}

.tabbar > span, .tabbar > button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  font-weight: 600;
}

.tabbar svg { width: 15px; height: 15px; }

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--fab-bg);
  color: var(--fab-fg);
}

.fab svg { width: 24px; height: 24px; stroke-width: 2.2; }
.vault.open .fab { animation: pulse 1.4s ease-out .9s 2; }

@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .vault-head { top: 96px; }
  .vault-title { font-size: 52px; }
  .vault-card { padding: 36px 24px 28px; top: 54%; }
  .vault-bar { bottom: 24px; }
}

/* ---------- 11. Waitlist form ---------- */
.waitlist { display: flex; flex-direction: column; }

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  border-radius: var(--r-capsule);
}

.field svg {
  position: absolute;
  left: 18px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 20px 0 46px;
  border: 0;
  border-radius: var(--r-capsule);
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; }
.field:focus-within { outline: 2px solid var(--text); outline-offset: 3px; }

.waitlist-submit { height: 54px; }

.waitlist-hint {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.waitlist-hint a { color: var(--text-2); }

.waitlist-error {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--safelight-text);
}

.waitlist-form.show-error .waitlist-error { display: block; }
.waitlist-form.show-error .field { box-shadow: inset 0 0 0 1px var(--safelight), 0 0 0 .5px var(--glass-line); }

.waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-group);
  animation: chrome-in .7s var(--ease-settle) both;
}

.waitlist-success-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
}

.waitlist-success-desc { font-size: 15px; color: var(--text-2); }

.email-pill {
  font-family: var(--font-mono);
  font-size: .9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
  word-break: break-all;
}

.perks { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.perk { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.perk-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.perk-value { font-size: 15px; }

.link-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  min-height: 44px;
}

.link-btn:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 760px) {
  .waitlist-submit { flex: 1 1 100%; }
}

/* ---------- 12. Trust row ---------- */
.trust-row { border-block: .5px solid var(--line); }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  padding-block: 26px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- 13. The difference ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 24px;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.card-head .caption { font-size: 13px; color: var(--muted); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
}

.ct {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tile);
}

.ct img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.ct-text {
  position: absolute;
  inset: 0;
  padding: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--tile-text);
  word-break: break-all;
}

/* ---------- 14. Decoy vaults ---------- */
.decoy-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
}

.decoy-copy {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.decoy-copy .h2 { font-size: clamp(44px, 4.6vw + 8px, 80px); }

.group {
  width: 100%;
  border-radius: var(--r-group);
  background: var(--fill);
}

.group-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.4;
}

.group-row-title { display: block; font-weight: 500; }
.group-row-detail { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

.group-sep {
  height: .5px;
  margin-left: 18px;
  background: var(--glass-line);
}

.stacks {
  flex: 1 1 560px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.stack .eyebrow { color: var(--text-2); }

.phone {
  position: relative;
  width: 280px;
  height: 560px;
  flex: none;
  overflow: hidden;
  border-radius: 46px;
  background: var(--bg);
  box-shadow: var(--phone-ring);
}

.phone-feed { position: absolute; top: 118px; left: 0; right: 0; }

.phone-day {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 12px 6px;
}

.phone-day:first-child { padding-top: 6px; }
.phone-day .serif { font-size: 20px; line-height: 1.2; }
.phone-day .serif em { color: var(--muted); }
.phone-day small { font-size: 10px; color: var(--muted); }

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.phone-grid img, .phone-grid picture { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.phone-note {
  aspect-ratio: 1;
  padding: 8px;
  background: var(--panel);
  box-shadow: inset 0 0 0 .5px var(--line);
}

.phone-note .serif { font-size: 14px; line-height: 1.05; }
.phone-note small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }

.phone-scrim-top { position: absolute; top: 0; left: 0; right: 0; height: 130px; background: linear-gradient(180deg, var(--bg) 60%, transparent); }
.phone-scrim-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 110px; background: linear-gradient(0deg, var(--bg) 10%, transparent); }

.phone-head {
  position: absolute;
  top: 44px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.phone-head .eyebrow { font-size: 9px; }
.phone-head .serif { font-size: 36px; line-height: 1; }

.phone-select {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-capsule);
  font-size: 12px;
  font-weight: 600;
}

.phone-bar {
  position: absolute;
  bottom: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 42px;
  padding: 0 6px;
  border-radius: var(--r-capsule);
  font-size: 12px;
  font-weight: 600;
}

.phone-tabs span { padding: 6px 9px; }

.phone-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--fab-bg);
  color: var(--fab-fg);
}

.phone-fab svg { width: 18px; height: 18px; stroke-width: 2.2; }

@media (max-width: 760px) {
  .phone { width: 240px; height: 500px; }
  .phone-feed { top: 104px; }
}

/* ---------- 15. How the lock works ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px 48px;
}

.steps li {
  border-top: .5px solid var(--line);
  padding-top: 26px;
}

.step-no {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 80px;
  line-height: .8;
  color: var(--muted);
}

.steps h3 {
  margin: 22px 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
}

.steps p { font-size: 16px; line-height: 1.6; color: var(--text-2); }

.band {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--tile);
}

.band-text {
  position: absolute;
  inset: 0;
  padding: 22px 26px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--tile-text);
  word-break: break-all;
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 30% 0;
  mask-position: 30% 0;
}

.band-label {
  position: absolute;
  bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.band-label.is-left { left: 24px; color: #FFFFFF; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.band-label.is-right { right: 24px; color: var(--text-2); }

.recovery {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
}

.recovery-copy { flex: 1 1 340px; max-width: 440px; }
.recovery-copy h3 { margin-bottom: 12px; font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1; }
.recovery-copy p { font-size: 16px; line-height: 1.6; color: var(--text-2); }

.chips-wrap { flex: 1 1 520px; }

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-chip);
  background: var(--fill);
  box-shadow: inset 0 0 0 .5px var(--glass-line);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
}

.chip span { font-size: 11px; color: var(--muted); }
.chips-caption { margin-top: 10px; font-size: 12px; color: var(--muted); }

.curious {
  margin-top: 56px;
  border-block: .5px solid var(--line);
}

.curious-body {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-bottom: 32px;
}

.curious-copy { flex: 1 1 420px; min-width: 0; color: var(--text-2); }
.curious-copy > * + * { margin-top: 16px; }

.spec-list { padding-left: 1.1em; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.spec-list li::marker { color: var(--muted); }
.spec-list strong { color: var(--text); font-weight: 600; }

.code-card {
  flex: 1 1 460px;
  min-width: 0;
  border-radius: var(--r-group);
  background: var(--tile);
  box-shadow: inset 0 0 0 .5px var(--line);
  overflow: hidden;
}

.code-card-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 20px;
  border-bottom: .5px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.code-card pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.code-card .c { color: var(--muted); }
.code-card .k { color: var(--text); }
.code-card .s { color: var(--ok); }

/* ---------- 16. Everything else (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bento .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 300px;
}

.bento .card:nth-child(-n+2) { min-height: 340px; }
.bento .wide { grid-column: span 2; }

.bento h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
}

.bento .wide h3 { font-size: 32px; }
.bento p { font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 56ch; }

.media-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  border-radius: 16px;
  overflow: hidden;
}

.media-row .note-tile { background: var(--bg); }
.media-row .note-title { font-size: 22px; }

.album-rows { display: flex; flex-direction: column; gap: 14px; }
.album-row { display: flex; align-items: center; gap: 14px; }
.album-cover { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.album-cover.is-locked { display: flex; align-items: center; justify-content: center; background: var(--bg); box-shadow: inset 0 0 0 .5px var(--line); color: var(--muted); }
.album-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.album-meta { font-size: 13px; color: var(--muted); }

.backup-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
  letter-spacing: .02em;
}

.backup-line .dot { width: 8px; height: 8px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 14%, transparent); }

.share-group { border-radius: 18px; background: var(--fill); }
.share-group .group-row { justify-content: flex-start; }

.ink-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-serif);
  font-size: 22px;
}

.phrase-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--r-capsule);
  font-size: 16px;
  font-weight: 600;
}

.pads-pair { display: flex; align-items: center; gap: 12px; }
.pads-pair .dotted { width: 60px; height: 10px; }

.switcher {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
}

.switcher-card {
  width: 116px;
  height: 200px;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: inset 0 0 0 .5px var(--line);
  opacity: .5;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.switcher-card span { height: 8px; border-radius: 4px; background: var(--line); }

.switcher-card.is-main {
  width: 140px;
  height: 236px;
  border-radius: 26px;
  opacity: 1;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 .5px var(--line), 0 18px 40px var(--glass-shadow);
  font-family: var(--font-serif);
  font-size: 30px;
}

.bento-foot { margin-top: 24px; font-size: 15px; color: var(--text-2); }

@media (max-width: 999px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .wide { grid-column: auto; }
}

@media (max-width: 760px) {
  .bento h3, .bento .wide h3 { font-size: 26px; }
  .switcher { gap: 10px; }
  .switcher-card { width: 84px; height: 150px; }
  .switcher-card.is-main { width: 110px; height: 190px; font-size: 24px; }
}

/* ---------- 17. Privacy and facts ---------- */
.privacy-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.privacy-head .eyebrow { margin-bottom: 22px; }

.privacy-title {
  max-width: 15ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6.6vw + 8px, 104px);
  line-height: .94;
}

.privacy-title em { color: var(--muted); }

.privacy-head .lede { max-width: 46ch; margin-top: 30px; }

.promises {
  max-width: 980px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 28px 48px;
  list-style: none;
  padding: 0;
}

.promises li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 4px 14px;
}

.promises svg { margin-top: 3px; color: var(--text-2); }
.promise-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.promise-body { grid-column: 2; font-size: 14px; line-height: 1.55; color: var(--muted); }
.promise-body a { color: var(--text-2); }

.facts-block { max-width: 980px; margin: 96px auto 0; }
.facts-block .h3 { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.facts-block .h3 em { font-style: italic; }
.facts-intro { margin-bottom: 28px; font-size: 15px; color: var(--text-2); max-width: 60ch; }

.facts-list { border-top: .5px solid var(--line); }

.facts-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 6px 32px;
  padding: 16px 0;
  border-bottom: .5px solid var(--line);
}

.facts-row dt { font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--muted); }
.facts-row dd { font-size: 16px; line-height: 1.6; }

@media (max-width: 760px) {
  .facts-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 18. Compare ---------- */
.data-table-wrap,
.table-wrapper {
  border-radius: var(--r-card);
  overflow-x: auto;
  background: var(--panel);
  box-shadow: inset 0 0 0 .5px var(--line);
}

.compare-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 15px;
  line-height: 1.45;
}

.compare-table caption,
.data-table caption {
  padding: 18px 18px 0;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: .5px solid var(--line);
}

.compare-table tbody tr:last-child > * { border-bottom: 0; }

.compare-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 200px;
  background: var(--panel);
  font-weight: 400;
}

.compare-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); }

.compare-table .is-noxium { background: var(--fill); }
.compare-table thead .is-noxium { color: var(--text); box-shadow: inset 0 1px 0 var(--text); }

.feat-title { display: block; font-weight: 600; }
.feat-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

.chk-yes { color: var(--text); }
.chk-no { color: var(--text-2); }
.chk-warn { color: var(--text-2); }
.chk-unknown { color: var(--muted); }

.compare-table sup, .competitor-card sup { font-size: .7em; line-height: 0; }
.compare-table sup a, .competitor-card sup a { color: var(--muted); }

.compare-legend {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.compare-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.compare-filter-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-capsule);
  font-size: 14px;
  font-weight: 600;
}

.compare-filter-btn.is-active { background: var(--ink); color: var(--on-ink); box-shadow: none; }

.compare-also {
  margin-top: 48px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: inset 0 0 0 .5px var(--line);
}

.compare-also h3 { margin-bottom: 16px; }

.compare-also ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 10px 32px;
  padding-left: 1.1em;
  font-size: 15px;
  color: var(--text-2);
}

.compare-also li::marker { color: var(--muted); }

.compare-sub { margin-top: 96px; margin-bottom: 32px; }

.competitor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}

.competitor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.competitor-card h3 { margin-bottom: 6px; font-size: 26px; }
.competitor-ratings { margin-bottom: 14px; }
.competitor-card p { font-size: 15px; color: var(--text-2); }
.competitor-verdict { padding-top: 16px; border-top: .5px solid var(--line); font-size: 14px; line-height: 1.5; }

.compare-sources {
  margin-top: 48px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.compare-sources h3 { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); font-family: var(--font-sans); }
.compare-sources ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.compare-sources a { color: var(--text-2); }

.compare-more { margin-top: 32px; }

/* ---------- 19. Pricing ---------- */
.pricing-head .h2 { max-width: 14ch; margin-inline: auto; }

.plans {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 36px;
}

.plan.is-pro { box-shadow: inset 0 0 0 1px var(--text); }

.plan-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}

.plan-for { margin-top: 8px; font-size: 15px; color: var(--muted); }
.plan-price { font-family: var(--font-serif); font-size: 56px; line-height: 1; }
.plan-price-note { font-size: 15px; color: var(--muted); }
.plan-alt { margin-top: 6px; font-size: 14px; color: var(--muted); }

.plan-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.plan-list li { display: flex; gap: 10px; }
.plan-list svg { color: var(--muted); }
.plan.is-pro .plan-list svg { color: var(--text); }
.plan .btn { margin-top: auto; }

.pricing-note {
  max-width: 52ch;
  margin: 32px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

@media (max-width: 760px) {
  .plan { padding: 28px; }
  .plan.is-pro { order: -1; }
}

/* ---------- 20. FAQ ---------- */
.faq-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 80px;
}

.faq-intro { flex: 1 1 320px; max-width: 400px; }
.faq-intro .eyebrow { margin-bottom: 18px; }
.faq-intro .h2 { font-size: clamp(44px, 4vw + 12px, 76px); }
.faq-intro p { margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.faq-intro a { color: var(--text); }

.faq-list {
  flex: 999 1 560px;
  min-width: 0;
  border-top: .5px solid var(--line);
}

.faq-item { border-bottom: .5px solid var(--line); }

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

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

.faq-summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-settle);
}

.faq-item[open] > .faq-summary::after { transform: rotate(45deg); }

.faq-summary-left { display: flex; align-items: baseline; gap: 14px; }

.faq-q-no {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.faq-body {
  padding: 0 48px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

.faq-item[open] > .faq-body { animation: fade-up .35s var(--ease-out) both; }
.faq-body > * + * { margin-top: 12px; }
.faq-body strong { color: var(--text); font-weight: 600; }

@media (max-width: 760px) {
  .faq-summary { font-size: 17px; }
  .faq-body { padding-right: 0; }
}

/* ---------- 21. Final CTA ---------- */
.final-cta {
  background: radial-gradient(ellipse 60% 70% at 50% 40%, var(--stage-1) 0%, var(--stage-2) 60%, var(--stage-3) 100%);
  border-top: .5px solid var(--line);
}

.final-inner {
  padding-block: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.final-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(60px, 8.6vw + 12px, 136px);
  line-height: .9;
}

.final-sub { font-size: 19px; color: var(--text-2); }
.final-cta .store-row { justify-content: center; }

@media (max-width: 760px) {
  .final-inner { padding-block: 96px; }
  .final-sub { font-size: 17px; }
}

/* ---------- 22. Footer ---------- */
.site-footer { border-top: .5px solid var(--line); }

.footer-inner {
  padding-block: 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 48px;
}

.footer-brand .wordmark { font-size: 34px; }
.footer-brand p { margin-top: 6px; font-size: 14px; color: var(--muted); }

.footer-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
}

.footer-heading {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-groups ul { list-style: none; padding: 0; display: flex; flex-direction: column; }

.footer-groups a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
}

.footer-groups a:hover { color: var(--text); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  padding-top: 22px;
  border-top: .5px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-bottom p { max-width: 70ch; }

@media (max-width: 760px) {
  .footer-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); width: 100%; }
  .footer-groups a { min-height: 44px; }
}

/* ---------- 23. Install dialog ---------- */
.install-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 32px;
  border: 0;
  border-radius: var(--r-sheet);
  background: var(--panel);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-line), 0 24px 60px var(--glass-shadow);
}

.install-dialog[open] { animation: chrome-in .7s var(--ease-settle) both; }
.install-dialog::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.install-dialog-inner { display: flex; flex-direction: column; gap: 20px; }
.install-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.install-dialog-head .eyebrow { margin-bottom: 8px; }
.install-dialog h2 { font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1; }
.install-dialog-desc { font-size: 15px; color: var(--text-2); }

.install-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
}

.install-qr-panel { display: flex; align-items: center; gap: 18px; }

.install-qr {
  width: 160px;
  height: 160px;
  flex: none;
  padding: 10px;
  border-radius: 16px;
  background: #FFFFFF;
}

.install-qr svg { width: 100%; height: 100%; }
.install-qr-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.install-qr-meta .status { color: var(--text-2); letter-spacing: .08em; }
.install-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 24. Sticky install bar (phones) ---------- */
.sticky-bar,
.sticky-scrim { display: none; }

@media (max-width: 760px) {
  body.has-sticky { padding-bottom: 96px; }

  .sticky-scrim {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: 39;
    pointer-events: none;
    background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 95%, transparent) 30%, transparent);
    opacity: 0;
    transition: opacity .2s ease;
  }

  .sticky-bar {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 40;
    height: 66px;
    align-items: center;
    gap: 12px;
    padding: 0 9px 0 10px;
    border-radius: var(--r-capsule);
    opacity: 0;
    transform: translateY(16px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  body.sticky-on .sticky-scrim { opacity: 1; }

  body.sticky-on .sticky-bar {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity .35s var(--ease-settle), transform .35s var(--ease-settle), visibility 0s linear 0s;
  }

  .sticky-bar img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
  .sticky-text { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
  .sticky-name { font-size: 15px; font-weight: 600; }
  .sticky-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-bar .btn { height: 46px; padding: 0 20px; font-size: 15px; }
}

/* ---------- 25. Motion ---------- */
@keyframes bolt-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
@keyframes pop { from { transform: scale(.85); } to { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
@keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes chrome-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes seal { from { opacity: 0; } to { opacity: 1; } }
@keyframes unseal { from { opacity: 1; filter: none; } to { opacity: 0; filter: blur(12px); } }
@keyframes draw-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sweep { from { -webkit-mask-position: 10% 0; mask-position: 10% 0; } to { -webkit-mask-position: 45% 0; mask-position: 45% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, .5); } 100% { box-shadow: 0 0 0 20px rgba(255, 69, 58, 0); } }

/* Scroll-driven reveals. Base state is always visible. */
@supports (animation-timeline: view()) {
  .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 100%; }
  .ct img { animation: unseal linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
  .ct .ct-text { animation: seal linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
  .draw { animation: draw-in linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
  .band img { animation: sweep linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}

/* IntersectionObserver fallback (app.js adds html.reveal-js only where view() isn't supported). */
html.reveal-js .rv:not(.in) { opacity: 0; transform: translateY(32px) scale(.985); }
html.reveal-js .rv.in { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--stagger, 0s); }
html.reveal-js .ct:not(.in) img { opacity: 1; }
html.reveal-js .ct:not(.in) .ct-text { opacity: 0; }
html.reveal-js .ct img, html.reveal-js .ct .ct-text { transition: opacity .6s ease, filter .6s ease; transition-delay: var(--stagger, 0s); }
html.reveal-js .ct.in img { filter: blur(12px); }
html.reveal-js .rv-draw:not(.in) .draw { stroke-dashoffset: 1; }
html.reveal-js .rv-draw .draw { transition: stroke-dashoffset 1s var(--ease-out); transition-delay: var(--stagger, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .lock, .lock.lifted, .vault { transition: opacity .2s linear, visibility 0s linear .2s !important; transform: none !important; }
  .lock:not(.lifted) { transition: opacity .2s linear, visibility 0s linear 0s !important; }
  .vault-chrome { opacity: 1; }
  .ct img { opacity: 0 !important; }
  .ct .ct-text { opacity: 1 !important; }
  html.reveal-js .rv:not(.in) { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .qr-block { display: none; }
  .store-badge { height: 46px; }
}

.decoy-note { font-size: 14px; line-height: 1.55; color: var(--muted); }
