/* ============================================================================
   Roster Builder — public landing page styles
   Three visual directions, switched via [data-dir] on <html>:
     • minimal   — Zed-like: near-black, huge tight type, hairlines, lots of space
     • platform  — Harness-like: deep navy, color-coded module cards, gradient glow
     • brand     — RosterBuilder: navy base, green accent, balanced editorial
   Accent is a single CSS var (--accent) so the Tweaks panel can recolor live.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--ink);
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 6px; }

/* ---- Theme tokens : BRAND (default) -------------------------------------- */
:root {
  --accent: #2ecc71;
  --accent-ink: #06231a;
  --accent-deep: #0d3d26;

  --bg: #0a1620;
  --bg-2: #0c1a26;
  --bg-elev: #10212e;
  --bg-soft: rgba(255,255,255,0.035);
  --ink: #eef4f2;
  --ink-soft: #aebdc4;
  --ink-mute: #6f828c;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.06);

  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 38%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 28%, transparent);

  --mod: var(--accent);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --pad: 28px;

  --h1: clamp(40px, 6.6vw, 84px);
  --h1-tracking: -0.035em;
  --h1-line: 1.02;
  --h2: clamp(28px, 3.6vw, 46px);
  --eyebrow-tt: uppercase;
  --eyebrow-ls: 0.18em;

  --hero-pt: 132px;
  --hero-pb: 96px;
  --section-pad: 104px;
  --card-bg: var(--bg-elev);
  --card-border: var(--line);
  --card-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 44px -28px rgba(0,0,0,0.7);
  --btn-radius: 11px;
  --nav-blur: saturate(140%) blur(14px);
}

/* ---- Theme tokens : MINIMAL (Zed-like) ----------------------------------- */
html[data-dir="minimal"] {
  --bg: #08080a;
  --bg-2: #0a0a0c;
  --bg-elev: #0e0e11;
  --bg-soft: rgba(255,255,255,0.025);
  --ink: #f6f6f5;
  --ink-soft: #a7a7a4;
  --ink-mute: #6b6b69;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.055);
  --accent-ink: #06231a;

  --radius: 12px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --h1: clamp(46px, 8.2vw, 116px);
  --h1-tracking: -0.045em;
  --h1-line: 0.96;
  --h2: clamp(30px, 4.4vw, 60px);
  --eyebrow-tt: none;
  --eyebrow-ls: 0.02em;
  --hero-pt: 150px;
  --hero-pb: 110px;
  --section-pad: 132px;
  --card-shadow: none;
  --card-bg: transparent;
  --card-border: var(--line);
  --btn-radius: 9px;
}

/* ---- Theme tokens : PLATFORM (Harness-like) ------------------------------ */
html[data-dir="platform"] {
  --bg: #070a16;
  --bg-2: #0a0f20;
  --bg-elev: #0f1730;
  --bg-soft: rgba(255,255,255,0.04);
  --ink: #eef1fb;
  --ink-soft: #a9b2cc;
  --ink-mute: #6a748f;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.06);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --h1: clamp(40px, 6.4vw, 82px);
  --h1-tracking: -0.03em;
  --h1-line: 1.04;
  --eyebrow-tt: uppercase;
  --eyebrow-ls: 0.16em;
  --hero-pt: 128px;
  --hero-pb: 100px;
  --section-pad: 110px;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  --card-border: var(--line);
  --card-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px -32px rgba(0,0,0,0.85);
  --btn-radius: 12px;
}

