/* Roost Rush landing. Dark, like the map and sign-in; tokens match css/signin.css (design/colors/tokens.json). */
:root {
  --bg: #0A0E14; --surface: #141B2D; --surface-raised: #1E2740;
  --text: #F4F1EA; --text-muted: #A9B1C6; --border: #2A3550; --border-strong: #6A7799;
  --accent: #FFD27A; --on-accent: #0A0E14; --accent-text: #F2A65A; --focus: #F4F1EA;
  --ring-1: #02FD02; --ring-2: #04E9E7; --ring-3: #019FF4; --ring-4: #4A4AFF;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --ui: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--ui); overflow-x: hidden; }
.display { font-family: var(--display); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }

.sky { position: absolute; inset: 0 0 auto 0; height: 110vh; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; inset: 0;
  background: radial-gradient(80vmax 60vmax at 100% 0%, rgba(242,166,90,.42) 0%, rgba(232,116,59,.26) 18%,
    rgba(107,78,155,.22) 40%, rgba(43,47,107,.14) 60%, transparent 80%); }

.bar, main, .foot { position: relative; z-index: 1; }
.bar, .hero, .how, .coming, .real, .foot { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: max(16px, env(safe-area-inset-top, 0px)) 16px; }
.brand img { display: block; height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px 20px; }
.nav a { font-weight: 700; text-decoration: none; padding: 10px 2px; }
.nav a:hover { color: var(--accent); }
.nav .nav-cta { padding: 9px 16px; border: 1.5px solid var(--border-strong); border-radius: 12px; }
.nav .nav-cta:hover { background: var(--surface-raised); color: var(--text); }
@media (max-width: 520px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
  padding-block: 40px 72px; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(20,27,45,.7);
  font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ring-2); box-shadow: 0 0 0 0 rgba(4,233,231,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(4,233,231,.55); } 100% { box-shadow: 0 0 0 12px rgba(4,233,231,0); } }
h1 { margin: 0; font-size: clamp(52px, 8.4vw, 104px); line-height: .96; font-weight: 800; letter-spacing: -.02em; }
.lede { margin: 0; font-size: clamp(18px, 1.6vw, 21px); max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.fine { margin: 0; font-size: 14px; color: var(--text-muted); }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  border-radius: 14px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 18px; text-decoration: none; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-text { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 12px 2px; }

.film { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.film-frame { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02), 0 0 90px -20px rgba(4,233,231,.18); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-toggle { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(10,14,20,.6); color: var(--text); cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.film-sound { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1.5px solid var(--accent); background: rgba(10,14,20,.7); color: var(--text); font: 700 15px var(--ui); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.film-sound svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film-sound .on { display: none; }
.film-sound[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.film-sound[aria-pressed="true"] svg { stroke: var(--on-accent); }
.film-sound[aria-pressed="true"] .on { display: inline; }
.film-sound[aria-pressed="true"] .off { display: none; }
.film-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.film-toggle .i-play { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
.film-toggle[aria-pressed="true"] .i-pause { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- sections ---------- */
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
h2 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }

.how { padding-block: 72px; border-top: 1px solid var(--border); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 22px; right: 22px; font: 600 14px var(--mono); color: var(--text-muted); }
.step-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-raised); margin-bottom: 18px; }
.step-ico svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.step-ico.ring svg circle:first-child { stroke: var(--ring-3); }
.step-ico.ring svg circle:last-child { stroke: var(--ring-1); }
.steps h3 { margin: 0 0 8px; font: 800 24px/1.15 var(--display); }
.steps p { margin: 0; color: var(--text-muted); }
.give { margin-top: 24px; display: flex; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.give p { margin: 0; }
.give-main { flex: 1 1 380px; display: grid; gap: 10px; justify-items: start; }
.give-line { color: var(--text); max-width: 52ch; }
.give-main .btn-primary { margin-top: 4px; }
.give-side { flex: 1 1 340px; display: grid; gap: 10px; padding-left: 28px; border-left: 1px solid var(--border); }
.give-also { font: 700 13px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.give-more { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-muted); }
.give-more a { color: var(--text); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 760px) { .give-side { padding-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid var(--border); } }
.steps p strong { color: var(--accent); }

.coming { padding-block: 24px 72px; }
.coming-card { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: radial-gradient(60% 90% at 100% 0%, rgba(242,166,90,.22), transparent 70%), var(--surface);
  border: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 62ch; }
.features li { padding-left: 28px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--ring-2); }

.real { padding-block: 24px 80px; max-width: 820px; text-align: center; }
.real p { color: var(--text-muted); margin: 18px auto 0; max-width: 60ch; }

.foot { padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { font-weight: 700; text-decoration: none; padding: 8px 0; }
.foot nav a:hover { color: var(--accent); }
.credits { margin: 16px 0 0; font-size: 13px; color: var(--text-muted); max-width: 90ch; }

/* ---------- narrow screens: copy first, then the tall cut of the intro ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-block: 20px 56px; }
  .film-frame { aspect-ratio: 9 / 16; max-height: 78vh; max-height: 78svh; margin-inline: auto; width: 100%; max-width: 440px; }
  figcaption { max-width: 440px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .btn-primary { width: 100%; }
  .ctas .btn-text { margin-inline: auto; }
  .coming-card .btn-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
