/* ============================================================
   Private Browser - "Midnight Vault" design system
   A locked room after dark: deep indigo, lavender key-light,
   and the shield / vault / panic accent trio. Self-contained:
   no external fonts, no CDNs, no trackers (matches the app's
   zero-third-party privacy story).
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Room */
  --ink:        #0d0b18;   /* midnight indigo base             */
  --ink-2:      #110e20;   /* raised surface                   */
  --ink-3:      #171330;   /* card / panel                     */
  --violet:     #1d1636;   /* deep violet panel                */
  --violet-2:   #292050;   /* violet highlight                 */

  /* Key-light + porcelain */
  --lav:        #a49cf0;   /* lavender (headings / accents)    */
  --lav-bright: #c9c4ff;   /* small highlights                 */
  --lav-deep:   #5e55a8;   /* engraved / muted lavender        */
  --porcelain:  #e9e7f6;   /* primary body text (cool white)   */

  /* Text scale (all AA on --ink) */
  --text:       #e9e7f6;
  --text-soft:  rgba(233,231,246,0.74);
  --text-mute:  rgba(233,231,246,0.50);
  --line:       rgba(164,156,240,0.18);
  --line-soft:  rgba(233,231,246,0.10);

  /* The stealth trio: Shield / Safe / Panic */
  --shield:     #8f85ec;   /* lavender - protection            */
  --safe:       #3aa981;   /* green - private, clean, erased   */
  --panic:      #d6544a;   /* red - wipe, self-destruct        */
  --shield-ink: #0b0821;
  --safe-ink:   #04120b;
  --panic-ink:  #1e0605;

  /* Type: system sans throughout; a browser is a tool, not a salon */
  --sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --maxw:  1120px;
  --prose: 68ch;
  --radius: 16px;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text);
  background:
    radial-gradient(120% 62% at 50% -8%, rgba(164,156,240,0.09), transparent 58%),
    radial-gradient(90% 70% at 90% 0%, rgba(94,85,168,0.08), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0a0913 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--lav); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: var(--lav-bright); }

