/* ===========================================================================
   Zen Macro site theme
   ---------------------------------------------------------------------------
   The tokens below are taken from the desktop app's own interface so the site
   and the product read as one thing. The old site used translucent glass
   surfaces over a blue haze; the app uses flat near-black panels with a hard
   1px edge. Those two languages cannot both be right, and the app is the one
   people spend hours looking at, so the site moves.

   Do not "improve" a colour here in isolation. If a value changes in the app,
   change it here; if it changes here, it is drifting.
   =========================================================================== */

:root {
  /* -- surfaces, darkest to lightest ------------------------------------- */
  --void:    #000;
  --paper:   #0c0e12;
  --paper-2: #101319;
  --paper-3: #141821;
  --edge:    #1c202a;
  --edge-2:  #2b313e;

  /* -- ink --------------------------------------------------------------- */
  --ink:   #f1f4fa;
  --ink-2: #a3acbe;
  --ink-3: #69738a;

  /* -- accents ----------------------------------------------------------- */
  --blue:      #4d8dff;
  --blue-2:    #7aa9ff;
  --blue-soft: #101d38;
  --blue-line: #22376b;
  --blue-deep: #1d4ed8;

  /* mint is the app's "this is live / running" colour and carries the same
     meaning here: uptime, active sessions, things that are on */
  --mint:      #2ee08a;
  --mint-soft: #0d2a1d;
  --mint-line: #1d3a2a;

  --amber:    #ffb020;
  --red:      #ff6b63;
  --red-soft: #2a1315;

  /* the app's headline stat card, reused for the hero figure */
  --grad-atk: linear-gradient(135deg, #12295e, #1d4ed8 55%, #3b7bf5);

  /* -- type -------------------------------------------------------------- */
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "SF Mono", Consolas, ui-monospace, monospace;

  /* -- geometry ---------------------------------------------------------- */
  --r-sm: 8px;
  --r:    13px;   /* the app's card radius */
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow:    0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -26px #000;
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 90px -40px #000;
  --glow-blue: 0 24px 80px -40px var(--blue);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur:  .5s;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw:   1180px;
}

/* ---------------------------------------------------------------------------
   reset
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* the sticky nav would otherwise cover whatever an in-page link lands on */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--void);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* numbers line up in columns wherever they are compared */
.num, .stat-v, .lb-v, .price-v { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------
   layout primitives
   --------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; padding-block: clamp(72px, 10vw, 132px); }

/* a hairline between bands, fading out at the edges so it never looks like a
   table border running off the page */
.band + .band::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge) 18%, var(--edge) 82%, transparent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 10px var(--blue);
}
.eyebrow.mint::before { background: var(--mint); box-shadow: 0 0 10px var(--mint); }

h1, h2, h3, h4 { font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -.03em; }
h4 { font-size: 17px; letter-spacing: -.02em; line-height: 1.3; }

.lede {
  color: var(--ink-2);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.62;
  max-width: 62ch;
  margin-top: 16px;
}

.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { text-align: center; }
.sec-head.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { background: var(--paper-3); border-color: #39414f; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary {
  background: var(--blue-deep);
  border-color: #2a55b8;
  color: #fff;
  box-shadow: var(--glow-blue);
}
.btn-primary:hover { background: #2560e8; border-color: #3b6fd8; }

.btn-mint {
  background: var(--mint); border-color: var(--mint);
  color: #04160d; font-weight: 700;
}
.btn-mint:hover { background: #4ce89b; border-color: #4ce89b; }

.btn-ghost { background: transparent; border-color: var(--edge); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--edge-2); }

.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ---------------------------------------------------------------------------
   nav: mirrors the app's titlebar: flat panel, hairline underneath
   --------------------------------------------------------------------------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: 62px;
  background: rgba(6, 8, 11, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.stuck { border-bottom-color: var(--edge); background: rgba(6, 8, 11, .93); }

.nav-inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 30px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 650; letter-spacing: -.02em; flex: none; }
.nav-logo img { width: 26px; height: 26px; border-radius: var(--r-sm); }
.nav-logo span { color: var(--ink-3); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin-inline-start: auto; }
.nav-links a {
  display: block; padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 550; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-3); }

