/* Design tokens (color + fonts) live in theme.css — the single source of truth,
 * linked before this file on every page. Reference them via var(--…). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-cream) 24%, #ffffff 48%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* LIVE TICKER */
.ticker {
  background: #0b0e13; color: #d7dbe2; overflow: hidden;
  border-bottom: 1px solid #1c212b; height: 38px; position: relative;
}
.ticker-track {
  display: flex; align-items: center; gap: 0; height: 100%;
  white-space: nowrap; width: max-content;
  animation: ticker-scroll 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.tick {
  display: inline-flex; align-items: center; gap: 9px; height: 100%;
  padding: 0 26px; font-family: var(--mono); font-size: 12.5px;
  border-right: 1px solid #181d26;
}
.tick-logo {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border-radius: 4px; font-family: var(--sans); font-weight: 800; font-size: 11px;
  line-height: 1; flex: none;
}
.tick-brand { color: var(--green); font-weight: 700; letter-spacing: .03em; }
.tick-text { color: #aab1bd; }

/* NAV — segmented-control pill. The menu is a single rounded "segment" tray
   (.nav-btns) holding flat link segments (.navbtn) plus the coral Install CTA
   (.navbtn-cta). A link segment is visually flat at rest, then lifts onto a
   white pill on hover (and stays white when marked current via .is-active /
   aria-current). The CTA is always coral and lifts + brightens on hover. These
   shared classes render the control on every page that uses them. */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  padding: 18px 32px;
  max-width: 1180px; margin: 0 auto;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* --- brand (sized up within the nav to balance the segmented control) --- */
.brand { display: flex; align-items: center; gap: 9px; }
.nav .brand { gap: 12px; }
.logo {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--card-dark);
  border: 1px solid var(--line);
  color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 14px;
  display: grid; place-items: center; box-shadow: var(--shadow-logo);
}
.logo img { width: 72%; height: 72%; object-fit: contain; display: block; }
.nav .logo { width: 40px; height: 40px; border-radius: var(--radius-md); font-size: 16px; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.nav .brand-name { font-size: 22px; }

/* --- the segment tray --- */
.nav-btns {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px;
}

/* --- a link segment: flat at rest, white pill on hover / current page --- */
.navbtn {
  font-size: 14.5px; font-weight: 600; line-height: 1; color: var(--gray);
  padding: 10px 20px; border: 0; border-radius: var(--radius-pill);
  background: transparent; white-space: nowrap; cursor: pointer;
}
.navbtn:not(.navbtn-cta):hover {
  background: #fff; color: var(--ink); box-shadow: var(--shadow-seg-hover);
}
.navbtn:not(.navbtn-cta).is-active,
.navbtn:not(.navbtn-cta)[aria-current="page"] {
  background: #fff; color: var(--ink); box-shadow: var(--shadow-seg-active);
}
.navbtn:focus-visible { outline: none; box-shadow: var(--ring-focus); }

/* --- the Install CTA segment: always coral, lifts + brightens on hover --- */
.navbtn-cta {
  color: #fff; font-weight: 700; padding: 10px 22px;
  background: linear-gradient(180deg, var(--accent-grad-a), var(--accent-grad-b));
  box-shadow: var(--shadow-cta);
}
.navbtn-cta:hover { filter: brightness(1.05); box-shadow: var(--shadow-cta-hover); }
.navbtn-cta:active { filter: brightness(.98); }
.navbtn-cta:focus-visible { outline: none; box-shadow: var(--ring-focus), var(--shadow-cta); }

/* Motion — gate the transitions/transform behind a motion preference; the
   color / background / shadow swaps above still apply when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .navbtn { transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
  .navbtn-cta { transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
  .navbtn-cta:hover { transform: translateY(-1px); }
  .navbtn-cta:active { transform: translateY(0); }
}

/* HERO */
.hero { max-width: 920px; margin: 0 auto; padding: 56px 32px 24px; text-align: center; }
.hero h1 {
  font-size: clamp(17px, 4.8vw, 50px); font-weight: 900; letter-spacing: -.045em;
  line-height: 1.05; margin: 8px 0 22px;
  text-wrap: balance; /* wrap evenly when the headline needs more than one line */
}
.sub { font-size: 19px; color: var(--gray); margin: 0 auto 46px; line-height: 1.55; max-width: 560px; }
.sub strong { color: var(--ink); font-weight: 800; }
.sub .hl { color: var(--green); font-weight: 700; }

/* DEMO — before/after, with a little Claude Code guy perched on top */
.demo {
  text-align: left; margin: 0 auto 36px; position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px;
  /* Safety net: the absolutely-positioned mascot (and its JS wander) can never
     extend the document width. overflow-x:clip keeps overflow-y visible so the
     mascot's top:-20px perch is not clipped. */
  overflow-x: clip;
}
.demo-card {
  /* The dark sponsor-overlay surface (--ov-*), NOT --card-dark: cards are white
     in this theme, and the demo's --ov-demo-line text must sit on dark. */
  background: linear-gradient(180deg, var(--ov-bar-bg-hover), var(--ov-bar-bg));
  border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 18px 44px -24px rgba(0,0,0,.55);
  position: relative; z-index: 1;
}
.demo-chevs { color: var(--accent); font-size: 30px; line-height: 1; font-weight: 700; z-index: 1; }
.ast { color: var(--accent); display: inline-block; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.claude-guy {
  position: absolute; top: -20px; right: 30px; z-index: 0;
  transition: right 1.2s cubic-bezier(.5, 1.5, .4, 1), top .6s ease;
}
.claude-guy.cg-duck { top: 16px; }
.cg-sprite {
  display: block;
  image-rendering: pixelated;
  /* steps() so the idle bob jumps a whole pixel at a time — keeps him 8-bit */
  animation: cg-bob 1.4s steps(1, end) infinite;
}
.claude-guy.cg-hop .cg-sprite { animation: cg-hop .55s steps(1, end); }
.cg-eye, .cg-spark { transform-box: fill-box; transform-origin: center; }
.cg-eye { animation: cg-blink 3.4s steps(1, end) infinite; }
.cg-spark { animation: cg-twinkle 2.2s steps(1, end) infinite; }
@keyframes cg-bob { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(0); } }
@keyframes cg-hop {
  0%, 100% { transform: translateY(3px); }
  25% { transform: translateY(-3px); }
  50% { transform: translateY(-9px); }
  75% { transform: translateY(-3px); }
}
@keyframes cg-blink { 0%, 90%, 100% { transform: scaleY(1); } 93%, 97% { transform: scaleY(.15); } }
@keyframes cg-twinkle {
  0%, 100% { transform: none; opacity: 1; }
  50% { transform: rotate(90deg); opacity: .75; }
}
.demo-label {
  display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: #6e7585; margin-bottom: 16px;
}
.demo-line { font-family: var(--mono); font-size: 17px; color: var(--ov-demo-line); display: flex; align-items: center; gap: 10px; }
.brandchip {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  background: var(--ov-chip-bg); color: var(--ov-chip-ink); font-weight: 800; font-size: 13px; border-radius: 5px;
  font-family: var(--sans); flex: none;
}
/* Named "brand-line" (not "ad-text") so ad blockers don't hide the sponsored
   line in our own before/after demo. white-space:nowrap keeps it to ONE line at
   every width (chip + line never wrap the card to two rows); ellipsis is only a
   safety net — the ad copy is kept short enough to fully fit (see script.js). */
.brand-line {
  color: var(--ov-demo-line);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* INSTALL CARD — dark surface to match the before/after demo cards, with a
   coral accent so it reads as the hero's primary action without shouting. */
.install-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: linear-gradient(180deg, var(--card-dark), var(--card-dark-2));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 18px 22px; color: var(--ov-text); margin: 4px 0 26px;
  box-shadow: 0 18px 44px -24px rgba(0,0,0,.55);
  transition: transform .15s, border-color .15s;
}
.install-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb),.5); }
.install-icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 11px; color: var(--accent);
  background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-rgb),.28);
}
.install-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.install-title { font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: #fff; }
.install-sub { font-size: 12.5px; color: var(--ov-dots); }
.install-pill {
  display: grid; gap: 1px; justify-items: end; white-space: nowrap; text-align: right;
}
.install-pill-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ov-dots);
}
.install-pill-amt { font-weight: 800; font-size: 17px; color: var(--accent); }
.install-pill .per { opacity: .7; font-weight: 600; font-size: 11px; }
.install-arrow {
  font-size: 18px; font-weight: 700; color: var(--accent); flex: none;
  transition: transform .15s;
}
.install-card:hover .install-arrow { transform: translateX(3px); }
/* Chrome surface CTA → inline waitlist form on click (a duplicate of the entry
   above). The card is a button until clicked, then becomes the form. */