::selection { background: rgba(164,156,240,0.34); color: #fff; }

/* ---- Display type ---- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 750; line-height: 1.12; letter-spacing: -.014em; color: var(--porcelain); }
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--lav); display: inline-block;
}
.em { color: var(--lav); }

/* ---- Skip link / focus ---- */
.skip-link {
  position: absolute; top: -120%; left: 14px; z-index: 300;
  padding: 9px 16px; background: var(--lav); color: #100b26; font-weight: 700;
  border-radius: 0 0 10px 10px; transition: top .2s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 3px; }

/* Visually hidden, still read by assistive tech */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  color: #0f0b24; text-decoration: none;
  padding: 13px 26px; min-height: 48px; border-radius: 999px;
  background: radial-gradient(circle at 50% 22%, #ddd9ff, var(--lav) 52%, var(--lav-deep) 100%);
  border: 1.5px solid rgba(221,217,255,0.45);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 26px rgba(0,0,0,0.45);
  cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 16px 34px rgba(0,0,0,0.55); color: #0f0b24; }
.btn:active { transform: translateY(0) scale(.97); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .9rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--porcelain); padding: 11px 22px; min-height: 46px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.16));
  border: 1.5px solid rgba(164,156,240,0.42);
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn-ghost:hover { background: linear-gradient(180deg, rgba(164,156,240,0.16), rgba(0,0,0,0.10)); border-color: var(--lav); color: var(--porcelain); }
.btn-ghost:active { transform: scale(.96); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* App Store badge (Apple mark + "Download on the App Store") */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 20px; min-height: 54px; border-radius: 13px;
  background: #000; border: 1px solid rgba(255,255,255,0.28);
  color: #fff; text-decoration: none;
  transition: transform .14s ease, border-color .14s ease;
}
.appstore:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.55); color: #fff; }
.appstore:active { transform: translateY(0) scale(.98); }
.appstore svg { width: 25px; height: 25px; fill: #fff; flex: none; }
.appstore .lbl { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appstore .lbl small { font-size: .64rem; font-weight: 500; opacity: .92; letter-spacing: .01em; }
.appstore .lbl b { font-size: 1.06rem; font-weight: 600; letter-spacing: .01em; }

/* Compact lavender App Store CTA in the nav */
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; min-height: 42px; border-radius: 999px;
  font-family: var(--sans); font-size: .86rem; font-weight: 700; letter-spacing: .01em;
  color: #0f0b24; text-decoration: none;
  background: radial-gradient(circle at 50% 22%, #ddd9ff, var(--lav) 52%, var(--lav-deep) 100%);
  border: 1.5px solid rgba(221,217,255,0.45);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 6px 16px rgba(0,0,0,0.4);
  transition: transform .14s ease, filter .14s ease;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); color: #0f0b24; }
.nav-cta:active { transform: translateY(0) scale(.97); }

/* ============================================================
   Status dots (Shield / Safe / Panic) - used in legends + dividers
   ============================================================ */
.dot {
  --face: var(--shield);
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none;
  background: radial-gradient(circle at 42% 34%, rgba(255,255,255,0.35), transparent 60%), var(--face);
  box-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.dot.shield { --face: var(--shield); }
.dot.safe   { --face: var(--safe); }
.dot.panic  { --face: var(--panic); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 18px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  background: rgba(13,11,24,0.74);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand .mark { width: 34px; height: 34px; flex: none; border-radius: 22%; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.brand-name { font-weight: 750; font-size: 1.08rem; letter-spacing: -.01em; color: var(--porcelain); }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { font-size: .9rem; font-weight: 600; letter-spacing: .03em; color: var(--text-soft); }
.nav-links a:hover { color: var(--porcelain); }
@media (min-width: 900px) {
  .nav { padding-left: max(36px, env(safe-area-inset-left)); padding-right: max(36px, env(safe-area-inset-right)); }
  .nav-links { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; isolation: isolate; padding: 76px 18px 60px; text-align: center; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 44% at 50% 0%, rgba(164,156,240,0.11), transparent 62%),
    radial-gradient(60% 50% at 50% 100%, rgba(29,22,54,0.6), transparent 70%);
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 1.55rem + 3.6vw, 4.05rem); color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,0.45); }
.hero-sub { margin: 18px auto 0; max-width: 560px; font-size: 1.08rem; color: rgba(233,231,246,0.86); line-height: 1.55; }

/* ---- The interactive demo: a mock private tab that erases itself ---- */
.demo {
  max-width: 560px; margin: 30px auto 0; padding: 18px 16px 16px;
  border-radius: 22px; position: relative; text-align: left;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(164,156,240,0.08), transparent 58%),
    linear-gradient(180deg, var(--ink-3), #0d0b18);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px rgba(164,156,240,0.04), 0 30px 66px rgba(0,0,0,0.5);
}
.browser-chrome { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); background: rgba(0,0,0,0.28); }
.chrome-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(0,0,0,0.12));
  border-bottom: 1px solid var(--line-soft);
}
.chrome-bar .traffic { display: inline-flex; gap: 5px; }
.chrome-bar .traffic i { width: 9px; height: 9px; border-radius: 50%; background: rgba(233,231,246,0.16); display: inline-block; }
.urlbar {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
  background: rgba(0,0,0,0.4); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 6px 13px;
  font-family: var(--mono); font-size: .78rem; color: var(--text-soft);
}
.urlbar svg { width: 11px; height: 11px; flex: none; color: var(--safe); }
.urlbar .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome-body { min-height: 190px; padding: 16px 14px; position: relative; }

/* Ghost page lines that appear while "browsing" */
.pageline { height: 11px; border-radius: 6px; background: rgba(233,231,246,0.10); margin-bottom: 10px; overflow: hidden; position: relative; }
.pageline.w60 { width: 60%; } .pageline.w85 { width: 85%; } .pageline.w40 { width: 40%; } .pageline.w75 { width: 75%; }
.pageline.hdr { height: 17px; width: 52%; background: rgba(164,156,240,0.22); margin-bottom: 14px; }

