/* ══════════════════════════════════════════════════════════════════════
   Pevra — public site
   ─────────────────────────────────────────────────────────────────────
   Product first. The page says plainly what Pevra does, then shows it
   doing it: real Pevra screens, built in HTML, playing short loops of the
   app's own copy — "Briefing 3 models on your question…", the depth dial,
   the Voice screen, the memory list.

   The rules, so this does not drift back into decoration:
     · Paper and ink, hairline borders, one ember accent used sparingly.
     · Geist for words, Geist Mono for anything the app would print —
       counts, timings, status. That is the whole type system.
     · No gradients, glows, blur, sparkles or tilt. Shadows only where a
       window sits on the page.
     · Motion lives inside the demos. Scroll does one short fade-up.
     · prefers-reduced-motion: every demo is drawn finished and still.

   Self-hosted fonts only, no libraries, no CDN.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ──────────────────────────────────────────────────────── */
:root{
  --paper:#fbfaf7; --paper-2:#f5f2ec; --card:#ffffff; --sunk:#f1ede6;
  --ink:#1b1713; --ink-2:#4a423a; --ink-3:#756c62; --ink-4:#a39a8f;
  --line:#e8e3da; --line-2:#dcd5ca; --line-3:#c9c0b2;
  --accent:#d9481f; --accent-ink:#ffffff; --accent-soft:#fbe9e2;
  --ok:#2f8a5b; --warn:#b5761b;
  --shadow:0 1px 2px rgba(27,23,19,.04), 0 12px 32px -12px rgba(27,23,19,.12);

  --sans:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --r1:6px; --r2:10px; --r3:14px; --pill:999px;
  --page:1160px; --gutter:clamp(20px,4vw,40px); --nav-h:60px;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}
html[data-theme="dark"]{
  --paper:#12100d; --paper-2:#17140f; --card:#1a1713; --sunk:#211d18;
  --ink:#f2ede5; --ink-2:#cbc3b8; --ink-3:#988f84; --ink-4:#6c645a;
  --line:#2a251f; --line-2:#352f28; --line-3:#4a4239;
  --accent:#ee6a40; --accent-ink:#1a120d; --accent-soft:#3a2219;
  --ok:#5fb98a; --warn:#d9a14a;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme:dark;
}

/* ── 2. Base ────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-padding-top:calc(var(--nav-h) + 16px)}
html,body{overflow-x:clip}
body{margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans);
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; font-synthesis-weight:none}
img,svg{display:block; max-width:100%}
button{font:inherit; color:inherit; background:none; border:0; cursor:pointer; padding:0}
a{color:inherit; text-decoration:none}
h1,h2,h3,h4,p{margin:0}
ul,ol{margin:0; padding:0; list-style:none}
::selection{background:var(--accent-soft)}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:4px}

.wrap{width:100%; max-width:var(--page); margin-inline:auto; padding-inline:var(--gutter)}
.skip{position:fixed; top:-100px; left:16px; z-index:400; background:var(--card);
  border:1px solid var(--line-2); padding:10px 16px; border-radius:var(--r2)}
.skip:focus{top:16px}
.mono{font-family:var(--mono)}

/* ── 3. Type ────────────────────────────────────────────────────────── */
.kicker{font-family:var(--mono); font-size:.75rem; color:var(--ink-3); letter-spacing:.02em}
.h1{font-weight:600; font-size:clamp(2.2rem,5.2vw,3.9rem); line-height:1.06; letter-spacing:-.035em; text-wrap:balance}
.h2{font-weight:600; font-size:clamp(1.7rem,3.4vw,2.6rem); line-height:1.1; letter-spacing:-.03em; text-wrap:balance}
.h3{font-weight:600; font-size:1.15rem; line-height:1.3; letter-spacing:-.015em}
.lede{font-size:clamp(1.05rem,1.4vw,1.18rem); color:var(--ink-2); line-height:1.55; max-width:56ch; text-wrap:pretty}
.body{color:var(--ink-2); max-width:52ch}
.head{display:flex; flex-direction:column; gap:14px; max-width:680px}

/* ── 4. Buttons ─────────────────────────────────────────────────────── */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; height:40px; padding:0 16px;
  border-radius:var(--r2); font-weight:500; font-size:.94rem; white-space:nowrap; border:1px solid transparent;
  transition:background .15s, border-color .15s, color .15s}
.btn svg{width:15px; height:15px}
.btn-primary{background:var(--ink); color:var(--paper)}
.btn-primary:hover{background:var(--ink-2)}
.btn-ghost{border-color:var(--line-2); background:var(--card); color:var(--ink)}
.btn-ghost:hover{border-color:var(--line-3)}
.btn-lg{height:46px; padding:0 20px; font-size:1rem}
.link{color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:4px}
.link:hover{text-decoration-color:var(--ink)}

/* ── 5. Navigation ──────────────────────────────────────────────────── */
.nav{position:sticky; top:0; z-index:100; height:var(--nav-h); background:var(--paper);
  border-bottom:1px solid transparent; transition:border-color .2s}
.nav.scrolled{border-bottom-color:var(--line)}
.nav-in{height:100%; display:flex; align-items:center; gap:28px}
.brand{display:flex; align-items:center; gap:9px; font-weight:600; font-size:1.05rem; letter-spacing:-.02em}
.brand svg{width:24px; height:24px; color:var(--ink)}
.brand-ai{color:var(--ink-3); font-weight:500}
.nav-links{display:flex; gap:2px}
.nav-links a{padding:8px 12px; border-radius:var(--r1); color:var(--ink-2); font-size:.93rem}
.nav-links a:hover{color:var(--ink)}
.nav-links a[aria-current="page"]{color:var(--ink); font-weight:500}
.nav-actions{margin-left:auto; display:flex; align-items:center; gap:8px}
.nav-actions .btn{height:36px; padding:0 14px; font-size:.9rem}
.icon-btn{width:36px; height:36px; display:grid; place-items:center; border-radius:var(--r2); color:var(--ink-3)}
.icon-btn:hover{color:var(--ink); background:var(--sunk)}
.icon-btn svg{width:17px; height:17px}
.burger{display:none}
.sheet{position:fixed; inset:var(--nav-h) 0 auto 0; z-index:99; background:var(--paper); border-bottom:1px solid var(--line);
  padding:8px var(--gutter) 24px; display:flex; flex-direction:column}
.sheet[hidden]{display:none}
body.is-locked{overflow:hidden}
.sheet a:not(.btn){padding:14px 0; border-bottom:1px solid var(--line); font-size:1.05rem}
.sheet .btn{margin-top:18px}
@media (max-width:820px){
  .nav-links,.nav-actions .btn-ghost{display:none}
  .burger{display:grid}
}

/* ── 6. Sections & reveal ───────────────────────────────────────────── */
.sec{padding:clamp(72px,10vw,128px) 0; border-top:1px solid var(--line)}
.sec.flush{border-top:0}
.js .rv{opacity:0; transform:translateY(8px); transition:opacity .6s var(--ease), transform .6s var(--ease)}
.js .rv.in{opacity:1; transform:none}
@media (prefers-reduced-motion:reduce){ .js .rv{opacity:1; transform:none; transition:none} }

/* ── 7. Hero ────────────────────────────────────────────────────────── */
.hero{padding:clamp(48px,8vw,96px) 0 clamp(64px,9vw,112px)}
.hero .cta-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}
.facts{display:flex; flex-wrap:wrap; gap:6px 22px; font-size:.88rem; color:var(--ink-3)}
.facts span{display:inline-flex; align-items:center; gap:8px}
.facts span::before{content:""; width:5px; height:5px; border-radius:50%; background:var(--line-3)}

/* ── 8. The window: a Pevra screen ──────────────────────────────────── */
.win{background:var(--card); border:1px solid var(--line-2); border-radius:var(--r3); box-shadow:var(--shadow); overflow:hidden;
  display:flex; flex-direction:column}
.win-bar{height:40px; flex:none; display:flex; align-items:center; gap:10px; padding:0 14px; border-bottom:1px solid var(--line);
  font-size:.8rem; color:var(--ink-3)}
