/* SerpDad v5 shared styles. Extracted from the homepage (resources/views/pages/home.blade.php). */

/* Design spec v4 tokens (docs/design/v4/design-spec-v4.md, section 1). */
:root {
    --paper: #f6f4f0;
    --paper-2: #eeeae3;
    --card: #ffffff;
    --ink: #111111;
    --ink-2: #3a3835;
    --ink-3: #5e5a54;
    --ink-4: #726d66;
    --ghost: #8c877e;
    --hairline: #e3dfd8;
    --dashed: #c9c3b8;
    --orange: #ff5a1f;
    --amber: #ffb224;
    --periwinkle: #8e9bff;
    --pink: #f7a8c8;
    --orange-tint: #ffe9e0;
    --amber-tint: #fff3d6;
    --periwinkle-tint: #e8ebff;
    --pink-tint: #fdebf3;

    --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --wordmark: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1200px;
    --gutter: 24px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.h-hero, .h-section, .h-sub { font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.h-hero { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.03; }
.h-section { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.05; }
.h-sub { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.ghost { color: var(--ghost); }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-3); max-width: 640px; }
.prose { display: grid; gap: 16px; font-size: 17px; color: var(--ink-2); max-width: 680px; }
.prose strong { color: var(--ink); }
.step-no { font: 600 15px/1 var(--sans); color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.step-no i { width: 12px; height: 12px; display: block; }

/* ---------- Buttons and chips (spec section 4, 1.3) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: background-color .1s, color .1s; white-space: nowrap; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-secondary { background: #fff; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.chip-new { background: var(--ink); color: #fff; }
.chip-opt { background: var(--pink); }
.chip-done { background: var(--periwinkle); }
.chip-wait { background: var(--amber); }
.chip-act { background: var(--orange); }
.chip-plan { background: var(--paper); border: 1px dashed var(--dashed); color: var(--ink-3); }
.chip-here { background: var(--ink); color: #fff; outline: 2px solid var(--orange); outline-offset: 1px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.note { font-size: 15px; color: var(--ink-3); }

/* ---------- Mock UI ---------- */
.card { background: #fff; border: 1px solid var(--hairline); }
.card-ink { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.c-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.c-body { padding: 18px; display: grid; gap: 12px; }
.mt { font: 600 15px/1.25 var(--sans); color: var(--ink); }
.mm { font-size: 13px; line-height: 1.45; color: var(--ink-4); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 14.5px; }
.row:first-child { border-top: 0; }
.wait-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--amber); color: var(--ink); padding: 10px 14px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.wait-bar .grow { margin-left: auto; display: flex; gap: 6px; }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border: 1px solid var(--ink); font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--ink); }
.mini-btn.on { background: var(--ink); color: #fff; }
.meter { height: 8px; background: var(--paper-2); display: flex; }
.meter i { display: block; height: 100%; transition: width 1s var(--ease); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(246, 244, 240, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--hairline); }
.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark { font: 700 22px/1 var(--wordmark); letter-spacing: -.02em; color: var(--ink); }
.menu { display: flex; gap: 2px; }
.menu a { font: 500 15px/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 12px; }
.menu a:hover { color: var(--ink); background: var(--paper-2); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signin { font: 500 15px/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 10px 12px; }
.signin:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--ink); width: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 100% 100%, #ffd9c2 0%, rgba(255, 217, 194, 0) 70%), radial-gradient(35% 45% at 85% 100%, #f9c9de 0%, rgba(249, 201, 222, 0) 70%), radial-gradient(30% 40% at 70% 100%, #d9dcff 0%, rgba(217, 220, 255, 0) 70%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .h-hero .ghost { display: block; }
.ask { display: grid; gap: 14px; }
.ask-q { background: #fff; border: 1px solid var(--ink); padding: 18px 20px; display: flex; align-items: center; gap: 14px; font: 500 17px/1.35 var(--sans); color: var(--ink); }
.ask-q .typed::after { content: ''; display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
.ask-a { background: #fff; border: 1px solid var(--hairline); padding: 18px 20px; display: grid; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.ask-a.on { opacity: 1; transform: none; }
.ask-a .big { font: 600 34px/1 var(--sans); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ask-pages { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Chapters ---------- */
.chapter { padding: 120px 0; position: relative; }
.chapter.white { background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.chapter.ink { background: var(--ink); color: #c9c3b8; }
.chapter.ink .h-section, .chapter.ink .h-sub, .chapter.ink .step-no { color: #fff; }
.chapter.ink .ghost { color: #8c877e; }
.chapter.ink .lede { color: #c9c3b8; }
.ch-head { display: grid; gap: 16px; margin-bottom: 52px; max-width: 800px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.split > .sticky { position: sticky; top: 100px; display: grid; gap: 18px; }

/* Definition */
.define { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.facts { display: grid; gap: 12px; }
.fact { background: #fff; border: 1px solid var(--hairline); padding: 18px 20px; display: grid; gap: 6px; }
.fact b { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.fact span { font-size: 15px; color: var(--ink-3); }

/* Keyword pile */
.pile { display: flex; flex-wrap: wrap; gap: 8px; }
.kw { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--hairline); font: 400 13.5px/1 var(--mono); color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s, background-color .3s, border-color .3s; transition-delay: calc(var(--i) * 25ms); }
.pile.in .kw { opacity: 1; transform: none; }
.kw.seed { background: var(--ink); color: #fff; border-color: var(--ink); }
.kw.dupe { text-decoration: line-through; color: var(--ghost); background: var(--paper); }
.pile-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); background: #fff; margin-top: 28px; }
.pile-stats div { padding: 20px; border-left: 1px solid var(--hairline); }
.pile-stats div:first-child { border-left: 0; }
.pile-stats b { display: block; font: 600 34px/1 var(--sans); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pile-stats span { font-size: 14px; color: var(--ink-3); }
.sources-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sources-row span { border: 1px solid var(--hairline); background: #fff; padding: 8px 12px; font-size: 14px; color: var(--ink-2); }

/* SERP compare */
.compare { display: grid; gap: 28px; }
.pair { display: grid; gap: 12px; }
.pair-q { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 16px/1.3 var(--sans); color: var(--ink); }
.pair-q .vs { font-weight: 400; color: var(--ink-4); }
.serps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.split > *, .compare, .pair, .serp { min-width: 0; }
.serps.one { grid-template-columns: minmax(0, 1fr); }
.serp-h { font: 500 11px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding: 8px 10px; background: var(--paper-2); }
.serp ol { border: 1px solid var(--hairline); border-top: 0; background: #fff; }
.serp li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 0 10px; height: 30px; font: 400 11.5px/1 var(--mono); color: var(--ink-3); border-top: 1px solid var(--hairline); white-space: nowrap; overflow: hidden; transition: background-color .3s, color .3s; }
.serp li:first-child { border-top: 0; }
.serp li span { overflow: hidden; text-overflow: ellipsis; }
.serp li em { font-style: normal; color: var(--ink-4); flex: none; font-size: 10.5px; }
.serp li.lit { background: var(--periwinkle-tint); color: var(--ink); }
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--ink); opacity: 0; transition: opacity .4s; }
.verdict.on { opacity: 1; }
.verdict.same { background: var(--periwinkle-tint); }
.verdict.split-v { background: var(--orange-tint); }
.verdict b { font: 600 15px/1.25 var(--sans); color: var(--ink); }

/* The plan (topical map) */
.map-wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; align-items: start; }
.tmap { position: relative; background: #fff; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 28px; }
.tmap svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tmap svg.links line { stroke: var(--dashed); stroke-width: 1; stroke-dasharray: 3 3; }
.tmap svg.links line.on { stroke: var(--ink); stroke-dasharray: none; stroke-width: 1.5; }
.tier { position: relative; display: grid; gap: 12px; z-index: 1; }
.tier + .tier { margin-top: 36px; }
.tier-top { grid-template-columns: 1fr 1fr; }
.tier-spokes { grid-template-columns: repeat(3, 1fr); }
.node { background: #fff; border: 1px solid var(--hairline); padding: 12px 14px; display: grid; gap: 8px; cursor: pointer; text-align: left; transition: border-color .2s, transform .2s var(--ease), background-color .2s; opacity: 0; transform: translateY(8px); }
.tmap.in .node { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms); }
.node:hover, .node.sel { border-color: var(--ink); }
.node.sel { background: var(--paper); }
.node.big { border-color: var(--ink); }
.node-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.node b { font: 600 15px/1.25 var(--sans); color: var(--ink); }
.node .url { font: 400 11.5px/1 var(--mono); color: var(--ink-4); }
.node .kwn { font-size: 12.5px; color: var(--ink-4); }
.detail { position: sticky; top: 100px; }
.detail .card { min-height: 420px; }
.detail ul.kws { display: flex; flex-wrap: wrap; gap: 6px; }
.detail ul.kws li { font: 400 12px/1 var(--mono); color: var(--ink-2); background: var(--paper); padding: 6px 8px; }
.why { border-left: 2px solid var(--ink); border-top: 1px solid var(--hairline); border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 12px 14px; font-size: 14px; color: var(--ink-2); background: #fff; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.extra { background: #fff; border: 1px solid var(--hairline); padding: 18px; display: grid; gap: 10px; align-content: start; }
.extra h4 { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.extra li { font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--hairline); }
.extra li:first-child { border-top: 0; }

/* Brief */
.brief-line { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 14.5px; color: var(--ink-2); }
.brief-line:first-child { border-top: 0; }
.brief-line .h { font: 500 11px/1 var(--mono); color: var(--ink-4); width: 26px; flex: none; }
.brief-line .w { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--ink-4); }
.draft p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.cite { background: var(--periwinkle-tint); border-bottom: 1px solid var(--periwinkle); padding: 0 2px; }
.uncited { background: var(--orange-tint); border-bottom: 1px solid var(--orange); padding: 0 2px; }
.sup { font: 500 10px/1 var(--mono); vertical-align: super; color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Internal links */
.linkmap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.linkcol { display: grid; gap: 8px; }
.linkcol span { background: #fff; border: 1px solid var(--hairline); padding: 10px 12px; font: 400 12.5px/1 var(--mono); color: var(--ink-2); }
.hubbox { background: var(--ink); color: #fff; padding: 22px; text-align: center; display: grid; gap: 6px; }
.hubbox b { font: 600 17px/1.2 var(--sans); }
.hubbox span { font: 400 12px/1 var(--mono); color: #c9c3b8; }

/* Tracker (honest, our own progress) */
.tracker { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.track-list .row span:first-child { display: flex; align-items: center; gap: 10px; color: #e3dfd8; }
.chapter.ink .row { border-top-color: #2a2927; }
.chapter.ink .card { background: #1b1a19; border-color: #3a3835; }
.chapter.ink .c-head { border-bottom-color: #2a2927; }
.chapter.ink .mt { color: #fff; }
.chapter.ink .meter { background: #2a2927; }
.chapter.ink .chip-plan { background: transparent; border-color: #5e5a54; color: #c9c3b8; }
.big-num { font: 600 64px/1 var(--sans); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Your turn */
.turn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.turn-card { background: #fff; border: 1px solid var(--hairline); padding: 28px; display: grid; gap: 12px; align-content: start; }
.turn-card h3 { font: 600 20px/1.25 var(--sans); color: var(--ink); }
.turn-card p { font-size: 15px; color: var(--ink-3); }
.price-strip { margin-top: 24px; background: #fff; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.price-strip .p { font: 600 56px/1 var(--sans); color: var(--ink); letter-spacing: -.03em; }
.price-strip .p small { font: 400 16px/1 var(--sans); color: var(--ink-4); letter-spacing: 0; }
.bands-mini { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--ink-3); }
.bands-mini b { color: var(--ink); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 600 17px/1.3 var(--sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { width: 24px; height: 24px; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; font: 500 14px/1 var(--mono); transition: background-color .15s, color .15s; }
.faq details[open] summary span { background: var(--ink); color: #fff; }
.faq .ans { padding: 0 48px 22px 0; color: var(--ink-3); }

/* Closing + footer */
.closing { padding: 120px 0; text-align: center; }
.closing .inner { display: grid; justify-items: center; gap: 22px; }
.closing .cta-row { justify-content: center; }
footer { background: var(--ink); color: #c9c3b8; padding: 72px 0 32px; }
.foot-top { display: grid; grid-template-columns: 1fr 2.4fr; gap: 56px; }
footer .wordmark { color: #fff; font-size: 30px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot-cols h5 { margin: 0 0 14px; font: 600 14px/1 var(--sans); color: #fff; }
.foot-cols ul { display: grid; gap: 10px; font-size: 14px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2a2927; font-size: 13.5px; color: #8c877e; }
.legal a { text-decoration: none; margin-left: 18px; }

/* Pixel dad */
.dad { shape-rendering: crispEdges; overflow: visible; }
.dad.live .sd-head { animation: bob 4s steps(1) infinite; }
.dad.live .sd-glasses { transform-box: fill-box; transform-origin: center; animation: blinkg 6s steps(1) infinite; }
.dad .sd-burst rect { opacity: 0; }
.dad.burst .sd-burst rect { animation: burst .6s steps(6) forwards; }

@keyframes caret { 50% { opacity: 0; } }
@keyframes bob { 0%, 92% { transform: translateY(0); } 93%, 100% { transform: translateY(-1px); } }
@keyframes blinkg { 0%, 96% { transform: scaleY(1); } 97%, 100% { transform: scaleY(.2); } }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--bx), var(--by)); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .menu, .signin { display: none; }
    .hero .wrap, .define, .split, .map-wrap, .tracker, .faq { grid-template-columns: 1fr; gap: 36px; }
    .split > .sticky, .detail { position: static; }
    .detail .card { min-height: 0; }
    .tier-spokes { grid-template-columns: repeat(2, 1fr); }
    .turn { grid-template-columns: 1fr; }
    .price-strip { grid-template-columns: 1fr; gap: 16px; }
    .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --gutter: 16px; }
    .chapter { padding: 84px 0; }
    .hero { padding-top: 48px; }
    .head-actions .btn { display: none; }
    .tmap { padding: 16px; }
    .tmap svg.links { display: none; }
    .tier-top, .tier-spokes { grid-template-columns: 1fr; }
    .serps, .two, .extras { grid-template-columns: minmax(0, 1fr); }
    .serp-b li:nth-child(n+6), .serp-a li:nth-child(n+6) { display: none; }
    .pile-stats { grid-template-columns: 1fr; }
    .pile-stats div { border-left: 0; border-top: 1px solid var(--hairline); }
    .pile-stats div:first-child { border-top: 0; }
    .linkmap { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .faq .ans { padding-right: 0; }
}
@media (min-width: 1600px) {
    :root { --wrap: 1440px; --gutter: 48px; }
    body { font-size: 17px; }
    .h-hero { font-size: clamp(62px, 3.8vw, 84px); }
    .h-section { font-size: clamp(50px, 3.2vw, 64px); }
    .h-sub { font-size: 36px; }
    .lede { font-size: 20px; max-width: 720px; }
    .prose { font-size: 19px; max-width: 760px; }
    .chapter { padding: 160px 0; }
    .head-row { height: 76px; }
    .btn { height: 52px; padding: 0 24px; font-size: 13px; }
    .serp li { height: 36px; font-size: 13px; }
    .node { padding: 16px 18px; }
    .node b { font-size: 17px; }
    .ask-q { font-size: 20px; padding: 22px 24px; }
    .ask-a .big { font-size: 44px; }
}
@media (min-width: 2200px) { :root { --wrap: 1680px; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal, .node, .kw, .ask-a { opacity: 1; transform: none; }
}

/* ---------- App shell mock (matches the real SerpDad shell: rail, hub sidebar, frame) ---------- */
.screen { min-width: 0; }
.screen-row { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; margin-top: 36px; }
.feature-list { display: grid; gap: 18px; }
.feature-list li { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--ink); }
.feature-list b { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.feature-list span { font-size: 15px; color: var(--ink-3); }
.shell { display: grid; grid-template-columns: 56px 172px minmax(0, 1fr); background: #fff; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); min-height: 380px; font-size: 13.5px; }
.sh-rail { background: #fff; border-right: 1px solid var(--hairline); display: grid; align-content: start; gap: 2px; padding: 8px 0; }
.sh-rail span { display: grid; justify-items: center; gap: 4px; padding: 8px 0; font: 500 10px/1 var(--sans); color: var(--ink-3); position: relative; }
.sh-rail span svg { width: 16px; height: 16px; }
.sh-rail span.on { background: var(--paper-2); color: var(--ink); }
.sh-rail span.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.sh-side { background: var(--paper); border-right: 1px solid var(--hairline); padding: 12px 10px; display: grid; align-content: start; gap: 1px; }
.sh-proj { display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px; }
.sh-proj b { width: 22px; height: 22px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 11px/1 var(--sans); }
.sh-proj span { font: 600 13px/1.1 var(--sans); color: var(--ink); }
.sh-proj small { display: block; font: 400 11px/1.2 var(--sans); color: var(--ink-4); }
.sh-side h6 { margin: 4px 4px 6px; font: 600 16px/1 var(--sans); color: var(--ink); }
.sh-side a { display: flex; justify-content: space-between; align-items: center; padding: 7px 6px; color: var(--ink-2); text-decoration: none; font-size: 13px; }
.sh-side a.on { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.sh-side a em { font: 500 10.5px/1 var(--mono); font-style: normal; background: var(--amber); padding: 3px 5px; color: var(--ink); }
.sh-main { display: flex; flex-direction: column; min-width: 0; }
.sh-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; padding: 8px 16px; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--ink-4); }
.sh-crumb b { color: var(--ink); font-weight: 600; }
.sh-crumb .sep { color: var(--dashed); }
.sh-body { padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.sh-title { font: 600 22px/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.sh-foot { margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--ink-4); }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--hairline); font: 400 12.5px/1.2 var(--mono); color: var(--ink); }
.file-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .vol { color: var(--ink-4); }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); }
.stat3 div { padding: 12px 14px; border-left: 1px solid var(--hairline); }
.stat3 div:first-child { border-left: 0; }
.stat3 b { display: block; font: 600 22px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat3 span { font-size: 12px; color: var(--ink-4); }
.est-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.est-row:first-child { border-top: 0; }
.est-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.est-row.total { font-weight: 600; color: var(--ink); background: var(--paper); padding: 12px 10px; margin: 0 -10px; }
.run-card { border: 1px solid var(--hairline); padding: 20px; display: grid; gap: 14px; }
.run-card h4 { font: 600 22px/1.15 var(--sans); color: var(--ink); letter-spacing: -.02em; }
.run-bar { height: 6px; background: var(--paper-2); }
.run-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s linear; }
.run-step { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ghost); }
.run-step.now, .run-step.done { color: var(--ink); font-weight: 500; }
.run-step .box { width: 18px; height: 18px; border: 1px solid var(--dashed); flex: none; display: grid; place-items: center; }
.run-step.now .box { border: 2px solid var(--ink); }
.run-step.done .box { background: var(--ink); border-color: var(--ink); }
.run-step.done .box::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.run-done { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--periwinkle-tint); border: 1px solid var(--ink); }
.run-done.on { display: flex; }
.run-done b { font: 600 15px/1.2 var(--sans); color: var(--ink); }
.rv-row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.rv-row:first-child { border-top: 0; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rv-top b { font: 500 14px/1.3 var(--mono); color: var(--ink); }
.rv-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); }
.lk-row:first-child { border-top: 0; }
.lk-row span { overflow: hidden; text-overflow: ellipsis; }
.lk-row b { color: var(--ink); font-weight: 500; }
.job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hairline); }
.job-row:first-child { border-top: 0; }
.job-row b { display: block; font: 600 14px/1.3 var(--sans); color: var(--ink); }
.job-row span { font-size: 12.5px; color: var(--ink-4); }
.chapter.ink .screen .shell { box-shadow: 4px 4px 0 #3a3835; border-color: #3a3835; }
@media (max-width: 1080px) {
    .screen-row { grid-template-columns: 1fr; }
    .shell { grid-template-columns: 52px minmax(0, 1fr); }
    .sh-side { display: none; }
}
@media (max-width: 640px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sh-rail { display: none; }
    .stat3 { grid-template-columns: 1fr; }
    .stat3 div { border-left: 0; border-top: 1px solid var(--hairline); }
    .stat3 div:first-child { border-top: 0; }
}
@media (min-width: 1600px) {
    .shell { font-size: 15px; min-height: 460px; grid-template-columns: 64px 200px minmax(0, 1fr); }
    .sh-side a { font-size: 14.5px; }
    .sh-title, .run-card h4 { font-size: 26px; }
}

/* ---------- SaaS presentation layer ---------- */
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--ink); background: #fff; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 3px auto; }
.sheet { display: none; border-top: 1px solid var(--hairline); background: #fff; padding: 8px var(--gutter) 20px; }
.sheet a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hairline); font: 500 16px/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.sheet .btn { display: flex; margin-top: 14px; border-bottom: 1px solid var(--ink); width: 100%; color: #fff; }
.site-head.open .sheet { display: block; }
@media (max-width: 1080px) { .nav-toggle { display: block; } }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 12px/1 var(--sans); color: var(--ink-4); padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; } }

.hero { text-align: center; padding: 88px 0 72px; }
.hero .wrap { display: block; }
.hero-copy { justify-items: center; max-width: 940px; margin: 0 auto; }
.hero-copy .lede { margin: 0 auto; }
.hero-copy .cta-row { justify-content: center; }
.hero-demo { max-width: 1120px; margin: 56px auto 0; text-align: left; display: grid; gap: 14px; }
.hero-demo .ask-q { max-width: 720px; margin: 0 auto; width: 100%; box-shadow: 4px 4px 0 var(--ink); }
.hero-demo .ask-a { padding: 0; border: 0; background: none; gap: 14px; }
.ask-a-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid var(--hairline); padding: 16px 20px; }
.ask-a-head .ask-pages { justify-content: flex-end; }
.seats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: #fff; }
.seats .wrap { display: flex; align-items: center; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.seats-copy { font: 500 15px/1.4 var(--sans); color: var(--ink); max-width: 230px; flex: none; }
.seat-slots { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.seat-slots span { height: 52px; display: grid; place-items: center; border: 1px dashed var(--dashed); background: var(--paper); font: 500 14px/1 var(--sans); color: var(--ghost); }
.proof { padding: 96px 0 24px; }
.proof-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 40px; background: #fff; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.proof-grid div { padding: 26px 22px; border-left: 1px solid var(--hairline); display: grid; gap: 8px; }
.proof-grid div:first-child { border-left: 0; }
.proof-grid b { font: 600 clamp(28px, 3vw, 42px)/1 var(--sans); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proof-grid span { font-size: 14px; color: var(--ink-3); }

/* Section heads and numbered steps */
.ch-head { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.ch-head .lede { margin: 0 auto; }
.step-no { gap: 12px; }
.step-no .sn { font: 600 13px/1 var(--mono); color: #fff; background: var(--ink); padding: 6px 8px; letter-spacing: .04em; }
.chapter.ink .step-no .sn { background: #fff; color: var(--ink); }
.chapter .screen, .two .screen { position: relative; }
.chapter .screen::before { content: ''; position: absolute; inset: -22px -22px -26px -22px; background: linear-gradient(135deg, var(--periwinkle-tint), var(--pink-tint) 55%, var(--amber-tint)); z-index: -1; }
.chapter .screen { isolation: isolate; z-index: 0; }
.chapter.ink .screen::before { background: linear-gradient(135deg, #1b1a19, #2a2927); }
.split { gap: 88px; align-items: center; }
.split > .sticky { align-self: start; }
.screen-row { gap: 64px; }
.two { gap: 56px; }

/* Pricing cards */
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.band { background: #fff; border: 1px solid var(--hairline); padding: 30px; display: grid; gap: 16px; align-content: start; }
.band.open { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.band-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.band-name { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.band .price { font: 600 60px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.band .price small { font: 400 16px/1 var(--sans); color: var(--ink-4); letter-spacing: 0; }
.band ul { display: grid; gap: 8px; font-size: 15px; color: var(--ink-3); }
.band li { display: flex; gap: 10px; }
.band li::before { content: ''; width: 6px; height: 6px; background: var(--periwinkle); margin-top: 9px; flex: none; }
.band .btn { width: 100%; }
.price-note { margin-top: 24px; text-align: center; font-size: 15px; color: var(--ink-3); }

/* Footer */
.site-foot { background: #fff; color: var(--ink-2); border-top: 1px solid var(--ink); padding: 80px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand p { font-size: 16px; line-height: 1.6; color: var(--ink-3); max-width: 380px; }
.site-foot .wordmark { font-size: 28px; color: var(--ink); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--ink); transition: border-color .15s, background-color .15s; }
.socials a:hover { border-color: var(--ink); background: var(--paper); }
.socials svg { width: 18px; height: 18px; }
.foot-brand address { font-style: normal; font-size: 15px; line-height: 1.75; color: var(--ink-4); }
.foot-brand address a { color: var(--ink); text-decoration: none; }
.foot-brand address a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-col h5 { margin: 6px 0 16px; font: 600 15px/1 var(--sans); color: var(--ink); }
.foot-col ul { display: grid; gap: 12px; }
.foot-col a { font-size: 15px; color: var(--ink-3); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-4); }

@media (max-width: 1080px) {
    .proof-grid { grid-template-columns: repeat(3, 1fr); }
    .proof-grid div:nth-child(4) { border-left: 0; }
    .proof-grid div:nth-child(n+4) { border-top: 1px solid var(--hairline); }
    .bands { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .seat-slots { grid-template-columns: repeat(3, 1fr); }
    .seat-slots span:nth-child(n+4) { display: none; }
    .split { gap: 48px; }
    .chapter .screen::before { inset: -12px; }
}
@media (max-width: 640px) {
    .hero { padding-top: 48px; }
    .proof-grid { grid-template-columns: 1fr 1fr; }
    .proof-grid div { border-left: 0 !important; border-top: 1px solid var(--hairline); }
    .proof-grid div:first-child, .proof-grid div:nth-child(2) { border-top: 0; }
    .proof-grid div:nth-child(even) { border-left: 1px solid var(--hairline) !important; }
    .seats .wrap { flex-direction: column; align-items: stretch; gap: 14px; }
    .seats-copy { max-width: none; }
    .seat-slots { grid-template-columns: 1fr 1fr; }
    .seat-slots span:nth-child(n+3) { display: none; }
    .ask-a-head .ask-pages { justify-content: flex-start; }
    .chapter .screen::before { inset: -8px; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 1600px) {
    .hero-demo { max-width: 1320px; }
    .band .price { font-size: 72px; }
    .foot-col a, .foot-brand address { font-size: 16px; }
}

/* ---------- Playful layer: livelier backgrounds and a dad with a personality ---------- */
.hero { isolation: isolate; }
.hero::after { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg .blob { position: absolute; width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; filter: blur(60px); opacity: .55; animation: float-blob 18s ease-in-out infinite alternate; }
.hero-bg .b1 { background: #ffc3a6; left: -12%; top: 18%; }
.hero-bg .b2 { background: #f7b9d4; right: -10%; top: -6%; animation-delay: -6s; animation-duration: 22s; }
.hero-bg .b3 { background: #c4caff; left: 32%; bottom: -28%; animation-delay: -11s; animation-duration: 26s; }
.hero-bg .b4 { background: #ffe0a3; right: 18%; bottom: 8%; width: 26vw; height: 26vw; animation-delay: -3s; }
@keyframes float-blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, -6%) scale(1.08); } 100% { transform: translate(-5%, 4%) scale(.95); } }
.px-float { position: absolute; bottom: -24px; width: 12px; height: 12px; opacity: 0; animation: px-rise var(--d, 14s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes px-rise { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(calc(-1 * var(--h, 900px))); opacity: 0; } }

/* Pixel skyline: bars of brand squares that rise like pages being built */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 168px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; z-index: -1; pointer-events: none; opacity: .9; }
.skyline .col { display: flex; flex-direction: column-reverse; gap: 4px; }
.skyline .col i { width: 20px; height: 20px; display: block; transform: scaleY(0); transform-origin: bottom; animation: px-build .35s steps(3) forwards; animation-delay: calc(var(--n) * 28ms + 300ms); }
@keyframes px-build { to { transform: scaleY(1); } }
.hero-demo { position: relative; }

/* The hero dad stands on the skyline, watches the cursor and tells dad jokes */
.dad-stage { position: absolute; left: max(16px, calc(50% - 720px)); bottom: 168px; z-index: 3; cursor: pointer; }
.dad-stage.right { left: auto; right: max(16px, calc(50% - 720px)); }
.dad-btn { background: none; border: 0; padding: 0; cursor: pointer; display: block; }
.dad-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.dad.jump { animation: dad-jump .5s steps(4); }
@keyframes dad-jump { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } 60% { transform: translateY(-4px); } }
.dad.typing .sd-head { animation: bob .45s steps(1) infinite; }
.dad .sd-glint { opacity: 0; }
.dad.working .sd-glint { opacity: 1; animation: glint 1.6s steps(8) infinite; }
@keyframes glint { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(7px); } }
.dad.waiting .sd-head { animation: nod 2.4s steps(1) infinite; }
@keyframes nod { 0%, 6% { transform: translateY(1px); } 7%, 12% { transform: translateY(0); } 13%, 19% { transform: translateY(1px); } 20%, 100% { transform: translateY(0); } }

.bubble { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px); width: max-content; max-width: 260px; background: #fff; border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 10px 12px; font: 500 14px/1.35 var(--sans); color: var(--ink); text-align: left; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); z-index: 5; }
.bubble::after { content: ''; position: absolute; top: 100%; left: calc(50% - 6px); width: 12px; height: 8px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 12px 2px no-repeat, linear-gradient(#fff, #fff); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bubble.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.dad-stage.right .bubble { left: auto; right: -8px; transform: translateY(6px); }
.dad-stage.right .bubble.on { transform: none; }
.dad-stage.right .bubble::after { left: auto; right: 28px; }
.dad-hint { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }

/* Peeking dad: slides in from behind a product screen */
.peek { position: absolute; right: -10px; top: -58px; z-index: 4; display: flex; align-items: flex-end; gap: 8px; transform: translateY(24px); opacity: 0; transition: transform .5s var(--ease), opacity .3s; pointer-events: auto; }
.peek.in { transform: none; opacity: 1; }
.peek .bubble { position: static; transform: none; opacity: 1; max-width: 220px; font-size: 13px; }
.peek .bubble::after { display: none; }
.peek .dad-btn { margin-bottom: -2px; }

/* Section backgrounds with more character */
.chapter.tint-blue { background: linear-gradient(180deg, var(--periwinkle-tint) 0%, var(--paper) 100%); }
.chapter.tint-pink { background: linear-gradient(180deg, var(--paper) 0%, var(--pink-tint) 100%); }
.chapter.tint-amber { background: linear-gradient(180deg, var(--amber-tint) 0%, var(--paper) 100%); }
.chapter.dots { background-image: radial-gradient(rgba(17,17,17,.10) 1px, transparent 1.2px); background-size: 18px 18px; background-color: var(--paper); }
.proof { position: relative; }
.closing { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--pink-tint) 60%, var(--periwinkle-tint)); }
.closing .dad-btn .dad { filter: drop-shadow(4px 4px 0 rgba(17,17,17,.15)); }

.dad-solo { position: relative; }
.dad-stage.right { bottom: 48px; }
@media (max-width: 1399px) { .dad-stage { display: none; } }
@media (max-width: 1080px) { .peek { right: 0; } }
@media (max-width: 640px) { .skyline { height: 96px; } .skyline .col i { width: 12px; height: 12px; } .peek { top: -50px; } .peek .bubble { max-width: 170px; } }
@media (prefers-reduced-motion: reduce) { .skyline .col i { transform: none; } .px-float { display: none; } .peek { transform: none; opacity: 1; } }
