/* Phoebe — site styles.
   Tokens lifted from ios/AletheiaMobile/.../Theme.swift so the site and the
   app read as one product:
     bg #050505 · surface #101010 · surface2 #181818
     text #E9ECEF · secondary white 62% · tertiary white 48% · gold #DEB34D
   Single-theme by design: the product is a dark app, and the page commits to it. */

:root {
  --bg:#050505;
  --surface:#101010;
  --surface2:#181818;
  --ink:#E9ECEF;
  --sec:rgba(255,255,255,.62);
  --ter:rgba(255,255,255,.48);
  --gold:#DEB34D;
  --gold-hi:#EFD48A;
  --gold-lo:rgba(222,179,77,.14);
  --steel:#6E8CA0;
  --green:#5FA95F;
  --line:rgba(255,255,255,.11);
  --line-soft:rgba(255,255,255,.07);

  --serif:'Newsreader','New York',Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',system-ui,sans-serif;
  --mono:ui-monospace,'SF Mono',Menlo,monospace;

  --gut:clamp(20px,5vw,64px);
  --sec-pad:clamp(56px,8vw,104px);
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.58;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  /* Stop iOS from inflating type when a phone is turned to landscape. */
  -webkit-text-size-adjust:100%;
  /* Belt-and-braces: no decoration or long token may scroll the page sideways. */
  overflow-x:hidden;
}

/* Long unbroken tokens (URLs, emails, tickers) must not push the layout wide. */
p,li,h1,h2,h3,summary,.pc-body,.disclaimer{overflow-wrap:break-word}

img{max-width:100%}
p{margin:0}
a{color:inherit}

h1,h2,h3{margin:0;font-family:var(--serif);font-weight:400;text-wrap:balance}
h1{font-size:clamp(2.5rem,7vw,4.6rem);line-height:1.04;letter-spacing:-.026em}
h2{font-size:clamp(1.85rem,4vw,2.9rem);line-height:1.1;letter-spacing:-.02em}
h3{font-size:clamp(1.1rem,2vw,1.32rem);line-height:1.25;letter-spacing:-.012em}

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

.skip{position:absolute;left:-9999px;top:0;background:var(--gold);color:#050505;
  padding:12px 18px;z-index:100;font-weight:600;border-radius:0 0 6px 0}
.skip:focus{left:0}

/* padding-inline carries the safe-area inset so landscape on a notched iPhone
   never tucks text under the sensor housing. max() keeps the normal gutter
   everywhere the inset is 0. */
.wrap{max-width:1180px;margin:0 auto;
  padding-inline:max(var(--gut),env(safe-area-inset-left))
                 max(var(--gut),env(safe-area-inset-right))}
.narrow{max-width:820px}
.center{text-align:center}

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:0 26px;border-radius:999px;
  font-family:var(--sans);font-size:15px;font-weight:600;
  text-decoration:none;border:1px solid transparent;cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.btn-primary{background:var(--gold);color:#050505}
.btn-primary:hover{background:var(--gold-hi)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold)}
.btn-sm{min-height:42px;padding:0 20px;font-size:14px}
.btn-lg{min-height:54px;padding:0 34px;font-size:16px}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.under-cta{margin-top:16px;font-size:13.5px;color:var(--ter);line-height:1.5}

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav{position:sticky;top:0;z-index:50;background:rgba(5,5,5,.86);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line)}
.nav-in{display:flex;align-items:center;gap:16px;height:62px}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;
  font-family:var(--serif);font-size:20px;letter-spacing:.01em;color:var(--ink)}
.brand svg{display:block}
.nav-links{margin-left:auto;display:none;gap:28px}
.nav-links a{font-size:14.5px;color:var(--sec);text-decoration:none}
.nav-links a:hover{color:var(--gold)}
.nav .btn{display:none}
.nav-toggle{margin-left:auto;width:44px;height:44px;display:grid;place-content:center;
  gap:5px;background:none;border:none;cursor:pointer;padding:0}
.nav-toggle span{display:block;width:20px;height:1.5px;background:var(--ink);
  transition:transform .2s ease}