.win-bar .dots{display:flex; gap:6px}
.win-bar .dots i{width:9px; height:9px; border-radius:50%; background:var(--line-2)}
.win-bar .t{display:flex; align-items:center; gap:6px; color:var(--ink-2); font-weight:500}
.win-bar .t svg{width:14px; height:14px; flex:none}
.win-bar .t{min-width:0; white-space:nowrap}
@media (max-width:420px){ .win-bar .r{display:none} }
.win-bar .r{margin-left:auto; font-family:var(--mono); font-size:.72rem}
/* Every demo says it is one. */
.ex{font-family:var(--mono); font-size:.66rem; line-height:1.5; color:var(--ink-3); border:1px solid var(--line-2);
  border-radius:var(--pill); padding:1px 8px; white-space:nowrap}

/* App layout: sidebar + chat */
.app{display:grid; grid-template-columns:210px 1fr; height:clamp(500px,48vw,580px)}
.side{border-right:1px solid var(--line); padding:12px 10px; display:flex; flex-direction:column; gap:1px; background:var(--paper-2); min-height:0; overflow:hidden}
.conv{padding:7px 10px; border-radius:var(--r1); font-size:.84rem; color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.conv.on{background:var(--card); color:var(--ink); box-shadow:inset 0 0 0 1px var(--line)}
.allow{height:3px; border-radius:3px; background:var(--line); margin-top:8px; overflow:hidden}
.allow i{display:block; height:100%; width:31%; background:var(--ink-2)}
.main{display:flex; flex-direction:column; min-width:0; min-height:0}

/* Messages, in the app's shape: avatar, a role line, then the content. */
.thread{flex:1; min-height:0; overflow:hidden; padding:22px clamp(16px,3vw,32px) 8px; display:flex; flex-direction:column; gap:18px;
  justify-content:flex-end; transition:opacity .35s}
.thread.fade{opacity:0}
.thread.top{justify-content:flex-start}
.msg{display:grid; grid-template-columns:26px 1fr; gap:12px; animation:in .35s var(--ease) both}
.msg-av{width:26px; height:26px; border-radius:7px; display:grid; place-items:center; font-size:.74rem; font-weight:600;
  background:var(--sunk); color:var(--ink-2); border:1px solid var(--line)}
.msg-av svg{width:16px; height:16px; color:var(--ink)}
.msg-role{font-size:.8rem; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:8px; margin-bottom:3px}
.msg-model{font-family:var(--mono); font-size:.68rem; font-weight:400; color:var(--ink-3); padding:1px 7px; border:1px solid var(--line); border-radius:var(--pill)}
.msg-content{font-size:.92rem; color:var(--ink); line-height:1.6; min-width:0}
.msg-content p + p{margin-top:8px}
.msg-content sup{font-family:var(--mono); font-size:.66rem; color:var(--accent); margin-left:1px}
@keyframes in{from{opacity:0; transform:translateY(6px)}}
.caret{display:inline-block; width:7px; height:1.05em; vertical-align:-3px; background:var(--ink); margin-left:2px; animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.typing{color:var(--ink-3); font-size:.88rem}

.attach{display:inline-flex; align-items:center; gap:8px; padding:7px 11px; border:1px solid var(--line-2); border-radius:var(--r2);
  font-size:.8rem; color:var(--ink-2); background:var(--card); margin-top:6px; width:max-content; max-width:100%}
.attach svg{width:15px; height:15px; color:var(--ink-3); flex:none}
.attach small{font-family:var(--mono); color:var(--ink-4); font-size:.7rem}

/* Deep Research progress — the app's lanes, one per model. */
.drc{border:1px solid var(--line); border-radius:var(--r2); padding:12px 14px 10px; margin-top:4px; background:var(--paper)}
.drc-head{display:flex; justify-content:space-between; gap:10px; font-size:.78rem; margin-bottom:10px}
.drc-head b{font-weight:600}
.drc-head b span{color:var(--ink-3); font-weight:400}
.drc-meter{font-family:var(--mono); font-size:.72rem; color:var(--ink-3); white-space:nowrap}
.lane{display:grid; grid-template-columns:58px 1fr minmax(0,190px); align-items:center; gap:12px; height:26px; font-size:.78rem}
.lane-who{color:var(--ink-2)}
.lane-track{position:relative; height:1px; background:var(--line-2)}
.lane-track i{position:absolute; left:0; top:0; height:1px; width:var(--p,0%); background:var(--ink-2); transition:width .5s var(--ease)}
.lane-track b{position:absolute; top:-3.5px; left:var(--p,0%); width:8px; height:8px; margin-left:-4px; border-radius:50%;
  background:var(--card); border:1.5px solid var(--ink-2); transition:left .5s var(--ease)}
.lane.live .lane-track b{border-color:var(--accent); background:var(--accent)}
.lane.done .lane-track b{background:var(--ink-2)}
.lane-plate{font-family:var(--mono); font-size:.7rem; color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.drc-status{margin-top:8px; padding-top:8px; border-top:1px solid var(--line); font-size:.8rem; color:var(--ink-2); min-height:1.6em}

.srcs{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px}
.src{display:inline-flex; align-items:center; gap:7px; height:26px; padding:0 9px 0 5px; border:1px solid var(--line); border-radius:var(--r1);
  font-size:.74rem; color:var(--ink-2); background:var(--card); animation:in .3s var(--ease) both}
.src .n{min-width:16px; height:16px; padding:0 3px; border-radius:4px; background:var(--sunk); display:grid; place-items:center; font-family:var(--mono); font-size:.64rem; color:var(--ink-2)}

/* Composer, as in the app */
.composer{padding:10px clamp(16px,3vw,32px) 16px; flex:none}
.cbox{border:1px solid var(--line-2); border-radius:var(--r3); background:var(--card); padding:11px 10px 9px 14px; transition:border-color .2s}
.cbox.hot{border-color:var(--ink-3)}
.send{margin-left:auto; width:30px; height:30px; border-radius:var(--r1); background:var(--ink); color:var(--paper); display:grid; place-items:center; transition:transform .15s}
.send svg{width:15px; height:15px}
.send.press{transform:scale(.9)}

@media (max-width:760px){
  .app{grid-template-columns:1fr; height:700px}
  .side{display:none}
  /* The status line under the lanes already says what each one is doing. */
  .lane{grid-template-columns:52px 1fr}
  .lane-plate{display:none}
}

/* ── 9. Numbered walkthrough ────────────────────────────────────────── */
.steps{display:flex; flex-direction:column; margin-top:clamp(40px,6vw,64px)}
.step{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(24px,5vw,72px); align-items:center;
  padding:clamp(36px,5vw,56px) 0; border-top:1px solid var(--line)}
.step:first-child{border-top:0; padding-top:0}
.step-n{font-family:var(--mono); font-size:.8rem; color:var(--accent)}
@media (max-width:860px){ .step{grid-template-columns:1fr} }

/* Panels used inside small demos */
.panel{background:var(--card); border:1px solid var(--line-2); border-radius:var(--r3); box-shadow:var(--shadow); padding:22px; min-height:300px;
  display:flex; flex-direction:column; gap:14px; position:relative; overflow:hidden}

/* Demo: depth dial */
.dial{position:relative; padding-top:6px}
.dial-track{position:relative; height:2px; background:var(--line-2); margin:10px 9px 0}
.dial-track i{position:absolute; left:0; top:0; bottom:0; width:var(--d,0%); background:var(--ink); transition:width .5s var(--ease)}
.dial-track b{position:absolute; top:-7px; left:var(--d,0%); width:16px; height:16px; margin-left:-8px; border-radius:50%;
  background:var(--card); border:2px solid var(--ink); transition:left .5s var(--ease)}
.dial-stops{display:grid; grid-template-columns:repeat(4,1fr); margin-top:14px}
.dial-stops span{font-size:.82rem; color:var(--ink-3); transition:color .3s}
.dial-stops span:nth-child(2){text-align:center; transform:translateX(-18%)}
.dial-stops span:nth-child(3){text-align:center; transform:translateX(18%)}
.dial-stops span:last-child{text-align:right}
.dial-stops span.on{color:var(--ink); font-weight:500}
.chips{display:flex; flex-wrap:wrap; align-items:center; gap:6px}
.chip{display:inline-flex; align-items:center; height:28px; padding:0 11px; border-radius:var(--pill); border:1px solid var(--line-2);
  font-size:.8rem; color:var(--ink-3); transition:all .25s}
.chip.on{border-color:var(--ink); color:var(--ink); background:var(--sunk)}
.resolved{font-family:var(--mono); font-size:.72rem; color:var(--ink-3); margin-left:4px}

/* Demo: reading sources */
.rows{display:flex; flex-direction:column}
.row{display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--line);
  font-size:.85rem; animation:in .3s var(--ease) both}
.row:first-child{border-top:0}
.row .n{font-family:var(--mono); font-size:.7rem; color:var(--ink-4)}
.row .d{color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.row .d small{color:var(--ink-3); font-size:.78rem; margin-left:6px}
.row .s{font-family:var(--mono); font-size:.7rem; color:var(--ink-3)}
.row .s.kept{color:var(--ok)}
.row.drop .d{color:var(--ink-4); text-decoration:line-through; text-decoration-color:var(--ink-4)}
.tally{margin-top:auto; display:flex; gap:18px; font-family:var(--mono); font-size:.74rem; color:var(--ink-3); padding-top:12px; border-top:1px solid var(--line)}
.tally b{color:var(--ink); font-weight:500}

/* Demo: answer with citations */
.answer{font-size:.95rem; line-height:1.7}
.cite{font-family:var(--mono); font-size:.68rem; color:var(--ink-3); border:1px solid var(--line-2); border-radius:4px; padding:0 4px; margin-left:2px;
  vertical-align:2px; transition:all .2s}
.cite.on{color:var(--accent-ink); background:var(--accent); border-color:var(--accent)}
.mark{transition:background .3s; border-radius:3px}
.mark.on{background:var(--accent-soft)}
.quote{margin-top:auto; border:1px solid var(--line); border-radius:var(--r2); padding:12px 14px; background:var(--paper); font-size:.85rem}
.quote .q-src{display:flex; justify-content:space-between; gap:10px; font-family:var(--mono); font-size:.7rem; color:var(--ink-3); margin-bottom:6px}
.quote p{color:var(--ink-2); transition:opacity .25s}
.quote.swap p,.quote.swap .q-src{opacity:0}

/* ── 10. Feature rows (more demos) ──────────────────────────────────── */
.feat{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(24px,5vw,72px); align-items:center}
.feat + .feat{margin-top:clamp(64px,8vw,104px)}
.feat.flip{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.feat.flip .feat-copy{order:2}
.feat-copy{display:flex; flex-direction:column; gap:12px}
.feat-copy ul{margin-top:6px; display:flex; flex-direction:column; border-top:1px solid var(--line)}
.feat-copy li{padding:10px 0; border-bottom:1px solid var(--line); font-size:.94rem; color:var(--ink-2)}
@media (max-width:860px){ .feat,.feat.flip{grid-template-columns:1fr} .feat.flip .feat-copy{order:0} }

/* Demo: Pevra Voice — the app's screen: state, "I heard", reply, controls */
.voice{height:440px; display:flex; flex-direction:column}
.v-top{display:flex; justify-content:space-between; align-items:center; padding:16px 18px 0; font-size:.8rem}
.v-state{display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:.72rem; color:var(--ink-2);
  border:1px solid var(--line); border-radius:var(--pill); padding:3px 10px}
.v-state i{width:7px; height:7px; border-radius:50%; background:var(--ok)}
.v-state[data-s="think"] i{background:var(--warn)}
.v-state[data-s="speak"] i{background:var(--accent)}
.signal{display:flex; align-items:center; gap:3px; height:28px}
.signal i{width:3px; border-radius:2px; background:var(--ink-3); height:calc(3px + var(--h,0) * 24px)}
.v-script{flex:1; padding:22px 22px 10px; display:flex; flex-direction:column; gap:16px; overflow:hidden}
.v-line .l{font-family:var(--mono); font-size:.7rem; color:var(--ink-4); margin-bottom:4px}
.v-line p{font-size:1.05rem; line-height:1.5; letter-spacing:-.01em}
.v-line.you p{color:var(--ink-2)}
.v-line.cut p::after{content:" — interrupted"; font-family:var(--mono); font-size:.7rem; color:var(--accent)}
.v-ctrl{display:flex; gap:6px; padding:12px 14px; border-top:1px solid var(--line); flex-wrap:wrap}
.v-ctrl span{height:32px; padding:0 12px; display:inline-flex; align-items:center; border:1px solid var(--line-2); border-radius:var(--pill); font-size:.78rem; color:var(--ink-2)}
.v-ctrl .on{background:var(--ink); color:var(--paper); border-color:var(--ink)}
.v-ctrl .end{margin-left:auto; color:var(--accent); border-color:var(--accent-soft)}

/* Demo: memory — Settings › Memory list plus the chat using it */
.mem-grid{display:grid; grid-template-columns:1fr 1fr; height:440px}
.mem-list{border-right:1px solid var(--line); padding:16px; display:flex; flex-direction:column; gap:2px; background:var(--paper-2); min-width:0}
.mem-list .h{font-size:.8rem; font-weight:600; margin-bottom:8px}
.mem-row{display:grid; grid-template-columns:auto 1fr auto; gap:8px; align-items:baseline; padding:8px 10px; border-radius:var(--r1);
  background:var(--card); border:1px solid var(--line); font-size:.8rem; margin-bottom:6px; animation:in .35s var(--ease) both}
.mem-row b{font-family:var(--mono); font-weight:400; font-size:.72rem; color:var(--ink-3)}
.mem-row span{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mem-row em{font-style:normal; color:var(--ink-4)}
.mem-row.new{border-color:var(--ink-3)}
.toast{margin-top:auto; align-self:flex-start; font-size:.76rem; padding:6px 10px; border-radius:var(--r1); background:var(--ink); color:var(--paper); animation:in .3s var(--ease) both}
.mem-chat{display:flex; flex-direction:column; min-width:0}
.mem-chat .thread{padding:16px}
@media (max-width:620px){ .mem-grid{grid-template-columns:1fr; height:auto} .mem-list{border-right:0; border-bottom:1px solid var(--line); min-height:210px} .mem-chat{height:300px} }

/* Demo: camera (simulated) */
.cam{position:relative; aspect-ratio:16/10; background:var(--sunk); border-bottom:1px solid var(--line); overflow:hidden}
.cam svg{position:absolute; inset:0; width:100%; height:100%}
.cam-tag{position:absolute; bottom:12px; left:12px; font-family:var(--mono); font-size:.68rem; padding:3px 8px; border-radius:var(--r1); background:var(--card); border:1px solid var(--line); color:var(--ink-2)}
.box{position:absolute; border:1.5px solid var(--accent); border-radius:6px; opacity:0; transform:scale(1.04); transition:opacity .4s, transform .4s var(--ease)}
.box.on{opacity:1; transform:none}
.box::before{content:attr(data-label); position:absolute; bottom:calc(100% + 4px); left:-1.5px; font-family:var(--mono); font-size:.66rem; white-space:nowrap;
  padding:1px 6px; border-radius:4px; background:var(--accent); color:var(--accent-ink)}
.cam-out{padding:16px 18px; min-height:118px}

/* Use cases */
.uses{display:flex; gap:4px; border-bottom:1px solid var(--line); margin-top:36px; overflow-x:auto; scrollbar-width:none}
.uses::-webkit-scrollbar{display:none}
.use-btn{padding:10px 14px; font-size:.94rem; color:var(--ink-3); border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap}
.use-btn[aria-selected="true"]{color:var(--ink); border-bottom-color:var(--ink)}
.use-panel{display:none; padding-top:28px}
.use-panel.on{display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:20px; animation:in .35s var(--ease)}
.use-panel .win .thread{justify-content:flex-start; padding:20px}
.use-side{display:flex; flex-direction:column; gap:12px}
.mini{border:1px solid var(--line); border-radius:var(--r2); padding:14px 16px; background:var(--card)}
.mini h4{font-family:var(--mono); font-weight:400; font-size:.72rem; color:var(--ink-3); margin-bottom:6px}
.mini li{font-size:.88rem; padding:3px 0; color:var(--ink-2)}
@media (max-width:760px){ .use-panel.on{grid-template-columns:1fr} }

/* ── 11. Research walkthrough ───────────────────────────────────────── */
.walk{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:clamp(28px,5vw,72px); margin-top:clamp(40px,6vw,64px)}
.wstep{padding:clamp(28px,8vh,72px) 0; border-top:1px solid var(--line); color:var(--ink-2); transition:color .3s}
.wstep:first-child{border-top:0; padding-top:0}
.js .wstep{color:var(--ink-4)}
.js .wstep .step-n{color:var(--ink-4); transition:color .3s}
.wstep h3{margin:6px 0 8px; font-size:1.35rem}
.wstep p{max-width:44ch}
.js .wstep.on{color:var(--ink-2)}
.js .wstep.on h3{color:var(--ink)}
.js .wstep.on .step-n{color:var(--accent)}
.js .wstep h3{color:var(--ink-3)}
.walk-vis{position:sticky; top:calc(var(--nav-h) + 32px); align-self:start}
.walk-vis .win{height:min(560px,calc(100svh - var(--nav-h) - 64px))}
.wv{padding:18px; display:flex; flex-direction:column; gap:14px; height:100%}
.wv-q{align-self:flex-end; max-width:88%; padding:9px 13px; border-radius:var(--r2); background:var(--sunk); font-size:.88rem}
.wv-rail{display:grid; grid-template-columns:repeat(10,1fr); gap:3px}
.wv-rail i{height:3px; border-radius:2px; background:var(--line)}
.wv-rail i.on{background:var(--ink)}
.wv-stage{font-family:var(--mono); font-size:.72rem; color:var(--ink-3); display:flex; justify-content:space-between}
.wv-stack{flex:1; display:grid; min-height:0}
.wv-panel{grid-area:1/1; align-self:start; display:flex; flex-direction:column; gap:8px; opacity:0; transform:translateY(6px);
  transition:opacity .35s var(--ease), transform .35s var(--ease); pointer-events:none}
.wv-panel.on{opacity:1; transform:none}
html:not(.js) .wv-panel:first-child{opacity:1; transform:none}
.part{display:flex; gap:10px; align-items:baseline; padding:9px 12px; border:1px solid var(--line); border-radius:var(--r2); font-size:.85rem; color:var(--ink-2); background:var(--card)}
.part b{font-family:var(--mono); font-weight:400; font-size:.7rem; color:var(--ink-3); flex:none}
.part em{font-style:normal; margin-left:auto; font-family:var(--mono); font-size:.68rem; color:var(--ink-3); flex:none}
.part em.ok{color:var(--ok)} .part em.warn{color:var(--warn)}
.hl{background:var(--accent-soft); border-radius:3px; padding:0 2px}
@media (max-width:900px){
  .walk{grid-template-columns:1fr}
  .walk-vis{top:calc(var(--nav-h) + 8px); z-index:2; order:-1}
  .walk-vis .win{height:340px}
  .wstep{padding:36px 0}
}

.modes{display:grid; grid-template-columns:repeat(4,1fr); margin-top:40px; border:1px solid var(--line); border-radius:var(--r3); background:var(--card); overflow:hidden}
.mode{padding:22px; display:flex; flex-direction:column; gap:8px; border-left:1px solid var(--line)}
.mode:first-child{border-left:0}
.mode .t{font-family:var(--mono); font-size:.76rem; color:var(--ink-3)}
.mode p{font-size:.9rem; color:var(--ink-2)}
@media (max-width:860px){ .modes{grid-template-columns:1fr 1fr} .mode:nth-child(3){border-left:0} .mode:nth-child(n+3){border-top:1px solid var(--line)} }
@media (max-width:520px){ .modes{grid-template-columns:1fr} .mode{border-left:0} .mode + .mode{border-top:1px solid var(--line)} }

/* ── 12. Pricing ────────────────────────────────────────────────────── */
.plans{display:grid; grid-template-columns:repeat(4,1fr); margin-top:40px; border:1px solid var(--line-2); border-radius:var(--r3); background:var(--card); overflow:hidden}
.plan{padding:24px; display:flex; flex-direction:column; gap:14px; border-left:1px solid var(--line); position:relative}
.plan:first-child{border-left:0}
.plan.plan-feat{background:var(--paper)}
.plan .flag{position:absolute; top:24px; right:20px; font-family:var(--mono); font-size:.7rem; color:var(--accent)}
.plan .name{font-weight:600; font-size:1.05rem}
.plan .blurb{color:var(--ink-3); font-size:.88rem; min-height:2.9em}
.plan .price{display:flex; align-items:baseline; gap:6px}
.plan .price b{font-size:2.2rem; font-weight:600; letter-spacing:-.03em}
.plan .price span{color:var(--ink-3); font-size:.88rem}
.plan .alw{font-family:var(--mono); font-size:.74rem; color:var(--ink-3); line-height:1.7; padding:10px 0; border-block:1px solid var(--line)}
.plan .alw .meter{height:2px; background:var(--line); margin-top:8px}
.plan .alw .meter i{display:block; height:100%; width:calc(var(--m) * 100%); min-width:3px; background:var(--ink-2)}
.plan ul{display:flex; flex-direction:column; gap:8px; font-size:.88rem; color:var(--ink-2)}
.plan li{display:flex; gap:9px}
.plan li svg{width:15px; height:15px; color:var(--ink-3); flex:none; margin-top:4px}
.plan .btn{margin-top:auto}
@media (max-width:1020px){ .plans{grid-template-columns:1fr 1fr} .plan:nth-child(3){border-left:0} .plan:nth-child(n+3){border-top:1px solid var(--line)} }
@media (max-width:620px){ .plans{grid-template-columns:1fr} .plan{border-left:0} .plan + .plan{border-top:1px solid var(--line)} }
.price-note{display:flex; flex-wrap:wrap; gap:6px 24px; margin-top:20px; font-size:.85rem; color:var(--ink-3)}
.price-note a{color:var(--ink-2); text-decoration:underline; text-underline-offset:3px}
.cmp-toggle{margin-top:28px}
.cmp-toggle svg{transition:transform .25s}
.cmp-toggle [aria-expanded="true"] svg{transform:rotate(90deg)}
.cmp{display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s var(--ease)}
.cmp.open{grid-template-rows:1fr}
.cmp > div{overflow:hidden}
.cmp-scroll{overflow-x:auto; margin-top:20px; border:1px solid var(--line); border-radius:var(--r3); background:var(--card)}
.cmp table{width:100%; border-collapse:collapse; min-width:620px; font-size:.88rem}
.cmp th,.cmp td{padding:12px 16px; text-align:left; border-bottom:1px solid var(--line)}
.cmp thead th{font-family:var(--mono); font-weight:400; font-size:.74rem; color:var(--ink-3)}
.cmp tr:last-child td{border-bottom:0}
.cmp td:first-child{color:var(--ink-2)}
.cmp .yes{color:var(--ink)} .cmp .no{color:var(--ink-4)}
@media (max-width:760px){ .price-strip{grid-template-columns:1fr 1fr} }

/* FAQ */
.faq{max-width:780px; margin-top:36px; border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line)}
.faq-q{width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; text-align:left; font-weight:500; font-size:1rem}
.faq-ico{width:16px; height:16px; position:relative; flex:none}
.faq-ico::before,.faq-ico::after{content:""; position:absolute; left:2px; right:2px; top:7.5px; height:1.5px; background:var(--ink-3); transition:transform .25s var(--ease)}
.faq-ico::after{transform:rotate(90deg)}
.faq-q[aria-expanded="true"] .faq-ico::after{transform:rotate(0)}
.faq-a{display:grid; grid-template-rows:0fr; transition:grid-template-rows .35s var(--ease)}
.faq-a > div{overflow:hidden}
.faq-a p{padding-bottom:18px; color:var(--ink-2); max-width:66ch}
.faq-a a{color:var(--ink); text-decoration:underline; text-underline-offset:3px}
.faq-q[aria-expanded="true"] + .faq-a{grid-template-rows:1fr}

/* ── 13. Page heads & closing CTA ───────────────────────────────────── */
.page-head{padding:clamp(48px,8vw,96px) 0 clamp(40px,6vw,64px)}
.close{padding:clamp(72px,10vw,120px) 0; border-top:1px solid var(--line)}
.close-in{display:flex; justify-content:space-between; align-items:flex-end; gap:28px; flex-wrap:wrap}
.close .cta-row{display:flex; gap:10px; flex-wrap:wrap}

/* ── 14. Footer ─────────────────────────────────────────────────────── */
.foot{border-top:1px solid var(--line); padding:56px 0 28px; font-size:.9rem; background:var(--paper-2)}
.foot-top{display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:28px}
.foot-brand{display:flex; flex-direction:column; gap:10px}
.foot-brand p{color:var(--ink-3); max-width:30ch}
.foot-col{display:flex; flex-direction:column; gap:7px}
.foot-col h4{font-family:var(--mono); font-size:.72rem; color:var(--ink-4); font-weight:400; margin-bottom:4px}
.foot-col a{color:var(--ink-2)}
.foot-col a:hover{color:var(--ink)}
.foot-fine{margin-top:44px; color:var(--ink-3); font-size:.8rem; max-width:80ch}
.foot-bot{margin-top:18px; padding-top:18px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; color:var(--ink-4); font-size:.8rem}
@media (max-width:820px){ .foot-top{grid-template-columns:1fr 1fr} .foot-brand{grid-column:1/-1} }

/* ── 15. Free week offer — rendered by the server only while it can be claimed ── */
.free-week-bar{position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom)); z-index:60;
  transform:translateX(-50%); display:flex; align-items:center; gap:14px;
  width:max-content; max-width:calc(100vw - 32px); padding:8px 8px 8px 16px;
  border-radius:var(--r2); border:1px solid var(--line-2); background:var(--card);
  color:var(--ink-2); font-size:.9rem; box-shadow:var(--shadow)}
.free-week-bar b{color:var(--ink)}
.free-week-bar .btn{flex:none; height:36px}
@media (max-width:760px){
  .free-week-bar{flex-direction:column; align-items:stretch; gap:8px; width:auto; left:16px; right:16px;
    transform:none; max-width:none; padding:12px; text-align:center; font-size:.84rem}
}

/* ── 16. Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important; transition:none!important}
}

/* ══════════════════════════════════════════════════════════════════════
   Home (.ph) — one flowing story, built round the Pevra mark's
   "boomerang": a line that flicks out and snaps back into the curl.
   Uses the site's tokens, so it follows the light/dark switch. Only the
   home page carries .ph. Motion stops (and is drawn finished) under
   prefers-reduced-motion or when .ph-still is set by the pause button.
   ══════════════════════════════════════════════════════════════════════ */
.ph{
  --ph-deep:#211C17; --ph-deep-2:#3a3126; --ph-on-deep:#f4eee4; --ph-on-deep-2:#c9c0b3;
  --ph-chip:#F1EADF; --ph-tan:#EDE4D6; --ph-edge:rgba(27,23,19,.09); --ph-rule:rgba(27,23,19,.14);
  --ph-display:"Bricolage Grotesque",var(--sans);
  --ph-out:cubic-bezier(.16,.84,.28,1); --ph-spring:cubic-bezier(.22,1.32,.36,1); --ph-loop:cubic-bezier(.62,.02,.24,1);
  --ph-curl:path("M5 53C5 17 30 4 47 12c14 6.5 14.5 28-1 32.5-11 3.2-18-5-15-12.5");
  --ph-wave:path("M5 53C15 41 25 41 33 53c8 12 18 12 26 0c3-5 4-10 3-14");
  font-family:"Instrument Sans",var(--sans);
}
html[data-theme="dark"] .ph{
  --ph-deep:#231e18; --ph-chip:#2a251f; --ph-tan:#1e1a15;
  --ph-edge:rgba(242,237,229,.08); --ph-rule:rgba(242,237,229,.14);
}
.ph-wrap{max-width:1240px; margin-inline:auto; padding-inline:clamp(20px,4vw,48px)}
.ph-sec{padding-top:clamp(120px,14vw,190px)}
.ph .rv{transform:translateY(22px); transition-duration:.9s; transition-timing-function:var(--ph-out)}
.ph .rv.in{transform:none}
.js .ph .ph-slow{transition-duration:1.6s; transition-delay:.6s}

/* type */
.ph-h1,.ph-h2,.ph-h3,.ph-price,.ph-ask-h,.ph-q,.ph-demo-title{font-family:var(--ph-display); font-weight:600; color:var(--ink)}
.ph-h1{font-size:clamp(50px,6.4vw,96px); line-height:.92; letter-spacing:-.05em}
.ph-h1 span{display:block}
.ph-h2{font-size:clamp(42px,5.6vw,82px); line-height:.95; letter-spacing:-.05em}
.ph-h3{font-size:clamp(30px,3.4vw,46px); line-height:1; letter-spacing:-.04em}
.ph-lede{margin-top:28px; max-width:34ch; font-size:clamp(18px,1.6vw,21px); line-height:1.5; color:var(--ink-2)}
.ph-side{max-width:32ch; font-size:18px; line-height:1.55; color:var(--ink-2)}
.ph-note,.ph-small{font-size:15px; color:var(--ink-3)}
.ph-small{margin-top:22px}
.ph-tag{display:block; margin-bottom:14px; font-size:12px; color:var(--ink-3)}
.ph-link{color:var(--ink); background:linear-gradient(currentColor,currentColor) 0 100%/100% 1.5px no-repeat; padding-bottom:1px}
.ph-link:hover{color:var(--accent)}

/* buttons */
.ph-btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; height:56px; padding:0 28px; border-radius:999px;
  font-size:16px; font-weight:600; white-space:nowrap; transition:background-color .28s var(--ph-out), transform .28s var(--ph-spring)}
.ph-btn:hover{transform:translateY(-2px)}
.ph-btn:active{transform:scale(.97)}
.ph-btn svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; transition:transform .28s var(--ph-spring)}
.ph-btn:hover svg{transform:translateX(3px)}
.ph-btn-ember{background:var(--accent); color:var(--accent-ink)}
.ph-btn-ember:hover{filter:brightness(.92)}
.ph-btn-line{border:1.5px solid var(--ink); color:var(--ink)}
.ph-btn-line:hover{background:var(--sunk)}
.ph-btn-dark{background:#211C17; color:#F6F1E9}
.ph-btn-dark:hover{background:#3a3126}
.ph-cta-row{margin-top:34px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px}
.ph-pause{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 4px; font-size:14px; color:var(--ink-3)}
.ph-pause:hover{color:var(--ink)}
.ph-pause svg{width:14px; height:14px; fill:currentColor}
.ph-pause .ph-play,.ph-still .ph-pause .ph-pz{display:none}
.ph-still .ph-pause .ph-play{display:block}
@media (prefers-reduced-motion:reduce){.ph-pause{display:none}}

@keyframes ph-rise{from{opacity:0; transform:translateY(22px)}to{opacity:1; transform:none}}
@keyframes ph-draw{to{stroke-dashoffset:0}}
@keyframes ph-type{to{clip-path:inset(0 0 0 0)}}
@keyframes ph-cycle{0%{opacity:0; transform:translateY(8px)}4%,29%{opacity:1; transform:none}33%,100%{opacity:0; transform:translateY(-8px)}}
.ph-in{animation:ph-rise .9s var(--ph-out) both}

/* ── hero ── */
.ph-hero{padding-top:clamp(40px,6vw,80px); display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr)); gap:clamp(20px,4vw,56px); align-items:center}
@media (min-width:900px){.ph-hero{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}}
.ph-heromark-wrap{display:flex; flex-direction:column; align-items:center}
.ph-heromark{width:100%; max-width:500px; height:auto; overflow:visible}
.ph svg path{fill:none; stroke-linecap:round}
.ph-inkstroke{stroke:var(--ink)}
.ph-node,.ph-ring,.ph-boomnode circle{fill:var(--accent)}
.ph-draw{stroke-dasharray:1; stroke-dashoffset:1; animation:ph-draw 1.6s var(--ph-out) forwards}
.ph-node{transform-box:fill-box; transform-origin:center; transform:scale(0); animation:ph-pop .7s var(--ph-spring) 1.9s forwards}
@keyframes ph-pop{to{transform:scale(1)}}
.ph-ring{transform-box:fill-box; transform-origin:center; opacity:0; animation:ph-ring 2.6s var(--ph-out) 2.4s infinite}
@keyframes ph-ring{0%{opacity:.45; transform:scale(1)}100%{opacity:0; transform:scale(3.4)}}

