/* The Downstage website. Same tokens as the app (downstage-desktop/apps/web/app.css), so the site
   and the product are visibly one thing. Signals keep their one meaning here too: amber is a jump
   waiting for the bar line, green is playing, red is stop, blue is information. */
:root {
  --wing: #080E1B; --blackout: #0D1526; --riser: #17223A; --rail: #26324D; --hairline: #1A2440;
  --pit: #05080F; --panel: #0A1122; --sheet: #111B30;
  --chalk: #EDF1F7; --ink-2: #B7C0D3; --haze: #8A96AE; --dim: #5A6680;
  --standby: #F4A62A; --go: #33CC7F; --halt: #EE4B4F; --cue: #6EA8FF;
  --face: 'Barlow', 'Avenir Next', system-ui, sans-serif;
  --face-stage: 'Barlow Condensed', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --pad: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wing); color: var(--chalk); font-family: var(--face); font-size: 18px; line-height: 1.5; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: var(--chalk); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--chalk); color: var(--blackout); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); font-family: var(--face-stage); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; }
.lockup .mark { width: 28px; height: 28px; fill: currentColor; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 0; border-radius: 10px; font-family: var(--face-stage); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.btn.chalk { background: var(--chalk); color: var(--blackout); }
.btn.chalk:hover { background: #fff; color: var(--blackout); }
.btn.small { height: 38px; padding: 0 14px; border-radius: 9px; font-size: 16px; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 14, 27, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); height: 72px; display: flex; align-items: center; gap: 28px; }
.top-links { display: flex; gap: 26px; font-size: 16px; }
.top-links a { text-decoration: none; color: var(--ink-2); }
.top-links a:hover { color: var(--chalk); }
.top-in > .btn { margin-left: auto; }

/* ---- Landing ---- */
.site h1, .site h2, .site h3, .eyebrow, .stat { font-family: var(--face-stage); }
.wrap { max-width: 1200px; margin: 0 auto; padding: clamp(80px, 10vw, 128px) var(--pad); }
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 55% at 50% 0%, #22335A 0%, rgba(13, 21, 38, 0.6) 45%, var(--wing) 75%); }
.hero-in { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 10vw, 112px) var(--pad) clamp(48px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.pill { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 16px; background: var(--riser); box-shadow: inset 0 0 0 1px var(--rail); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill i { width: 8px; height: 8px; border-radius: 4px; background: var(--go); }
.hero h1 { font-weight: 700; font-size: clamp(56px, 10vw, 132px); line-height: 0.88; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; }
.hero-in > p { max-width: 680px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.fine { font-size: 15px; color: var(--haze); }

.join { width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 10px; }
.join input[type="email"] { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--blackout); box-shadow: inset 0 0 0 1px var(--rail); color: var(--chalk); font-family: inherit; font-size: 17px; }
.join input::placeholder { color: var(--haze); }
.join button { flex: 0 0 auto; height: 56px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--chalk); color: var(--blackout); font-family: var(--face-stage); font-weight: 700; font-size: 21px; }
.join button:disabled { opacity: 0.6; cursor: wait; }
/* The field no person sees. Bots fill it in; the server thanks them and keeps nothing. */
.join .trap { position: absolute; left: -9999px; }
.join-msg { max-width: 520px; padding: 16px 20px; border-radius: 12px; font-size: 17px; }
.join-msg.ok { background: rgba(51, 204, 127, 0.12); box-shadow: inset 0 0 0 1px var(--go); }
.join-msg.bad { background: rgba(238, 75, 79, 0.1); box-shadow: inset 0 0 0 1px var(--halt); }

/* Device frames around real screenshots of the app. */
.device { padding: 14px; border-radius: 40px; background: var(--pit); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #1E2942; max-width: 100%; }
.device img, .device .split { border-radius: 24px; }
.device.ipad { width: 772px; margin-top: 28px; }
.device.phone { width: 282px; padding: 10px; border-radius: 44px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #1E2942; }
.device.phone img { border-radius: 34px; }
.device.wide { width: 649px; padding: 12px; border-radius: 34px; }
/* Split View: somebody's chart on the left, Downstage in a third of the screen on the right. */
.split { display: grid; grid-template-columns: 1fr 31.4%; aspect-ratio: 1194 / 834; overflow: hidden; background: #F4F1EA; }
.split img { border-radius: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-left: 3px solid var(--pit); }
.chart { padding: 6% 7%; color: #2B2A27; text-align: left; font-family: var(--face); font-size: clamp(7px, 1.25vw, 13px); line-height: 1.5; overflow: hidden; }
.chart b { display: block; font-family: var(--face-stage); font-size: 2em; line-height: 1; margin-bottom: 0.2em; }
.chart u { display: block; text-decoration: none; opacity: 0.55; margin: 1em 0 0.3em; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8em; font-weight: 600; }
.chart span { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4em; margin-bottom: 0.4em; }
.chart span i { font-style: normal; font-weight: 600; padding: 0.35em 0.6em; border-radius: 0.35em; background: rgba(43, 42, 39, 0.08); }


.big { max-width: 820px; font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: var(--blackout); box-shadow: inset 0 0 0 1px var(--hairline); }
.card .stat { font-weight: 700; font-size: 18px; color: var(--halt); }
.card h3 { font-weight: 700; font-size: 30px; line-height: 1.05; }
.card p { color: var(--haze); }
.grid4 .card { padding: 26px; }
.grid4 .card h3 { font-size: 26px; }
.grid4 .card p { font-size: 16px; }

.band { background: var(--blackout); border-top: 1px solid var(--hairline); }
.band.both { border-bottom: 1px solid var(--hairline); }
.features { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 128px); }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; }
.feature .copy, .feature.centre .copy { display: flex; flex-direction: column; gap: 18px; }
.feature.centre { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.feature.centre .copy { align-items: center; max-width: 760px; }
.feature .art { display: flex; justify-content: center; min-width: 0; }
.eyebrow { font-weight: 600; font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--haze); }
.eyebrow.standby { color: var(--standby); } .eyebrow.cue { color: var(--cue); } .eyebrow.go { color: var(--go); }
.feature h2 { font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 0.95; text-transform: uppercase; }
.feature p { color: var(--ink-2); text-wrap: pretty; }

/* Small drawings of the app's own parts, for the features that are one idea each. */
.mock { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 36px); border-radius: 24px; background: var(--wing); box-shadow: inset 0 0 0 1px var(--hairline); font-family: var(--face-stage); text-transform: uppercase; }
.beats { display: flex; gap: 8px; }
.beats i { flex: 1; height: 48px; border-radius: 10px; background: var(--rail); }
.beats i:first-child { background: var(--chalk); }
.rows { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rail); font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.rows .now { background: var(--chalk); color: var(--blackout); font-weight: 700; }
.rows .armed { background: rgba(244, 166, 42, 0.12); box-shadow: inset 6px 0 0 var(--standby); padding: 12px 18px; }
.rows .armed span:first-child { display: flex; flex-direction: column; }
.rows small { font-family: var(--face); font-size: 14px; text-transform: none; color: var(--standby); }
.rows .t { color: var(--haze); }
.tiles { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 10px; height: 116px; }
.tiles > div { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--riser); min-width: 0; }
.tiles small { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--haze); }
.tiles b { font-weight: 700; font-size: clamp(16px, 2.2vw, 22px); }
.tiles .here { background: var(--chalk); color: var(--blackout); }
.tiles .here small { color: inherit; }
.tiles .here b { font-size: clamp(22px, 3.2vw, 34px); line-height: 1; }
.timeline { display: flex; gap: 3px; height: 18px; }
.timeline i { border-radius: 4px; background: var(--riser); }
.looping { height: 60px; border-radius: 14px; background: rgba(110, 168, 255, 0.14); box-shadow: inset 0 0 0 3px var(--cue); color: var(--cue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: clamp(16px, 2.2vw, 22px); padding: 0 12px; text-align: center; }
.setmock { text-transform: none; gap: 12px; }
.setmock .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 20px; }
.setmock .sum span { color: var(--haze); }
.setmock .bar { height: 8px; border-radius: 4px; background: var(--rail); overflow: hidden; }
.setmock .bar i { display: block; width: 93%; height: 100%; background: var(--chalk); }
.setmock .row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 150px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: clamp(16px, 2vw, 21px); font-weight: 700; text-transform: uppercase; }
.setmock .row svg { width: 18px; height: 18px; color: var(--dim); }
.setmock .row > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setmock .row .t { font-weight: 600; color: var(--haze); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 9px; background: var(--blackout); box-shadow: inset 0 0 0 1px var(--rail); font-size: 14px; text-align: center; }
.seg i { font-style: normal; padding: 6px 0; border-radius: 6px; color: var(--haze); }
.seg i.on { background: var(--chalk); color: var(--blackout); }