/* Blocked-tracker chips */
.blockfeed { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.blocked-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .68rem; color: #ff9d95;
  background: rgba(214,84,74,0.12); border: 1px solid rgba(214,84,74,0.35);
  padding: 3px 9px; border-radius: 999px;
  animation: chipIn .32s cubic-bezier(.16,1,.3,1) both;
}
.blocked-chip s { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.blocked-chip .x { font-weight: 700; font-style: normal; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }

/* The erase sweep */
.chrome-body.erasing .pageline, .chrome-body.erasing .blockfeed { animation: burnOut .5s ease forwards; }
@keyframes burnOut { to { opacity: 0; filter: blur(4px); transform: translateY(-4px); } }
.erased-note {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 20px;
}
.erased-note.show { display: flex; }
.erased-note .ring {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(58,169,129,0.14); border: 1.5px solid rgba(58,169,129,0.55); color: #6fd6ae;
}
.erased-note .ring svg { width: 20px; height: 20px; }
.erased-note b { color: var(--porcelain); font-size: 1.02rem; }
.erased-note span { color: var(--text-soft); font-size: .84rem; max-width: 300px; }

.demo-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.demo-tally { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 0 4px; }
.demo-tally .label { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.demo-tally .count { font-size: .78rem; color: var(--text-soft); }
.demo-tally .count b { color: #ff9d95; font-family: var(--mono); }

.hero-caption {
  margin: 16px auto 0; max-width: 470px; font-size: .82rem; color: var(--text-soft); line-height: 1.5; text-align: center;
}
.hero-caption b { color: var(--porcelain); font-weight: 700; }

.hero-foot { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-foot .micro { font-size: .8rem; color: var(--text-mute); }

@media (min-width: 620px) { .demo { padding: 20px 20px 18px; } }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
.section { padding: 84px 20px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.7rem); }
.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 1.05rem; }

.divider { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 20px 0; }
.divider .rule { height: 1px; width: min(180px, 30vw); background: linear-gradient(90deg, transparent, var(--line), transparent); }
.divider .dots { display: inline-flex; gap: 5px; }
.divider .dots i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.divider .dots i:nth-child(1) { background: var(--shield); }
.divider .dots i:nth-child(2) { background: var(--safe); }
.divider .dots i:nth-child(3) { background: var(--panic); }

/* ============================================================
   FEATURES - dark glass panels
   ============================================================ */
.features { background: linear-gradient(180deg, #0a0913, var(--ink)); }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.fcard {
  position: relative; border-radius: var(--radius); padding: 26px 22px 24px;
  background: linear-gradient(165deg, var(--ink-3), #0d0b18);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease, box-shadow .25s ease;
}
.fcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--lav), transparent); opacity: .5; }
.fcard:hover { transform: translateY(-5px); border-color: rgba(164,156,240,0.4); box-shadow: 0 22px 44px rgba(0,0,0,0.45); }
.fcard .ico { width: 40px; height: 40px; margin-bottom: 14px; color: var(--lav); }
.fcard h3 { font-size: 1.26rem; color: var(--porcelain); margin-bottom: 8px; }
.fcard p { font-size: .95rem; color: var(--text-soft); line-height: 1.56; }
.fcard .note { margin-top: 10px; font-size: .8rem; color: var(--text-soft); font-style: italic; }
.fcard .pro-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lav-bright); background: rgba(164,156,240,0.14); border: 1px solid rgba(164,156,240,0.4);
  padding: 3px 9px; border-radius: 999px;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ============================================================
   PROMISE - the privacy placard (deep violet)
   ============================================================ */