/* The two bars cross into an ✕ when the panel is open, so the button confirms
   its own state. Driven off aria-expanded, which site.js already maintains. */
.nav-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.25px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.25px) rotate(-45deg)}
/* `display:flex` outranks the `hidden` attribute's UA `display:none`, so the
   panel must opt out explicitly or it renders open on load. */
.nav-mobile[hidden]{display:none}
.nav-mobile{border-top:1px solid var(--line);display:flex;flex-direction:column;
  padding:8px max(var(--gut),env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom))
          max(var(--gut),env(safe-area-inset-left));
  /* Never taller than the screen below the 62px bar — scroll instead. */
  max-height:calc(100vh - 62px);max-height:calc(100dvh - 62px);
  overflow-y:auto;overscroll-behavior:contain}
/* 48px rows: comfortably past the 44px minimum on a one-handed tap. */
.nav-mobile a{min-height:48px;display:flex;align-items:center;
  font-size:16px;color:var(--sec);text-decoration:none;
  border-bottom:1px solid var(--line-soft)}
.nav-mobile a:last-child{border-bottom:none}
@media (min-width:900px){
  .nav-links{display:flex}
  .nav .btn{display:inline-flex}
  .nav-toggle{display:none}
  .nav-mobile{display:none!important}
}

/* ── hero ────────────────────────────────────────────────────────────── */
.hero{padding-block:clamp(44px,7vw,84px) clamp(32px,5vw,56px);position:relative;overflow:hidden}
.hero::before,.hero::after{content:'';position:absolute;border-radius:50%;pointer-events:none}
.hero::before{width:660px;height:360px;background:var(--gold);opacity:.10;
  filter:blur(130px);top:-120px;left:-160px}
.hero::after{width:480px;height:480px;background:var(--steel);opacity:.085;
  filter:blur(130px);bottom:-220px;right:-120px}
.hero-grid{display:grid;gap:clamp(32px,5vw,56px);align-items:center;position:relative;z-index:1}
@media (min-width:980px){.hero-grid{grid-template-columns:1.04fr .96fr}}

.eyebrow{font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.hero h1{margin-top:22px}
.lede{margin-top:24px;font-size:clamp(16.5px,2vw,18.5px);line-height:1.56;
  color:var(--sec);max-width:40ch}
.lede em{color:var(--ink);font-style:italic}

.hero-stage{display:flex;flex-direction:column;align-items:center;gap:18px}
/* The stage is sized from the phone it contains, not a guessed height: the CSS
   phone is min(270px,72vw) wide at 390/844, so a fixed 380px box let it spill
   ~200px onto the copy below on every phone. --pf-w is the single source of
   truth for both the mock and the box, and overflow clips the WebGL bloom. */
.hero3d{--pf-w:min(232px,58vw);width:100%;position:relative;overflow:hidden;
  height:calc(var(--pf-w) * 844 / 390 + 24px)}
@media (min-width:980px){.hero3d{--pf-w:min(258px,23vw)}}
.hero3d canvas{position:absolute;inset:0}
.hero3d.is-live .phone-fallback{opacity:0;pointer-events:none}

/* CSS phone — visible until (or unless) WebGL takes over */
.phone-fallback{position:absolute;inset:0;display:grid;place-items:center;transition:opacity .4s ease}
.pf-screen{width:var(--pf-w,min(270px,72vw));aspect-ratio:390/844;background:var(--bg);
  border:1px solid rgba(255,255,255,.15);border-radius:34px;padding:22px 12px 12px;
  box-shadow:0 30px 70px rgba(0,0,0,.5);overflow:hidden}
.pf-title{font-family:var(--serif);font-size:24px;padding:0 8px}
.pf-sec{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ter);
  margin:14px 8px 6px}
.pf-card{background:var(--surface);border-radius:10px;padding:4px 0}
/* The mock shrinks on phones, so its type scales with --pf-w rather than
   staying at a desktop size inside a smaller frame. The ticker row stacks
   rather than squeezing to an unreadable size to stay on one line. */