.lead { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.lead p { color: var(--ink-2); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 3px solid var(--chalk); }
.steps li > span { font-family: var(--face-stage); font-weight: 700; font-size: 64px; line-height: 0.8; color: var(--rail); }
.steps h3 { font-weight: 700; font-size: 30px; }
.steps p { color: var(--haze); }
.needs { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 20px 24px; border-radius: 16px; background: var(--wing); font-size: 16px; color: var(--ink-2); }
.needs strong { color: var(--chalk); font-weight: 600; }
.needs a { margin-left: auto; }

.faq { max-width: 860px; }
.faq-list { border-top: 1px solid var(--rail); }
.faq details { border-bottom: 1px solid var(--rail); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 10px 0; font-family: var(--face-stage); font-weight: 700; font-size: 24px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-weight: 400; font-size: 32px; color: var(--haze); transition: transform 150ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 680px; color: var(--ink-2); }

.cta { background: radial-gradient(70% 90% at 50% 100%, #22335A 0%, var(--wing) 70%); border-top: 1px solid var(--hairline); }
.cta-in { max-width: 860px; margin: 0 auto; padding: clamp(80px, 10vw, 128px) var(--pad); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta h2 { font-weight: 700; font-size: clamp(44px, 7vw, 88px); line-height: 0.9; text-transform: uppercase; text-wrap: balance; }
.cta-in > p { max-width: 560px; color: var(--ink-2); }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--hairline); background: var(--pit); font-family: var(--face); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 56px var(--pad) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; font-size: 15px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; color: var(--haze); }
.foot .lockup { font-size: 20px; }
.foot .lockup .mark { width: 24px; height: 24px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot nav span { font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--haze); }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--chalk); }
.foot-legal { max-width: 1200px; margin: 0 auto; padding: 20px var(--pad) 40px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--haze); }

.plain { max-width: 760px; margin: 0 auto; padding: 56px var(--pad) 96px; }

@media (max-width: 820px) {
  .top-links { display: none; }
  .device { border-radius: 26px; padding: 9px; }
  .device img, .device .split { border-radius: 16px; }
  .device.phone { border-radius: 38px; }
  .device.phone img { border-radius: 30px; }
  .setmock .row { grid-template-columns: minmax(0, 1fr) auto 118px; }
  .setmock .row svg { display: none; }
  .needs a { margin-left: 0; }
}
@media (max-width: 480px) { .join button { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
