/* Fonts: OFL-1.1 (Fontsource), self-hosted. */
@font-face { font-family: "Space Grotesk"; src: url("/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --base: #120e0f;
  --inset: #1c1616;
  --panel: #201a1b;
  --subtle: #302728;
  --surface: #2f2022;
  --border: #ffffff1f;
  --border-control: #ffffff6b;
  --text: #ffffff;
  --soft: #dccfd2;
  --muted: #aa9297;
  --accent: #ff233a;
  --red: #c5162b;
  --red-dark: #a91125;
  --error: #ff7b86;
  --error-surface: #421820;
  --success: #6ee7a0;
  --amber: #f5c15c;
  --r-sm: .625rem;
  --r-md: .8125rem;
  --r-lg: 1.25rem;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --content: 70rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (min-width: 900px) { html { scroll-padding-top: 28px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--base); color: var(--text); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
p { margin: 0; }
.accent { color: var(--accent); }
.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: var(--r-sm); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--panel); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.label { font-family: var(--mono); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Wordmark */
.mark { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: -.01em; }
.mark-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px #ff233a99; }

/* Phone bar. Desktop has no bar: the hero carries the wordmark and the actions. */
.top { position: sticky; top: 0; z-index: 30; background: #120e0fd9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.top .short { display: none; }
@media (max-width: 379px) { .top .long { display: none; } .top .short { display: inline; } }
.hero-mark { display: none; }
@media (min-width: 900px) {
  .top { display: none; }
  .hero-mark { display: inline-flex; margin-bottom: 56px; }
}

/* Buttons: one line of text, centred. */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); border: 1px solid transparent; font-family: var(--display); font-weight: 650; line-height: 1; letter-spacing: -.005em; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-md { height: 48px; padding: 0 22px; font-size: 1rem; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 .75rem 2rem #d9162c40; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-control); }
.btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: #170b0d; }
.btn-light:hover { background: #f3e6e8; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Hero */
.hero { position: relative; padding: 36px 0 44px; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 22% 0%, #ff233a33, transparent 70%); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 36px; }
h1 { font-size: clamp(3.25rem, 15vw, 4.75rem); line-height: .94; letter-spacing: -.05em; }
h1 em { font-style: italic; color: var(--accent); padding-right: .04em; }
.hero-sub { margin-top: 22px; max-width: 22ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 5.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.hero-who { margin-top: 12px; color: var(--soft); font-size: 1.0625rem; line-height: 1.45; }
.hero-actions { margin-top: 28px; display: grid; gap: 12px; }
@media (min-width: 480px) { .hero-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
  h1 { font-size: clamp(4.5rem, 7.6vw, 6.5rem); }
  .hero-sub { margin-top: 28px; }
  .hero-actions { margin-top: 36px; }
}

/* The example conversation */
.demo { margin: 0; }
.chat { list-style: none; margin: 0; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 1.5rem 4rem #00000080; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: .9375rem; line-height: 1.45; }
.msg.you { align-self: flex-end; background: var(--subtle); border-bottom-right-radius: 5px; }
.msg.agent { align-self: flex-start; background: #b9162e; border-bottom-left-radius: 5px; }
.gap { display: flex; align-items: center; gap: 12px; margin: 6px 0; font-family: var(--mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.gap::before, .gap::after { content: ""; flex: 1; border-top: 1px dashed #ffffff4d; }
.demo figcaption { margin: 12px 4px 0; color: var(--muted); font-size: .875rem; }
@media (min-width: 900px) { .chat { padding: 24px 22px; gap: 12px; } .msg { font-size: 1rem; } }
@media (prefers-reduced-motion: no-preference) {
  .chat .late { opacity: 0; transform: translateY(6px); animation: rise .5s var(--ease) forwards; }
  .chat .late:nth-child(2) { animation-delay: .5s; }
  .chat .late:nth-child(3) { animation-delay: 1s; }
  .chat .late:nth-child(4) { animation-delay: 1.7s; }
  .chat .late:nth-child(5) { animation-delay: 2.3s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Facts: large type, with what is unconfirmed next to each one. The 1px gaps show the grid lines. */
.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts dl { margin: 0; display: grid; gap: 1px; background: var(--border); }
.fact { padding: 22px 0; background: var(--base); }
.fact dt { font-family: var(--mono); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; }
.fact .big { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; }
.fact .note { margin-top: 8px; max-width: 34ch; color: var(--soft); font-size: .9375rem; line-height: 1.45; }
@media (min-width: 760px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .fact { padding: 32px 32px 34px 0; }
  .fact:nth-child(even) { padding-left: 40px; }
  .fact .big { font-size: clamp(2rem, 3.4vw, 2.75rem); }
}

/* Help wanted: the loudest block on the page */
.help { background: var(--red); color: #fff; padding: 56px 0 60px; }
.help-kicker { display: inline-block; padding: 6px 12px; border: 1px solid #ffffffb3; border-radius: 999px; font-family: var(--mono); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.help h2 { margin-top: 22px; max-width: 12ch; font-size: clamp(2.75rem, 12vw, 5.5rem); line-height: .95; letter-spacing: -.05em; }
.help-lede { margin-top: 24px; max-width: 34rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.1875rem, 2.4vw, 1.5rem); line-height: 1.35; letter-spacing: -.015em; }
.help-lede strong { font-weight: 700; }
.help-actions { margin-top: 30px; display: grid; gap: 12px; }
@media (min-width: 480px) { .help-actions { display: flex; flex-wrap: wrap; } }
.help-sign { margin-top: 30px; max-width: 34rem; font-size: 1rem; line-height: 1.6; }
.help-sign a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .help { padding: 88px 0 92px; }
  .help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .help h2 { margin-top: 26px; }
  .help-lede { margin-top: 0; }
}

/* Sections */
.section { padding: 52px 0; }
.section-head h2 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.04em; line-height: 1; }
.section-head p { margin-top: 12px; color: var(--muted); }
@media (min-width: 900px) { .section { padding: 80px 0; } }

/* Roadmap board */
.board { margin-top: 28px; display: grid; gap: 28px; }
.col h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--line, #ffffff4d); font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.col h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line, #ffffff4d); }
.col-done { --line: var(--success); }
.col-now { --line: var(--accent); }
.col-open { --line: var(--amber); }
.col-event { --line: #ffffff; }
.col ul { list-style: none; margin: 0; padding: 0; }
.col li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.col li b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.col li span { display: block; margin-top: 4px; color: var(--soft); font-size: .9375rem; line-height: 1.45; }
/* Post links sit on their own row, 44px tall, so their hit areas never overlap other text */
.col li .post-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 0; }
.col li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-underline-offset: 3px; }
@media (min-width: 620px) { .board { grid-template-columns: 1fr 1fr; gap: 36px 32px; } }
@media (min-width: 1000px) { .board { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* Form */
.form-panel { display: grid; gap: 28px; padding: 26px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); }
@media (min-width: 620px) { .form-panel { padding: 36px; } }
@media (min-width: 960px) { .form-panel { grid-template-columns: 1fr 1.45fr; gap: 56px; padding: 48px; } }
.form-intro h2 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.04em; line-height: 1; }
.form-intro p { margin-top: 14px; color: var(--soft); line-height: 1.6; }
.form-intro .fine { color: var(--muted); font-size: .875rem; }
.form-side { min-width: 0; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field[hidden] { display: none; }
label, legend { display: block; padding: 0; margin-bottom: 8px; font-family: var(--display); font-weight: 600; font-size: .9375rem; }
.opt { margin-left: 6px; font-family: var(--body); font-weight: 400; font-size: .875rem; color: var(--muted); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--inset); border: 1px solid var(--border-control); border-radius: var(--r-md); -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--panel); color: var(--text); }
input:hover, textarea:hover, select:hover { border-color: #fff; }
input[type="text"]:focus-visible, input[type="email"]:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-color: var(--accent); }
.invalid input[type="text"], .invalid input[type="email"], .invalid textarea, .invalid select { border-color: var(--error); }
.hint { margin: 8px 2px 0; color: var(--muted); font-size: .875rem; }
legend + .hint { margin: -2px 0 10px; }
.count { margin: 6px 2px 0; text-align: right; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.err { margin: 8px 2px 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--error-surface); color: var(--error); font-size: .875rem; }
.err:empty { display: none; }

/* Choice cards keep the real checkbox or radio visible */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 519px) { .choices-rows { grid-template-columns: 1fr; } .choices-rows .choice { padding: 11px 14px; } }
@media (max-width: 400px) { .choices-3 { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; margin: 0; padding: 13px 14px; cursor: pointer; font-family: var(--body); font-weight: 400; background: var(--inset); border: 1px solid var(--border-control); border-radius: var(--r-md); transition: border-color .15s var(--ease), background .15s var(--ease); }
.choice:hover { border-color: #fff; }
.choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.choice b { display: block; font-family: var(--display); font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.choice small { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.choice:has(input:checked) { background: var(--surface); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.choice input:focus-visible { outline: none; }

.check { display: flex; gap: 12px; align-items: center; min-height: 44px; margin: 0; cursor: pointer; font-family: var(--body); font-weight: 400; font-size: .9375rem; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit, .btn-save { width: 100%; }
.form-status { min-height: 1.2em; margin-top: 12px; text-align: center; font-size: .875rem; color: var(--soft); }
.form-status.error { color: var(--error); }

.thanks:focus, .saved:focus { outline: none; }
.thanks { scroll-margin-top: 12px; }
.thanks .label { color: var(--success); }
.thanks h3 { margin: 12px 0; font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -.03em; }
.thanks > p:not(.label) { color: var(--soft); line-height: 1.6; margin-bottom: 14px; max-width: 32rem; }
.extra { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--border); }
.saved { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--accent); color: var(--text); }

/* Footer */
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-link { color: var(--soft); font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.foot-link:hover { color: var(--text); }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.notfound h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
.notfound p { color: var(--muted); margin: 16px 0 28px; }

/* Phones: a shorter form and roadmap */
@media (max-width: 619px) {
  .form-panel { gap: 20px; padding: 22px 16px; }
  .field { margin-bottom: 18px; }
  .board { gap: 22px; margin-top: 22px; }
  .section { padding: 44px 0; }
}
