/* ════════════════════════════════════════════════
   SITE — the public pages: home, features, faq, legal.
   Loaded after css/app.css, which supplies the design tokens (--bg,
   --surface, --ink, --accent, … light + dark, every pokémon theme) and
   the Terminal Grotesque / JetBrains Mono @font-face blocks. Nothing
   here repeats those values. css/marketing.css still styles the
   maintenance page, the 404 and the shared profile pages.
   ════════════════════════════════════════════════ */

html,body{height:auto;overflow:visible;overflow-x:hidden;background:var(--bg);color:var(--ink);font-family:var(--font-body);-webkit-font-smoothing:antialiased}
body{margin:0;font-size:14px;line-height:1.6;text-transform:lowercase}
*,*::before,*::after{box-sizing:border-box}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
img{max-width:100%}
.st-disp{font-family:var(--font-display);font-weight:400;letter-spacing:.01em}
.st-wrap{max-width:1160px;margin:0 auto;padding:0 32px}
.st-sec{padding:96px 0;position:relative}

/* ── header: wordmark, then the page links ── */
.st-top{background:var(--bg);border-bottom:1px solid var(--border);position:relative;z-index:5}
.st-bar{height:52px;display:flex;align-items:center;justify-content:center}
.st-word{font-family:var(--font-display);font-size:24px;letter-spacing:.02em}
.st-nav{display:flex;justify-content:center;gap:4px;padding:0 16px;overflow-x:auto}
.st-nav a,.st-nav .off{padding:11px 18px;font-size:13px;white-space:nowrap;border-bottom:2px solid transparent}
.st-nav a{color:var(--ink-2)}
.st-nav a:hover{color:var(--ink)}
.st-nav a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--accent)}
.st-nav .off{color:var(--ink-4);cursor:not-allowed}

/* ── buttons ── */
.st-btn{height:48px;padding:0 24px;border-radius:11px;display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:13px;border:1px solid transparent;cursor:pointer}
.st-btn-p{background:var(--accent-fill);color:#2D1E00}
.st-btn-p:hover{filter:brightness(1.06)}
.st-btn-g{border-color:var(--border-strong);color:var(--ink);background:transparent}
.st-btn-g:hover{background:var(--surface-2)}
.st-btn:focus-visible,.st-seg button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.st-h1{font-size:60px;line-height:1.05;margin:0 0 14px}
.st-h2{font-size:42px;line-height:1.1;margin:0 0 14px}
.st-lead{color:var(--ink-2);font-size:15px;max-width:560px;margin:0}
.st-card{background:var(--surface);border:1px solid var(--border);border-radius:16px}

/* ── stars (generated by js/marketing.js into .mk-stars) ── */
.mk-stars{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.mk-star{position:absolute;border-radius:50%;background:var(--ink-3);animation:stStar 6s ease-in-out infinite}
.mk-star.big{background:var(--ink)}
.mk-star.accent{background:var(--accent)}
@keyframes stStar{0%{transform:translateY(6px);opacity:0}20%{opacity:1}50%{opacity:.35}80%{opacity:1}100%{transform:translateY(-6px);opacity:0}}

/* ── home hero ── */
.st-hero{padding:48px 0 28px;background:radial-gradient(ellipse at 50% 45%,var(--surface-2) 0%,var(--bg) 68%);overflow:hidden;position:relative;text-align:center}
.st-hero-in{position:relative;z-index:2;will-change:opacity,transform,filter}
.st-hero h1{font-size:clamp(34px,5.4vw,72px);line-height:1.02;margin:0 auto 20px}
.st-foil{width:200px;height:10px;margin:17px auto 24px;border-radius:50%;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--accent) 55%,transparent) 0%,transparent 70%);animation:stGlow 3.2s ease-in-out infinite}
@keyframes stGlow{0%,100%{opacity:.35}50%{opacity:1}}
.st-hero .st-lead{margin:0 auto 26px;font-size:16px;max-width:720px}
/* the screenshot strip sits right under the buttons, inside the first screen */
.st-gal{padding:20px 0 40px}
.st-gal .st-h2{font-size:34px;margin-bottom:0}
.st-center{text-align:center}
/* everything below the strip is hidden until the visitor scrolls (js/site.js adds .in) */
.st-reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease}
.st-reveal.in{opacity:1;transform:none}
.st-prog{max-width:640px;margin:18px auto 20px}
.st-track{display:block;height:4px;border-radius:4px;background:var(--surface-3);position:relative}
.st-fill{position:absolute;left:0;top:0;height:100%;width:var(--p,0%);border-radius:4px;background:var(--accent);box-shadow:0 0 10px 1px color-mix(in srgb,var(--accent) 55%,transparent)}
.st-labs{display:flex;margin-top:6px}
.st-seg-b{flex:1 1 0;min-width:0;background:none;border:0;padding:8px 0;cursor:pointer;color:var(--ink-3);font-size:12px;text-align:center;transition:color .2s}
.st-seg-b.on,.st-seg-b:hover{color:var(--ink)}
.st-seg-b:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.st-rail-wrap{max-width:1160px;margin:0 auto;padding-left:32px}
.st-rail{display:flex;align-items:center;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 32px 22px 0;scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent}
.st-shot{flex:0 0 680px;scroll-snap-align:start;border-radius:14px;overflow:hidden;border:1px solid var(--border);box-shadow:0 26px 50px var(--shadow-color);background:var(--surface);margin:0}
.st-shot img{display:block;width:100%;height:auto;cursor:zoom-in;-webkit-user-drag:none;user-select:none}
.st-rail{cursor:grab}
.st-rail.drag,.st-rail.drag .st-shot img{cursor:grabbing;user-select:none}