.pf-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1px 8px;
  padding:9px 12px;font-size:clamp(9px,calc(var(--pf-w,270px) * .046),12px)}
.pf-row+.pf-row{border-top:1px solid var(--line-soft)}
.pf-row em{font-style:normal;color:var(--gold);font-family:var(--mono);
  font-size:clamp(8px,calc(var(--pf-w,270px) * .042),11px)}
.pf-foot{margin-top:22px;text-align:center;font-family:var(--serif);font-style:italic;
  font-size:11px;color:var(--ter)}

.hero-dots{display:flex;gap:9px}
/* The visible dot stays 34x4, but the button carries 20px of vertical padding
   so the actual touch target clears 44px. background-clip keeps the paint on
   the content box, so the pad is invisible. */
.hero-dot{width:34px;height:4px;box-sizing:content-box;padding:20px 0;border:none;
  border-radius:999px;cursor:pointer;background:rgba(255,255,255,.18);
  background-clip:content-box;transition:background .2s ease;-webkit-tap-highlight-color:transparent}
.hero-dot[aria-current="true"]{background:var(--gold);background-clip:content-box}
.hero-dot:hover{background:rgba(255,255,255,.34);background-clip:content-box}
/* Absorb the dots' 20px tap padding so the gap reads as designed. :has() guards
   the empty container when WebGL is unavailable. */
.hero-dots:has(.hero-dot){margin-top:-16px}
.hero-dots[hidden],.hero-motion[hidden]{display:none}
.hero-motion{margin-top:-14px;padding:8px 12px;border:0;background:transparent;
  color:var(--ter);font:inherit;font-size:12px;cursor:pointer;min-height:44px}
.hero-motion:hover{color:var(--ink)}
.hero-dot:focus-visible,.hero-motion:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ── section shells ──────────────────────────────────────────────────── */
.sec{padding-block:var(--sec-pad)}
.band{padding-block:var(--sec-pad);border-block:1px solid var(--line);background:#070707}
.band-quiet{background:var(--bg)}
.sec-close{padding-block:clamp(64px,9vw,120px)}

.kicker{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold);margin-bottom:16px}
.sub{margin-top:18px;font-size:17px;color:var(--sec);max-width:46ch;line-height:1.6}
.center-sub{margin-inline:auto}
.h2-center{text-align:center;margin-inline:auto;max-width:20ch}
.note{margin-top:20px;font-size:13.5px;color:var(--ter);max-width:52ch;line-height:1.6}
.soon{margin-top:22px;font-size:14.5px;color:var(--ter);line-height:1.6;
  padding-left:14px;border-left:2px solid var(--gold-lo)}
.soon strong{color:var(--gold);font-weight:600}

.split{display:grid;gap:clamp(32px,5vw,60px);align-items:center}
@media (min-width:900px){.split{grid-template-columns:1.02fr .98fr}}
@media (min-width:900px){.split-rev>*:first-child{order:0}}

/* ── three-up ────────────────────────────────────────────────────────── */
.three-up{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);
  border-radius:14px;overflow:hidden}
@media (min-width:860px){.three-up{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tu{background:var(--bg);padding:clamp(24px,3vw,32px)}
.tu-n{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.tu h3{margin:14px 0 10px}
.tu p{font-size:14.5px;color:var(--sec);line-height:1.6}

/* ── limits ──────────────────────────────────────────────────────────── */
.checks{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:11px}
@media (min-width:620px){.checks{grid-template-columns:1fr 1fr;gap:11px 24px}}
.checks li{position:relative;padding-left:26px;font-size:14.5px;color:var(--sec)}
.checks li::before{
  content:'';position:absolute;left:0;top:.5em;width:11px;height:6px;
  border-left:1.6px solid var(--gold);border-bottom:1.6px solid var(--gold);
  transform:rotate(-45deg)}

.limits-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:clamp(22px,3vw,28px);box-shadow:0 30px 70px rgba(0,0,0,.45)}
.lc-eyebrow{font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ter)}
.lc-rows{margin-top:16px;border-top:1px solid var(--line-soft)}
/* Label and value sit on one line when they fit and stack when they don't —
   "Buy frequency / at most 2 buys per week" was crushing to 2-3 words per line
   on a narrow phone. */
.lc-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;
  gap:2px 16px;padding:14px 0;border-bottom:1px solid var(--line-soft)}