.nav-cta { display: flex; align-items: center; gap: 9px; flex: none; }

.nav-mobile-btn {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--edge); border-radius: var(--r-sm);
  background: var(--paper-2); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-mobile-btn span { display: block; width: 16px; height: 1.6px; background: var(--ink-2); border-radius: 2px; transition: transform .22s var(--ease), opacity .18s; }
.nav-mobile-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-mobile-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-mobile-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 62px 0 auto 0; z-index: 99;
  display: none; flex-direction: column; gap: 2px;
  padding: 14px var(--gutter) 22px;
  background: rgba(6, 8, 11, .97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--edge);
}
.nav-drawer.open { display: flex; }
.nav-drawer a { padding: 11px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 550; color: var(--ink-2); }
.nav-drawer a:hover { background: var(--paper-2); color: var(--ink); }
.nav-drawer .btn { margin-top: 10px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 101;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--mint));
  transition: width .1s linear;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-mobile-btn { display: flex; }
}

/* ---------------------------------------------------------------------------
   hero
   --------------------------------------------------------------------------- */
.hero { padding-top: 148px; padding-bottom: clamp(60px, 8vw, 100px); overflow: hidden; }

/* one soft blue pool behind the headline. The old site stacked three of these
   and the page never settled; one is enough to say "there is light here". */
.hero::before {
  content: "";
  position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: min(1100px, 130vw); height: 700px;
  background: radial-gradient(ellipse at center, rgba(77,141,255,.16), transparent 62%);
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }

.hero h1 {
  font-size: clamp(42px, 7.4vw, 84px);
  letter-spacing: -.045em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--ink) 30%, var(--blue-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { margin-inline: auto; font-size: clamp(16px, 1.7vw, 19px); }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.hero-fine { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.hero-fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* -- the app's stat row, reused as the hero's proof strip ----------------- */
.stat-row {
  display: grid; gap: 12px; margin-top: clamp(46px, 6vw, 72px);
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  text-align: left;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  padding: 15px 18px;
  box-shadow: var(--shadow);
}
.stat .k { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.stat .v { font-size: clamp(26px, 3vw, 34px); font-weight: 750; letter-spacing: -.04em; line-height: 1.18; margin-top: 2px; }
.stat .d { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.stat .d b { color: var(--ink-2); font-weight: 650; }

/* the one blue card, exactly as the app draws it */
.stat.feature {
  background: var(--grad-atk);
  border-color: #2a55b8;
  color: #fff;
  box-shadow: 0 18px 44px -26px var(--blue);
}
.stat.feature .k { color: #bcd3ff; }
.stat.feature .d { color: #cfdfff; }
.stat.feature .d b { color: #fff; }
.stat.mint .v { color: var(--mint); }

@media (max-width: 860px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat.feature { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   generic card
   --------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.card:hover { border-color: var(--edge-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 23px; padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 650; letter-spacing: .02em;
  background: var(--blue-soft); border: 1px solid var(--blue-line); color: var(--blue-2);
}
.pill.mint { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint); }
.pill.dim  { background: var(--paper-2); border-color: var(--edge); color: var(--ink-3); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dot.live { background: var(--mint); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,224,138,.5); }
  60%      { box-shadow: 0 0 0 6px rgba(46,224,138,0); }
}

/* ---------------------------------------------------------------------------
   builds: the two-up "which one do I buy" split
   --------------------------------------------------------------------------- */
.builds { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .builds { grid-template-columns: 1fr; } }

.build { padding: 26px; display: flex; flex-direction: column; }
.build.lead { border-color: var(--blue-line); background: linear-gradient(180deg, var(--blue-soft) 0%, var(--paper) 46%); }

.build-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.build h3 { margin-bottom: 8px; }
.build > p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.build ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.build li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.build li svg { width: 16px; height: 16px; margin-top: 3px; }
.build li.yes svg { color: var(--mint); }
.build li.no  svg { color: var(--ink-3); }
.build li.no  { color: var(--ink-3); }

.build-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.build-price { font-size: 14px; color: var(--ink-2); }
.build-price b { color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -.03em; }

/* ---------------------------------------------------------------------------
   feature grid, organised like the app's own sidebar
   --------------------------------------------------------------------------- */
.feat-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
/* the live-surfaces band pairs two wide cards instead of the 3-up grid */
.feat-grid.two-up { grid-template-columns: 1fr 1fr; }
@media (max-width: 940px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .feat-grid.two-up { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }

.feat { padding: 22px; position: relative; overflow: hidden; }
.feat:hover { transform: translateY(-2px); }

.feat-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--paper-2); border: 1px solid var(--edge);
  display: grid; place-items: center; color: var(--blue-2);
  margin-bottom: 16px;
}
.feat-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat.is-new .feat-ico { color: var(--mint); border-color: var(--mint-line); background: var(--mint-soft); }

.feat h4 { margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--ink-2); line-height: 1.58; }

.feat-tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mint);
}

/* ---------------------------------------------------------------------------
   split rows: screenshot beside prose
   --------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr 1fr; }
.split + .split { margin-top: clamp(64px, 9vw, 116px); }
.split.flip .split-media { order: -1; }
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
}

.split h3 { margin-bottom: 14px; }
.split p { color: var(--ink-2); font-size: 15px; line-height: 1.62; }

.split-media {
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--paper); padding: 8px;
  box-shadow: var(--shadow-lg);
}
.split-media img { border-radius: 10px; width: 100%; }

/* ---------------------------------------------------------------------------
   video stage
   --------------------------------------------------------------------------- */
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--edge); background: var(--paper); box-shadow: var(--shadow-lg); }
.stage video { width: 100%; display: block; }
.stage-glow {
  position: absolute; inset: -14%; z-index: -1;
  filter: blur(58px) saturate(160%); opacity: .5;
  transform: scale(1.05);
  pointer-events: none;
}
.stage-btn {
  position: absolute; right: 16px; bottom: 16px;
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(6,8,11,.8); border: 1px solid var(--edge-2);
  backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.stage-btn:hover { background: rgba(16,19,25,.92); }

/* ---------------------------------------------------------------------------
   before / after wall slider
   --------------------------------------------------------------------------- */
.ba { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--edge); box-shadow: var(--shadow-lg); user-select: none; }
.ba img { width: 100%; display: block; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ink); box-shadow: 0 0 16px rgba(255,255,255,.5); pointer-events: none; }
.ba-line::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,.6);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag {
  position: absolute; top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(6,8,11,.8); border: 1px solid var(--edge-2); color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }

/* ---------------------------------------------------------------------------
   leaderboard strip
   --------------------------------------------------------------------------- */
.lb { padding: 6px; overflow: hidden; }
.lb-head {
  display: grid; grid-template-columns: 34px 1fr auto;
  gap: 12px; padding: 12px 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--edge);
}
.lb-row {
  display: grid; grid-template-columns: 34px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 16px; font-size: 14px;
  border-bottom: 1px solid rgba(28,32,42,.6);
}
.lb-row:last-child { border-bottom: 0; }
.lb-row .r { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.lb-row .n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-v { font-weight: 650; letter-spacing: -.02em; }
.lb-row:nth-child(2) .r { color: var(--mint); }
.lb-row:nth-child(2) .lb-v { color: var(--mint); }

/* ---------------------------------------------------------------------------
   session log / webhook mock
   --------------------------------------------------------------------------- */
.log { padding: 0; overflow: hidden; }
.log-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; border-bottom: 1px solid var(--edge); background: var(--paper-2);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.log-bar .pill { margin-inline-start: auto; }
.log-body { padding: 13px 15px; font-family: var(--mono); font-size: 12.2px; line-height: 1.95; color: var(--ink-2); overflow-x: auto; }
.log-body .t { color: var(--ink-3); }
.log-body .g { color: var(--mint); }
.log-body .b { color: var(--blue-2); }

/* ---------------------------------------------------------------------------
   reviews
   --------------------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 64s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.review { width: 340px; flex: none; padding: 20px; display: flex; flex-direction: column; gap: 13px; }
.review .stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; }
.review p { font-size: 14px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.review-who { display: flex; align-items: center; gap: 10px; }
/* Reviewer chips are tinted from a hash of the name, so they read as distinct
   people rather than a column of identical circles. An <img> inside wins over
   the letter when a real avatar is supplied. */
.review-av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--blue-deep);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}
.review-av img { width: 100%; height: 100%; object-fit: cover; }