#chrome-cta { cursor: pointer; }
.install-card--wl { cursor: default; }
.install-card--wl:hover { transform: none; border-color: var(--line); }
.install-wl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.install-wl-label { font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.install-wl .wl-row { justify-content: flex-start; flex-wrap: nowrap; gap: 8px; }
.install-wl .wl-form { flex: 1 1 auto; max-width: 460px; gap: 8px; }
.install-wl .wl-ok { margin: 0; white-space: nowrap; }

/* CLI PASTE CARD — dark card (same surface as the install card) with a terminal
   one-liner and a copy button, for users who'd rather wire up Claude Code. */
.cli-card {
  text-align: left; margin: 0 0 26px;
  background: linear-gradient(180deg, var(--card-dark), var(--card-dark-2));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 18px 44px -24px rgba(0,0,0,.55);
}
.cli-head {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: #fff;
  margin-bottom: 12px;
}
.cli-glyph {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 7px; color: var(--accent);
  background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-rgb),.28);
}
.cli-code {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px; padding: 10px 10px 10px 14px;
}
.cli-cmd {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; color: var(--ov-line);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cli-cmd::-webkit-scrollbar { display: none; }
.cli-copy {
  flex: none; background: rgba(var(--accent-rgb),.16); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),.32); border-radius: 8px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--sans); transition: background .15s, border-color .15s;
}
.cli-copy:hover { background: rgba(var(--accent-rgb),.26); border-color: rgba(var(--accent-rgb),.5); }
/* "Earn up to $X/mo" sitting at the top-right of the CLI card, on the same line
   as "Paste this into your shell" — plain text, no background/pill. */
.cli-earn { margin-left: auto; flex: none; white-space: nowrap; font: 600 13px/1 var(--sans); color: var(--gray); }
.cli-earn .earn-amt { color: var(--accent-d); font-weight: 800; font-size: 14px; }
.cli-earn .per { opacity: .75; font-weight: 600; font-size: 11px; }
.cli-sub {
  display: block; margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--ov-dots);
}
.cli-sub strong { color: var(--ov-text); }
.cli-sub a { color: var(--accent); font-weight: 600; white-space: nowrap; }

.hero-note { font-size: 14.5px; color: var(--gray-2); margin: 0 auto 8px; line-height: 1.55; max-width: 620px; }
.hero-note strong { color: var(--gray); }
/* Advertiser CTA under the hero note (centered; hidden until enabled). */
.hero-adv { margin-top: 14px; text-align: center; }

/* ── Hero waitlist — pre-account email capture, injected under .hero-note by
   script.js on the home page and every lander. Reuses the .btn-green gradient
   and the redeem ok/err result tokens so it sits in the existing palette. ── */
.wl { max-width: 580px; margin: 16px auto 6px; }
.wl-eyebrow {
  display: block; margin: 0 0 10px;
  font: 800 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-d);
}
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: stretch; }
.wl-form { display: flex; gap: 8px; flex: 1 1 340px; min-width: 0; }
.wl-input {
  flex: 1 1 auto; min-width: 0;
  font: 500 16px/1.2 var(--sans); color: var(--ink);
  background: var(--bg-cream); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.wl-input::placeholder { color: var(--gray-2); }
.wl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.wl-btn {
  flex: 0 0 auto; cursor: pointer; white-space: nowrap;
  font: 800 15px/1 var(--sans); color: #fff;
  background: linear-gradient(180deg, var(--green-grad-a), var(--green-grad-b));
  border: none; border-radius: 11px; padding: 0 20px; min-height: 46px;
  box-shadow: 0 12px 28px -14px rgba(var(--accent-rgb), .7);
  transition: transform .15s, filter .15s;
}
.wl-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.wl-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.wl-adv {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; white-space: nowrap;
  font: 700 14px/1 var(--sans); color: var(--accent-d); text-decoration: none;
  background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: 11px; padding: 0 18px; min-height: 46px;
  transition: border-color .15s, background .15s, transform .15s;
}
.wl-adv::after { content: " →"; white-space: pre; }
.wl-adv:hover { border-color: var(--accent); background: var(--bg-cream); transform: translateY(-2px); }
.wl-note { margin: 12px 0 0; font: 500 13px/1.5 var(--sans); color: var(--gray-2); }
.wl-note:empty { margin: 0; }
.wl-note--err { color: var(--err-fg); }
.wl-ok {
  margin: 0; flex: 1 1 100%;
  font: 600 15px/1.5 var(--sans);
  background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line);
  border-radius: 11px; padding: 13px 16px;
}
/* Home variant: the waitlist sits below the 3-up downloads grid as one row —
   column 1 is the email + Join button, column 2 is the advertise button. The
   email input is kept compact and there's a clear gap between the signup and
   the advertise button. */
/* Home: the waitlist is stacked inside the Chrome column (#wl-slot), under its
   "Coming soon" tile — so it spans the column: email over a full-width Join, with
   the advertise link beneath. */
.wl--col { max-width: none; margin: 4px 0 0; padding: 0; }
.wl--col .wl-row { flex-direction: column; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
.wl--col .wl-form { flex: 0 0 auto; width: 100%; gap: 8px; }
.wl--col .wl-input { flex: 1 1 auto; width: auto; min-width: 0; }
.wl--col .wl-adv { width: 100%; }

@media (max-width: 560px) {
  /* Stack vertically on mobile, advertise button on top of the waitlist. */
  .wl-row { flex-direction: column; flex-wrap: wrap; gap: 12px; }
  .wl-form, .wl-adv { flex-basis: 100%; width: 100%; }
  .wl-adv { order: -1; }
}

/* The "FOR ADVERTISERS" scroll cue now sits between the surfaces section and
   the advertiser auction (outside the centered hero), so center it here. */
.jump-wrap { text-align: center; margin-top: 6px; }
.jump {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--blue);
  font-weight: 600;
}
.jump-dot { display: none; }
.jump { position: relative; }
.jump > .jump-dot { position: absolute; left: -16px; top: 4px; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.jump-chev { font-size: 20px; color: var(--blue); animation: bob 1.8s ease infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* "Get it on your platform" — coral label above the quick-install row. */
.tryit {
  display: flex; align-items: center; justify-content: center;
  margin: 4px 0 14px; font-family: var(--mono); font-weight: 700;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}

/* DOWNLOAD CTAs — three quick installs above the surfaces showcase. Chrome +
   Desktop are greyed "coming soon"; Terminal is a compact copy-paste. */
.downloads { padding: 16px 0 4px; }
.dl-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start;
}
.dl-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dl-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); font-weight: 700; text-align: center;
}
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 56px; padding: 14px 18px; border-radius: var(--radius-lg);
  font-family: var(--sans); font-weight: 800; font-size: 15px;
  border: none; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, var(--green-grad-a), var(--green-grad-b));
  box-shadow: 0 12px 28px -14px rgba(var(--accent-rgb), .7);
  transition: transform .15s ease, filter .15s ease;
}
.dl-btn:not(.dl-soon):hover { transform: translateY(-2px); filter: brightness(1.04); }
.dl-btn.dl-soon {
  background: var(--surface-inset); color: var(--gray-2); box-shadow: none;
  border: 1px solid var(--line); border-style: dashed; cursor: default;
}
.dl-btn-icon { flex: none; }
/* Round glyphs (the Chrome logo's circular ring) read as sitting slightly below
   the text's cap-height even when their bounding box is perfectly centered — a
   common optical-alignment quirk. Nudge up 1px so it reads as level. */
