:root {
  --bg: #08090d; --bg-1: #0f1015; --bg-2: #15171e; --bg-3: #1c1f28;
  --accent: #a678f0; --accent-2: #7c4fd4; --accent-soft: rgba(166,120,240,.14);
  --text: #f5f0eb; --muted: #9298a8; --muted-2: #6b6f7b;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.14);
  --warm: #f08a78;
  --head: 'Manrope', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px); --max: 1200px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 76px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.em { color: var(--accent); }
.sub { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 34em; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.center { text-align: center; } .center .sub { margin-inline: auto; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 500; font-size: 15px; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn.primary { background: var(--accent); color: #0d0a14; }
.btn.primary:hover { background: #b98cff; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(166,120,240,.3); }
.btn.ghost { border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255,255,255,.3); }
.btn.sm { font-size: 13.5px; padding: 8px 14px; border-radius: 8px; }
.arrow::after { content: "→"; display: inline-block; transition: transform .2s; }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(8,9,13,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .36em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: center; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
@media (max-width: 960px) { .nav-links a:not(.btn) { display: none; } }

/* hero */
.hero { padding: clamp(56px, 8vw, 110px) 0 0; }
.hero .kicker { display: block; margin-bottom: 22px; }
.hero h1 { max-width: 13em; margin-bottom: 22px; }
.hero .sub { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero.center h1 { margin-inline: auto; }
.hero.center .home-h1 { font-size: clamp(36px, 4.9vw, 68px); max-width: 15em; margin-bottom: 26px; }
.hero.center .lede { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.5; color: var(--text); max-width: 32em; margin: 0 auto 14px; }
.hero.center .lede + .sub { font-size: clamp(15px, 1.15vw, 17px); max-width: 36em; }
.hero.center .hero-cta { justify-content: center; }
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

/* the chain: one buyer, the ad Relay wrote for them, the page they land on */
.stage { margin-top: clamp(44px, 6vw, 80px); position: relative; text-align: left; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-1); overflow: hidden; padding: clamp(18px, 3vw, 36px); }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 40px 40px; background-position: center; }
.stage::after { content: ""; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(40% 40% at 30% 60%, rgba(166,120,240,.16), transparent 70%), radial-gradient(35% 35% at 75% 30%, rgba(124,79,212,.14), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(3%, -3%, 0) scale(1.05); } }
.stage-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.chain { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 70px 1fr 70px 1fr; gap: 0; align-items: center; transition: opacity .35s ease; }
.chain.fade { opacity: 0; }
.chain > div:first-child { align-self: stretch; display: grid; grid-template-rows: auto 1fr; }
.chain > div:first-child .who { align-content: start; }
.link { position: relative; height: 2px; align-self: center; }
.link svg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 20px; overflow: visible; }
.link path { fill: none; stroke: rgba(166,120,240,.5); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
.link circle { fill: var(--text); animation: baton 3.2s cubic-bezier(.4,0,.2,1) infinite; }
.link.two circle { animation-delay: 1.6s; }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes baton { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 42% { transform: translateX(100%); opacity: 1; } 50% { opacity: 0; transform: translateX(100%); } 100% { opacity: 0; } }
.who { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(21,23,30,.9); display: flex; flex-direction: column; gap: 12px; }
.who .pred { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.who .pred .kicker { display: block; font-size: 10px; color: var(--muted-2); margin-bottom: 6px; }
.who .pred div div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 12.5px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.who .pred div div span:first-child { color: var(--muted); }
.who .pred div div span:nth-child(2) { color: var(--muted-2); }
.who .pred div div b { font-weight: 500; font-size: 12.5px; color: var(--accent); }
.who .pred div div.miss b { color: var(--warm); }
.who .id { display: flex; align-items: center; gap: 12px; }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.who b { display: block; font-family: var(--head); font-weight: 600; font-size: 16px; }
.who .id span { font-size: 13px; color: var(--muted); }
.who p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.who .why { padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(166,120,240,.3); font-size: 12.5px; line-height: 1.45; }
.who .why .kicker { display: block; margin-bottom: 4px; font-size: 10px; }
.adcard { border-radius: 14px; overflow: hidden; background: #fff; color: #262626; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.ad-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ad-av { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #dbdbdb; }
.ad-av img { width: 78%; height: 78%; object-fit: contain; display: block; }
.ad-head div { display: grid; line-height: 1.2; min-width: 0; } .ad-head b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ad-head span { font-size: 11px; color: #737373; }
.ad-more { margin-left: auto; width: 18px; height: 4px; flex: none; background: radial-gradient(circle, #262626 1.6px, transparent 1.9px) 0 0 / 6px 4px repeat-x; }
.ad-img { background: #efefef; }
.ad-img img { width: 100%; height: auto; display: block; }
.ad-ctabar { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; font-size: 13px; font-weight: 600; color: #262626; border-bottom: 1px solid #efefef; background: #fff; }
.ad-ctabar i { font-style: normal; font-size: 16px; line-height: 1; color: #262626; }
.ad-actions { display: flex; gap: 12px; padding: 9px 12px 5px; }
.ad-actions svg { width: 19px; height: 19px; fill: none; stroke: #262626; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ad-actions .bm { margin-left: auto; }
.ad-caption { padding: 0 12px 12px; font-size: 10.5px; line-height: 1.35; color: #262626; letter-spacing: -.005em; }
.ad-caption b { font-weight: 600; }
.phone { border-radius: 28px; padding: 7px; background: #0b0b0e; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(0,0,0,.55); max-width: 300px; margin-inline: auto; }
.screen { border-radius: 22px; overflow: hidden; aspect-ratio: 390 / 720; background: #fff; }
.screen img { width: 100%; height: auto; animation: lander-scroll 16s ease-in-out infinite alternate; }
.screen { position: relative; }
/* the live page renders at a real phone width (390px) and is scaled down to the screen, see fitFrames() */
.screen iframe { position: absolute; left: 0; top: 0; width: 390px; height: 100%; border: 0; display: block; background: #fff; transform-origin: 0 0; }
@keyframes lander-scroll { 0%, 12% { transform: translateY(0); } 100% { transform: translateY(var(--scroll-to, -60%)); } }
.col-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: background .3s, width .3s; }
.dots i.on { background: var(--accent); width: 18px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font-size: 13px; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); transition: all .2s; }
.tab:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #0d0a14; }
@media (max-width: 900px) { .chain { grid-template-columns: 1fr; gap: 18px; } .link { display: none; } .adcard { max-width: 340px; margin-inline: auto; } }

/* ledger: figures in a single ruled line */
.ledger { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger > div { padding: 26px 0 28px; display: grid; gap: 6px; align-content: start; }
.ledger .n { font-family: var(--head); font-weight: 500; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ledger .n small { font-size: .55em; color: var(--muted); margin-left: 2px; }
.ledger .l { font-size: 13.5px; color: var(--muted); max-width: 18em; }
.ledger .mono { margin-bottom: 4px; }
@media (max-width: 800px) { .ledger { grid-template-columns: 1fr 1fr; } }
.backed { padding: 28px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.backed .by { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.backed .by img { height: 26px; width: auto; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.logos img { height: 22px; width: auto; opacity: .45; filter: brightness(0) invert(1); transition: opacity .3s; }
.logos img:hover { opacity: .9; }
.logos .lg { display: inline-block; height: 26px; aspect-ratio: var(--r); background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; opacity: .95; }

/* sections */
.sec { padding: clamp(80px, 11vw, 150px) 0 0; }
.sec-head { margin-bottom: clamp(32px, 5vw, 52px); display: grid; gap: 14px; }
.sec-head .kicker { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; align-items: start; } }

/* doors: a ruled index of the three paths */
.doors { border-top: 1px solid var(--line); }
.door { display: grid; grid-template-columns: 90px 1fr auto; gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(24px, 3.5vw, 40px) 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 14px; transition: background .25s; position: relative; }
.door:hover { background: var(--bg-1); }
.door .no { font-family: var(--head); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -.02em; color: var(--muted-2); transition: color .25s; }
.door:hover .no { color: var(--accent); }
.door h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 6px; }
.door p { color: var(--muted); font-size: 15px; max-width: 30em; }
.door .for { font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 12px; max-width: 26em; }
.door .for b { display: block; color: var(--text); font-weight: 500; }
.door .go { font-family: var(--head); font-weight: 500; font-size: 15px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.door .go::after { content: "→"; transition: transform .2s; }
.door:hover .go::after { transform: translateX(4px); }
@media (max-width: 900px) { .door { grid-template-columns: 60px 1fr; } .door .go { grid-column: 2; } }

/* moves: the ruled 30-day table */
.moves { border-top: 1px solid var(--line); }
.move { display: grid; grid-template-columns: 110px 1fr 1.1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.move .day { font-family: var(--head); font-weight: 500; font-size: 14px; color: var(--muted); display: grid; gap: 6px; align-content: start; }
.move .day b { font-size: clamp(40px, 4vw, 54px); line-height: 1; color: var(--text); font-weight: 500; letter-spacing: -.02em; }
.move h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 12px; }
.move p { color: var(--muted); max-width: 30em; font-size: 15.5px; }
.fig { border-radius: 18px; border: 1px solid var(--line); background: var(--bg-1); padding: 18px; min-height: 240px; display: grid; align-content: center; position: relative; overflow: hidden; }
.fig .fh { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.fig .fh span:last-child { color: var(--muted-2); }
.fig .mini { font-size: 11px; color: var(--muted-2); margin-bottom: 8px; }
@media (max-width: 900px) { .move { grid-template-columns: 1fr; gap: 20px; } .move .day { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; } }
.rings svg { width: 100%; height: auto; display: block; overflow: visible; }
.rings .lab { font: 500 11px var(--body); fill: var(--muted); } .rings .lab.on { fill: var(--text); }
.recs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
.rec.ok { border-color: rgba(166,120,240,.4); }
.rec .rt { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.pill { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 100px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent); } .pill.bad { background: rgba(240,138,120,.15); color: var(--warm); }
.rec div + div { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.rec span { display: block; font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.rec b { font-weight: 500; color: var(--text); } .rec.bad b { color: var(--muted); }
.rec .res b { color: var(--warm); } .rec.ok .res b { color: var(--accent); }
@media (max-width: 560px) { .recs { grid-template-columns: 1fr; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pair .adcard { box-shadow: none; } .pair .phone { padding: 6px; border-radius: 22px; box-shadow: none; max-width: none; } .pair .screen { border-radius: 16px; }
.loop { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bars { display: grid; gap: 10px; align-content: center; }
.bar { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar b { font-weight: 500; display: block; margin-bottom: 5px; }
.bar .tr { height: 7px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.bar .tr i { display: block; height: 100%; border-radius: 4px; background: var(--accent); width: 33%; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.in .bar .tr i { width: var(--w); }
.bar.off .tr i { background: var(--warm); }
.bar .pc { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.line { display: grid; grid-template-rows: auto 1fr auto; align-self: stretch; }
.line svg { width: 100%; height: 100%; min-height: 110px; display: block; overflow: visible; }
.line .cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); margin-top: 8px; }
.line .cap span { white-space: nowrap; }
@media (max-width: 560px) { .loop, .pair { grid-template-columns: 1fr; } }
/* b2b: rules and leads */
.rules { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rules span { font-size: 12.5px; padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(166,120,240,.4); color: var(--accent); }
.lead { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.lead b { display: block; font-weight: 500; color: var(--text); font-size: 13.5px; }
/* testing: the plan */
.plan { display: grid; gap: 0; }
.plan div { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.plan div:first-child { border-top: 0; }
.plan div span:first-child { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.plan b { font-weight: 500; color: var(--text); }
.plan div span:last-child { font-family: var(--mono); font-size: 11px; color: var(--muted-2); white-space: nowrap; }

/* three-up feature list */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { border-top: 1px solid var(--line-2); padding-top: 20px; }
.feat .no { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 12px; display: block; letter-spacing: .1em; }
.feat h3 { margin-bottom: 8px; font-size: 20px; }
.feat p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 800px) { .three { grid-template-columns: 1fr; } }

/* proof */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case { border-radius: 22px; border: 1px solid var(--line); background: var(--bg-1); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; transition: border-color .3s, transform .35s cubic-bezier(.22,1,.36,1); }
.case:hover { border-color: rgba(166,120,240,.4); transform: translateY(-4px); }
.case .kicker { margin-bottom: 14px; display: block; }
.case h3 { margin-bottom: 10px; font-size: 23px; }
.case p { color: var(--muted); font-size: 14.5px; max-width: 28em; margin-bottom: 18px; }
.case .figs { display: flex; gap: 22px; }
.case .figs div { display: grid; } .case .figs b { font-family: var(--head); font-weight: 500; font-size: 26px; line-height: 1; } .case .figs span { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.case .art { width: 132px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.case .art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .case { grid-template-columns: 1fr; } .case .art { width: 100%; aspect-ratio: 16 / 9; } }
.running { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.running img { height: 22px; width: auto; opacity: .55; filter: brightness(0) invert(1); } .running img.big { height: 28px; }

/* questions, laid out as a ruled two-column list, no accordion */
.qa { border-top: 1px solid var(--line); }
.qa > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(16px, 4vw, 64px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 19px; }
.qa p { color: var(--muted); font-size: 15px; max-width: 40em; }
@media (max-width: 800px) { .qa > div { grid-template-columns: 1fr; gap: 8px; } }

/* intake */
.door-sec { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.door-sec h2 { margin-bottom: 16px; }
.door-sec .sub { margin-bottom: 26px; }
.notes { border-top: 1px solid var(--line); }
.notes div { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.notes div span:first-child { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 4px; }
.notes b { font-weight: 500; color: var(--text); }
form { background: var(--bg-1); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: inherit; font-size: 15px; padding: 12px 14px; outline: none; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.msg { font-size: 13.5px; color: var(--muted); } .msg.err { color: var(--warm); } .msg.ok { color: var(--accent); }
@media (max-width: 900px) { .door-sec { grid-template-columns: 1fr; } }

/* footer */
footer { margin-top: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); padding: 56px 0 36px; }
footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
footer .top p { color: var(--muted); font-size: 14px; max-width: 26em; margin-top: 14px; }
footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; font-weight: 500; }
footer ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
footer ul a:hover { color: var(--text); }
footer .bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); }
@media (max-width: 760px) { footer .top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .stage::after, .screen img, .link path, .link circle { animation: none; }
  html { scroll-behavior: auto; }
}

/* proof card with three ads stacked, and full-colour client logos */
.case .art.stack3 { width: 170px; aspect-ratio: auto; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.case .art.stack3 img { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); }
.case .art.stack3 img:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1.1; }
.running img { filter: none; opacity: 1; height: 26px; } .running img.big { height: 32px; }
.running img.inv { filter: brightness(0) invert(1); }
/* real brand colours on the dark ground: the logo is a mask, filled with the brand colour */
.running.colour { gap: 16px 34px; }
.running.colour img { filter: none; opacity: 1; width: auto; }
.running .pace { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.running .pace img { height: 26px; width: 26px; border-radius: 7px; filter: none; opacity: 1; }
.running.colour .lg { display: inline-block; height: var(--h, 26px); aspect-ratio: var(--r); background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.case.three-art .figs { gap: 16px; flex-wrap: wrap; }
.case.three-art .figs b { font-size: 20px; white-space: nowrap; }
.case .figs b { font-size: 24px; white-space: nowrap; } .case .figs { flex-wrap: wrap; gap: 22px; }

/* the ad card and the phone share one height wherever they sit side by side */
.pair { align-items: stretch; }
.pair > div, .chain > div:last-child { display: grid; grid-template-rows: auto 1fr; align-self: stretch; }
.pair .phone, .chain .phone { height: 100%; width: 100%; display: flex; flex-direction: column; max-width: none; }
.pair .screen, .chain .screen { aspect-ratio: auto; flex: 1 1 0; height: 0; min-height: 0; overflow: hidden; }
.chain .screen { min-height: 420px; } .pair .screen { min-height: 360px; }

/* ── phones and small tablets only; desktop rules above are untouched ── */
.nav-menu { display: none; }
@media (max-width: 960px) {
  /* header: one 60px row (wordmark, menu button, Request access); the three paths open below the row */
  .nav .wrap { height: auto; min-height: 60px; padding: 10px 0; gap: 10px; flex-wrap: wrap; align-items: center; }
  .nav.open .wrap { padding-bottom: 6px; }
  .nav-links { display: contents; }
  .nav-menu { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 11px; order: 2; flex: none; }
  .nav-menu span { display: block; height: 1.5px; background: var(--text); border-radius: 1px; transition: transform .2s, opacity .2s; }
  .nav.open .nav-menu span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.open .nav-menu span:nth-child(2) { opacity: 0; }
  .nav.open .nav-menu span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-links .btn { order: 1; margin-left: auto; font-size: 13px; padding: 0 14px; height: 36px; }
  .nav-links a:not(.btn) { display: none; order: 3; flex: 0 0 100%; padding: 13px 0; font-size: 16px; color: var(--text); border-top: 1px solid var(--line); }
  .nav-links a:not(.btn)[aria-current] { color: var(--accent); }
  .nav.open .nav-links a:not(.btn) { display: block; }
  .nav.open .nav-links a:not(.btn):first-of-type { margin-top: 4px; }
}
}
@media (max-width: 900px) {
  /* the buyer -> ad -> page chain keeps its side-by-side reading on a phone: three panels you swipe through, the next one peeking in */
  .chain { display: flex; grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 12px; align-items: stretch; padding-bottom: 4px; scrollbar-width: none; }
  .chain::-webkit-scrollbar { display: none; }
  .chain > div { flex: 0 0 84%; min-width: 0; scroll-snap-align: center; display: grid; grid-template-rows: auto 1fr; align-self: stretch; }
  .chain .link { display: none; }
  .chain > div:nth-child(3) { grid-template-rows: auto auto; align-content: start; }
  .chain .adcard { max-width: none; margin-inline: 0; }
  .chain .phone { height: 100%; width: 100%; max-width: none; }
  .chain .screen { flex: 1 1 0; height: 0; min-height: 420px; }
  .fig .fh { flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 560px) {
  /* ad + page pairs and the before/after record: two panels, swipe between them */
  .pair, .recs { display: flex; grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 12px; align-items: stretch; padding-bottom: 4px; scrollbar-width: none; }
  .pair::-webkit-scrollbar, .recs::-webkit-scrollbar { display: none; }
  .pair > div { flex: 0 0 86%; min-width: 0; scroll-snap-align: center; display: grid; grid-template-rows: auto 1fr; }
  .rec { flex: 0 0 88%; min-width: 0; scroll-snap-align: center; }
  .pair .adcard { max-width: none; margin-inline: 0; }
  .pair .phone { height: 100%; width: 100%; max-width: none; }
  .pair .screen { flex: 1 1 0; height: 0; min-height: 360px; }
  /* path pages: two equal full-width buttons */
  .hero-split .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-split .hero-cta .btn { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  /* case-study art: keep the 4:5 crop instead of a 16:9 slice through the middle */
  .case .art { width: min(100%, 240px); aspect-ratio: 4 / 5; }
}
@media (max-width: 800px) {
  /* questions fold into a drop-down list on phones; the ruled two-column list stays on desktop */
  .qa > div { padding: 16px 0; min-width: 0; }
  .qa h3 { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 17px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .qa h3::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 4px 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s ease; }
  .qa > div.open h3::after { transform: rotate(225deg); margin-bottom: -4px; }
  .qa p { display: none; margin-top: 10px; max-width: none; overflow-wrap: anywhere; }
  .qa > div.open p { display: block; }
}
@media (max-width: 560px) {
  /* stage header on phones: the chain shows the B2C set only, no tabs, label sits tight above the buyer card */
  .stage-head { margin-bottom: 14px; }
  .stage-head .kicker { margin: 0; }
  .stage-head .tabs { display: none; }
}
@media (max-width: 900px) {
  /* B2C hero example (ad + live page) is hidden on phones; the chain below carries the same story */
  .hero-pair { display: none; }
}