/* the boomerang: hero (after the draw) and the closing band */
@keyframes ph-boom{0%,20%{d:var(--ph-curl)}45%,58%{d:var(--ph-wave)}85%,100%{d:var(--ph-curl)}}
@keyframes ph-boomnode{0%,20%{transform:none}45%,58%{transform:translate(28.4px,10.4px)}85%,100%{transform:none}}
@supports (d:path("M0 0")){
  .ph-d1{animation:ph-draw 1.6s var(--ph-out) .3s forwards, ph-boom 6.5s var(--ph-loop) 3.2s infinite}
  .ph-d2{animation:ph-draw 1.6s var(--ph-out) .45s forwards, ph-boom 6.5s var(--ph-loop) 3.35s infinite}
  .ph-d3{animation:ph-draw 1.6s var(--ph-out) .6s forwards, ph-boom 6.5s var(--ph-loop) 3.5s infinite}
  .ph-d4{animation:ph-draw 1.6s var(--ph-out) .8s forwards, ph-boom 6.5s var(--ph-loop) 3.65s infinite}
  .ph-heronode{animation:ph-boomnode 6.5s var(--ph-loop) 3.65s infinite}
  .ph-morph{animation:ph-boom 7s var(--ph-loop) infinite}
  .ph-m2{animation-delay:.15s}.ph-m3{animation-delay:.3s}
  .ph-morphnode{animation:ph-boomnode 7s var(--ph-loop) infinite}
}