/* ── big feature rows ── */
.st-feat{display:flex;gap:64px;align-items:center;padding:40px 0}
.st-feat.rev{flex-direction:row-reverse}
.st-feat-t{flex:1 1 340px;min-width:0}
.st-feat-v{flex:1 1 440px;min-width:0}
.st-feat-v .st-shot{flex:none;width:100%}
.st-feat summary{list-style:none;cursor:default}
.st-feat summary::-webkit-details-marker{display:none}
.st-feat summary .chev{display:none}
.st-feat-h{font-size:42px;line-height:1.1;margin:0 0 14px}
.st-ul{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:10px;color:var(--ink-2);font-size:13px}
.st-ul li{display:flex;gap:10px}
.st-ul li::before{content:'›';color:var(--accent)}

/* ── "and plenty more" ── */
.st-more{background:var(--surface);border-top:1px solid var(--border)}
.st-grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:44px}
.st-tile{padding:26px}
.st-tile h3{margin:0 0 6px;font-size:15px}
.st-tile p{margin:0;color:var(--ink-2);font-size:13px}

/* ── scroll cue: a pixel chevron under the screenshot strip, gone for good once you scroll ── */
.st-cue{display:flex;justify-content:center;padding-top:22px;color:var(--ink-2);pointer-events:none;transition:opacity .4s ease}
.st-cue svg{animation:stBob 2s ease-in-out infinite}
.st-cue.gone{opacity:0}
@keyframes stBob{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(7px);opacity:.95}}

/* ── footer ── */
.st-foot{border-top:1px solid var(--border);padding:44px 0;background:var(--bg)}
.st-foot-in{text-align:center}
.st-foot-word{font-size:28px}
.st-foot-links{display:flex;gap:28px;flex-wrap:wrap;justify-content:center;margin-top:18px;font-size:13px;color:var(--ink-2)}
.st-foot-links a:hover{color:var(--ink)}
.st-legal{margin:34px auto 0;font-size:11px;color:var(--ink-3);max-width:820px;text-align:center;line-height:1.5}

/* ── inner pages: title block ── */
.st-head{text-align:center;padding:80px 0 56px;background:radial-gradient(ellipse at 50% 20%,var(--surface-2) 0%,var(--bg) 68%)}
.st-head .st-h1{margin-top:0}
.st-jump{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:28px}
.st-jump a{padding:8px 18px;border-radius:99px;border:1px solid var(--border);color:var(--ink-2);font-size:12px}
.st-jump a:hover{background:var(--surface-3);color:var(--ink)}