/* ============================ Layout helpers ============================== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section-pad) 0; position: relative; }
.section-tight { padding: calc(var(--section-pad) * 0.62) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }

.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12.5px; font-weight: 500;
  letter-spacing: var(--eyebrow-ls); text-transform: var(--eyebrow-tt);
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
html[data-dir="minimal"] .eyebrow { color: var(--ink-soft); }
html[data-dir="minimal"] .eyebrow::before { background: var(--accent); }

.section-head { max-width: 660px; }
.section-head.center { margin: 0 auto; }
.section-head h2 {
  font-size: var(--h2); line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 600; margin-top: 18px; text-wrap: balance;
}
.section-head p {
  margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft); max-width: 580px; text-wrap: pretty;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============================== Buttons ================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: var(--btn-radius); cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s, color .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px var(--accent-glow); filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--bg-soft); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-arrow { transition: transform .15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

html[data-dir="platform"] .btn-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 92%, white), var(--accent));
  box-shadow: 0 10px 30px -12px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.4) inset;
}

/* =============================== Nav ===================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: var(--nav-blur); backdrop-filter: var(--nav-blur);
  border-bottom-color: var(--line-2);
}
.nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.brand-name span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-soft); padding: 8px 13px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line); transition: border-color .15s, background .15s; white-space: nowrap; }
.nav-login:hover { border-color: var(--accent-line); background: var(--bg-soft); }
.nav-burger { display: none; }

/* =============================== Hero ==================================== */
.hero { padding-top: var(--hero-pt); padding-bottom: var(--hero-pb); position: relative; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: var(--h1); line-height: var(--h1-line); letter-spacing: var(--h1-tracking);
  font-weight: 600; text-wrap: balance; max-width: 16ch;
}
.hero h1 .grad { color: var(--accent); }
html[data-dir="platform"] .hero h1 .grad {
  background: linear-gradient(96deg, var(--accent), color-mix(in oklab, var(--accent) 40%, #7cc6ff));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin-top: 26px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft);
  max-width: 540px; text-wrap: pretty;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-mute); display: flex; align-items: center; gap: 8px; }
.hero-note b { color: var(--ink-soft); font-weight: 600; }

/* hero layout: text + product visual */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
html[data-dir="minimal"] .hero-grid { grid-template-columns: 1fr; gap: 64px; text-align: center; justify-items: center; }
html[data-dir="minimal"] .hero h1, html[data-dir="minimal"] .hero-sub { max-width: 18ch; }
html[data-dir="minimal"] .hero-sub { max-width: 600px; }
html[data-dir="minimal"] .hero-actions { justify-content: center; }
html[data-dir="minimal"] .hero-eyebrow { display: flex; justify-content: center; }
html[data-dir="minimal"] .hero-visual { width: 100%; max-width: 920px; }

/* hero glows per direction */
html[data-dir="brand"] .hero-glow {
  background:
    radial-gradient(820px 460px at 78% 8%, var(--accent-soft), transparent 62%),
    radial-gradient(700px 520px at 6% 100%, rgba(13,61,38,0.5), transparent 60%);
}
html[data-dir="platform"] .hero-glow {
  background:
    radial-gradient(740px 460px at 70% -4%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(620px 460px at 18% 30%, rgba(80,120,255,0.16), transparent 60%),
    radial-gradient(720px 520px at 100% 80%, rgba(140,90,230,0.14), transparent 62%);
}
html[data-dir="platform"] .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(680px 420px at 72% 6%, #000, transparent 70%);
  opacity: 0.6;
}
html[data-dir="minimal"] .hero-glow {
  background: radial-gradient(680px 380px at 50% -8%, rgba(255,255,255,0.06), transparent 70%);
}

/* trust row */
.trust { margin-top: 70px; }
.trust-label { font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.trust-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.trust-row span { font-size: 16px; font-weight: 700; color: var(--ink-soft); opacity: 0.62; letter-spacing: -0.01em; }

/* customer logo cloud */
.logos { padding: 54px 0; border-top: 1px solid var(--line-2); }
.logos-label { text-align: center; font-family: 'DM Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.logo-cloud { margin-top: 30px; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px; max-width: 980px; margin-left: auto; margin-right: auto; }
.logo-slot {
  display: block; width: 100%; height: 74px;
  background: #fbfbf9;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 30px -22px rgba(0,0,0,0.8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.logo-slot:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(0,0,0,0.85); }
@media (max-width: 860px) { .logo-cloud { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-cloud { grid-template-columns: repeat(2, 1fr); } }

/* =========================== Feature spotlight =========================== */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.spot-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 30px 30px 0; box-shadow: var(--card-shadow); overflow: hidden; position: relative;
  display: flex; flex-direction: column; min-height: 420px;
}
.spot-card .mod-ico { --mod: var(--accent); }
.spot-head { display: flex; align-items: center; gap: 12px; }
.spot-card h3 { font-size: 23px; font-weight: 650; letter-spacing: -0.02em; margin-top: 18px; }
.spot-card p { color: var(--ink-soft); font-size: 15.5px; margin-top: 10px; max-width: 42ch; }
.spot-media { margin-top: 24px; flex: 1; display: flex; align-items: flex-end; justify-content: center; }

/* =========================== Feature grid ================================ */
.feat-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  --mod: var(--accent);
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 24px; box-shadow: var(--card-shadow); transition: border-color .18s, transform .18s, background .18s;
}
.feat-card:hover { border-color: color-mix(in oklab, var(--mod) 42%, transparent); transform: translateY(-3px); }
.mod-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--mod) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--mod) 32%, transparent);
  color: var(--mod);
}
.mod-ico svg { width: 21px; height: 21px; }
.feat-card h3 { font-size: 17.5px; font-weight: 650; margin-top: 18px; letter-spacing: -0.01em; }
.feat-card p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; text-wrap: pretty; }