.promise { text-align: center; background: linear-gradient(180deg, var(--ink), #0a0913); }
.placard {
  max-width: 780px; margin: 0 auto; padding: 44px 30px 40px;
  border-radius: 20px; position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(164,156,240,0.11), transparent 60%),
    linear-gradient(180deg, var(--violet-2), var(--violet));
  border: 1px solid rgba(164,156,240,0.3);
  box-shadow: 0 0 0 6px rgba(164,156,240,0.05), 0 30px 60px rgba(0,0,0,0.55);
}
.placard::before, .placard::after {
  content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ddd9ff, var(--lav-deep)); top: 14px;
}
.placard::before { left: 14px; } .placard::after { right: 14px; }
.placard .eyebrow { margin-bottom: 12px; }
.placard h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 8px; }
.placard > p { color: rgba(233,231,246,0.82); max-width: 540px; margin: 0 auto 26px; }
.rules { display: grid; gap: 2px; max-width: 600px; margin: 0 auto; text-align: left; }
.rule-line { display: flex; align-items: flex-start; gap: 14px; padding: 13px 6px; border-bottom: 1px dashed rgba(164,156,240,0.2); }
.rule-line:last-child { border-bottom: 0; }
.rule-line .mark { color: var(--lav); font-weight: 700; flex: none; line-height: 1.5; }
.rule-line .t { color: var(--text); font-size: .98rem; }
.rule-line .t b { color: #fff; font-weight: 700; }

/* ============================================================
   FREE-FIRST band
   ============================================================ */
.freeband { background: var(--ink-2); }
.freeband-inner { max-width: 900px; margin: 0 auto; display: grid; gap: 30px; align-items: center; }
.freeband h2 { font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.5rem); margin-bottom: 12px; }
.freeband p { color: var(--text-soft); font-size: 1.04rem; margin-bottom: 14px; }
.freeband ul { list-style: none; display: grid; gap: 12px; }
.freeband li { position: relative; padding-left: 30px; color: var(--text); font-size: 1rem; }
.freeband li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--safe); font-weight: 700; }
.free-badge { display: inline-block; margin-bottom: 16px; padding: 5px 14px; border-radius: 999px; background: rgba(58,169,129,0.16); border: 1px solid rgba(58,169,129,0.5); color: #6fd6ae; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 840px) { .freeband-inner { grid-template-columns: 1.1fr 1fr; gap: 46px; } }

/* ============================================================
   STAT band (product facts only - never invented metrics)
   ============================================================ */
.stats { background: linear-gradient(180deg, #0a0913, var(--ink)); }
.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 40px; }
.stat { text-align: center; min-width: 130px; }
.stat b { display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--lav); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .84rem; color: var(--text-soft); letter-spacing: .02em; }

/* ============================================================
   CLOSING
   ============================================================ */
.closing { position: relative; isolation: isolate; text-align: center; padding: 92px 20px; }
.closing::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 40%, rgba(164,156,240,0.11), transparent 62%); }
.closing h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); color: #fff; margin-bottom: 10px; }
.closing p { color: rgba(233,231,246,0.82); margin-bottom: 26px; font-size: 1.06rem; }

/* ============================================================
   COMPLIANCE / important notice
   ============================================================ */
.disclaimer { padding: 52px 20px 8px; }
.disclaimer-inner { max-width: 720px; margin: 0 auto; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,0.24); }
.disclaimer h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 14px; text-align: center; }
.disclaimer ul { list-style: none; display: grid; gap: 8px; }
.disclaimer li { position: relative; padding-left: 22px; font-size: .87rem; color: var(--text-mute); line-height: 1.5; }
.disclaimer li::before { content: ''; position: absolute; left: 6px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: rgba(164,156,240,0.5); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 42px 20px 52px; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 24px; }
.footer-links a { font-size: .88rem; color: var(--text-soft); min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--porcelain); }
.footer-note { font-size: .78rem; color: var(--text-mute); max-width: 580px; line-height: 1.55; }
.footer-copy { font-size: .78rem; color: var(--text-mute); }

/* ============================================================
   PROSE (legal) + support
   ============================================================ */
