:root {
  color-scheme: dark;
  --bg: #0D1321;
  --bg-rgb: 13 19 33;
  --nav: #0A0F1A;
  --nav-rgb: 10 15 26;
  --surface: #152035;
  --surface-rgb: 21 32 53;
  --surface-3: #1D2A44;
  --surface-3-rgb: 29 42 68;
  --hover: #18243B;
  --hover-rgb: 24 36 59;
  --line: #223049;
  --line-rgb: 34 48 73;
  --line-strong: #3A4A68;
  --line-strong-rgb: 58 74 104;
  --text: #F3ECDD;
  --text-rgb: 243 236 221;
  --muted: #93A0B8;
  --muted-rgb: 147 160 184;
  --accent: #E9B949;
  --accent-rgb: 233 185 73;
  --accent-hover: #D6A73C;
  --accent-hover-rgb: 214 167 60;
  --accent-text: #E9B949;
  --accent-text-rgb: 233 185 73;
  --on-accent: #1A1406;
  --on-accent-rgb: 26 20 6;
  --crown: #E9B949;
  --crown-rgb: 233 185 73;
  --bubble: #F3ECDD;
  --bubble-rgb: 243 236 221;
  --danger: #FF6B81;
  --danger-rgb: 255 107 129;
  --gold-text: #E9B949;
  --gold-text-rgb: 233 185 73;
}
/* ICP landing pages (/for/*). The Herald :root variables are prepended at
   build time from packages/shared/src/tokens.ts (render.ts heraldCss), so no
   colour value is spelled here. docs/design/ICP_LANDING_PAGES.md */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 500; font-display: swap; src: url('/for/fonts/sora-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('/for/fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/for/fonts/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/for/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/for/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/for/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/for/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-pop: 0 24px 60px -20px rgb(0 0 0 / 0.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
p { margin: 0; }
button { font: inherit; }
a { color: var(--accent-text); }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-3); border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--text); }
h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.15rem); max-width: 42rem; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.skip { position: absolute; left: -10000px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }

/* Wordmark: mirrors src/components/ui/Wordmark.tsx and the docs shell. */
.wordmark { display: inline-block; font-family: 'Sora', 'Inter', system-ui, sans-serif; font-weight: 500; font-size: 24px; line-height: 1; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark .o { position: relative; display: inline-block; line-height: 1; }
.wordmark .o svg { position: absolute; width: 0.62em; left: -0.06em; bottom: 0.64em; transform: rotate(-20deg); transform-origin: 50% 100%; color: var(--crown); }

/* Buttons: BRAND.md section 6. No arrows on buttons. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 18px; border: 1px solid transparent; border-radius: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13.5px; }
.text-link { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Nav: mirrors src/components/PublicNav.tsx. */
.nav { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-right: auto; }
.nav-links > a, .nav-menu > summary { color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav-links > a:hover, .nav-menu > summary:hover, .nav-menu[open] > summary { color: var(--text); }
.nav-menu { position: relative; }
.nav-menu > summary, .nav-mobile > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker, .nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-menu > summary { display: inline-flex; align-items: center; gap: 4px; }
.chev { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-menu[open] .chev { transform: rotate(180deg); }
.nav-menu-panel { position: absolute; top: calc(100% + 16px); left: -14px; width: 340px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); }
.menu-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.menu-item:hover, .menu-item.is-current { background: var(--hover); }
.menu-label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text); font-size: 14.5px; font-weight: 600; }
.menu-promise { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.chip { display: inline-block; padding: 1px 8px; border: 1px solid rgb(var(--accent-rgb) / 0.45); border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-signin { color: var(--text); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav-signin:hover { text-decoration: underline; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.nav-mobile > summary svg { width: 18px; height: 18px; }
.nav-mobile-panel { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 2px; padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.nav-mobile-heading { padding: 6px 12px 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav-mobile-links { display: grid; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.nav-mobile-links a { padding: 10px 12px; color: var(--text); font-weight: 500; text-decoration: none; }
.nav-mobile-panel .btn { margin-top: 10px; }
@media (max-width: 899px) {
  .nav-inner { gap: 12px; }
  .nav-links, .nav-actions { display: none; }
  .nav-mobile { display: block; }
}

/* Hero */
.hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); background: radial-gradient(1100px 480px at 88% -12%, rgb(var(--accent-rgb) / 0.09), transparent 62%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 48px; align-items: center; }
.lede { margin-top: 20px; max-width: 34rem; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 12px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nav); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 100px -40px rgb(0 0 0 / 0.9); }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* Video player controls (icp.js). Hidden without JS: nothing to control then. */
.player-controls { position: absolute; right: 0; bottom: 0; left: 0; display: none; align-items: center; gap: 4px; padding: 32px 10px 8px; background: linear-gradient(to top, rgb(var(--bg-rgb) / 0.88), rgb(var(--bg-rgb) / 0)); transition: opacity 0.2s; }
.js .player-controls { display: flex; }
.hero-media.is-idle:not(:focus-within) .player-controls { opacity: 0; }
.hero-media.is-idle.is-fullscreen { cursor: none; }
.pc-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: transparent; border: 0; border-radius: 8px; color: var(--text); cursor: pointer; }
.pc-btn:hover { background: rgb(var(--text-rgb) / 0.12); }
.pc-btn svg { width: 22px; height: 22px; }
.pc-play svg { width: 20px; height: 20px; }
.pc-play .i-pause, .hero-media.is-playing .pc-play .i-play { display: none; }
.hero-media.is-playing .pc-play .i-pause { display: block; }
/* Muted: the speaker with a red line through it. Sound on: the speaker with waves. */
.pc-mute .slash { stroke: var(--danger); stroke-width: 2.2; }
.pc-mute .i-sound, .pc-mute[aria-pressed="false"] .i-muted { display: none; }
.pc-mute[aria-pressed="false"] .i-sound { display: block; }
.pc-full .i-min, .hero-media.is-fullscreen .pc-full .i-max { display: none; }
.hero-media.is-fullscreen .pc-full .i-min { display: block; }
.pc-seek { --p: 0%; flex: 1; min-width: 0; height: 20px; margin: 0 6px; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pc-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--p), rgb(var(--text-rgb) / 0.28) var(--p)); }
.pc-seek::-moz-range-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--p), rgb(var(--text-rgb) / 0.28) var(--p)); }
.pc-seek::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--accent); -webkit-appearance: none; appearance: none; }
.pc-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); }
.pc-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
/* Maximized: the whole player, letterboxed on the page background. */
.hero-media.is-fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; background: var(--bg); border: 0; border-radius: 0; box-shadow: none; }
.hero-media.is-fullscreen .hero-video { object-fit: contain; }
.hero-media.is-fullscreen .player-controls { padding: 48px 20px 16px; }
@media (max-width: 899px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-meta { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.section p + p { margin-top: 12px; }
@media (max-width: 899px) { .section { padding: 52px 0; } }

/* Hear it */
.samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.sample { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sample figcaption { display: grid; gap: 6px; }
.sample-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sample-text { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.4; color: var(--text); }
.play { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background: var(--accent); border: 0; border-radius: 50%; color: var(--bg); cursor: pointer; }
.play:hover { background: var(--accent-hover); }
.play svg { width: 16px; height: 16px; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
@media (max-width: 699px) { .samples { grid-template-columns: minmax(0, 1fr); } }

/* Sound familiar? */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.pains li { padding: 20px 20px 20px 22px; background: linear-gradient(90deg, rgb(var(--accent-rgb) / 0.06), transparent); border-left: 2px solid var(--accent); font-size: 1.05rem; line-height: 1.5; }
@media (max-width: 899px) { .pains { grid-template-columns: minmax(0, 1fr); } }

/* Cards */
.cards { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card p { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.features-note { margin-top: 20px; }
.smallprint { margin-top: 16px; color: var(--muted); font-size: 13px; }
@media (max-width: 899px) { .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { display: grid; gap: 14px; max-width: 46rem; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 48px; counter-increment: step; line-height: 1.6; }
.steps li::before { content: counter(step); position: absolute; top: -2px; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--font-mono); font-size: 13px; color: var(--gold-text); }
.steps-titled strong { font-family: var(--font-display); font-weight: 600; }
.section-cta { margin-top: 28px; }
.credibility { margin-top: 20px; max-width: 46rem; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-display); }

/* Tabs (agents setup). Without JS every panel shows, with its own heading. */
.tabs { margin-top: 28px; }
.tabs [role="tablist"] { display: none; }
.tabs.is-ready [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.tabs [role="tab"] { padding: 8px 14px; background: transparent; border: 0; border-radius: 7px; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.tabs [role="tabpanel"] { display: grid; gap: 12px; max-width: 46rem; margin-top: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tabs.is-ready .tab-heading { display: none; }
.tab-links { display: flex; flex-wrap: wrap; gap: 20px; }
.copyline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.copyline code { flex: 1; padding: 0; background: none; border: 0; }
.instruction-lead { margin-top: 28px; color: var(--muted); }
.copyline.instruction { align-items: flex-start; max-width: 46rem; margin-top: 10px; }
.copyline.instruction p { flex: 1; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; }
.copy { display: none; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); cursor: pointer; }
.js .copy { display: inline-flex; }
.copy:hover { background: var(--hover); color: var(--text); }
.copy svg { width: 14px; height: 14px; }

/* Where you hear it, pricing */
.lede-sm { margin-top: 16px; font-size: 1.1rem; }
.price-line { margin-top: 16px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.35; }
.trust { max-width: 44rem; color: var(--muted); }

/* Venue pilot form */
.pilot-form { display: grid; gap: 16px; max-width: 46rem; margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--muted); font-size: 13px; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 11px 12px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
.field input:focus, .field textarea:focus { border-color: transparent; outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: var(--muted); }
.form-status.is-ok { color: var(--gold-text); }
.form-status.is-error { color: var(--danger); }
@media (max-width: 699px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Questions */
.faq { max-width: 46rem; margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); color: var(--muted); font-family: var(--font-mono); font-size: 20px; transition: transform 0.15s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* End band and footer */
.band { padding: 84px 0; text-align: center; background: radial-gradient(900px 360px at 50% 120%, rgb(var(--accent-rgb) / 0.1), transparent 70%); }
.band-inner { display: grid; justify-items: center; gap: 24px; }
.band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); }
.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer span[aria-hidden] { color: var(--line-strong); }

@media (max-width: 480px) { .container { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