/* ── features page: each group is a title, then its screenshots beside its cards ── */
.st-group{padding:56px 0;border-top:1px solid var(--border);scroll-margin-top:16px}
.st-gh{margin-bottom:28px}
.st-gh h2{font-size:34px;line-height:1.1;margin:0 0 12px}
.st-gh p{color:var(--ink-2);font-size:13px;margin:0}
.st-fgrp{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:40px;align-items:stretch}
.st-fgrp.solo{grid-template-columns:minmax(0,1fr)}
.st-fleft{align-self:start;position:sticky;top:16px}
.st-fleft .st-shot{flex:none;width:100%}
.st-thumbs{display:flex;gap:12px;margin-top:14px}
.st-th{flex:1;min-width:0;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface);cursor:pointer;opacity:.55;transition:opacity .2s,border-color .2s}
.st-th img{display:block;width:100%;height:auto}
.st-th.on,.st-th:hover{opacity:1}
.st-th.on{border-color:var(--accent)}
.st-th:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* cards are only as tall as their text; a group with few cards sits centred beside its screenshots */
.st-group-r{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;align-content:center;gap:16px}
.st-fgrp:not(.solo) .st-group-r>:last-child:nth-child(odd){grid-column:1/-1}
.st-fgrp.solo .st-group-r{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));grid-auto-rows:auto}
.st-item{padding:22px}
.st-item h3{margin:0 0 6px;font-size:14px}
.st-item p{margin:0;color:var(--ink-2);font-size:13px}
.st-cta{text-align:center;padding:96px 0;background:radial-gradient(ellipse at 50% 100%,var(--surface-2) 0%,var(--bg) 70%)}
.st-cta h2{font-size:46px;line-height:1.1;margin:0 0 26px}

/* ── faq ── */
.st-search{display:flex;align-items:center;gap:10px;max-width:460px;margin:28px auto 0;height:46px;padding:0 16px;border-radius:11px;border:1px solid var(--border-strong);background:var(--surface);color:var(--ink-2);font-size:13px}
.st-search input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--ink);font:inherit;text-transform:lowercase}
.st-search input::placeholder{color:var(--ink-3)}
.st-search:focus-within{border-color:var(--accent)}
.st-qs{max-width:760px;margin:24px auto 0}
.st-q{border-top:1px solid var(--border)}
.st-q:first-child{border-top:0}
.st-q summary{list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px 0;font-size:15px;font-weight:700;cursor:pointer}
.st-q summary::-webkit-details-marker{display:none}
.st-q summary i{font-style:normal;color:var(--accent);font-size:20px;line-height:1;font-weight:400}
.st-q summary i::before{content:'+'}
.st-q[open] summary i::before{content:'−'}
.st-q p{margin:0 0 22px;color:var(--ink-2);font-size:13px;max-width:640px}
.st-none{text-align:center;color:var(--ink-2);padding:32px 0;display:none}
.st-help{margin:72px auto 0;max-width:760px;padding:32px;text-align:center}
.st-help h2{font-size:28px;margin:0}
.st-help p{color:var(--ink-2);font-size:13px;margin:8px 0 0}
.st-help .st-btn{height:44px;margin-top:14px}

/* ── legal ── */
.st-seg{display:inline-flex;margin-top:28px;padding:4px;border-radius:99px;border:1px solid var(--border);background:var(--surface);font-size:12px}
.st-seg button{font-size:12px;cursor:pointer;padding:7px 22px;border-radius:99px;color:var(--ink-2);background:transparent;border:0}
.st-seg button.on{background:var(--surface-3);color:var(--ink)}
.st-docs{max-width:760px;margin:40px auto 0}
.st-part{background:var(--surface);border:1px solid var(--border);border-radius:16px;margin-bottom:16px;scroll-margin-top:16px}
.st-part summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 28px;cursor:pointer}
.st-part summary::-webkit-details-marker{display:none}
.st-part summary span{font-family:var(--font-display);font-size:30px;letter-spacing:.01em}
.chev{color:var(--accent);flex:none;transition:transform .2s}
details[open]>summary .chev{transform:rotate(180deg)}
.st-body{padding:0 28px 28px}
.st-body .upd{font-size:12px;color:var(--ink-2);margin:0 0 20px}
.st-body h3{font-size:15px;margin:26px 0 8px}
.st-body p{margin:0 0 12px;color:var(--ink-2);font-size:13px}
.st-body ul{margin:0 0 12px;padding-left:18px;color:var(--ink-2);font-size:13px}
.st-body li{margin-bottom:6px}
.st-body b{color:var(--ink);font-weight:500}
.st-body a{color:var(--accent)}