/* ── demo ── */
.ph-demo-sec{padding-top:clamp(48px,6vw,80px)}
.ph-demo,.ph-auto{border-radius:28px; background:var(--card); border:1px solid var(--ph-edge); box-shadow:0 40px 80px -40px rgba(27,23,19,.25); overflow:hidden}
.ph-demo-bar{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 24px; border-bottom:1px solid var(--ph-edge)}
.ph-demo-brand{display:flex; align-items:center; gap:8px; font-family:var(--ph-display); font-weight:600; font-size:17px; letter-spacing:-.03em}
.ph-demo-brand svg{width:20px; height:20px}
.ph-demo-meta{font-size:13px; color:var(--ink-3)}
.ph-demo-body{padding:clamp(28px,5vw,64px) clamp(16px,4vw,48px) clamp(28px,5vw,56px); display:flex; flex-direction:column; align-items:center}
.ph-demo-title{text-align:center; font-size:clamp(24px,3vw,36px); letter-spacing:-.035em}
.ph-composer{margin-top:24px; width:100%; max-width:640px; padding:18px 20px; border-radius:22px; border:1px solid var(--ph-rule); background:var(--paper); display:flex; flex-direction:column; gap:16px}
.ph-composer-text{font-size:17px; line-height:1.5; min-height:26px}
.ph-composer-foot{display:flex; justify-content:flex-end}
.ph-send{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--accent); color:var(--accent-ink); animation:ph-press .5s var(--ph-spring) 3.2s both}
@keyframes ph-press{40%{transform:scale(.82)}100%{transform:scale(1)}}
.ph-send svg{width:16px; height:16px; stroke:currentColor; stroke-width:2.2; stroke-linejoin:round}
.ph-type{display:inline-block; clip-path:inset(0 100% 0 0); animation:ph-type 2.4s steps(38) .6s forwards}
.ph-caret{display:inline-block; width:2px; height:1.15em; background:var(--accent); vertical-align:-3px; margin-left:2px; animation:ph-blink 1s steps(1) infinite}
@keyframes ph-blink{50%{opacity:0}}
.ph-ans{width:100%; max-width:640px; display:grid; grid-template-rows:0fr; animation:ph-open .8s var(--ph-out) 3.5s forwards}
@keyframes ph-open{to{grid-template-rows:1fr}}
.ph-ans-in{overflow:hidden; min-height:0}
.ph-ans-pad{padding-top:22px; display:flex; flex-direction:column; gap:16px}
.ph-models{display:flex; flex-wrap:wrap; gap:8px}
.ph-model{display:inline-flex; align-items:center; gap:8px; height:32px; padding:0 12px; border-radius:999px; background:var(--ph-chip); font-size:13px; font-weight:600}
.ph-model > i,.ph-three i{flex:none; width:8px; height:8px; border-radius:50%}
.ph-st{position:relative; width:14px; height:14px}
.ph-st svg{position:absolute; inset:0; width:14px; height:14px; stroke-width:3; stroke-linejoin:round; transform-origin:center}
.ph-spinner{stroke:var(--ink-3); animation:ph-spin .9s linear infinite, ph-out .3s ease forwards}
.ph-tick{stroke:var(--ok); animation:ph-tickin .5s var(--ph-spring) both}
@keyframes ph-spin{to{transform:rotate(360deg)}}
@keyframes ph-out{to{opacity:0; transform:scale(.2)}}
@keyframes ph-tickin{from{opacity:0; transform:scale(.2) rotate(-40deg)}to{opacity:1; transform:none}}
.ph-pop{animation:ph-popin .6s var(--ph-spring) both}
@keyframes ph-popin{from{opacity:0; transform:scale(.6) translateY(8px)}to{opacity:1; transform:none}}
.ph-answer{font-size:clamp(17px,1.8vw,20px); line-height:1.5; letter-spacing:-.01em}
.ph-wipe{clip-path:inset(0 100% 0 0); animation:ph-type 1.3s var(--ph-loop) 6.2s forwards}
.ph-num{display:inline-flex; align-items:center; justify-content:center; margin-left:5px; width:20px; height:20px; border-radius:50%;
  background:var(--accent); color:var(--accent-ink); font-family:var(--mono); font-size:10.5px; vertical-align:2px}