/* leaderboard rows carry the farmer's own picture, as the old site did */
.lb-row { grid-template-columns: 34px 26px 1fr auto; }
.lb-head { grid-template-columns: 34px 26px 1fr auto; }
.lb-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--edge); }
.lb-av img { width: 100%; height: 100%; object-fit: cover; }
.review-who b { font-size: 13px; font-weight: 650; }
.review-who em { font-style: normal; font-size: 11.5px; color: var(--ink-3); display: block; }

/* ---------------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------------- */
.acc { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.acc-item { overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.acc-head .ic { margin-inline-start: auto; width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .28s var(--ease), color .2s; }
.acc-item.open .acc-head .ic { transform: rotate(45deg); color: var(--blue-2); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 20px 19px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* ---------------------------------------------------------------------------
   pricing
   --------------------------------------------------------------------------- */
.plan-group + .plan-group { margin-top: clamp(40px, 6vw, 68px); }
.plan-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.plan-group-head h3 { letter-spacing: -.03em; }
.plan-group-head span { font-size: 14px; color: var(--ink-3); }

.plans { display: grid; gap: 13px; grid-template-columns: repeat(5, 1fr); }
.plans.four { grid-template-columns: repeat(4, 1fr); }
.plans.two  { grid-template-columns: repeat(2, minmax(0, 320px)); }
/* a lone plan must not stretch to the full width and look like a banner */
.plans.one  { grid-template-columns: minmax(0, 300px); }
@media (max-width: 1040px) { .plans, .plans.four { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .plans, .plans.four, .plans.two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px)  { .plans, .plans.four, .plans.two, .plans.one { grid-template-columns: 1fr; } }

.plan { padding: 20px 18px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.plan.best { border-color: var(--blue-line); background: linear-gradient(180deg, var(--blue-soft), var(--paper) 58%); }
.plan-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  height: 20px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--blue-deep); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.plan .log { font-size: 13px; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 0; }
.price-v { font-size: 32px; font-weight: 750; letter-spacing: -.04em; line-height: 1.15; }
.plan .rate { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.plan .note { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.plan .btn { margin-top: 16px; width: 100%; }

.plan-aside {
  margin-top: 26px; padding: 16px 18px;
  border: 1px solid var(--blue-line); background: var(--blue-soft);
  border-radius: var(--r); font-size: 14px; color: var(--ink-2); line-height: 1.6;
}
.plan-aside b { color: var(--ink); }

/* ---------------------------------------------------------------------------
   CTA band
   --------------------------------------------------------------------------- */
.cta { text-align: center; }
.cta-box {
  position: relative; overflow: hidden;
  border: 1px solid var(--blue-line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--blue-soft), var(--paper) 62%);
  padding: clamp(40px, 6vw, 68px) var(--gutter);
  box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(77,141,255,.2), transparent 65%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box .hero-cta { margin-top: 28px; }

/* ---------------------------------------------------------------------------
   footer
   --------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--edge); padding-block: 56px 34px; background: var(--paper); }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin-top: 12px; max-width: 34ch; }
.foot h5 { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.foot a { font-size: 13.5px; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

.foot-bar {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}
.foot-bar .official { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.foot-bar .official b { color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   scroll reveal
   --------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Without JS the reveals must never hide content. `.js` is set by an inline
   script in <head>, so a failed script load leaves everything visible. */
html:not(.js) .reveal { opacity: 1; transform: none; }


/* ===========================================================================
   version comparison: V1 (Google Play Games) vs V2 (Emulator Edition)
   ---------------------------------------------------------------------------
   The single most asked question before a purchase is "which one do I buy",
   so it gets a table rather than two lists the reader has to diff by eye.
   Rows are the capability; the two columns are the answer.
   =========================================================================== */

.cmp { border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }

/* horizontal scroll lives on the wrapper, never on <body> */
.cmp-scroll { overflow-x: auto; }

.cmp table { width: 100%; border-collapse: collapse; min-width: 560px; }

.cmp th, .cmp td { padding: 13px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--edge); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

.cmp thead th { background: var(--paper-2); font-size: 12.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.cmp thead th:first-child { color: var(--ink-3); font-weight: 600; }
.cmp thead th span { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }

.cmp tbody th { font-weight: 550; color: var(--ink-2); }
.cmp td { width: 168px; text-align: center; }

/* the V2 column is the one being recommended, so it stays lit the whole way down */
.cmp .col-v2 { background: rgba(16, 29, 56, .34); }
.cmp thead .col-v2 { background: var(--blue-soft); color: var(--blue-2); }

.cmp .y { color: var(--mint); }
.cmp .n { color: var(--ink-3); }
.cmp .y svg, .cmp .n svg { width: 17px; height: 17px; margin-inline: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp .partial { font-size: 12px; color: var(--ink-3); }

@media (max-width: 620px) {
  .cmp th, .cmp td { padding: 11px 13px; font-size: 13.5px; }
  .cmp td { width: 120px; }
}

/* -- "which one is right for me" ---------------------------------------- */
.which { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
@media (max-width: 760px) { .which { grid-template-columns: 1fr; } }
.which .card { padding: 22px; }
.which h4 { margin-bottom: 9px; }
.which p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.which .card.pick-v2 { border-color: var(--blue-line); background: linear-gradient(180deg, var(--blue-soft), var(--paper) 60%); }

/* ===========================================================================
   features band, promoted to sit directly under the hero, so it gets a
   bento layout rather than a flat 3-up: the two headline capabilities take
   double width and the rest fill in around them.
   =========================================================================== */
.feat-grid.bento { grid-auto-flow: dense; }
.feat-grid.bento .feat.wide { grid-column: span 2; }
.feat-grid.bento .feat.wide p { max-width: 52ch; }

@media (max-width: 940px) { .feat-grid.bento .feat.wide { grid-column: span 2; } }
@media (max-width: 620px) { .feat-grid.bento .feat.wide { grid-column: span 1; } }

/* a quiet count so the section announces its own size */
.feat-count {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  margin-top: 14px;
}
.feat-count b { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }


/* ===========================================================================
   feature showcase: a tab rail beside one video stage
   ---------------------------------------------------------------------------
   Replaces the icon-card grid. A macro is a thing in motion: a still card
   saying "auto donate" asks the reader to imagine it, a six-second clip of it
   happening does not. One <video> element is reused for every tab rather than
   nine of them competing for bandwidth.

   Clips live in /clips/<slug>.mp4. A missing file is expected and handled --
   the stage falls back to a placeholder rather than a broken player -- so
   shipping a new clip is dropping a file in, with no markup change.
   =========================================================================== */

.showcase { display: grid; gap: 20px; grid-template-columns: 330px 1fr; align-items: start; }
@media (max-width: 940px) { .showcase { grid-template-columns: 1fr; } }

/* -- the rail ------------------------------------------------------------ */
.sc-rail { display: flex; flex-direction: column; gap: 6px; }

.sc-tab {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start;
  width: 100%; text-align: left; cursor: pointer;
  padding: 13px 14px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r);
  color: var(--ink-2);
  transition: background .18s, border-color .18s, color .18s;
}
.sc-tab:hover { background: var(--paper-2); color: var(--ink); }
.sc-tab[aria-selected="true"] { background: var(--paper); border-color: var(--edge); color: var(--ink); }

.sc-tab .ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--paper-2); border: 1px solid var(--edge);
  display: grid; place-items: center; color: var(--ink-3);
  transition: color .18s, border-color .18s, background .18s;
}
.sc-tab .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-tab[aria-selected="true"] .ic { color: var(--blue-2); border-color: var(--blue-line); background: var(--blue-soft); }

.sc-tab b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.sc-tab span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }

/* the V2-only marker. V2 is a superset of V1, so this reads as "V1 does not
   have this one" and nothing else needs a badge at all. */
.sc-tab .only { align-self: center; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-3); border: 1px solid var(--edge); border-radius: var(--r-pill); padding: 2px 7px; }
.sc-tab[aria-selected="true"] .only { color: var(--blue-2); border-color: var(--blue-line); }

/* auto-advance progress, painted along the bottom edge of the active tab */
.sc-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); }
.sc-tab[aria-selected="true"] .bar { transition: width .12s linear; }

@media (max-width: 940px) {
  /* the rail becomes a horizontal scroller above the stage */
  .sc-rail { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .sc-rail::-webkit-scrollbar { display: none; }
  .sc-tab { grid-template-columns: auto; width: auto; flex: none; padding: 10px 14px; border-color: var(--edge); background: var(--paper); }
  .sc-tab .ic, .sc-tab span, .sc-tab .only { display: none; }
  .sc-tab b { white-space: nowrap; font-size: 13.5px; }
}

/* -- the stage ----------------------------------------------------------- */
.sc-stage {
  position: relative;
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--paper); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}
.sc-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-stage video.swapping { opacity: 0; }
.sc-stage video { transition: opacity .22s var(--ease); }

/* Shown when a clip has not been recorded yet. This is a designed state, not
   an error state: the feature still gets its icon, its name and its sentence,
   so a stage without a clip still says something. */
.sc-empty {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 32px;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(77,141,255,.13), transparent 62%),
    var(--paper);
}
.sc-stage.empty .sc-empty { display: flex; }
.sc-stage.empty .sc-cap { display: none; }

.sc-empty .big {
  width: 58px; height: 58px; border-radius: 15px;
  background: var(--paper-2); border: 1px solid var(--edge);
  display: grid; place-items: center; color: var(--blue-2);
}
.sc-empty .big svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-empty b { font-size: 19px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.sc-empty p { font-size: 14px; color: var(--ink-2); max-width: 46ch; line-height: 1.6; }

/* the caption sits over the clip, so the reader never loses which one plays */
.sc-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 20px 16px;
  background: linear-gradient(transparent, rgba(4, 6, 9, .92));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.sc-cap b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.sc-cap p { font-size: 13px; color: var(--ink-2); margin-top: 2px; max-width: 58ch; }
.sc-cap .pill { flex: none; }

/* -- the leftovers: real features that do not need a clip ---------------- */
.sc-also { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
@media (max-width: 940px) { .sc-also { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sc-also { grid-template-columns: 1fr; } }

.sc-also .card { padding: 16px 18px; display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.sc-also svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-also b { font-size: 14px; font-weight: 650; display: block; }
.sc-also span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; display: block; margin-top: 3px; }


/* ===========================================================================
   signed-in identity chip
   ---------------------------------------------------------------------------
   navAuth() in supabase.js swaps the "Sign in" link for this once a session is
   found: avatar plus display name, linking to the dashboard. Sign-out is not
   here on purpose. It lives on the dashboard, so the landing page nav stays a
   way in rather than a way out.

   The signed-OUT markup is what ships in the HTML, so the nav is right before
   any JS runs and stays right if the swap never happens.
   =========================================================================== */

.nav-profile, .drawer-profile {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 13px 0 5px;
  border: 1px solid var(--edge); border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink);
  font-size: 13.5px; font-weight: 600;
  max-width: 210px;
  transition: background .16s, border-color .16s;
}
.nav-profile:hover, .drawer-profile:hover { background: var(--paper-3); border-color: var(--edge-2); }

/* the name truncates rather than pushing the nav around: display names are
   whatever Discord allows, which is longer than any nav wants */
.nav-profile .who, .drawer-profile .who {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav-profile .pfp, .nav-profile .pfp-fallback,
.drawer-profile .pfp, .drawer-profile .pfp-fallback {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  object-fit: cover; display: grid; place-items: center;
  background: var(--blue-deep); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.drawer-profile { height: 44px; max-width: none; justify-content: flex-start; font-size: 15px; }
.drawer-profile .pfp, .drawer-profile .pfp-fallback { width: 30px; height: 30px; }

/* the chip is the one nav item worth keeping on a narrow screen: it is how a
   signed-in visitor reaches their dashboard */
@media (max-width: 980px) {
  .nav-signin.nav-profile { display: inline-flex; max-width: 150px; }
}
