/* adspotstack landing page. Palette: amber #F59E0B, red #EF4444, navy #1F2937, light #F3F4F6 */
@font-face { font-family: "Brand"; src: url("/fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
/* Caveat Bold (SIL Open Font License), for the hand-written note on the demo. */
@font-face { font-family: "Hand"; src: url("/fonts/caveat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #fbfaf8; --alt: #f3f4f6; --panel: #fff; --ink: #1f2937; --muted: #5b6472; --line: #e5e7eb;
  --logo-ink: #1f2937; --accent: #ea580c; --soft: #fff4e6; --err: #dc2626; --ok: #047857;
  --grad: linear-gradient(135deg, #f59e0b, #f97316 55%, #ef4444);
  --shadow: 0 24px 60px -24px rgba(31, 41, 55, .28), 0 2px 6px rgba(31, 41, 55, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1522; --alt: #151d2c; --panel: #1f2937; --ink: #f3f4f6; --muted: #a3acb9; --line: #334155;
    --logo-ink: #fff; --accent: #fb923c; --soft: #3b2412; --err: #f87171; --ok: #34d399;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1522; --alt: #151d2c; --panel: #1f2937; --ink: #f3f4f6; --muted: #a3acb9; --line: #334155;
  --logo-ink: #fff; --accent: #fb923c; --soft: #3b2412; --err: #f87171; --ok: #34d399;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Brand", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; border: 0; background: var(--grad); color: #fff; font-size: 16px; line-height: 1.2; font-family: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-shadow: 0 1px 1px rgba(0, 0, 0, .18); box-shadow: 0 8px 20px -8px rgba(239, 68, 68, .55); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; text-shadow: none; }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* header */
/* Header: fixed (so shrinking it never moves the page), orange once the page scrolls.
   Everything fades via opacity, filter, colour and height transitions, so there's no jump. */
body { padding-top: 64px; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; isolation: isolate; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); transition: border-color .4s ease, box-shadow .4s ease; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .4s ease; }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; transition: height .4s ease; }
.top .brand { transition: filter .4s ease; }
.top .nav a { transition: color .4s ease; }
.top .theme-toggle { transition: background-color .4s ease, border-color .4s ease, color .4s ease; }
.top .btn { position: relative; isolation: isolate; transition: color .4s ease, text-shadow .4s ease, box-shadow .4s ease, transform .15s, filter .15s; }
.top .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; opacity: 0; transition: opacity .4s ease; }
.top.scrolled { border-bottom-color: transparent; box-shadow: 0 6px 20px -10px rgba(239, 68, 68, .6); }
.top.scrolled::before { opacity: 1; }
.top.scrolled .top-in { height: 54px; }
.top.scrolled .brand { filter: brightness(0) invert(1); }
.top.scrolled .nav a { color: rgba(255, 255, 255, .92); }
.top.scrolled .nav a:hover { color: #fff; }
.top.scrolled .theme-toggle { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); color: #fff; }
.top.scrolled .btn { color: #ea580c; text-shadow: none; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.top.scrolled .btn::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .top, .top *, .top::before, .top .btn::before { transition: none !important; } }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; line-height: 1; flex: none; }
.brand-icon { width: 32px; height: 32px; flex: none; }
.logo { font: 800 25px/1 "Brand", system-ui, sans-serif; letter-spacing: -0.03em; white-space: nowrap; }
.logo .ink { color: var(--logo-ink); }
.name { font-weight: 800; white-space: nowrap; }
.name .ink { color: var(--logo-ink); }
.name .spot, .logo .spot { background: linear-gradient(180deg, #f59e0b, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.burger { display: none; place-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; flex: none; transition: background-color .4s ease, border-color .4s ease; }
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.top.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.menu-open .burger span:nth-child(2) { opacity: 0; }
.top.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.top.scrolled .burger { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); color: #fff; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; flex: none; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { fill: currentColor; stroke: currentColor; }
.theme-toggle .icon-moon { stroke: none; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 720px; background: radial-gradient(closest-side, rgba(245, 158, 11, .22), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(239, 68, 68, .14), transparent 70%); pointer-events: none; }
.hero-in > * { min-width: 0; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lead { font-size: 19px; color: var(--muted); max-width: 580px; }
.from { margin-top: 22px; display: grid; gap: 6px; }
.from > span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.from ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 2px; }
.from li { font-size: 16px; font-weight: 700; color: var(--ink); }
.from a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.from a:hover { color: var(--accent); border-bottom-color: currentColor; }
.from li:not(:last-child)::after { content: "·"; margin: 0 10px; color: #f97316; font-weight: 800; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* line-up illustration */
.mock { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; transform: rotate(1.2deg); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--alt); border-radius: 16px 16px 0 0; }
.mock-logo { width: 18px; height: 18px; flex: none; }
.mock-bar b { font-size: 13px; color: var(--ink); font-weight: 700; flex: none; }
/* Embed code for this list, with a working copy button. */
.mock-code { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 3px 3px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.mock-code code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11.5px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); }
.mock-copy { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.mock-copy:hover { background: var(--alt); color: var(--accent); }
.mock-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mock-copy .i-done, .mock-copy.done .i-copy { display: none; }
.mock-copy.done .i-done { display: block; }
.mock-copy.done { color: var(--ok); }
.mock-body { padding: 18px; }
.mock-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.mock-head small { display: block; color: var(--muted); font-size: 12px; }
.mock-head strong { font: 800 20px/1.2 "Brand", system-ui, sans-serif; letter-spacing: -0.02em; }
.mock-head em { font-style: normal; font-size: 12px; color: var(--muted); }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-list li { display: grid; grid-template-columns: 22px 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.mock-list li::before { content: attr(data-pos); font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.mock-list li b, .mock-drag b { display: block; font-size: 14px; }
.mock-list li span, .mock-drag span { display: block; font-size: 12px; color: var(--muted); }
.mock-list li.rot { border-color: #f59e0b; background: var(--soft); }
.mock-list li.rot u { text-decoration: none; color: var(--accent); font-weight: 700; font-size: 18px; }
.mock-list li.gap { grid-template-columns: 1fr; align-content: center; box-sizing: border-box; border: 2px dashed #f59e0b; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; text-align: center; padding: 6px; }
.mock-list li.gap::before { content: none; }
.mock-list li.gap[data-pos] { grid-template-columns: 22px 1fr; }
.mock-list li.gap[data-pos]::before { content: attr(data-pos); color: var(--accent); }
.mock-list li.bump::before { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1.7); color: #f97316; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mock-list li.bump::before { animation: none; } }
.t { display: block; height: 42px; border-radius: 6px; }
.t1 { background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
.t2 { background: linear-gradient(135deg, #065f46, #34d399); }
.t3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.t4 { background: linear-gradient(135deg, #4c1d95, #a78bfa); }
.t5 { background: linear-gradient(135deg, #9f1239, #fb7185); }
.mock-drag { position: absolute; right: -44px; top: 300px; width: 232px; display: grid; grid-template-columns: 16px 48px 1fr; gap: 8px; align-items: center; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); transform: rotate(-8deg); animation: wiggle 2.8s ease-in-out infinite; }
/* The loose advertiser card rests, then does a quick playful wiggle to invite a drag; it settles while hovered. */
@keyframes wiggle {
  0%, 62%, 100% { transform: rotate(-8deg) scale(1); }
  66% { transform: rotate(-1deg) scale(1.06) translateY(-4px); }
  70% { transform: rotate(-15deg) scale(1.06) translateY(-4px); }
  74% { transform: rotate(-2deg) scale(1.05) translateY(-3px); }
  78% { transform: rotate(-13deg) scale(1.04) translateY(-2px); }
  82% { transform: rotate(-5deg) scale(1.02); }
  86% { transform: rotate(-10deg) scale(1.01); }
  90% { transform: rotate(-7deg); }
}
.mock-drag:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mock-drag { animation: none; } }
/* Hand-written "Try it" note overlapping the demo window, with a hand-drawn arrow into the list. */
.try-note { position: absolute; top: -36px; right: 8px; z-index: 3; pointer-events: none; color: #f97316; transform: rotate(-5deg); }
.try-note span { display: block; font: 700 30px/1 "Hand", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; white-space: nowrap; text-shadow: 0 0 6px var(--bg), 0 0 2px var(--bg); }
.try-arrow.brush { fill: currentColor; stroke: none; filter: url(#rough); }
.try-arrow { position: absolute; top: 20px; right: 34px; width: 74px; height: 90px; overflow: visible; }
@media (max-width: 860px) { .try-note { right: 4px; } }
/* "Try it" note under the window, arrow curving up to the loose advertiser card. */
.drag-note { top: auto; bottom: -46px; right: -10px; transform: rotate(-4deg); transition: opacity .3s; }
.drag-note .try-arrow { top: auto; right: auto; bottom: 22px; left: 156px; width: 66px; height: 174px; }
.mock.card-placed .drag-note { opacity: 0; }
@media (max-width: 560px) { .drag-note { display: none; } }
/* Second note: points at the embed code in the window's header. */
.code-note { right: auto; left: 8px; top: -64px; transform: rotate(-3deg); }
.code-note .try-arrow { right: auto; left: 60px; top: 22px; width: 62px; height: 69px; }
@media (max-width: 860px) { .code-note { left: 4px; } }
@media (max-width: 400px) { .top .btn.small { padding: 8px 12px; font-size: 14px; } }
@media (max-width: 560px) { .try-note span { font-size: 25px; } .try-arrow { width: 60px; height: 74px; } }
/* Drag-and-drop demo */
.mock-list li:not(.gap), .mock-drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.mock-list li:not(.gap):hover { border-color: #f59e0b; }
.mock-list li.drag-src { display: none; }
.mock-ghost { position: fixed; z-index: 50; pointer-events: none; display: grid; grid-template-columns: 22px 52px 1fr; gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel); border: 1px solid #f59e0b; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(-3deg); font-size: 14px; cursor: grabbing; color: var(--ink); }
.mock-ghost b { display: block; font-size: 14px; }
.mock-ghost span { display: block; font-size: 12px; color: var(--muted); }
.mock-ghost u { display: none; }
/* Position number on the loose card and on whatever is being dragged. */
.mock-drag .num, .mock-ghost .num { font-style: normal; font-weight: 800; color: #f97316; text-align: right; font-variant-numeric: tabular-nums; }
body.dragging, body.dragging * { cursor: grabbing !important; }
.mock-save { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 13px; }
.mock-save button { font: inherit; border: 0; cursor: pointer; }
.mock-save button:hover { filter: brightness(1.08); }
/* "Save changes" in the demo opens this contact dialog */
.talk-dlg { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: auto; }
.talk-dlg::backdrop { background: rgba(15, 21, 34, .55); backdrop-filter: blur(4px); }
.talk-dlg[open] { animation: talk-in .25s ease; }
@keyframes talk-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .talk-dlg[open] { animation: none; } }
.talk-dlg h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 40px 8px 0; }
.talk-lead { color: var(--muted); margin-bottom: 22px; }
.talk-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.talk-close:hover { color: var(--ink); border-color: var(--muted); }
.talk-form { display: grid; gap: 14px; }
.talk-form.sent { text-align: center; padding: 24px 0 8px; }
@media (max-width: 560px) { .talk-dlg { padding: 24px 20px; } }
.mock-save b, .mock-save button { background: var(--grad); color: #fff; padding: 6px 12px; border-radius: 7px; font-size: 13px; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--alt); }
.hero + .section { padding-top: 24px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two > div > p:not(.eyebrow) { color: var(--muted); }

.checks { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 16px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.checks b { color: var(--ink); }
#import .two { align-items: center; }
.moves li { align-items: center; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.moves li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.moves svg { width: 30px; height: 30px; }
.moves b { display: block; font-size: 17px; }
.moves span { color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; }
.features article::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--grad); margin-bottom: 18px; }
.features p { color: var(--muted); font-size: 15px; margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 18px/1 "Brand", system-ui, sans-serif; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

.scope { background: #1f2937; color: #f3f4f6; }
.scope-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.scope p { color: #cbd2dc; font-size: 19px; max-width: 640px; margin: 0; }
.scope-mark { width: 150px; height: 150px; flex: none; opacity: .95; }

/* why switch */
.intro { color: var(--muted); font-size: 19px; max-width: 680px; }
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 24px; margin: 36px 0 32px; }
.pains article { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 16px; }
/* Quote frame: a thin brand-gradient border, quote marks tucked in the corners. */
.qbox { margin: 0; padding: 2px; border-radius: 14px; background: var(--grad); }
.qbox-in { position: relative; height: 100%; display: flex; align-items: center; background: var(--panel); border-radius: 12px; padding: 34px 58px; }
.qbox-in::before, .qbox-in::after { position: absolute; font: 700 72px/1 Georgia, "Times New Roman", serif; color: rgba(249, 115, 22, .5); pointer-events: none; }
.qbox-in::before { content: "“"; top: 6px; left: 12px; }
.qbox-in::after { content: "”"; bottom: -26px; right: 12px; }
.pains article:nth-child(6n+1) .qbox { --tilt: -1.6deg; }
.pains article:nth-child(6n+2) .qbox { --tilt: 1.2deg; }
.pains article:nth-child(6n+3) .qbox { --tilt: -0.8deg; }
.pains article:nth-child(6n+4) .qbox { --tilt: 1.5deg; }
.pains article:nth-child(6n+5) .qbox { --tilt: -1.1deg; }
.pains article:nth-child(6n+6) .qbox { --tilt: 0.9deg; }
.qbox { transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease; }
.qbox:hover { transform: rotate(0deg) scale(1.02); }
@media (prefers-reduced-motion: reduce) { .qbox { transition: none; } }
.pain { font: 800 17px/1.4 "Brand", system-ui, sans-serif; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.fix { padding: 0 4px; }
.fix { margin: 0; font-size: 15px; color: var(--muted); }
.fix b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.fix b::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; }
@media (max-width: 560px) { .pains { grid-template-columns: 1fr; } .intro { font-size: 17px; } }

/* contact: what happens next */
.next-title { font-size: 18px; margin: 28px 0 14px; }
.next { list-style: none; counter-reset: nx; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.next li { counter-increment: nx; position: relative; padding-left: 44px; }
.next li::before { content: counter(nx); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 14px/1 "Brand", system-ui, sans-serif; }
.next b { display: block; color: var(--ink); font-size: 16px; }
.next span { color: var(--muted); font-size: 15px; }
#contact .two { align-items: center; }

/* form */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form .row, .talk-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.talk-form label, .form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.talk-form label > span, .form label > span { display: block; }
.talk-form label em, .form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.talk-form input, .talk-form select, .talk-form textarea, .form input, .form select, .talk-form textarea, .form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; width: 100%; min-width: 0; }
.talk-form textarea, .form textarea { resize: vertical; }
.talk-form input[aria-invalid="true"], .form input[aria-invalid="true"] { border-color: var(--err); }
.talk-form .hp, .form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 15px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--err); }
.form.sent { text-align: center; padding: 48px 28px; }
.talk-form.sent h3, .form.sent h3 { font-size: 24px; }
.talk-form.sent p, .form.sent p { color: var(--muted); margin: 0; }

/* legal pages */
.crumbs { margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.doc-hero { padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.doc-hero .updated { margin: 0; }
.doc { max-width: 760px; padding: 16px 0 88px; margin-left: max(16px, calc((100% - 1140px) / 2)); }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.updated { font-size: 14px; color: var(--muted); }
.quick { margin: 28px 0 8px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #f59e0b; border-radius: 12px; }
.quick-title { margin: 0 0 12px !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; }
.quick ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.quick li { break-inside: avoid; margin: 0 0 8px; }
.quick a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.quick a::before { content: "→"; color: #f97316; margin-right: 8px; font-weight: 700; }
.quick a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc h2, .doc h3 { scroll-margin-top: 72px; }
@media (max-width: 560px) { .quick ol { columns: 1; } }
/* Wide screens: the Quick links box moves to a column on the right of the legal and compare pages and stays in view while scrolling. */
@media (min-width: 1100px) {
  .doc:has(> .quick), .cmp:has(> .quick) { max-width: 1140px; display: grid; grid-template-columns: minmax(0, 760px) 280px; column-gap: 64px; align-items: start; }
  .doc:has(> .quick) > *, .cmp:has(> .quick) > * { grid-column: 1; }
  .doc > .quick, .cmp > .quick { grid-column: 2; grid-row: 1 / span 400; position: sticky; top: 84px; margin: 44px 0 0; }
  .doc > .quick ol, .cmp > .quick ol { columns: 1; }
  .doc > .quick a, .cmp > .quick a { font-size: 14px; }
  .doc > .quick a.active, .cmp > .quick a.active { color: var(--accent); font-weight: 700; }
}
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-table th { font-size: 13px; color: var(--muted); background: var(--alt); }
.doc-table td { color: var(--muted); }
.doc code { font-size: 14px; background: var(--alt); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 16px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } .doc-hero { padding: 44px 0 32px; } }

/* comparison hub (/compare) */
.hub { padding: 32px 0 88px; }
.filters { display: grid; grid-template-columns: 2fr 1fr; gap: 16px 32px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.chks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.chk input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 2px solid var(--line); border-radius: 5px; background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.chk input:checked { background: var(--grad); border-color: transparent; }
.chk input:checked::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.chk input:disabled { opacity: .6; cursor: default; }
.chk input:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.filter-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-foot p { margin: 0; font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 12px; font-size: 14px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 14px; }
.matrix { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.matrix th, .matrix td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { font: 800 15px/1.2 "Brand", system-ui, sans-serif; color: var(--ink); background: var(--alt); position: sticky; top: 0; }
.matrix thead a { color: var(--ink); text-decoration: none; }
.matrix thead a:hover { color: var(--accent); text-decoration: underline; }
.matrix tbody th { font-weight: 700; color: var(--ink); min-width: 170px; }
.matrix .corner, .matrix tbody th { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.matrix thead .corner { background: var(--alt); z-index: 2; font: 700 12px/1.2 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.matrix td { position: relative; color: var(--muted); min-width: 120px; }
.matrix .us { background: var(--soft); }
.matrix thead .us { background: var(--soft); }
.matrix .note { display: block; font-size: 13px; line-height: 1.35; margin-top: 4px; }
.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 13px; font-weight: 800; line-height: 1; }
.mark.yes { background: var(--grad); color: #fff; }
.mark.part { background: color-mix(in srgb, #f59e0b 22%, transparent); color: #b45309; }
.mark.no { background: var(--alt); color: var(--muted); }
.mark.na { border: 1.5px dashed var(--line); color: var(--muted); }
:root[data-theme="dark"] .mark.part { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark.part { color: #fbbf24; } }
.matrix tr.required > * { box-shadow: inset 0 1px 0 #f59e0b, inset 0 -1px 0 #f59e0b; }
.matrix tr.required th { color: var(--accent); }
.matrix .off { display: none; }
.matrix .fails { opacity: .38; }
.matrix .missing { display: block; margin-top: 4px; font: 600 11px/1.3 system-ui, sans-serif; color: var(--danger, #dc2626); }
.matrix .missing:empty { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) { .filters { grid-template-columns: 1fr; padding: 18px; } .filter-foot { flex-direction: column; align-items: flex-start; } }

/* comparison pages */
.cmp { max-width: 980px; padding: 24px 0 88px; margin-left: max(16px, calc((100% - 1140px) / 2)); }
.cmp h2 { font-size: 28px; margin: 48px 0 16px; scroll-margin-top: 72px; }
.cmp p, .cmp li { color: var(--muted); }
.cmp ul { padding-left: 22px; }
.cmp li { margin-bottom: 6px; }
.doc-hero .lead { margin: 14px 0 0; max-width: 720px; }
.vs-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.vs-table th, .vs-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vs-table tr:last-child th, .vs-table tr:last-child td { border-bottom: 0; }
.vs-table thead th { font: 800 17px/1.2 "Brand", system-ui, sans-serif; color: var(--ink); }
.vs-table tbody th { width: 20%; font-weight: 700; color: var(--ink); font-size: 14px; }
.vs-table td { color: var(--muted); width: 40%; }
.vs-table .us { background: var(--soft); color: var(--ink); }
.vs-table thead .us { border-top-right-radius: 13px; }
.vs-table tbody tr:last-child .us { border-bottom-right-radius: 13px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .why-grid.three { grid-template-columns: 1fr; } }
.why-grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.why-grid article::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--grad); margin-bottom: 14px; }
.why-grid h3 { font-size: 17px; }
.why-grid p { margin: 0; font-size: 15px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 56px 0 32px; padding: 28px 32px; border-radius: 16px; background: #1f2937; color: #fff; }
.cta-box h2 { margin: 0 0 6px; color: #fff; font-size: 24px; }
.cta-box p { margin: 0; color: #cbd2dc; }
.cta-box .btn { flex: none; }
@media (max-width: 700px) {
  .vs-table thead { display: none; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: auto; }
  .vs-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .vs-table tbody th, .vs-table td { border: 0; padding: 4px 16px; width: auto; }
  .vs-table tbody th { font-size: 16px; }
  .vs-table td::before { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
  .vs-table td:not(.us)::before { content: attr(data-them); }
  .vs-table td.us::before { content: "adspotstack.com"; }
  .vs-table .us { background: none; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* footer: navy in both themes */
.foot { background: #1f2937; color: #cbd2dc; padding: 72px 0 32px; }
:root[data-theme="dark"] .foot { background: #0a0f19; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0a0f19; } }
.foot .logo .ink, .foot .name .ink { color: #fff; }
.foot-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-brand p { margin: 18px 0 22px; font-size: 15px; color: #a3acb9; max-width: 320px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h2 { font: 700 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #f59e0b; margin: 6px 0 6px; }
.foot-col a { color: #cbd2dc; font-size: 15px; text-decoration: none; width: fit-content; overflow-wrap: anywhere; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-col a.more { color: #f59e0b; font-weight: 600; }
.foot-base { display: grid; gap: 6px; padding-top: 28px; }
.foot-base p { margin: 0; font-size: 13px; color: #8a94a3; }

/* responsive */
@media (max-width: 1000px) {
  .mock-drag { right: -14px; } /* less overhang where the page edge is close */
  .foot-main { grid-template-columns: repeat(4, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-in, .two { grid-template-columns: 1fr; gap: 40px; }
  .mock { max-width: 480px; transform: none; margin-top: 40px; } /* room for the "Paste it once!" note */
  .mock-drag { right: 8px; }
  /* Phones and small tablets: links move into a drop-down opened by the burger; no theme toggle. */
  .theme-toggle { display: none; }
  .top .btn.small { margin-left: auto; white-space: nowrap; }
  .top-in { gap: 10px; }
  .burger { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .35); }
  .top.menu-open .nav { display: flex; }
  .nav a, .top.scrolled .nav a { color: var(--ink); font-size: 17px; font-weight: 600; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .top .nav a:last-child { border-bottom: 0; }
  .top.scrolled .nav a:hover, .nav a:hover { color: var(--accent); }
  .section { padding: 72px 0; }
  .scope-mark { width: 90px; height: 90px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .steps, .form .row, .talk-form .row { grid-template-columns: 1fr; }
  .mock-drag, #demo-gap { display: none; }
  .scope-in { flex-direction: column-reverse; align-items: flex-start; }
  .form { padding: 20px; }
  .foot { padding-top: 56px; }
  .foot-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .logo { font-size: 22px; }
  .top-in { gap: 12px; }
}

/* "Coming soon" screen (beta): the page behind is blurred and can't be used. Remove the
   is-coming-soon class from <body> (and set COMING_SOON = False in scripts/build-compare.py) to lift it. */
html:not(.unblurred) body.is-coming-soon { overflow: hidden; }
html:not(.unblurred) body.is-coming-soon > :not(.coming-soon):not(svg) { filter: blur(9px); pointer-events: none; user-select: none; -webkit-user-select: none; }
html.unblurred .coming-soon { display: none; }
.coming-soon { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px 16px; background: color-mix(in srgb, var(--bg) 45%, transparent); }
.cs-card { width: min(520px, 100%); text-align: center; padding: 40px 32px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .45); }
.cs-mark { width: 64px; height: 64px; margin-bottom: 10px; }
.cs-logo { font: 800 30px/1 "Brand", system-ui, sans-serif; letter-spacing: -0.03em; margin: 0 0 22px; }
.cs-logo .ink { color: var(--logo-ink); }
.cs-logo .spot { background: linear-gradient(180deg, #f59e0b, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coming-soon h1 { font-size: clamp(40px, 7vw, 60px); margin-bottom: 12px; }
.coming-soon p { color: var(--muted); margin: 0 0 8px; }
.cs-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.cs-links a { color: var(--muted); text-decoration: none; }
.cs-links a:hover { color: var(--accent); text-decoration: underline; }

/* 404 page: same card as the "Coming soon" notice. */
.nf { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
body.nf-page { padding-top: 0; }
.nf-code { font: 800 clamp(72px, 16vw, 120px)/1 "Brand", system-ui, sans-serif; letter-spacing: -0.04em; margin: 0 0 6px; }
.nf h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 10px; }
.nf p { color: var(--muted); }
.nf .nf-code { color: transparent; } /* keep the gradient on the big 404 */
.nf-actions { margin-top: 24px !important; }

/* Compare pages: anchor targets clear the sticky header. */
#moving, #sources, .cmp h2 { scroll-margin-top: 80px; }
.cmp > .quick { margin-top: 48px; }

/* Logo: hovering it makes "spot" do a quick bounce. */
.brand .logo .spot { display: inline-block; transform-origin: 50% 100%; }
.brand:hover .logo .spot, .brand:focus-visible .logo .spot { animation: spot-bounce .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes spot-bounce {
  0% { transform: translateY(0) scale(1, 1); }
  20% { transform: translateY(0) scale(1.08, .88); }
  45% { transform: translateY(-9px) scale(.95, 1.06); }
  65% { transform: translateY(0) scale(1.06, .92); }
  80% { transform: translateY(-3px) scale(1, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) { .brand:hover .logo .spot, .brand:focus-visible .logo .spot { animation: none; } }