.ph-stat{font-size:13px; color:var(--ink-3)}
.ph-fade{animation:ph-rise .7s var(--ph-out) both}
.ph-restart,.ph-restart *{animation:none!important}

/* ── shared layouts ── */
.ph-split{display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:24px}
.ph-two{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr)); gap:clamp(32px,5vw,72px); align-items:start}

/* ── auto: Claude → Gemini → Claude ── */
.ph-auto{margin-top:clamp(40px,5vw,64px); padding:clamp(28px,5vw,64px); box-shadow:0 40px 80px -48px rgba(27,23,19,.3); overflow:visible}
.ph-auto-q{position:relative; height:clamp(84px,10vw,120px)}
.ph-q{position:absolute; inset:0; font-size:clamp(28px,4.4vw,60px); line-height:1.02; letter-spacing:-.04em; opacity:0; animation:ph-cycle 9s var(--ph-loop) infinite}
.ph-q2{animation-delay:3s}.ph-q3{animation-delay:6s}
.ph-chooser{position:relative; margin-top:clamp(28px,4vw,48px); display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:6px; border-radius:999px; background:var(--ph-chip)}
.ph-slide{position:absolute; left:6px; top:6px; bottom:6px; width:calc((100% - 12px)/4); border-radius:999px; background:#B3A6F0; transform:translateX(100%); animation:ph-slide 9s var(--ph-loop) infinite}
html[data-theme="dark"] .ph-slide{opacity:.45}
@keyframes ph-slide{
  0%,29%{transform:translateX(100%) scaleX(1); background:#B3A6F0}
  33%{transform:translateX(200%) scaleX(1.8); background:#99CDC4}
  37%,62%{transform:translateX(300%) scaleX(1); background:#7FD1A8}
  66%{transform:translateX(200%) scaleX(1.8); background:#99CDC4}
  70%,100%{transform:translateX(100%) scaleX(1); background:#B3A6F0}}
.ph-choice{position:relative; display:flex; align-items:center; justify-content:center; gap:8px; height:clamp(48px,5vw,60px); border-radius:999px;
  font-size:clamp(14px,1.4vw,17px); font-weight:600; color:#211C17}
html[data-theme="dark"] .ph-choice{color:var(--ink)}
.ph .ph-chooser .ph-choice-auto{background:var(--ink); color:var(--paper); font-weight:700}
.ph-choice-auto svg{width:16px; height:16px}
.ph-autonote{position:relative; margin-top:18px; min-height:44px; font-size:14.5px; color:var(--ink-3)}
.ph-n{position:absolute; left:0; top:0; opacity:0; animation:ph-cycle 9s var(--ph-loop) .25s infinite}
.ph-n2{animation-delay:3.25s}.ph-n3{animation-delay:6.25s}

/* ── features ── */
.ph-row{display:flex; align-items:center; gap:18px; padding:22px 0; border-top:1.5px solid var(--ph-rule); color:var(--ink)}
.ph-row:last-child,.ph-faq{border-bottom:1.5px solid var(--ph-rule)}
.ph-row b{display:block; font-size:19px; font-weight:600}
.ph-row b + span{display:block; margin-top:2px; font-size:15.5px; color:var(--ink-2)}
.ph-ico{flex:none; display:inline-flex; align-items:center; justify-content:center; width:50px; height:50px; border-radius:50%; background:var(--ink); color:var(--paper);
  transition:border-radius .5s var(--ph-spring), transform .5s var(--ph-spring)}
.ph-ico svg{width:22px; height:22px; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round}
.ph-ico-ember{background:var(--accent); color:var(--accent-ink)}
.ph-row:hover .ph-ico{border-radius:14px; transform:rotate(-10deg) scale(1.08)}

/* ── plans: four dots become one ── */
.ph-dots{width:168px; height:40px}
.ph-dot{transform-box:fill-box; transform-origin:center; animation:ph-merge 5s var(--ph-loop) infinite}
.ph-dot1{fill:#7FC4E0; --x:48px}.ph-dot2{fill:#B3A6F0; --x:16px}.ph-dot3{fill:#7FD1A8; --x:-16px}.ph-dot4{fill:#F2C27E; --x:-48px}
@keyframes ph-merge{0%,25%,100%{transform:none}45%,80%{transform:translateX(var(--x)); fill:#E5552F}}
.ph-one{fill:var(--accent); transform-box:fill-box; transform-origin:center; transform:scale(0); animation:ph-one 5s var(--ph-spring) infinite}
@keyframes ph-one{0%,42%{transform:scale(0)}55%,80%{transform:scale(1.2)}90%,100%{transform:scale(0)}}
.ph-plans{margin-top:52px; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:14px}
.ph-plan{display:flex; flex-direction:column; padding:28px; border-radius:24px; background:var(--card); border:1px solid var(--ph-edge)}
.ph-plan-deep{background:var(--ph-deep); color:var(--ph-on-deep); border-color:transparent}
html[data-theme="dark"] .ph-plan-deep{border-color:rgba(242,194,126,.35)}
.ph-plan-deep .ph-price{color:var(--ph-on-deep)}
.ph-plan-top{display:flex; justify-content:space-between; align-items:center; gap:10px}
.ph-plan-name{font-size:16px; font-weight:600}
.ph-flag-pop{font-size:13px; color:#F2C27E}
.ph-price{margin-top:20px; font-size:52px; line-height:1; letter-spacing:-.04em}
.ph-tokens{margin-top:8px; font-size:14px; color:var(--ink-3)}
.ph-plan-deep .ph-tokens{color:var(--ph-on-deep-2)}
.ph-ticks{margin:22px 0 28px; padding-top:20px; border-top:1px solid var(--ph-edge); display:flex; flex-direction:column; gap:11px; font-size:14.5px; line-height:1.4}
.ph-plan-deep .ph-ticks{border-color:rgba(244,238,228,.14)}
.ph-ticks li{position:relative; padding-left:23px}
.ph-ticks li::before{content:""; position:absolute; left:0; top:4px; width:13px; height:13px; background:var(--accent);
  -webkit-mask:var(--ph-tick) center/contain no-repeat; mask:var(--ph-tick) center/contain no-repeat;
  --ph-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E")}
.ph-plan-deep .ph-ticks li::before{background:#F2693E}
.ph-plan .ph-btn{margin-top:auto; height:48px; font-size:15px}
.ph-plan-deep .ph-btn-ember{background:#C8431F; color:#fff}

/* ── questions ── */
.ph-faqs{border-top:1.5px solid var(--ph-rule)}
.ph-faq summary{list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 0; min-height:44px; font-size:19px; font-weight:600}
.ph-faq summary::-webkit-details-marker{display:none}
.ph-faq summary:hover span{color:var(--accent)}
.ph-faq summary i{flex:none; position:relative; width:34px; height:34px; border-radius:50%; background:var(--sunk); transition:transform .45s var(--ph-spring), background-color .3s}
.ph-faq summary i::before,.ph-faq summary i::after{content:""; position:absolute; left:50%; top:50%; width:13px; height:2.4px; margin:-1.2px 0 0 -6.5px; border-radius:2px; background:var(--ink)}
.ph-faq summary i::after{transform:rotate(90deg)}
.ph-faq[open] summary i{transform:rotate(135deg); background:var(--accent)}
.ph-faq[open] summary i::before,.ph-faq[open] summary i::after{background:var(--accent-ink)}
.ph-faq p{margin:0 0 22px; max-width:54ch; font-size:16px; line-height:1.6; color:var(--ink-2)}
.ph-faq[open] p{animation:ph-rise .5s var(--ph-out)}

/* ── interlude ribbon: loops, or follows the scroll where supported ── */
.ph-story-sec{margin-top:clamp(140px,16vw,240px)}
.ph-ribbon-wrap{max-width:1400px; margin-inline:auto; padding-inline:clamp(12px,3vw,40px)}
.ph-ribbon{display:block; width:100%; height:auto; overflow:visible}
.ph-boomnode{transform-box:fill-box; transform-origin:center}
.ph{
  --ph-rwave:path("M0 200C150 120 300 120 450 200C600 280 750 280 900 200C960 168 1020 168 1080 200C1120 222 1150 222 1180 200");
  --ph-rcurl:path("M0 330C300 330 520 330 700 300C820 280 900 120 1000 90C1110 60 1170 180 1090 240C1030 285 960 230 990 180");
}
@keyframes ph-bigloop{0%,15%,100%{d:var(--ph-rwave)}45%,80%{d:var(--ph-rcurl)}}
@keyframes ph-bignode{0%,15%,100%{transform:translate(190px,20px)}45%,80%{transform:none}}
@keyframes ph-sweep{0%{d:var(--ph-rwave); animation-timing-function:var(--ph-loop)}100%{d:var(--ph-rcurl)}}
@keyframes ph-sweepnode{0%{transform:translate(190px,20px) scale(.4); animation-timing-function:var(--ph-loop)}100%{transform:none}}
@supports (d:path("M0 0")){
  .ph-boom{animation:ph-bigloop 7s var(--ph-loop) infinite}
  .ph-b1{animation-delay:.12s}.ph-b2{animation-delay:.24s}.ph-b3{animation-delay:.36s}
  .ph-boomnode{animation:ph-bignode 7s var(--ph-loop) infinite}
}
@supports (d:path("M0 0")) and (animation-timeline:view()){
  .ph-boom{animation:ph-sweep linear both; animation-timeline:view(); animation-range:entry 5% cover 50%}
  .ph-b1{animation-range:entry 9% cover 54%}
  .ph-b2{animation-range:entry 13% cover 58%}
  .ph-b3{animation-range:entry 17% cover 62%}
  .ph-boomnode{animation:ph-sweepnode linear both; animation-timeline:view(); animation-range:entry 20% cover 62%}
}
.ph-what{padding-top:clamp(48px,6vw,88px); text-align:center}

/* ── the story, down one thread ── */
.ph-story{position:relative; margin-top:clamp(96px,11vw,150px)}
.ph-thread{position:absolute; top:0; bottom:0; left:50%; width:2px; transform:translateX(-50%)}
.ph-thread svg{display:block; width:2px; height:100%; overflow:visible}
.ph-thread path{stroke-width:2; vector-effect:non-scaling-stroke}
.ph-thread-bg{stroke:var(--ph-rule)}
.ph-thread-line{stroke:var(--accent); stroke-dasharray:1}
@supports (animation-timeline:view()){
  .ph-thread-line{stroke-dashoffset:1; animation:ph-draw linear both; animation-timeline:view(); animation-range:entry 20% cover 75%}
}
.ph-steps{position:relative; display:flex; flex-direction:column; gap:clamp(72px,9vw,120px)}
.ph-srow{display:grid; grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr); align-items:center}
.ph-srow > .ph-txt:first-child{padding-right:clamp(0px,3vw,40px)}
.ph-srow > .ph-txt:last-child{padding-left:clamp(0px,3vw,40px)}
.ph-txt p{margin-top:14px; max-width:34ch; font-size:18px; line-height:1.55; color:var(--ink-2)}
.ph-gut{display:flex; justify-content:center}
.ph-stop{width:16px; height:16px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 6px var(--paper)}
.js .ph-stop,.js .ph-flag{transform:scale(0); transition:transform .6s var(--ph-spring) .25s}
.js .ph-flag{transition-delay:1s}
.js .rv.in .ph-stop,.js .rv.in .ph-flag{transform:none}

.ph-deep-card{padding:clamp(28px,4vw,48px); border-radius:26px; background:var(--ph-deep)}
.ph-depth{position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:4px; border-radius:999px; background:var(--ph-deep-2)}
.ph-depth span{position:relative; padding:11px 0; text-align:center; font-size:13.5px; font-weight:600; color:var(--ph-on-deep)}
.ph-depth .ph-depthpill{position:absolute; left:4px; top:4px; bottom:4px; width:calc((100% - 8px)/4); padding:0; border-radius:999px; background:#E5552F;
  transform:translateX(200%); animation:ph-depth 8s var(--ph-loop) infinite}
@keyframes ph-depth{
  0%,16%{transform:translateX(0) scaleX(1)} 20%{transform:translateX(50%) scaleX(1.6)}
  24%,41%{transform:translateX(100%) scaleX(1)} 45%{transform:translateX(150%) scaleX(1.6)}
  49%,66%{transform:translateX(200%) scaleX(1)} 70%{transform:translateX(250%) scaleX(1.6)}
  74%,90%{transform:translateX(300%) scaleX(1)} 95%{transform:translateX(150%) scaleX(2.6)}
  100%{transform:translateX(0) scaleX(1)}}

.ph-src{padding:8px; border-radius:22px; background:var(--card); border:1px solid var(--ph-edge); box-shadow:0 24px 50px -32px rgba(27,23,19,.35); font-size:15px}
.ph-src > div{display:flex; justify-content:space-between; align-items:center; padding:14px 16px}
.ph-src > div + div{border-top:1px solid var(--ph-edge)}
.ph-src > .ph-tag{margin:0; padding:6px 16px 0; justify-content:flex-start}
.ph-src b{font-weight:600}
.ph-src s{position:relative; text-decoration:none}
.ph-src em{font-style:normal; font-size:13px; font-weight:600}
.ph-kept{color:var(--ok)}
.ph-binned{color:var(--accent); animation:ph-binned 6s var(--ph-spring) infinite}
.ph-strike{position:absolute; left:-2px; right:-2px; top:50%; height:2px; background:var(--accent); transform-origin:left; transform:scaleX(0); animation:ph-strike 6s var(--ph-loop) infinite}
.ph-junk{animation:ph-junk 6s var(--ph-loop) infinite}
.ph-late{animation-delay:.6s}
@keyframes ph-strike{0%,20%{transform:scaleX(0)}35%,88%{transform:scaleX(1)}100%{transform:scaleX(0)}}
@keyframes ph-junk{0%,30%,100%{opacity:1}40%,88%{opacity:.45}}
@keyframes ph-binned{0%,32%{opacity:0; transform:scale(.6)}40%,88%{opacity:1; transform:none}100%{opacity:0}}

.ph-three{display:flex; flex-direction:column; gap:8px}
.ph-three > .ph-tag{margin:0}
.ph-three > div:not(.ph-verdict){display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border-radius:16px; background:var(--card); border:1px solid var(--ph-edge); font-size:14.5px; line-height:1.45}
.ph-three i{margin-top:6px}
.ph-three span{flex:1}
.ph-flag{flex:none; font-style:normal; padding:2px 9px; border-radius:999px; background:#C8431F; color:#fff; font-size:12px; font-weight:600}
.ph-outlier{transition:box-shadow .6s var(--ph-out) 1s}
.js .rv.in .ph-outlier{box-shadow:0 0 0 2px var(--accent)}
.ph-verdict{margin-top:6px; padding:18px 20px; border-radius:18px; background:var(--ph-deep); color:var(--ph-on-deep)}
.ph-verdict small{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ph-on-deep-2)}
.ph-verdict small svg{width:16px; height:16px; color:var(--ph-on-deep)}
.ph-verdict b{display:block; margin-top:6px; font-family:var(--ph-display); font-weight:600; font-size:24px; letter-spacing:-.03em}

.ph-cite-card{padding:clamp(24px,4vw,40px); border-radius:26px; background:var(--ph-tan); display:flex; flex-direction:column; gap:10px; min-height:130px}
.ph-cite-card > .ph-tag{margin:0}
.ph-claim{padding:16px 18px; border-radius:16px; background:var(--card); font-size:16px; line-height:1.45}
.ph-cite{width:22px; height:22px; margin-left:6px; animation:ph-cite 5s var(--ph-spring) infinite}
@keyframes ph-cite{0%,12%,24%,100%{transform:scale(1)}18%{transform:scale(.8)}}
.ph-quote{margin-left:28px; padding:13px 16px; border-radius:14px; background:var(--ph-deep); color:var(--ph-on-deep); font-size:14px; line-height:1.45; transform-origin:top left; animation:ph-quote 5s var(--ph-spring) infinite}
.ph-quote small{display:block; font-size:12px; color:#F2C27E}
@keyframes ph-quote{0%,18%{opacity:0; transform:scale(.7) translateY(-10px)}28%,85%{opacity:1; transform:none}95%,100%{opacity:0; transform:scale(.9)}}

/* ── ask ── */
.ph-ask{position:relative; overflow:hidden; margin-top:clamp(140px,16vw,220px); min-height:clamp(560px,80vh,860px); display:flex; align-items:center; background:#E5552F; color:#211C17}
.ph-ask-curl{position:absolute; right:-10%; top:50%; transform:translateY(-50%); width:clamp(380px,70vw,1000px); height:auto; overflow:visible}
.ph-ask-in{position:relative; width:100%; padding-block:clamp(80px,10vw,120px)}
.ph .ph-ask-h{max-width:9ch; font-size:clamp(52px,8vw,124px); line-height:.9; letter-spacing:-.055em; color:#211C17}
.ph-ask p{margin:20px 0 36px; max-width:30ch; font-size:18px; line-height:1.5}

/* ── phones: the "Ask Pevra" bar. It takes no space, shows only between the
   hero and the closing band (which has its own button), and scroll-padding
   keeps focused or linked content clear of it. ── */
.ph-sticky{display:none; position:sticky; bottom:0; height:0; z-index:20}
.ph-sticky-bar{position:absolute; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 10px 10px 16px; border-radius:999px; background:rgba(33,28,23,.94); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); color:#F6F1E9;
  box-shadow:0 16px 40px -12px rgba(33,28,23,.5); transition:transform .56s var(--ph-out), visibility 0s .56s}
.ph-sticky-bar > span{display:flex; align-items:center; gap:10px; font-size:14px; font-weight:500}
.ph-sticky-bar > span svg{width:22px; height:22px}
.ph-sticky-bar .ph-btn{height:44px; padding:0 20px; font-size:15px}
.js .ph-sticky-bar{transform:translateY(160%); visibility:hidden}
.js.ph-past-hero:not(.ph-at-end) .ph-sticky-bar{transform:none; visibility:visible; transition-delay:0s}

@media (max-width:820px){
  .ph-sticky{display:block}
  html.ph-past-hero{scroll-padding-bottom:96px}
  .ph-heromark{max-width:260px}
  .ph-depth span{font-size:12px}
  .ph-ask-curl{opacity:.35}
  .ph-thread{left:14px}
  .ph-srow{grid-template-columns:28px minmax(0,1fr); column-gap:16px; row-gap:20px; align-items:start}
  .ph-srow > .ph-gut{grid-column:1; grid-row:1 / span 2}
  .ph-srow > .ph-txt{grid-column:2; grid-row:1; padding:0!important}
  .ph-srow > .ph-vis{grid-column:2; grid-row:2}
}

/* ── still: reduced motion, or paused. Everything drawn in its finished
   state. The two blocks hold the same rules: one for people who asked
   their system for less motion (works without JavaScript), one for the
   pause button. ── */
.ph-still *,.ph-still *::before,.ph-still *::after{animation:none!important}
.ph-still .ph-draw,.ph-still .ph-thread-line{stroke-dashoffset:0}
.ph-still .ph-node,.ph-still .ph-in{transform:none}
.ph-still .ph-type,.ph-still .ph-wipe{clip-path:none}
.ph-still .ph-ans{grid-template-rows:1fr}
.ph-still .ph-spinner,.ph-still .ph-caret,.ph-still .ph-ring{display:none}
.ph-still .ph-q1,.ph-still .ph-n1,.ph-still .ph-quote,.ph-still .ph-binned{opacity:1}
.ph-still .ph-strike{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){
  .ph .ph-draw,.ph .ph-thread-line{stroke-dashoffset:0}
  .ph .ph-node{transform:none}
  .ph .ph-type,.ph .ph-wipe{clip-path:none}
  .ph .ph-ans{grid-template-rows:1fr}
  .ph .ph-spinner,.ph .ph-caret,.ph .ph-ring{display:none}
  .ph .ph-q1,.ph .ph-n1,.ph .ph-quote,.ph .ph-binned{opacity:1}
  .ph .ph-strike{transform:scaleX(1)}
  .js .ph-sticky-bar{transition:none}
}