.dl-btn-icon--round { transform: translateY(-1px); }
.dl-cli {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px;
  padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-tint);
}
.dl-cmd {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2); scrollbar-width: none;
}
.dl-cmd::-webkit-scrollbar { display: none; }
.dl-copy {
  flex: none; background: rgba(var(--accent-rgb),.16); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),.32); border-radius: 9px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--sans);
  transition: background .15s, border-color .15s;
}
.dl-copy:hover { background: rgba(var(--accent-rgb),.26); border-color: rgba(var(--accent-rgb),.5); }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }

/* SURFACES — "Native everywhere it appears" (Claude Design handoff).
   Pixel-for-pixel port of the design's <section class="surfaces">, embedded in
   the hero. Every selector is scoped under .surfaces so the design's generic
   class names (.win, .tab, .chip, .shot…) can't collide with the rest of the
   site. Color / radius / shadow / overlay tokens come from theme.css; the
   type-scale, weight, tracking, leading and motion tokens the design assumes
   (and that aren't in theme.css yet) are declared on the section itself. */
.surfaces {
  --measure: 1180px;
  --text-h2: 34px; --text-h3: 24px; --text-body-lg: 17px; --text-label-sm: 11px;
  --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800;
  --tracking-tight: -.03em; --tracking-snug: -.02em; --tracking-label: .14em;
  --leading-relaxed: 1.6;
  --ease-out: cubic-bezier(.4, 0, .2, 1); --dur-fast: .12s; --dur-base: .15s;
  /* Provider brand colors for the active tab — external brands (like the
     sponsor chips), content rather than DWELL palette. Claude reuses the accent. */
  /* Claude keeps Anthropic's own coral — NOT our brand red (which would read
     as a DWELL element rather than the Claude product tab). */
  --brand-claude: #d97757; --brand-chatgpt: #0d0d0d; --brand-gemini: #4285f4;
  --brand-claude-soft: rgba(217, 119, 87, .12); --brand-chatgpt-soft: rgba(13, 13, 13, .06); --brand-gemini-soft: rgba(66, 133, 244, .12);
  text-align: left; padding: 40px 0 24px;
}
.surfaces .wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }

.surfaces .secthead { text-align: center; margin: 28px auto 12px; }
.surfaces .secthead h2 {
  font-weight: var(--fw-extrabold); font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight); margin: 10px 0 0;
}
.surfaces .secthead p { color: var(--gray); font-size: var(--text-body-lg); margin: 12px auto 0; max-width: 560px; text-wrap: pretty; }

.surfaces .surface { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 28px; align-items: center; padding: 52px 0; }
.surfaces .surface.flip .stage { order: 2; }
.surfaces .surface + .surface { border-top: 1px solid var(--line); }
/* Let the 1fr tracks shrink so long terminal/command content scrolls or clips
   instead of forcing the grid wider than the viewport on mobile. */
.surfaces .surface > * { min-width: 0; }
/* A CTA card (Chrome install / terminal paste) folded full-width under a
   surface's two-column row — always last. Light treatment so it sits on the
   section's light canvas instead of the dark hero version. */
.surfaces .surface-cta {
  grid-column: 1 / -1; order: 3; margin: 0;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2);
}
.surfaces .surface-cta:hover { border-color: rgba(var(--accent-rgb), .5); }
.surfaces .surface-cta .install-title,
.surfaces .surface-cta .cli-head { color: var(--ink); }
.surfaces .surface-cta .install-sub,
.surfaces .surface-cta .install-pill-label { color: var(--gray); }
.surfaces .surface-cta .cli-code { background: var(--bg-tint); border-color: var(--line); }
.surfaces .surface-cta .cli-cmd { color: var(--ink-2); }
.surfaces .scopy .idx { font-family: var(--mono); font-size: var(--text-label-sm); color: var(--accent); letter-spacing: var(--tracking-label); font-weight: var(--fw-bold); }
.surfaces .scopy h3 { font-size: var(--text-h3); font-weight: var(--fw-extrabold); letter-spacing: var(--tracking-snug); margin: 12px 0 0; }
.surfaces .scopy p { color: var(--gray); font-size: var(--text-body-lg); line-height: var(--leading-relaxed); margin: 14px 0 0; max-width: 420px; text-wrap: pretty; }
/* "Download for Mac" — a chunky orange CTA, full width of the copy column. */
.surfaces .scopy-dl {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin: 22px 0 0; padding: 15px 18px; min-height: 54px;
  border: none; border-radius: 12px; color: #fff;
  background: linear-gradient(180deg, var(--green-grad-a), var(--green-grad-b));
  font-family: var(--sans); font-weight: 800; font-size: 15px;
  box-shadow: 0 12px 28px -14px rgba(var(--accent-rgb), .7);
  transition: transform .15s ease, filter .15s ease;
}
.surfaces .scopy-dl:hover { transform: translateY(-2px); filter: brightness(1.04); }

/* Window chrome (shared) */
.surfaces .win { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.surfaces .win .chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid; }
.surfaces .win .chrome i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.surfaces .win .chrome .label { margin-left: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }

/* Light browser window */
.surfaces .win.light { background: #fff; }
.surfaces .win.light .chrome { background: #fbfaf7; border-color: var(--line); }
.surfaces .win.light .chrome .label { color: var(--gray-2); }

/* Provider tabs */
.surfaces .tabs { display: flex; gap: 4px; margin-left: 14px; }
.surfaces .tab {
  font-family: var(--sans); font-size: 12px; font-weight: var(--fw-semibold); color: var(--gray-2);
  background: transparent; border: 0; border-radius: var(--radius-sm); padding: 5px 12px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
/* Each tab hints its provider brand even before selection, so it reads as a
   clickable, branded pill; the active tab then fills solid. */
.surfaces .tab[data-shot="claude"],
.surfaces .tab[data-shot="desktop-claude"] { color: var(--brand-claude); background: var(--brand-claude-soft); }
.surfaces .tab[data-shot="chatgpt"],
.surfaces .tab[data-shot="desktop-chatgpt"] { color: var(--brand-chatgpt); background: var(--brand-chatgpt-soft); }
.surfaces .tab[data-shot="gemini"] { color: var(--brand-gemini); background: var(--brand-gemini-soft); }
.surfaces .tab:hover { filter: brightness(.95); }
.surfaces .tab.active { box-shadow: var(--shadow-sm); }
/* Active provider tab takes that provider's brand color (Claude coral,
   ChatGPT black/white, Gemini blue). */
.surfaces .tab.active[data-shot="claude"],
.surfaces .tab.active[data-shot="desktop-claude"] { background: var(--brand-claude); color: #fff; }
.surfaces .tab.active[data-shot="chatgpt"],
.surfaces .tab.active[data-shot="desktop-chatgpt"] { background: var(--brand-chatgpt); color: #fff; }
.surfaces .tab.active[data-shot="gemini"] { background: var(--brand-gemini); color: #fff; }

/* Screenshot stage */
.surfaces .shotwrap { position: relative; background: #fff; aspect-ratio: 16 / 9; }
.surfaces .shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out); pointer-events: none;
}
.surfaces .shot.active { opacity: 1; }
.surfaces .shot[data-shot="gemini"] { background: #0a0b0d; }
.surfaces .shotwrap.desk { aspect-ratio: 5 / 2; background: #faf9f5; }
.surfaces .shotwrap.desk .shot { object-fit: contain; padding: 18px 28px; }

/* Terminal window */
.surfaces .win.term { background: #0c0e12; border-color: #1c1f24; font-family: var(--mono); }
.surfaces .win.term .chrome { background: #0f1217; border-color: #1c1f24; }
.surfaces .win.term .chrome .label { color: #5b626e; }
.surfaces .termpad { padding: 22px 22px 20px; font-size: 13px; line-height: 1.7; color: #c7ccd6; }
.surfaces .termpad .status { color: var(--accent); }
.surfaces .termpad .status .muted { color: #6b727e; }
.surfaces .termpad .tip { color: #6b727e; padding-left: 18px; }
.surfaces .termpad .divider { border: 0; border-top: 1px solid #20242b; margin: 16px 0; }
.surfaces .termpad .prompt { display: flex; align-items: center; gap: 10px; color: #e9ecf2; }
.surfaces .termpad .prompt .chev { color: #e9ecf2; }
.surfaces .cursor { display: inline-block; width: 9px; height: 17px; background: #e9ecf2; animation: blink 1.1s steps(1) infinite; vertical-align: middle; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
.surfaces .termpad .adline { margin-top: 16px; }
.surfaces .termpad .adline .ad { color: var(--ov-tag-text); }
.surfaces .termpad .adline a { color: #7c84f0; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.surfaces .termpad .forhint { color: #5b626e; margin-top: 4px; }

@media (max-width: 860px) {
  .surfaces .surface { grid-template-columns: 1fr; gap: 28px; }
  .surfaces .surface.flip .stage { order: 0; }
  .surfaces .scopy p { max-width: none; }
}

/* REWARDS — "Get rewards for doing what you already do". Sibling of .surfaces
   with the same measure and heading treatment (its type-scale tokens are local
   to .surfaces, so they're redeclared here). Two static, inert previews of the
   /redeem portal: the Claude gift-card menu (mirrors .gift-menu on the redeem
   page and GIFT_PLANS/GIFT_MONTHS in server/src/giftcards.js) and a Stripe
   cash payout with its confirm modal (coming soon). Scoped under .rewards. */
.rewards {
  --measure: 1180px;
  --text-h2: 34px; --text-h3: 24px; --text-body-lg: 17px; --text-label-sm: 11px;
  --fw-bold: 700; --fw-extrabold: 800;
  --tracking-tight: -.03em; --tracking-snug: -.02em; --tracking-label: .14em;
  --leading-relaxed: 1.6;
  text-align: left; padding: 24px 0 40px;
}
.rewards .wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }
/* Hairline between the last surface and this section, matching .surface + .surface. */
.rewards .secthead { text-align: center; margin: 0 auto 12px; padding-top: 52px; border-top: 1px solid var(--line); }
.rewards .secthead h2 {
  font-weight: var(--fw-extrabold); font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight); margin: 10px 0 0;
}

.rewards-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 44px; align-items: start; padding: 40px 0 8px; }
.rewards-grid > * { min-width: 0; }
.reward-col .idx { font-family: var(--mono); font-size: var(--text-label-sm); color: var(--accent); letter-spacing: var(--tracking-label); font-weight: var(--fw-bold); }
.reward-col h3 { font-size: var(--text-h3); font-weight: var(--fw-extrabold); letter-spacing: var(--tracking-snug); margin: 12px 0 0; }
.reward-col > p { color: var(--gray); font-size: var(--text-body-lg); line-height: var(--leading-relaxed); margin: 14px 0 0; max-width: 460px; text-wrap: pretty; }
.reward-star { color: var(--accent); }
.reward-note { font-family: var(--mono); font-size: 11.5px; color: var(--gray-2); letter-spacing: .04em; margin: 14px 2px 0; }

/* Portal window mockup — same light-window treatment as .surfaces .win.light. */
.rw-win { margin-top: 24px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); background: #fff; }
.rw-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #fbfaf7; border-bottom: 1px solid var(--line); }
.rw-chrome i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.rw-chrome .label { margin-left: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--gray-2); }
.rw-body { padding: 16px; }

/* Gift-card menu recreation — .gift-menu/.gift-row/.gift-cell from the redeem
   page, compacted to fit a half-width column and inert (spans, not buttons). */
.rw-menu { display: grid; gap: 10px; }
.rw-row { display: grid; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fcfbf9; }
.rw-plan { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rw-name { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.rw-tag { font-family: var(--mono); font-size: 10px; color: var(--gray-2); text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.rw-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.rw-cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s;
}
.rw-cell:hover { border-color: var(--border-strong); }
.rw-cell.sel { border-color: var(--accent); background: #fbf0ea; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .18); }
.rw-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rw-term { font-family: var(--mono); font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.rw-price { font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; }

/* Cash payout preview — the portal balance + Stripe button dimmed under a
   scrim (as if just clicked, see .rw-cursor) with the confirm modal on top.
   Modal treatment mirrors .modal-overlay/.modal-card in admin.css. */
/* Deep bottom padding reserves room for the modal below the Stripe button. */
.rw-cash-body { position: relative; padding: 22px 22px 235px; overflow: hidden; }
.rw-portal { display: flex; flex-direction: column; align-items: flex-start; }
.rw-balance-label { font-family: var(--mono); font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: .08em; }
.rw-balance { font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-top: 8px; }
.rw-balance-sub { font-size: 13px; color: var(--gray-2); margin-top: 6px; }
.rw-payout { position: relative; margin-top: 22px; width: 100%; }
.rw-payout-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--stripe); color: #fff; border-radius: 12px; padding: 14px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(99,91,255,.55); filter: brightness(1.06);
}
.rw-payout-btn .stripe-logo { height: 19px; width: auto; display: block; }
/* The click that opened the modal — sits above the scrim, on the button edge. */
.rw-cursor { position: absolute; right: 42px; bottom: -11px; width: 23px; height: 23px; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.rw-scrim { position: absolute; inset: 0; z-index: 1; background: rgba(30,28,26,.5); }
.rw-modal {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3;
  width: min(88%, 380px); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.rw-modal h4 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0; }
.rw-modal p { font-size: 13.5px; color: var(--gray); line-height: 1.55; margin: 8px 0 0; }
.rw-modal-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.rw-modal-primary {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px;
  border-radius: 10px; color: #fff; font-size: 14px; font-weight: 800;
  background: linear-gradient(180deg, var(--accent-grad-a), var(--accent-grad-b));
  box-shadow: 0 12px 28px -14px rgba(var(--accent-rgb), .7);
}
.rw-modal-cancel { font-size: 14px; font-weight: 600; color: var(--gray); }

@media (max-width: 860px) {
  .rewards-grid { grid-template-columns: 1fr; }
  .reward-col > p { max-width: none; }
}

/* ADVERTISERS */
.advertisers { max-width: 1100px; margin: 40px auto 0; padding: 0 32px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 48px 56px; box-shadow: 0 30px 70px -45px rgba(20,30,40,.4);
}
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 12px;
}
.adv-card h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; }
.adv-intro { font-size: 16px; color: var(--gray); margin: 0 0 32px; line-height: 1.6; max-width: 820px; }
.adv-intro strong { color: var(--ink); }

/* FORM */
.adform { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.flabel {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600;
}
.flabel em { color: var(--gray-2); font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.flabel .count { float: right; }
.adform input {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fcfcfd;
  width: 100%;
}
.adform input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
.adform input::placeholder { color: #b6bcc6; }
/* Ad color: native swatch picker sitting beside the #hex text field. */
.colorfield { display: flex; align-items: stretch; gap: 10px; }
.colorfield #adcolor { flex: 1; min-width: 0; }
/* height matches the text input beside it (13px padding + 1px border + line-box) */
.colorfield input[type="color"] { flex: none; width: 52px; height: 46px; padding: 4px; cursor: pointer; }
.colorfield input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.colorfield input[type="color"]::-webkit-color-swatch { border: none; border-radius: 7px; }
.colorfield input[type="color"]::-moz-color-swatch { border: none; border-radius: 7px; }
.dropzone {
  border: 1.5px dashed #d2d7df; border-radius: 11px; padding: 22px; text-align: center;
  color: var(--gray-2); font-size: 14px; background: #fcfcfd; cursor: pointer;
}
.dropzone:hover { border-color: var(--green); color: var(--gray); }
.dropzone--drag { border-color: var(--accent); background: rgba(var(--accent-rgb),.06); color: var(--accent-d); }
.dropzone-msg--err { color: var(--err-fg); }
.dropzone--filled { padding: 10px 14px; text-align: left; border-style: solid; border-color: var(--line); }
.dropzone-preview[hidden] { display: none; }
.dropzone-preview { display: flex; align-items: center; gap: 10px; }
.dropzone-preview img {
  flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--line); background: #fff;
}
.dropzone-name { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-remove {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--gray); font-size: 13px; line-height: 1; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.dropzone-remove:hover { border-color: var(--err-fg); color: var(--err-fg); }
.checkrow { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.checkrow input { width: 18px; height: 18px; accent-color: var(--blue); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* BUDGET + CPM SLIDER */
.cpmfield { gap: 8px; }
.cpm-slider-wrap { position: relative; padding-top: 34px; }
.cpm-bubble {
  position: absolute; top: 0; transform: translateX(-50%);
  font: 700 13px/1 var(--mono); color: #fff; background: var(--accent);
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none;
}
.cpm-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 8px;
  background: var(--accent); transform: translateX(-50%) rotate(45deg);
}
#cpm {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 999px; background: var(--line); outline: none; cursor: pointer;
  margin: 0; padding: 0; border: none; /* override .adform input padding/border */
}
#cpm::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(var(--accent-rgb), .55); cursor: pointer;
}
#cpm::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(var(--accent-rgb), .55); cursor: pointer;
}
#cpm:focus-visible { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.cpm-ticks { display: flex; justify-content: space-between; margin-top: 11px; font-size: 12px; color: var(--gray); }
.cpm-ticks strong { color: var(--ink); font-weight: 700; }
/* Ghost marker: a read-only copy of the thumb (same 22px circle, unfilled, 50%
   opacity) sitting on the track at the current top bid. Positioned by JS
   (cpmLeft) so it lines up with the real thumb's path; the label sits below. */
.cpm-ghost { position: absolute; top: 37px; transform: translate(-50%, -50%); width: 22px; height: 22px; z-index: 1; pointer-events: none; }
.cpm-ghost::before {
  content: ""; position: absolute; inset: 0; box-sizing: border-box; border-radius: 50%;
  background: transparent; border: 3px solid var(--accent); opacity: .5;
}
.cpm-ghost-lbl {
  position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); white-space: nowrap;
  font: 700 10.5px/1 var(--mono); letter-spacing: .04em; color: var(--gray);
}

/* ESTIMATE */
.estimate {
  background: #f7f3ec; border: 1px solid #e8e2d4; border-radius: 14px; padding: 20px;
  border-left: 4px solid var(--accent); display: grid; gap: 4px;
}
.est-head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.est-sub { font-size: 13px; color: var(--gray-2); }
/* The budget is the big editable number in this box. */
.est-budget { display: flex; align-items: baseline; gap: 3px; margin: 2px 0; }
.est-budget-prefix { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.est-budget input {
  font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
  border: none !important; background: transparent !important; box-shadow: none !important;
  padding: 0 !important; width: 100%; min-width: 0; -moz-appearance: textfield;
}
.est-budget input::placeholder { color: #c9bfae; }
.est-budget input::-webkit-outer-spin-button,
.est-budget input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.est-rows { display: grid; gap: 5px; margin: 10px 0 12px; }
.est-line { display: flex; align-items: baseline; gap: 8px; }
.est-line strong { font-size: 17px; font-weight: 700; min-width: 96px; }
.est-line span { font-size: 13px; color: var(--gray); }
.est-note {
  font-size: 13px; color: #7a4a36; background: #f6eae3; border-radius: 9px; padding: 11px 13px;
  margin: 0; line-height: 1.5;
}
.est-note strong { color: #4a2c1f; }
/* CPM slider folded inside the budget box — space it off the min/max hint, and
   order it above the top-CPM note and the CPM/impressions readout. */
.est-cpmfield { margin-top: 14px; }
.est-cpmfield .flabel { color: var(--gray); }
.est-rows { margin-bottom: 0; }

/* One-line campaign summary above the pay button. */
.adsummary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  background: #f7f3ec; border: 1px solid #e8e2d4; border-radius: 12px;
  padding: 13px 16px; font-size: 14px; color: var(--gray);
}
.adsummary strong { color: var(--ink); font-weight: 800; }
.adsummary-sep { color: var(--gray-2); }

/* LIVE PREVIEW — mirrors the dark spinner overlay a viewer sees. Chip/line/dots
   recolor to the advertiser's chosen ad color via --prev-accent (set in JS;
   defaults to the brand coral). */
.adpreview-bar {
  display: flex; align-items: center; gap: 11px;
  background: var(--ov-bar-bg); border: 1px solid var(--ov-bar-border);
  border-radius: 14px; padding: 15px 18px;
  box-shadow: 0 18px 44px -24px rgba(0,0,0,.55); font-family: var(--mono);
}
.adpreview-chip {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 7px; font-family: var(--sans); font-weight: 800; font-size: 14px;
  background: var(--prev-accent, var(--accent)); color: var(--prev-ink, #fff);
}
.adpreview-line {
  flex: 1; min-width: 0; font-size: 16px; color: var(--prev-accent, var(--accent));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adpreview-dots { display: inline-flex; gap: 5px; flex: none; }
.adpreview-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--prev-accent, var(--accent)); opacity: .18;
}
/* Cumulative "thinking" sequence: 1 dot → 2 dots → 3 dots → reset. */
.adpreview-dots i:nth-child(1) { animation: adprev-d1 1.5s linear infinite; }
.adpreview-dots i:nth-child(2) { animation: adprev-d2 1.5s linear infinite; }
.adpreview-dots i:nth-child(3) { animation: adprev-d3 1.5s linear infinite; }
@keyframes adprev-d1 { 0%, 74% { opacity: 1; } 75%, 100% { opacity: .18; } }
@keyframes adprev-d2 { 0%, 24% { opacity: .18; } 25%, 74% { opacity: 1; } 75%, 100% { opacity: .18; } }
@keyframes adprev-d3 { 0%, 49% { opacity: .18; } 50%, 74% { opacity: 1; } 75%, 100% { opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .adpreview-dots i { animation: none; opacity: 1; } }

.stripe-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--stripe); color: #fff; border: none; border-radius: 12px;
  padding: 16px; font-family: var(--sans); font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(99,91,255,.55); transition: filter .15s, transform .12s;
}
.stripe-btn:hover { filter: brightness(1.06); }
.stripe-btn:active { transform: translateY(1px); }
.stripe-btn-label { line-height: 1; }
/* Official Stripe wordmark — white on Stripe purple via currentColor. */
.stripe-logo { height: 21px; width: auto; display: block; }

/* LEADERBOARD */
.leaderboard { max-width: 760px; margin: 56px auto 0; padding: 0 32px; }
.bidmarket {
  display: block; text-align: center; font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gray-2); margin-bottom: 16px;
}
.board { list-style: none; margin: 0; padding: 0; }
.board li {
  display: flex; align-items: center; gap: 16px; padding: 14px 6px;
  border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2);
}
.board li:hover { background: #fafbfc; }
.rk { font-family: var(--mono); font-size: 13px; color: var(--gray-2); min-width: 22px; }

/* INSTALL SECTION */
/* TRUST / TRANSPARENCY */
.trust { max-width: 760px; margin: 64px auto 0; padding: 0 32px; }
.trust h2 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.trust .eyebrow { color: var(--green-d); }
.trust-intro { font-size: 15px; color: var(--gray); margin: 0 0 22px; line-height: 1.6; }
.trust-intro strong { color: var(--ink); }
.trust-list { list-style: none; margin: 0 0 22px; padding: 0; }
.trust-list li {
  font-size: 14px; color: var(--gray); line-height: 1.55;
  padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative;
}
.trust-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.trust-list li strong { color: var(--ink); }
.trust-link {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--green-d); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; background: #fff; transition: border-color .15s, background .15s;
}
.trust-link:hover { border-color: var(--accent); background: #faf2ee; }

/* FAQ — accordion. The answer body reuses .trust-list / .trust-link. */
.faq { max-width: 760px; margin: 64px auto 0; padding: 0 32px; }
.faq .eyebrow { color: var(--green-d); }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; margin-top: 16px; }
.faq-q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--gray-2); flex: none; }
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 0 24px; }
.faq-lead { font-size: 15px; color: var(--gray); margin: 0 0 22px; line-height: 1.6; }
.faq-lead strong { color: var(--ink); }
.faq .trust-list li:last-child { border-bottom: none; }

/* ADVERTISERS PAGE — the three surfaces advertisers reach. Lives inside
   .surfaces .wrap, so it inherits the 1180px measure; these are simple
   number + text columns (no screenshots). */
.adv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 8px auto 0; }
.adv-col { padding: 24px 4px 0; border-top: 2px solid var(--line); }
.adv-col .idx { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; font-weight: 700; }
.adv-col h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 0; }
.adv-col p { color: var(--gray); font-size: 15px; line-height: 1.55; margin: 10px 0 0; }
@media (max-width: 720px) { .adv-cols { grid-template-columns: 1fr; gap: 0; } .adv-col { padding: 22px 0; } }

/* Recurring-budget note under the advertiser checkout form. */
.adv-recurring { max-width: 1100px; margin: 18px auto 0; padding: 0 32px; font-size: 14px; color: var(--gray); text-align: center; }
.adv-recurring a { color: var(--green-d); font-weight: 600; }

.install-section { max-width: 760px; margin: 64px auto 0; padding: 0 32px; text-align: center; }
.install-section h2 { font-size: clamp(24px, 6vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 18px; }
.install-lead { font-size: 15px; color: var(--gray); line-height: 1.6; max-width: 520px; margin: 0 auto 22px; }
.install-lead strong { color: var(--ink); }
.install-cmd {
  display: inline-flex; align-items: center; gap: 12px; background: #f3f5f8;
  border: 1px solid var(--line); border-radius: 12px; padding: 7px 7px 7px 16px; margin-bottom: 22px;
}
.install-cmd code { font-family: var(--mono); font-size: 14px; color: var(--green-d); }
.copy-btn { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: #cfd4dc; }
.install-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-green {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, var(--green-grad-a), var(--green-grad-b)); color: #fff;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 12px;
  box-shadow: 0 12px 28px -14px rgba(var(--accent-rgb),.7);
  transition: transform .15s, filter .15s;
}
.btn-green:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-chrome { flex: none; }
.btn-outline { border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 12px; }
.btn-outline:hover { border-color: #cfd4dc; }
.install-fine { font-size: 13.5px; color: var(--gray-2); margin-top: 22px; }
.install-fine strong { color: var(--green-d); }

/* DASHBOARD (signed-in portal) — utility nav, section tabs, delivery, states */
/* Align the header with the dashboard content column instead of the wide site nav. */
.dash-nav { max-width: 780px; }

/* Account cluster — Home + Sign out kept separate from the section nav, styled as
   quiet text links so the segmented tabs below read as the primary navigation. */
.dash-account { display: flex; align-items: center; gap: 2px; }
.dash-account-who {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gray);
  padding: 7px 10px; margin-right: 2px; max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.dash-account-link {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--gray);
  padding: 7px 12px; border: none; border-radius: 999px; background: transparent;
  cursor: pointer; text-decoration: none; transition: color .15s, background .15s;
}
.dash-account-link:hover { color: var(--ink); background: var(--bg-tint); }
.dash-signout:hover { color: var(--err-fg); }

/* Section tabs — one segmented control, one active view at a time. */
.dash-tabs {
  display: flex; gap: 4px;
  width: min(716px, 100% - 28px); margin: 24px auto 0; padding: 5px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 14px 36px -30px rgba(20,30,40,.45);
}
.dash-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 10px; border: none; border-radius: 11px; background: transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--gray);
  cursor: pointer; transition: color .15s, background .15s;
}
.dash-tab:hover { color: var(--ink); background: #fcfbf9; }
.dash-tab.active { color: var(--accent-d); background: #fbf0ea; }
.dash-tab-ico { width: 16px; height: 16px; flex-shrink: 0; display: inline-flex; }
.dash-tab-ico svg { width: 100%; height: 100%; display: block; }
.dash-tabs + .redeem { padding-top: 26px; }

/* out-of-inventory notice — informational, not an error: --bg-tint keeps it calm */
.dash-notice {
  display: flex; align-items: flex-start; gap: 10px;
  width: min(716px, 100% - 28px); margin: 18px auto 0; padding: 13px 16px;
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
}
.dash-notice-ico { flex: none; font-size: 15px; line-height: 1.5; }

/* Gift-card delivery — read-only "delivered to" card replacing the bare input. */
.redeem-delivery {
  display: flex; align-items: center; gap: 13px; max-width: 420px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fcfbf9;
}
.rd-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  color: var(--accent-d); background: #fbf0ea; border: 1px solid rgba(var(--accent-rgb), .25);
}
.rd-ico svg { width: 19px; height: 19px; }
.rd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rd-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-2); }
.rd-email { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Activity loading state (auto-retrieve). Reuses .portal-spinner from portal.css. */
.act-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 20px; }
.act-loading p { font-size: 14px; color: var(--gray); margin: 0; }
.act-loading .portal-spinner { width: 30px; height: 30px; }

@media (max-width: 560px) {
  .dash-tab { font-size: 12.5px; padding: 10px 5px; gap: 0; }
  .dash-tab-ico { display: none; }
}

/* REDEEM PAGE */
.redeem { max-width: 780px; margin: 0 auto; padding: 40px 32px 0; }
.redeem-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 40px 44px; box-shadow: 0 30px 70px -45px rgba(20,30,40,.4);
}
.redeem-card h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; margin: 8px 0 14px; }
.redeem-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 28px 0 10px; }
.redeem-lead { font-size: 15.5px; color: var(--gray); line-height: 1.6; margin: 0 0 24px; max-width: 600px; }
.redeem-lead strong { color: var(--ink); }
.login-form { display: grid; gap: 16px; max-width: 420px; }
.login-msg { font-size: 14.5px; color: var(--accent-d); margin: 18px 0 0; line-height: 1.5; }

.balance-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.balance { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-top: 4px; }
.balance-sub { font-size: 13.5px; color: var(--gray-2); margin-top: 6px; }

.gift-menu { display: grid; gap: 14px; margin-bottom: 26px; }
.gift-row {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fcfbf9;
}
.gift-plan { display: flex; flex-direction: column; gap: 3px; }
.gp-name { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.gp-tag { font-family: var(--mono); font-size: 11.5px; color: var(--gray-2); text-transform: uppercase; letter-spacing: .06em; }
.gift-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gift-cell {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer; font-family: var(--sans); transition: border-color .12s, background .12s, transform .1s;
}
.gift-cell:hover:not([disabled]) { border-color: var(--accent); transform: translateY(-1px); }
.gift-cell.sel { border-color: var(--accent); background: #fbf0ea; box-shadow: 0 0 0 2px rgba(217,119,87,.18); }
.gift-cell[disabled] { opacity: .4; cursor: not-allowed; }
.gc-term { font-family: var(--mono); font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.gc-price { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }

.redeem-foot { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.recipient { max-width: 420px; }
.redeem-summary { font-size: 15px; color: var(--ink-2); }
.redeem-summary .sum-after { color: var(--gray-2); }
.redeem-foot .btn-green { justify-self: start; border: none; cursor: pointer; font-family: var(--sans); }
.redeem-foot .btn-green:disabled { opacity: .45; cursor: not-allowed; }
.redeem-result { font-size: 15px; line-height: 1.55; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; }
.redeem-result.ok { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }
.redeem-result.err { background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-line); }

@media (min-width: 640px) {
  .gift-row { grid-template-columns: 200px 1fr; align-items: center; }
}

/* EARNINGS DASHBOARD */
.redeem #earnings-view, .redeem #activity-view { margin-bottom: 22px; }
.earn-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; }

.earn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 26px; }
.earn-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fcfbf9;
}
.es-label { font-family: var(--mono); font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: .08em; }
.es-num { font-size: 30px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.es-sub { font-size: 12.5px; color: var(--gray-2); }

.earn-chart-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: #fff; }
.ecc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ecc-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.ecc-sub { font-size: 13px; color: var(--gray-2); margin: 4px 0 0; }

.earn-window { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #fcfbf9; }
.ew-btn {
  border: none; background: transparent; cursor: pointer; font-family: var(--sans);
  font-size: 13px; font-weight: 700; color: var(--gray); padding: 6px 12px; border-radius: 8px;
  transition: background .12s, color .12s;
}
.ew-btn:hover { color: var(--ink); }
.ew-btn.active { background: #fff; color: var(--accent-d); box-shadow: 0 1px 3px rgba(20,30,40,.12); }

.earn-chart { width: 100%; height: 220px; }
.ec-svg { width: 100%; height: 100%; display: block; }
.ec-grid { stroke: var(--line); stroke-width: 1; }
.ec-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ec-area { fill: rgba(217,119,87,.10); stroke: none; }
.ec-dot { fill: var(--accent); }
.ec-xlabel { fill: var(--gray-2); font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.earn-chart-foot { font-size: 13px; color: var(--gray); margin: 10px 0 0; }

/* ACTIVITY LEDGER */
.act-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.act-status {
  flex-shrink: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fcfbf9;
}
.act-status.ok { color: var(--ok-fg); border-color: var(--ok-line); background: var(--ok-bg); }

.act-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.act-search {
  flex: 1 1 240px; min-width: 0; font-family: var(--sans); font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
}
.act-search:focus { outline: none; border-color: var(--accent); }
.act-search:disabled { background: #fcfbf9; color: var(--gray-2); }
.act-filter {
  font-family: var(--sans); font-size: 14px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer;
}
.act-filter:disabled { background: #fcfbf9; color: var(--gray-2); cursor: not-allowed; }
.act-count { font-family: var(--mono); font-size: 11.5px; color: var(--gray-2); white-space: nowrap; }

.act-body { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.act-empty { padding: 30px 20px; text-align: center; }
.act-empty p { font-size: 14px; color: var(--gray); margin: 0 0 16px; }
.act-empty .btn-green { border: none; cursor: pointer; font-family: var(--sans); }

.act-row {
  display: grid; grid-template-columns: 130px 1fr 1fr auto; gap: 12px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.act-row:last-child { border-bottom: none; }
.act-row-head {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-2); background: #fcfbf9;
}
.act-type { font-weight: 700; }
.act-type.click_credit { color: var(--accent-d); }
.act-type.referral_credit { color: var(--ok-fg); }
.act-adv { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-when { color: var(--gray-2); }
.act-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.act-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.act-page-info { font-family: var(--mono); font-size: 11.5px; color: var(--gray-2); white-space: nowrap; }
.act-page-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer;
}
.act-page-btn:hover:not(:disabled) { border-color: var(--accent); }
.act-page-btn:disabled { color: var(--gray-2); cursor: not-allowed; opacity: .6; }

@media (max-width: 560px) {
  .earn-stats { grid-template-columns: 1fr; }
  .act-row { grid-template-columns: 1fr auto; }
  .act-adv, .act-when,
  .act-row-head span:nth-child(2), .act-row-head span:nth-child(3) { display: none; }
}

/* FOOTER */
.footer { max-width: 760px; margin: 80px auto 0; padding: 34px 32px 50px; text-align: center; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 8px; font-size: 13.5px; color: var(--gray); }
.footer a { color: var(--gray); }
.footer a:hover { color: var(--ink); }
.fdim { color: var(--gray-2); font-size: 12.5px; }
.tiny { font-size: 11.5px; opacity: .8; }

@media (max-width: 760px) {
  .adv-card { padding: 30px 22px; }
  .adv-card h2 { font-size: 26px; }
  .nav { padding: 14px 18px; }
}
/* MOBILE */
@media (max-width: 600px) {
  /* ticker */
  .ticker { height: 34px; }
  .tick { padding: 0 18px; font-size: 11.5px; }

  /* nav — tighter segments + a smaller brand so the whole control fits a phone.
     All three items stay (Products · User Login · Advertise) with the coral
     Advertise CTA always visible. (The .nav-scoped brand rules below need .nav
     specificity to override the desktop sizing.) */
  .nav { padding: 10px 10px; gap: 8px; }
  .nav-btns { gap: 3px; padding: 4px; }
  .navbtn { padding: 8px 10px; font-size: 13px; }
  .navbtn-cta { padding: 8px 13px; }
  .nav .logo { width: 32px; height: 32px; font-size: 14px; }
  .nav .brand-name { font-size: 15px; letter-spacing: -.03em; }
  /* "User Login" shrinks to just "Login" once the segmented control no
     longer has room for all three full labels next to the wordmark. */
  .nav-txt-opt { display: none; }

  /* hero — let the headline wrap at a real headline size */
  .hero { padding: 36px 20px 20px; }
  .hero h1 { white-space: normal; font-size: clamp(30px, 9.6vw, 38px); line-height: 1.08; }
  .sub { font-size: 16.5px; margin-bottom: 32px; }
  .hero-note { margin-bottom: 16px; }

  /* demo */
  .demo { grid-template-columns: 1fr; gap: 8px; }
  .demo-chevs { transform: rotate(90deg); justify-self: center; }
  .demo-card { padding: 18px 16px; }
  /* Keep the sponsored line on ONE line whatever ad rotates in, so the
     black card never changes height. Long ads shrink-to-fit, then ellipsis. */
  .demo-line { font-size: 13px; flex-wrap: nowrap; white-space: nowrap; }
  .demo-line .brand-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .claude-guy { right: 16px; }

  /* command one-liners — the npm command never fits a phone, and the
     scrollbar is hidden, so fade the clipped edge to signal "swipe for more"
     instead of looking chopped off behind the Copy button. */
  .dl-cmd, .cli-cmd {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }

  /* install card — stays one row; icon + price keep the layout legible */
  .install-card { padding: 14px 16px; gap: 12px; }
  .install-title { font-size: 15px; }
  .install-sub { display: none; }
  .install-icon { width: 36px; height: 36px; }
  .install-pill-amt { font-size: 15px; }

  /* sections */
  .advertisers, .leaderboard, .trust, .faq, .install-section, .footer { padding-left: 20px; padding-right: 20px; }
  .adv-card { padding: 26px 18px; }

  /* form — 16px inputs so iOS Safari doesn't zoom on focus */
  .grid2 { grid-template-columns: 1fr; }
  .adform input { font-size: 16px; }
  .est-budget input, .est-budget-prefix { font-size: 28px; }
  .stripe-btn { min-height: 48px; }

  /* leaderboard */
  .board li { gap: 10px; font-size: 14px; align-items: flex-start; }
  .rk { line-height: 1.55; }

  /* install CTAs stack as full-width buttons */
  .install-actions { flex-direction: column; align-items: stretch; }
  .btn-green, .btn-outline { min-height: 48px; display: inline-grid; place-items: center; }

  /* redeem page */
  .redeem { padding: 24px 14px 0; }
  .redeem-card { padding: 24px 18px; }
  .balance { font-size: 36px; }
  .gift-cells { grid-template-columns: repeat(2, 1fr); }
  .gift-cell { padding: 14px 6px; }
  .recipient input { font-size: 16px; }
  .redeem-foot .btn-green { justify-self: stretch; }
}
@media (max-width: 430px) {
  .nav .brand-name { display: none; }
}

/* Reduced motion — park the perpetual hero/ticker animation for anyone who asks
   for less. Content stays fully legible: the ticker simply stops crawling, the
   mascot and the spinner sit still. (The mascot's JS-driven wander is gated the
   same way in script.js.) */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ast,
  .cg-sprite,
  .claude-guy.cg-hop .cg-sprite,
  .cg-eye, .cg-spark,
  .jump-chev { animation: none !important; }
}

/* REFERRALS VIEW */
.ref-link-row { display: flex; gap: 10px; margin: 4px 0 26px; }
.ref-link-row input {
  flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 12px; font-family: var(--mono); font-size: 14px; color: var(--ink);
  background: #fcfbf9;
}
.ref-link-row .btn-green { border: none; cursor: pointer; font-family: var(--sans); white-space: nowrap; }
.ref-invite-h { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.ref-invite-row { display: flex; gap: 10px; margin: 0 0 8px; }
.ref-invite-row .auth-input { flex: 1; min-width: 0; margin: 0; }
.ref-invite-row .btn-green { border: none; cursor: pointer; font-family: var(--sans); white-space: nowrap; }
.ref-invite-msg { font-size: 13.5px; margin: 0 0 22px; }
.ref-invite-msg.ok { color: var(--ok-fg); }
.ref-invite-msg.err { color: var(--err-fg); }
.ref-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.ref-stat {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fcfbf9;
}
.rs-num { font-size: 26px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.rs-label { font-family: var(--mono); font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: .06em; }
.ref-list { display: grid; gap: 8px; }
.ref-empty { font-size: 14.5px; color: var(--gray-2); margin: 0; }
.ref-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.ref-desc { font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ref-desc strong { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-sub { font-size: 12.5px; color: var(--gray-2); }
.ref-when { font-family: var(--mono); font-size: 12px; color: var(--gray-2); }
.ref-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; align-self: start;
}
.ref-badge.invited { background: rgba(var(--accent-rgb), .1); color: var(--accent-d); border-color: rgba(var(--accent-rgb), .3); }
.ref-badge.pending { background: #fdf6e9; color: #946a14; border-color: #f0e0bd; }
.ref-badge.rewarded { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.ref-badge.capped { background: #f3f3f1; color: var(--gray); border-color: var(--line); }
.ref-badge.cancelled { background: var(--err-bg); color: var(--err-fg); border-color: var(--err-line); }
@media (max-width: 640px) {
  .ref-stats { grid-template-columns: repeat(2, 1fr); }
  .ref-link-row, .ref-invite-row { flex-direction: column; }
  .ref-link-row .btn-green, .ref-invite-row .btn-green { justify-self: stretch; }
  .ref-item { grid-template-columns: auto 1fr; }
  .ref-when { grid-column: 2; justify-self: start; }
}

/* Affiliate codes — a separate, application-gated program below referrals. */
.aff-sep { border: none; border-top: 1px solid var(--line); margin: 34px 0 22px; }
/* Influencer upgrade lives in its own card, set off with a bigger gap. */
.aff-upgrade-box { margin-top: 40px; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: #fff; }
.aff-row { display: flex; gap: 10px; margin: 0 0 10px; }
.aff-row .auth-input { margin: 0; flex: 1; min-width: 0; }
.aff-row .aff-followers { flex: 0 0 140px; }
.aff-hint { font-size: 13px; color: var(--gray-2); margin: 2px 0 14px; }
.aff-apply .btn-green { border: none; cursor: pointer; font-family: var(--sans); }
.aff-status .redeem-lead { margin: 4px 0 0; }
.aff-have-code { margin: 0 0 22px; }
@media (max-width: 640px) {
  .aff-row { flex-direction: column; }
  .aff-row .aff-followers { flex: 1; }
}

/* ════ DWELL pre-launch — "coming soon" states ════
   Nothing is downloadable yet: the downloads row shows inert chips and every
   surface CTA routes to the hero waitlist (#wl) instead of an install link. */
.dl-soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px;
  font: 700 14px/1 var(--sans); color: var(--gray);
  background: var(--bg-tint); border: 1px dashed var(--border-strong);
  border-radius: 11px; cursor: default;
}
.soon-tag {
  display: inline-block; margin-left: 8px; padding: 3px 8px;
  font: 800 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-d); background: rgba(var(--accent-rgb), .1);
  border-radius: var(--radius-pill);
}

/* Waitlist layout: the advertiser link sits on its own row UNDER the form. */
.wl-adv-row { display: flex; justify-content: center; margin-top: 10px; }

/* Pre-launch: hidden download/install CTAs stay hidden despite display:flex. */
.install-card[hidden], .scopy-dl[hidden] { display: none; }

/* Brand wordmark — set in Inter Black to match the DWELL PROTOCOL mark
   (deliberate exception to the Sora body face; loaded per-page). */
.brand-name { font-family: "Inter", var(--sans); font-weight: 900; letter-spacing: -.035em; }

/* ════ PROTOCOL HERO — brand lockup over the animated geometric mesh ════
   Mirrors the DWELL PROTOCOL brand card: pure white stage, lockup sitting
   left-of-center, the node/line constellation weighted to the right and
   fading out before it reaches the text. Canvas is drawn in script.js. */
.proto-hero {
  position: relative; overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* full-viewport opening frame; the nav is hidden until first scroll */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
}
.proto-mesh {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* concentrate the constellation on the right, like the brand card */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 34%, #000 68%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 34%, #000 68%);
}
.proto-lockup {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: clamp(18px, 3.4vw, 40px);
  max-width: 1180px; margin: 0 auto; width: 100%;
  padding: 0 32px;
}
.proto-logo { width: clamp(84px, 11vw, 132px); height: auto; flex: none; }
.proto-words { display: flex; flex-direction: column; min-width: 0; }
.proto-name {
  font-family: "Inter", var(--sans); font-weight: 900;
  font-size: clamp(34px, 6.6vw, 74px); line-height: 1.02; letter-spacing: -.035em;
  color: var(--ink); white-space: nowrap;
}
.proto-tag {
  margin-top: 8px;
  font-family: "Inter", var(--sans); font-weight: 400;
  font-size: clamp(16px, 2.2vw, 26px); letter-spacing: -.01em;
  color: var(--ink-2);
}
@media (max-width: 560px) {
  .proto-lockup { flex-direction: column; align-items: flex-start; gap: 18px; }
  .proto-name { white-space: normal; }
}

/* Auto-hiding nav (lander): off-screen over the full-viewport hero, slides in
   on first scroll (script.js toggles .nav--show past a small threshold). */
.nav-autohide {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .88);
  transform: translateY(-110%);
  transition: transform .35s ease;
}
.nav-autohide.nav--show { transform: none; }

/* "Want to advertise?" spans the full waitlist row (input + button width). */
.wl-adv-row .wl-adv { width: 100%; }