.lc-row span{font-size:15px}
.lc-row em{flex:1 0 auto}
@media (max-width:400px){.lc-row em{text-align:left}}
.lc-row em{font-style:normal;font-family:var(--mono);font-size:14px;color:var(--gold);
  text-align:right;font-variant-numeric:tabular-nums}
.lc-consent{margin-top:22px;padding:18px;background:#151310;
  border:1px solid rgba(222,179,77,.32);border-radius:12px;
  font-size:14.5px;line-height:1.55}
.lc-foot{margin-top:12px;font-size:12.5px;color:var(--ter)}

/* ── off switch ──────────────────────────────────────────────────────── */
.stop-row{display:grid;gap:clamp(28px,4vw,52px);align-items:center}
@media (min-width:880px){.stop-row{grid-template-columns:1.1fr .9fr}}
.switch-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;
  padding:20px 22px}
.sw-row{display:flex;align-items:center;gap:18px}
.sw-t{font-size:16px}
.sw-s{font-size:13px;color:var(--ter);margin-top:3px}
.sw-toggle{margin-left:auto;width:51px;height:31px;border-radius:999px;background:var(--gold);
  position:relative;flex:none}
.sw-toggle span{position:absolute;top:2px;left:22px;width:27px;height:27px;border-radius:50%;
  background:#fff}

/* ── plan card ───────────────────────────────────────────────────────── */
.plan-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;
  overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.45)}
.pc-head{padding:14px 22px;border-bottom:1px solid var(--line);font-size:11px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--ter)}
/* Real prose in mono: 13px is a cramped phone read, so nudge it up on small
   screens where the measure is already narrow. */
.pc-body{padding:22px;font-family:var(--mono);font-size:13.5px;line-height:1.72;color:var(--sec)}
@media (min-width:700px){.pc-body{font-size:13px}}
.pc-body p{margin:0 0 14px}
.pc-body p:last-child{margin-bottom:0}
.pc-h{color:var(--gold);font-size:12px}

/* ── notifications ───────────────────────────────────────────────────── */
.notifs{display:grid;gap:14px;margin-top:40px}
@media (min-width:820px){.notifs{grid-template-columns:repeat(3,minmax(0,1fr))}}
.nf{background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:18px 20px}
.nf-t{font-size:14.5px;font-weight:600}
.nf-b{font-size:13.5px;color:var(--sec);margin-top:6px;line-height:1.5}
.nf-quiet{opacity:.66}
.notifs-foot{margin-top:22px;text-align:center;font-size:13px;color:var(--ter)}

/* ── four-up ─────────────────────────────────────────────────────────── */
.four-up{display:grid;gap:clamp(24px,3vw,34px);margin-top:44px}
@media (min-width:700px){.four-up{grid-template-columns:1fr 1fr}}
@media (min-width:1040px){.four-up{grid-template-columns:repeat(4,minmax(0,1fr))}}
.fu{border-top:1px solid var(--line);padding-top:18px}
.fu h3{font-size:1.08rem}
.fu p{margin-top:9px;font-size:14px;color:var(--sec);line-height:1.6}

/* ── prose ───────────────────────────────────────────────────────────── */
.prose{margin-top:20px;font-size:17px;line-height:1.72;color:var(--sec);max-width:64ch}

/* ── pricing ─────────────────────────────────────────────────────────── */
.price-card{margin:40px auto 0;max-width:520px;background:var(--surface);
  border:1px solid var(--line);border-radius:18px;padding:clamp(28px,4vw,40px);text-align:center}
.pr-num{font-family:var(--serif);font-size:clamp(2.8rem,6vw,3.7rem);line-height:1;
  letter-spacing:-.025em}
