/* spexo.io. Same tokens as the app (apps/web/src/app/globals.css): cool neutrals, teal accent. */
:root {
  --bg: #F5F7F8; --surface: #FFFFFF; --surface-2: #EDF1F3; --ink: #121A1F; --ink-2: #2B363D; --muted: #5B6870;
  --line: #DCE2E6; --line-strong: #B6C0C6;
  --accent: #0C6873; --accent-hover: #0A5660; --accent-ink: #FFFFFF; --accent-soft: #DCEEF0; --accent-bright: #13909E;
  --good: #1D7445; --good-soft: #DFF1E6; --warn: #9A5B05; --warn-soft: #FAEFD7; --bad: #B1261B; --bad-soft: #FBE3E0;
  --shadow: 0 1px 2px rgba(18, 26, 31, .05), 0 12px 32px -12px rgba(18, 26, 31, .18);
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1215; --surface: #141A1E; --surface-2: #1B2227; --ink: #E8EDF0; --ink-2: #C9D3D8; --muted: #93A2AB;
    --line: #253036; --line-strong: #3B4750;
    --accent: #52B9C5; --accent-hover: #6FCAD4; --accent-ink: #04262B; --accent-soft: #12333A; --accent-bright: #52B9C5;
    --good: #57C78C; --good-soft: #12301F; --warn: #E6B450; --warn-soft: #352A10; --bad: #F27D72; --bad-soft: #3A1915;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--f-body); padding: 13px 20px;
  border-radius: 10px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand .c { stroke: var(--accent); }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.login { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.login:hover { color: var(--ink); background: var(--surface-2); }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 420px) { .login { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-in { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero-in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f-mono); color: var(--accent); background: var(--accent-soft);
  padding: 7px 11px; border-radius: 999px; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 6.2vw, 64px); font-weight: 750; margin-top: 20px; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); margin-top: 20px; max-width: 34em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; padding: 0; list-style: none; }
.fine li { display: flex; align-items: center; gap: 7px; }
.fine svg { color: var(--good); flex: none; }

/* Product mock */
.stage { position: relative; padding: 18px; }
.stage .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--line-strong); }
.stage .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.stage .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.stage .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.stage .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { margin-left: 10px; font: 12px var(--f-mono); color: var(--muted); }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.mock-head small { display: block; color: var(--muted); font-size: 12px; }
.mock-head strong { font-size: 16px; }
.progress { font: 500 12px var(--f-mono); color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.rows { list-style: none; margin: 0; padding: 0 8px 34px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; padding: 11px 10px; border-top: 1px solid var(--line); }
.row b { font-weight: 600; }
.row .meta { grid-column: 1; color: var(--muted); font: 12px var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .st { grid-row: 1 / span 2; grid-column: 2; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
.st-ok { color: var(--good); background: var(--good-soft); }
.st-bad { color: var(--bad); background: var(--bad-soft); }
.st-wait { color: var(--warn); background: var(--warn-soft); }
.st-app { color: var(--accent); background: var(--accent-soft); }
.check-card { position: relative; margin: -28px 0 0 auto; width: min(300px, 88%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 14px 16px; font-size: 13px; }
/* From 560px the check result floats below the campaign, over its empty bottom edge, without covering a row. */
@media (min-width: 560px) { .check-card { position: absolute; right: -8px; bottom: -70px; margin: 0; } .stage { margin-bottom: 70px; } }
@media (min-width: 960px) { .check-card { right: -16px; } }
.check-card .file { font: 600 12.5px var(--f-mono); display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.check-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.check-card li { display: flex; justify-content: space-between; gap: 10px; }
.check-card li span:last-child { font-family: var(--f-mono); font-size: 12px; }
.ok { color: var(--good); } .bad { color: var(--bad); }

/* Publishers strip */
.strip { padding: 8px 0 64px; }
.strip p { text-align: center; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; padding: 0; list-style: none; max-width: 920px; }
.chips li { font-size: 13.5px; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chips li.more { color: var(--muted); border-style: dashed; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 44px; }
.head.center { margin-inline: auto; text-align: center; }
.kicker { font: 600 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 720; text-wrap: balance; }
.head p { margin-top: 14px; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { background: var(--bg); }
.card h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.pain .ico { background: var(--bad-soft); color: var(--bad); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 600 13px/1 var(--f-mono); color: var(--accent);
  display: inline-block; padding: 7px 9px; border: 1px solid var(--accent); border-radius: 8px; margin-bottom: 18px; }
.step h3 { font-size: 18px; font-weight: 650; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.step .tag { display: inline-block; margin-top: 14px; font: 12px var(--f-mono); color: var(--ink-2); background: var(--surface-2); padding: 4px 8px; border-radius: 6px; }

/* Stats */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); padding: 22px 24px; }
.stat b { display: block; font-size: 32px; font-weight: 720; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* Audiences */
.aud h3 { display: flex; align-items: center; gap: 10px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { color: var(--accent); flex: none; margin-top: 4px; }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.plan.featured { border: 2px solid var(--accent); padding: 25px 23px 23px; box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 22px; font: 600 12px/1 var(--f-mono); background: var(--accent); color: var(--accent-ink); padding: 6px 9px; border-radius: 999px; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .for { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 2.9em; }
.price { margin-top: 18px; min-height: 44px; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 34px; font-weight: 750; letter-spacing: -0.03em; }
.price .soon { font-size: 15px; color: var(--muted); font-weight: 500; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; }
.quota { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.quota b { font-size: 22px; letter-spacing: -0.02em; }
.quota span { display: block; font-size: 13px; }
.plan .ticks { margin-top: 18px; flex: 1; font-size: 14.5px; }
.plan .btn { margin-top: 22px; }
.plans-note { margin-top: 28px; display: grid; gap: 14px; }
@media (min-width: 860px) { .plans-note { grid-template-columns: 1.3fr 1fr; } }
.plans-note .card p { margin-top: 6px; font-size: 15px; }
.all { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.all li { font-size: 13.5px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 680px; }

/* Final call */
.final { padding: 24px 0 88px; }
.final-in { position: relative; overflow: hidden; border-radius: 20px; padding: 56px 28px; text-align: center; background: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) { .final-in { background: var(--accent-soft); color: var(--ink); } }
.final-in::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.final h2 { position: relative; font-size: clamp(28px, 4vw, 40px); font-weight: 720; text-wrap: balance; }
.final p { position: relative; margin-top: 12px; opacity: .8; font-size: 17px; }
.final .btn { position: relative; margin-top: 28px; }
.final .btn-primary { background: var(--accent-bright); color: #fff; }
.final .btn-primary:hover { background: var(--accent); }
@media (prefers-color-scheme: dark) { .final .btn-primary { background: var(--accent); color: var(--accent-ink); } .final .btn-primary:hover { background: var(--accent-hover); } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14.5px; color: var(--muted); }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.foot h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); font-family: var(--f-mono); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .about { margin-top: 12px; max-width: 30em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.nf h1 { font-size: clamp(32px, 5vw, 48px); margin-top: 16px; }
.nf p { color: var(--muted); margin-top: 12px; }
.nf .btn { margin-top: 28px; }