.page { min-height: 68vh; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 84px 20px 72px; font-size: 1.02rem; line-height: 1.75; color: rgba(233,231,246,0.86); }
.prose h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); margin-bottom: 6px; }
.prose .updated { font-size: .86rem; color: var(--lav); font-weight: 600; margin-bottom: 8px; }
.prose .intro { color: var(--text-soft); margin-bottom: 34px; }
.prose h2 { font-size: 1.42rem; margin: 2.3em 0 .7em; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; color: var(--porcelain); }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: #fff; }
.callout { padding: 20px 24px; margin: 28px 0; border-radius: 14px; background: rgba(164,156,240,0.07); border-left: 3px solid var(--lav); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.plain { background: rgba(58,169,129,0.07); border-left-color: var(--safe); }
.callout.warn { background: rgba(214,84,74,0.08); border-left-color: var(--panic); }
.callout .tag { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lav); margin-bottom: 8px; }
.callout.plain .tag { color: #6fd6ae; }
.callout.warn .tag { color: #ff9d95; }
.toc { margin: 0 0 34px; padding: 16px 18px; background: rgba(0,0,0,0.28); border: 1px solid var(--line); border-radius: 12px; }
.toc summary { font-weight: 700; cursor: pointer; color: var(--porcelain); font-size: .9rem; letter-spacing: .03em; }
.toc ol { margin: 14px 0 0 1.3em; columns: 2; column-gap: 26px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { font-size: .9rem; color: var(--text-soft); }
.toc a:hover { color: var(--lav); }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.to-top { display: inline-block; margin-top: 8px; font-size: .84rem; color: var(--text-mute); }
.to-top:hover { color: var(--lav); }

/* Support: FAQ + contact */
.support-wrap { max-width: var(--prose); margin: 0 auto; padding: 84px 20px 72px; }
.support-wrap > h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); }
.support-wrap > .lede { color: var(--text-soft); margin: 8px 0 42px; font-size: 1.04rem; }
.faq { margin-bottom: 56px; }
.faq h2, .contact h2 { font-size: 1.55rem; color: var(--porcelain); margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details[open] { border-left: 2px solid var(--lav); padding-left: 16px; margin-left: -2px; }
.faq summary { list-style: none; cursor: pointer; padding: 17px 0; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lav); font-size: 1.3rem; font-weight: 400; transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: .95rem; color: var(--text-soft); padding-bottom: 17px; }
.faq details p:first-of-type { padding-top: 2px; }

.contact { border-top: 1px solid var(--line); padding-top: 40px; }
.contact > p { color: var(--text-soft); margin-bottom: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--text);
  background: rgba(0,0,0,0.32); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lav); outline: none; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a49cf0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { flex: 1 1 auto; }
.copy-btn { background: none; border: 1px solid var(--line); color: var(--text-soft); border-radius: 999px; min-height: 48px; padding: 0 18px; font-size: .88rem; font-weight: 600; cursor: pointer; font-family: var(--sans); transition: border-color .15s ease, color .15s ease; }
.copy-btn:hover { border-color: var(--lav); color: var(--porcelain); }
.form-hint { font-size: .82rem; color: var(--text-mute); margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--ink-3); border: 1px solid var(--lav); color: var(--porcelain); padding: 11px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: 0 14px 34px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 400; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.noscript-contact { padding: 16px 18px; border-radius: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); margin-top: 18px; color: var(--text-soft); font-size: .92rem; }

/* ============================================================
   Article cards, hub, article pages, install bar
   ============================================================ */
.acard {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--ink-3), #0d0b18);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.acard:hover { color: var(--porcelain); border-color: rgba(164,156,240,0.45); transform: translateY(-3px); }
.acard img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.acard .pad { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acard h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.acard p { color: var(--text-soft); font-size: .9rem; line-height: 1.6; }
.acard .meta { margin-top: auto; padding-top: 8px; font-size: .75rem; color: var(--text-mute); }

.hub-head { max-width: var(--maxw); margin: 0 auto 10px; padding: 84px 20px 0; }
.hub-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.hub-head p { margin-top: 12px; color: var(--text-soft); max-width: 42rem; }
.hub-section { max-width: var(--maxw); margin: 44px auto 0; padding: 0 20px; }
.hub-section h2 {
  font-size: 1.35rem;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--lav-bright);
}
.hub-foot { max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 72px; }

.article-wrap { max-width: 44rem; margin: 0 auto; padding: 84px 20px 72px; }
.article-wrap .prose { max-width: none; padding: 0; margin: 0; }
.crumbs {
  font-size: .86rem;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--lav); }