.pr-num span{font-family:var(--sans);font-size:17px;color:var(--sec);letter-spacing:0}
.pr-beta{margin-top:16px;font-size:16.5px}
.pr-note{margin-top:12px;font-size:13.5px;color:var(--ter);line-height:1.6}
.price-card .btn{margin-top:26px}

/* ── faq ─────────────────────────────────────────────────────────────── */
.faq-list{margin-top:36px;border-top:1px solid var(--line)}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list summary{
  padding:20px 0;cursor:pointer;list-style:none;display:flex;align-items:flex-start;gap:18px;
  font-family:var(--serif);font-size:clamp(1.05rem,2vw,1.25rem);line-height:1.35}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{
  content:'';margin-left:auto;flex:none;width:12px;height:12px;margin-top:.4em;
  border-right:1.6px solid var(--gold);border-bottom:1.6px solid var(--gold);
  transform:rotate(45deg);transition:transform .2s ease}
.faq-list details[open] summary::after{transform:rotate(-135deg)}
.faq-list details div{padding:0 0 22px}
.faq-list details p{font-size:15.5px;color:var(--sec);line-height:1.65;max-width:62ch}

/* ── footer ──────────────────────────────────────────────────────────── */
.foot{border-top:1px solid var(--line);padding-block:44px 56px}
.foot-top{display:flex;flex-wrap:wrap;gap:22px 32px;align-items:center}
.foot-links{display:flex;flex-wrap:wrap;gap:2px 24px;margin-left:auto}
/* Footer links are the densest tap cluster on the page; give each a 44px row
   on touch without opening the gaps on desktop. */
.foot-links a{font-size:14px;color:var(--sec);text-decoration:none;
  display:inline-flex;align-items:center;min-height:44px}
.foot-links a:hover{color:var(--gold)}
/* This is ~470 words of legally material prose, and the largest body block on
   every page. 12.5px at 48% white (~4.6:1) is not a comfortable phone read, so
   it steps up to 13.5px at the secondary tint on small screens. */
.disclaimer{margin-top:30px;font-size:13.5px;line-height:1.7;color:var(--sec);max-width:92ch}
@media (min-width:700px){.disclaimer{font-size:12.5px;color:var(--ter)}}
.copy{margin-top:22px;font-size:13px;color:var(--ter)}
.tagline{font-family:var(--serif);font-style:italic}

/* ── page-level (subpages) ───────────────────────────────────────────── */
.page-head{padding-block:clamp(44px,6vw,76px) clamp(24px,3vw,40px);
  border-bottom:1px solid var(--line)}
.page-head h1{font-size:clamp(2.1rem,5vw,3.4rem);margin-top:16px}
.page-head .sub{max-width:56ch}
.doc{padding-block:clamp(40px,6vw,72px)}
.doc h2{margin-top:48px;font-size:clamp(1.4rem,2.6vw,1.9rem)}
.doc h2:first-child{margin-top:0}
.doc h3{margin-top:30px;font-size:1.12rem}
.doc p,.doc li{font-size:16px;line-height:1.72;color:var(--sec)}
.doc p{margin-top:16px;max-width:70ch}
.doc ul,.doc ol{margin-top:16px;padding-left:22px;max-width:70ch}
.doc li{margin-top:9px}
.doc strong{color:var(--ink);font-weight:600}
.doc a{color:var(--gold)}
.doc-note{margin-top:24px;padding:18px 20px;border:1px solid rgba(222,179,77,.3);
  border-radius:12px;background:#151310;font-size:14.5px;color:var(--sec);line-height:1.6}
.doc-note strong{color:var(--gold)}
.updated{margin-top:10px;font-size:13px;color:var(--ter)}

.steps{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);
  border-radius:14px;overflow:hidden;margin-top:40px}
@media (min-width:900px){.steps{grid-template-columns:repeat(4,minmax(0,1fr))}}
.step{background:var(--bg);padding:26px 24px}
.step-n{font-family:var(--mono);font-size:11.5px;letter-spacing:.12em;color:var(--gold)}
.step h3{margin:13px 0 9px}
.step p{font-size:14px;color:var(--sec);line-height:1.6}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important}
}