/* ── lightbox ── */
.st-lb{position:fixed;inset:0;z-index:100;background:rgba(7,9,20,.92);display:flex;align-items:center;justify-content:center;padding:40px;cursor:zoom-out}
.st-lb img{max-width:100%;max-height:100%;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.st-lb button{position:absolute;top:16px;right:16px;width:40px;height:40px;border-radius:10px;border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);font-size:16px;cursor:pointer}

/* ── small screens ── */
@media (max-width:860px){
  .st-wrap{padding:0 20px}
  .st-sec{padding:52px 0}
  .st-h1{font-size:44px}
  .st-h2{font-size:30px}
  .st-hero{padding:36px 0 20px}
  .st-gal{padding:12px 0 36px}
  .st-hero .st-lead{font-size:14px;margin-bottom:24px}
  .st-btn{height:40px;padding:0 16px;font-size:12px;border-radius:10px}
  .st-hero-btns{flex-wrap:nowrap;gap:10px}
  .st-prog{margin:14px auto 16px}
  .st-seg-b{font-size:11px}
  .st-rail-wrap{padding-left:20px}
  .st-rail{gap:14px;padding:20px 20px 12px 0}
  .st-shot{flex-basis:300px;border-radius:12px}
  /* the big feature rows turn into: screenshot, then a title that opens its text */
  .st-feat,.st-feat.rev{flex-direction:column;align-items:stretch;gap:0;padding:0;margin-bottom:22px;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}
  .st-feat-v{flex:none;order:1}
  .st-feat-t{flex:none;order:2}
  .st-feat-v .st-shot{border:0;border-radius:0;box-shadow:none;border-bottom:1px solid var(--border)}
  .st-feat summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;cursor:pointer}
  .st-feat-h{font-family:var(--font-body);font-size:15px;font-weight:700;margin:0;line-height:1.4}
  .st-feat summary .chev{display:block}
  .st-feat-body{padding:0 18px 20px}
  .st-feat-body .st-lead{font-size:13px}
  .st-ul{margin-top:14px;gap:8px;font-size:12px}
  .st-grid3{margin-top:28px;gap:12px}
  .st-group{padding:36px 0}
  .st-gh{margin-bottom:20px}
  .st-fgrp{grid-template-columns:minmax(0,1fr);gap:20px}
  .st-fleft{position:static}
  .st-group-r{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}
  .st-fgrp:not(.solo) .st-group-r>:last-child:nth-child(odd){grid-column:auto}
  .st-thumbs{gap:8px}
  .st-cta{padding:64px 0}
  .st-cta h2{font-size:34px}
  .st-part summary{padding:18px 20px}
  .st-part summary span{font-size:24px}
  .st-body{padding:0 20px 22px}
  .st-lb{padding:16px}
}
@media (min-width:861px){
  /* sized so the screenshots and the chevron under them fit in the first screen on a laptop */
  .st-rail .st-shot{flex-basis:clamp(380px,calc((100vh - 660px) * 1.82),680px)}
  .st-hero h1{white-space:nowrap}
  .st-feat summary{pointer-events:none}
  .st-feat-h{display:block}
}
@media (prefers-reduced-motion:reduce){
  .mk-star{animation:none;opacity:.5}
  .st-reveal{transform:none;transition:none}   /* still hidden until you scroll, just without the slide */
  .st-cue svg{animation:none;opacity:.7}
  .st-foil{animation:none;opacity:.8}
  .st-hero-in{transition:none}
}