.crumbs .sep { opacity: .5; }
.article-head { margin: 18px 0 22px; }
.article-head h1 { font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.5rem); }
.article-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: .86rem;
  color: var(--text-mute);
}
.article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.article-wrap .prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(164,156,240,0.45); }
.tablewrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 12px; }
.article-wrap .prose table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.article-wrap .prose th, .article-wrap .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.article-wrap .prose th { color: var(--porcelain); font-weight: 700; background: rgba(164,156,240,0.06); }
.callout.honesty { background: rgba(164,156,240,0.07); border-left-color: var(--lav); }

.cta-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(165deg, var(--ink-3), #0d0b18);
  border: 1px solid rgba(164,156,240,0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.8em 0;
}
.cta-panel img { width: 54px; height: 54px; border-radius: 12px; flex: none; }
.cta-panel .txt { flex: 1; min-width: 0; }
.cta-panel .txt b { display: block; color: var(--porcelain); }
.cta-panel .txt span { display: block; color: var(--text-soft); font-size: .9rem; margin-top: 2px; }
.cta-panel .btn { padding: 10px 18px; font-size: .9rem; min-height: 44px; flex: none; }
@media (max-width: 560px) {
  .cta-panel { flex-wrap: wrap; }
  .cta-panel .btn { width: 100%; }
}

.related {
  background: rgba(164,156,240,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 2.2em 0 0;
}
.related h2 { font-size: 1.2rem; margin: 0 0 .5em; }
.related ul { list-style: none; margin: 0; }
.related li { margin: .5em 0; padding-left: 20px; position: relative; }
.related li::before { content: '\2192'; position: absolute; left: 0; color: var(--lav); }

.install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 11, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(164,156,240,0.4);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  transform: translateY(calc(100% + 20px));
  transition: transform .35s ease;
  max-width: 560px;
  margin: 0 auto;
}
.install-bar.show { transform: none; }
.ib-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.ib-txt { flex: 1; min-width: 0; line-height: 1.3; }
.ib-txt b { display: block; font-size: .9rem; color: var(--porcelain); }
.ib-txt span { display: block; font-size: .75rem; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-btn {
  flex: none;
  font-size: .88rem;
  font-weight: 700;
  color: #0f0b24;
  background: radial-gradient(circle at 50% 22%, #ddd9ff, var(--lav) 52%, var(--lav-deep) 100%);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
}
.ib-btn:hover { color: #0f0b24; }
.ib-close {
  flex: none;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text-mute);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* ============================================================
   404
   ============================================================ */
.notfound { min-height: 76vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.notfound .big { font-size: clamp(3.4rem, 2.6rem + 6vw, 6rem); font-weight: 800; letter-spacing: -.02em; color: var(--lav); text-shadow: 0 0 34px rgba(164,156,240,0.3); line-height: 1; }
.notfound .sub { color: var(--text-soft); margin: 14px 0 30px; max-width: 420px; }

/* ============================================================
   Reveal + reduced motion + forced colors + print
   ------------------------------------------------------------
   Progressive enhancement: content is visible by default. The
   hidden pre-reveal state applies only under html.js (set by an
   inline script), so no-JS visitors, common among this site's
   privacy-minded audience, always see the full page.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .06s; } .js .reveal.d2 { transition-delay: .14s; } .js .reveal.d3 { transition-delay: .22s; }
.js .reveal.d4 { transition-delay: .30s; } .js .reveal.d5 { transition-delay: .38s; } .js .reveal.d6 { transition-delay: .46s; }

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

@media (forced-colors: active) {
  .dot, .btn, .appstore, .nav-cta, .fcard, .placard { border: 1px solid CanvasText; }
  .fcard::before, .fcard .ico { forced-color-adjust: none; }
}

@media print {
  html, body { background: #fff; color: #111; }
  .nav, .footer, .to-top, .toc, .skip-link, .install-bar, .toast, .cta-panel, .related { display: none; }
  .prose { max-width: 100%; padding: 0; color: #111; }
  .prose h1, .prose h2, .prose h3, .prose strong { color: #000; }
  a { color: #000; text-decoration: underline; }
  .callout { border: 1px solid #999; background: #f6f6f6; }
}