/* Platform: color-code each module */
html[data-dir="platform"] .mod-1 { --mod: #34d399; }
html[data-dir="platform"] .mod-2 { --mod: #38bdf8; }
html[data-dir="platform"] .mod-3 { --mod: #a78bfa; }
html[data-dir="platform"] .mod-4 { --mod: #fbbf24; }
html[data-dir="platform"] .mod-5 { --mod: #f472b6; }
html[data-dir="platform"] .mod-6 { --mod: #2dd4bf; }
html[data-dir="platform"] .mod-7 { --mod: #fb923c; }

/* Minimal: flatten cards into hairline list-ish tiles */
html[data-dir="minimal"] .feat-card { background: transparent; padding: 26px 4px; border-radius: 0;
  border: none; border-top: 1px solid var(--line); box-shadow: none; }
html[data-dir="minimal"] .feat-card:hover { transform: none; border-color: var(--line); }
html[data-dir="minimal"] .feat-grid { gap: 0 40px; }
html[data-dir="minimal"] .mod-ico { background: transparent; border-color: var(--line); color: var(--ink); }
html[data-dir="minimal"] .spot-card { border-radius: 12px; }

/* =========================== Product preview ============================= */
.preview-frame {
  margin-top: 48px; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-elev);
  box-shadow: 0 40px 120px -50px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.preview-chrome { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  border-bottom: 1px solid var(--line-2); background: color-mix(in oklab, var(--bg) 60%, black); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.preview-url { margin-left: 12px; font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink-mute);
  background: var(--bg-soft); padding: 5px 12px; border-radius: 7px; }
.preview-tabs { margin-left: auto; display: flex; gap: 4px; }
.preview-tab { font-size: 13px; color: var(--ink-soft); padding: 6px 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; }
.preview-tab:hover { background: var(--bg-soft); }
.preview-tab.active { color: var(--ink); background: var(--accent-soft); border-color: var(--accent-line); }
.preview-body { position: relative; background: #f2f4f7; min-height: 460px; }
.preview-pane { display: none; }
.preview-pane.active { display: block; }

/* =============================== Steps =================================== */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--card-bg); box-shadow: var(--card-shadow); }
.step-n { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.step h3 { font-size: 17px; font-weight: 650; margin-top: 18px; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.step-line { position: absolute; top: 43px; right: -10px; width: 18px; height: 1px; background: var(--line); }
.steps .step:last-child .step-line { display: none; }
html[data-dir="minimal"] .step { background: transparent; box-shadow: none; }

/* =============================== Stats =================================== */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 52px 26px; text-align: center; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: none; }
.stat-n { font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.stat-n .u { color: var(--accent); }
.stat-l { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ============================ Testimonials =============================== */
.quotes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { padding: 28px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--card-bg); box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.quote-mark { font-family: Georgia, serif; font-size: 44px; line-height: 0.4; color: var(--accent); height: 22px; }
.quote p { font-size: 16px; color: var(--ink); margin-top: 6px; flex: 1; text-wrap: pretty; }
.quote-by { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.q-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.q-name { font-size: 14px; font-weight: 650; }
.q-role { font-size: 12.5px; color: var(--ink-mute); margin-top: 1px; }

/* =============================== Pricing ================================= */
.price-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card-bg); box-shadow: var(--card-shadow); position: relative;
}
.price.featured { border-color: var(--accent-line); background:
  linear-gradient(180deg, var(--accent-soft), transparent 38%), var(--card-bg); }
.price-badge { position: absolute; top: -11px; left: 30px; font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  padding: 4px 10px; border-radius: 7px; font-weight: 600; }
.price-name { font-size: 15px; font-weight: 650; color: var(--ink); }
.price-desc { font-size: 13.5px; color: var(--ink-mute); margin-top: 4px; min-height: 38px; }
.price-amt { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price-amt .n { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.price-amt .per { font-size: 14px; color: var(--ink-mute); }
.price ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); align-items: flex-start; }
.price li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.price .btn { margin-top: 26px; width: 100%; }

/* ================================ FAQ =================================== */
.faq { margin-top: 40px; max-width: 800px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: 18px; font-weight: 600; padding: 24px 44px 24px 0; position: relative;
  letter-spacing: -0.01em; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .26s ease; }
.faq-a p { padding: 0 40px 24px 0; color: var(--ink-soft); font-size: 15.5px; }

/* ============================== CTA band ================================ */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; margin: 0 var(--pad);
  border: 1px solid var(--accent-line); background:
   radial-gradient(700px 320px at 50% -30%, var(--accent-soft), transparent 70%), var(--bg-elev); }
.cta-inner { padding: 76px 32px; text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { font-size: var(--h2); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.cta-inner p { margin: 18px auto 0; max-width: 540px; color: var(--ink-soft); font-size: 18px; }
.cta-actions { margin-top: 32px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* =============================== Footer ================================= */
.footer { margin-top: var(--section-pad); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-mute); font-size: 14px; max-width: 30ch; }
.footer-col h4 { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-soft); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom span { font-size: 13px; color: var(--ink-mute); }
.footer-note { font-size: 12px; color: var(--ink-mute); opacity: 0.7; max-width: 60ch; margin-top: 8px; }

/* reveal-on-scroll */

/* ===== app-screenshot framing (scaled mock UI) ===== */
.screen { overflow: hidden; position: relative; }
.screen-inner { transform-origin: top left; will-change: transform; }

.hero-visual { position: relative; width: 100%; }
.hero-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-elev); box-shadow: 0 50px 130px -50px rgba(0,0,0,0.95), 0 1px 0 rgba(255,255,255,0.05) inset; }
.hero-frame .preview-chrome { height: 40px; }
.hero-frame .screen { background: #f2f4f7; }
.hero-float { position: absolute; bottom: -26px; left: -26px; width: 248px; z-index: 3;
  border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.7);
  border: 1px solid var(--line); }
.hero-float .mock { padding: 0; background: #f2f4f7; }
.hero-pill { position: absolute; top: 22px; right: -18px; z-index: 3; display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--accent-line); border-radius: 12px; padding: 11px 15px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.7); font-size: 13px; font-weight: 600; }
.hero-pill .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13px; }
.hero-pill small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-mute); }
html[data-dir="minimal"] .hero-float { left: -18px; }
@media (max-width: 640px) { .hero-float { display: none; } .hero-pill { right: 8px; } }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================== Responsive ============================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; }
  .spotlight { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line-2); }
  .quotes { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  :root { --pad: 18px; --section-pad: 76px; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-login { display: none; }
}

/* ========================== Demo Form ========================== */
.demo-form-wrap {
  max-width: 500px;
  margin: 0 auto;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-soft);
}

.demo-form button {
  margin-top: 8px;
}

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}
