@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
}

/* Same palette as the desktop app */
:root {
  --bg: #141414;
  --surface: #1f1f1f;
  --surface-hover: #262626;
  --border: #2a2a2a;
  --hairline: #232323;
  --border-strong: #4a4a4a;
  --text: #e6e6e6;
  --muted: #8a8a8a;
  --attention: #3f7bd6;
  --attention-rgb: 63, 123, 214;
  --attention-hover: #4f8ae0;
  --apocalyptic: #e5484d;
  --apocalyptic-rgb: 229, 72, 77;
  --apocalyptic-hover: #ec5d62;
  --ok: #30a46c;
  --ok-rgb: 48, 164, 108;
}

* { box-sizing: border-box; }

/* One screen, no scrolling: the page is locked to the viewport and sized to fit it
   (see the max-height media queries at the bottom). */
html, body { overflow: hidden; overscroll-behavior: none; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------------
   Top bar: sits above the page, hidden off the top until html.nav-open, then
   slides down over it (speeding up, then easing in) without moving anything.
   --------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
html.nav-open .topbar { transform: translateY(0); }
.topbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
}

.topbar a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.topbar a:hover { color: var(--text); }
.topbar a.current { color: var(--text); } /* the page you're on */
/* Terms and Privacy: quieter, off to the right so the main links stay centred. */
.topbar nav { position: relative; }
.nav-legal { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); display: flex; gap: 20px; }
.topbar .nav-legal a { font-size: 13px; font-weight: 400; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
  position: relative;
  z-index: 1; /* above the drifting cards */
  pointer-events: none; /* clicks pass through the empty space to the cards behind */
}
main .btn, main .github { pointer-events: auto; } /* only the links take clicks; the logo and headline let them through */

/* ---------------------------------------------------------------------------
   Drifting cards (drift.js): dashboard and approval cards from the app rising
   behind the text. Each .d-wrap carries its depth as --blur / --dim and a scale in its transform;
   drift.js animates its transform to rise, and an approval's exit animates the
   card inside it, so the two never fight.
   --------------------------------------------------------------------------- */
.drift {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.d-wrap {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left; /* drift.js sets translate(x, y) scale(depth) */
  filter: blur(var(--blur));
  opacity: var(--dim);
  will-change: transform;
  animation: d-fade-in 1.2s ease-out;
}
@keyframes d-fade-in { from { opacity: 0; } }

.d-card {
  --fx: var(--attention); --fx-rgb: var(--attention-rgb);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-align: left;
  font-size: 13px;
}
.d-name { font-weight: 600; font-size: 15px; }
.d-label { color: var(--muted); font-size: 12px; }
.d-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Dashboard card: name, output and cost pies, runs, and the ferocity slider. */
.d-agent { width: 420px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.d-agent-body { display: flex; align-items: center; gap: 14px; }
.d-donut { width: 132px; height: 132px; flex-shrink: 0; }
.d-donut circle { fill: none; stroke-width: 14; }
.d-donut-total { fill: var(--text); font-size: 15px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.d-donut-caption { fill: var(--muted); font-size: 9px; text-anchor: middle; dominant-baseline: central; }
.d-stats { display: flex; flex-direction: column; gap: 2px; }

/* The ferocity slider: label and level name over a filled track, as in the app. */
.d-ferocity { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.d-ferocity-head { display: flex; justify-content: space-between; align-items: baseline; }
.d-fero { font-size: 15px; font-weight: 700; color: var(--text); }
.d-slider {
  position: relative; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--fx) var(--fill), var(--surface-hover) var(--fill));
}
.d-thumb {
  position: absolute; top: 50%; left: var(--fill);
  width: 18px; height: 18px; translate: -50% -50%; border-radius: 50%;
  background: #e6e6e6; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border-strong);
}
.d-agent.fero-4 .d-thumb { background: #fff; box-shadow: 0 0 0 1px var(--fx), 0 0 12px rgba(var(--fx-rgb), 0.8); }

/* Ferocity, as on the app's agent cards. */
.d-agent.fero-1 .d-donut,
.d-agent.fero-2 .d-donut { filter: drop-shadow(0 0 8px rgba(var(--fx-rgb), 0.45)); }
.d-agent.fero-2 .d-donut { animation: d-breathe 2.4s ease-in-out infinite; }
.d-agent.fero-2 .d-fero,
.d-agent.fero-3 .d-fero { color: var(--text); text-shadow: 0 0 10px rgba(var(--fx-rgb), 0.9), 0 0 2px rgba(var(--fx-rgb), 0.6); }
.d-agent.fero-3,
.d-agent.fero-4 {
  border-color: rgba(var(--fx-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--fx-rgb), 0.15), 0 0 30px rgba(var(--fx-rgb), 0.25);
}
.d-agent.fero-3 .d-donut,
.d-agent.fero-4 .d-donut { filter: drop-shadow(0 0 12px rgba(var(--fx-rgb), 0.6)); animation: d-breathe 1.7s ease-in-out infinite; }
.d-agent.fero-4 {
  --fx: var(--apocalyptic); --fx-rgb: var(--apocalyptic-rgb);
  box-shadow: 0 0 0 1px rgba(var(--fx-rgb), 0.3), 0 0 44px rgba(var(--fx-rgb), 0.4), inset 0 0 60px rgba(var(--fx-rgb), 0.08);
}
.d-agent.fero-4 .d-name,
.d-agent.fero-4 .d-fero { color: var(--fx); text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 0 14px rgba(var(--fx-rgb), 0.6); }
@keyframes d-breathe {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(var(--fx-rgb), 0.35)); }
  50% { filter: drop-shadow(0 0 16px rgba(var(--fx-rgb), 0.75)); }
}

/* Approval card: avatar, who wants to do what, the details, Approve / Reject. */
.d-approval { width: 400px; display: flex; gap: 12px; padding: 14px 16px; }
.d-avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600;
  background: var(--surface-hover); border: 1px solid var(--border);
}
.d-approval-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.d-line { margin: 0; line-height: 1.4; }
.d-action { color: var(--muted); font-size: 14px; }
.d-fields { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
.d-fields dt { color: var(--muted); }
.d-fields dd { margin: 0; }
.d-buttons { display: flex; gap: 8px; }
.d-btn {
  height: 28px; padding: 0 12px; display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong); border-radius: 8px; font-weight: 600;
  font: inherit; font-weight: 600; color: inherit; background: transparent;
  pointer-events: auto; /* the only clickable bits of the background */
}
.d-btn:hover { background: var(--surface-hover); }
.d-btn.approve { background: var(--attention); border-color: var(--attention); color: #fff; }
.d-btn.approve:hover { background: var(--attention-hover); }
.d-approval.approved .d-btn, .d-approval.rejected .d-btn { pointer-events: none; }

/* Decided mid-flight: the app's approve / reject exits, flying off further. */
.d-approval.approved { animation: d-approve-out 1.1s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.d-approval.rejected { animation: d-reject-out 1.1s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes d-approve-out {
  0% { transform: none; }
  12%, 45% { border-color: #3fb27f; box-shadow: 0 0 0 1px #3fb27f, 0 0 34px rgba(63, 178, 127, 0.55); background-color: #142a20; transform: scale(1.02); }
  100% { border-color: #3fb27f; box-shadow: 0 0 0 1px #3fb27f, 0 0 34px rgba(63, 178, 127, 0.35); background-color: #142a20; transform: translateX(120vw) rotate(4deg); }
}
@keyframes d-reject-out {
  0% { transform: none; }
  12%, 45% { border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d, 0 0 34px rgba(229, 72, 77, 0.5); background-color: #2e1617; transform: scale(0.98); }
  100% { border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d, 0 0 34px rgba(229, 72, 77, 0.3); background-color: #2e1617; transform: translateX(-140vw) rotate(-4deg); }
}

h1 {
  margin: 0 0 56px;
  font-size: clamp(38px, min(6vw, 10vh), 104px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* The logo sits above the headline: white while calm, red and blue once unleashed. */
.logo {
  display: block;
  height: clamp(44px, min(8vw, 11vh), 120px);
  margin-bottom: 0.5em;
  overflow: visible;
}
.dart-blue { fill: var(--attention); }
.dart-red  { fill: var(--apocalyptic); }
html:not(.calm) .logo {
  filter: drop-shadow(0 0 8px rgba(var(--apocalyptic-rgb), 0.7)) drop-shadow(0 0 24px rgba(var(--attention-rgb), 0.55));
}
html.calm .dart-blue,
html.calm .dart-red { fill: var(--text); }

/* On narrow screens break after EXTREMELY, never inside "Autonomous agents" */
.nowrap { white-space: nowrap; }

/* main.js splits the headline into words and letters so each can shake on its own. */
.word, .ch { display: inline-block; }

/* Both lines borrow the app's ferocity levels (desktop styles.css, .agent-card.fero-*),
   scaled up for headline size. */
.brand, .banger { display: block; }

/* Top line: the fixed brand, blue like Relentless - steady hard glow. */
.brand {
  color: var(--attention);
  text-shadow: 0 0 6px rgba(var(--attention-rgb), 0.9),
               0 0 24px rgba(var(--attention-rgb), 0.85),
               0 0 60px rgba(var(--attention-rgb), 0.6);
}

/* Second line: the swappable catchline, red like Apocalyptic - hot breathing glow. */
.banger {
  color: var(--apocalyptic);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: min(1em, 7.4vw); /* shrinks on phones rather than wrapping */
  text-shadow: 0 0 6px rgba(var(--apocalyptic-rgb), 0.9),
               0 0 28px rgba(var(--apocalyptic-rgb), 0.9),
               0 0 64px rgba(var(--apocalyptic-rgb), 0.6);
}

@keyframes ember {
  0%, 100% { text-shadow: 0 0 6px rgba(var(--apocalyptic-rgb), 0.85), 0 0 24px rgba(var(--apocalyptic-rgb), 0.8), 0 0 50px rgba(var(--apocalyptic-rgb), 0.5); }
  50% { text-shadow: 0 0 8px rgba(var(--apocalyptic-rgb), 1), 0 0 40px rgba(var(--apocalyptic-rgb), 1), 0 0 90px rgba(var(--apocalyptic-rgb), 0.75); }
}

/* ---------------------------------------------------------------------------
   Intro (driven by main.js):
   1. html.calm      plain white headline, quiet buttons; the letters shake,
                     building up over ~2s
   2. html.unleash   the headline flashes and everything snaps into the
                     ferocity colours, then floats
   3. html.nav-open  a second later the top bar drops in
   --------------------------------------------------------------------------- */
html.calm .brand,
html.calm .banger {
  color: var(--text);
  letter-spacing: inherit;
  text-transform: none;
  text-shadow: none;
  animation: none;
}
html.calm .btn.waitlist { background: var(--attention); border-color: var(--attention); color: #fff; }
html.calm .btn.demo { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
html.calm .btn.demo:hover { background: var(--surface-hover); }

html.calm .btn { transition: none; } /* the build-up shake must be jumpy, not eased */

html.calm .label-wild,
html:not(.calm) .label-calm { display: none; }

/* The moment it kicks in: only the words flash, blown-out white. */
html.unleash h1 { animation: flash 0.7s ease-out; }

/* The logo flashes harder: the darts burn white-hot, then cool into their colours. */
/* A short, hard burst: white for a blink, colour back almost at once, glow settling after. */
html.unleash .logo polygon { animation: logo-burn 0.3s ease-out; }
@keyframes logo-flash {
  0% { filter: none; }
  6% { filter: brightness(3) drop-shadow(0 0 16px #fff) drop-shadow(0 0 48px #fff) drop-shadow(0 0 110px rgba(255, 255, 255, 0.9)); }
  25% { filter: brightness(1.4) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 36px rgba(var(--apocalyptic-rgb), 0.9)); }
  100% { filter: drop-shadow(0 0 8px rgba(var(--apocalyptic-rgb), 0.7)) drop-shadow(0 0 24px rgba(var(--attention-rgb), 0.55)); }
}
@keyframes logo-burn {
  0%, 15% { fill: #fff; }
}
@keyframes flash {
  0% { filter: brightness(1); }
  8% { filter: brightness(5) saturate(0.4) drop-shadow(0 0 30px #fff) drop-shadow(0 0 80px #fff); }
  30% { filter: brightness(2.2) saturate(1.4) drop-shadow(0 0 20px #fff); }
  100% { filter: brightness(1); }
}

/* Background: a glow rising from the bottom of the screen (after deltarune.com),
   lit at the same moment as the words, then slowly breathing. A red core with
   a blue wash around it that reaches up past the headline. */

body { isolation: isolate; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(var(--apocalyptic-rgb), 0.7) 0%, rgba(var(--apocalyptic-rgb), 0.4) 40%, transparent 75%),
    radial-gradient(ellipse 170% 145% at 50% 120%, rgba(var(--attention-rgb), 0.6) 0%, rgba(var(--attention-rgb), 0.38) 35%, rgba(var(--attention-rgb), 0.14) 68%, transparent 90%);
  opacity: 0;
  transform-origin: 50% 100%;
}
html:not(.calm) body::before {
  opacity: 1;
  animation: glow-breathe 4s ease-in-out infinite;
}
html.unleash body::before { animation: glow-ignite 0.7s ease-out; }
@keyframes glow-ignite {
  0% { opacity: 0; transform: scaleY(0.6); }
  10% { opacity: 1; transform: scaleY(1.25); filter: brightness(1.8); }
  100% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
}
@keyframes glow-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.08); }
}

/* Afterwards everything floats, each on its own clock. Float uses `translate`
   so it stacks with the hover lift, which uses `transform`. */
html:not(.calm) .logo,
html:not(.calm) .brand,
html:not(.calm) .btn,
html:not(.calm) .github {
  animation: float var(--float-dur) ease-in-out var(--float-delay) infinite;
}
.logo   { --float-dur: 4.8s; --float-delay: 0.5s; --float-y: -8px; }
.brand  { --float-dur: 4.2s; --float-delay: 0.6s; --float-y: -10px; }
.banger { --float-dur: 3.6s; --float-delay: 0.9s; --float-y: -12px; }
.btn.waitlist { --float-dur: 4.6s; --float-delay: 0.7s; --float-y: -8px; }
.btn.demo     { --float-dur: 4.0s; --float-delay: 1.1s; --float-y: -9px; }
.github       { --float-dur: 5.2s; --float-delay: 1.3s; --float-y: -5px; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 var(--float-y); }
}

/* Declared after the float rule so it doesn't get overridden by it. */
html.unleash .logo {
  animation: logo-flash 0.7s ease-out,
             float var(--float-dur) ease-in-out var(--float-delay) infinite;
}

/* The catchline also breathes its glow. */
html:not(.calm) .banger {
  animation: ember 1.7s ease-in-out infinite,
             float var(--float-dur) ease-in-out var(--float-delay) infinite;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.calm) .logo,
  html:not(.calm) .brand,
  html:not(.calm) .banger,
  html:not(.calm) .btn,
  html:not(.calm) .github,
  html.unleash h1,
  html.unleash .logo,
  html.unleash .logo polygon,
  html:not(.calm) body::before { animation: none; }
  .topbar { transition: none; }
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 380px;
  padding: 32px 56px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  font-size: 36px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s; /* no colour fade: the unleash snap must be instant */
}
.btn:hover { background: var(--surface-hover); transform: translateY(-1px); }

/* Join the waitlist matches the blue brand line, Demo the red catchline. */
.btn.waitlist { background: var(--attention); border-color: var(--attention); color: #fff; }
.btn.waitlist:hover { background: var(--attention-hover); border-color: var(--attention-hover); }
.btn.demo { background: var(--apocalyptic); border-color: var(--apocalyptic); color: #fff; }
.btn.demo:hover { background: var(--apocalyptic-hover); border-color: var(--apocalyptic-hover); }

.btn:focus-visible, .github:focus-visible, .topbar a:focus-visible { outline: 2px solid var(--attention); outline-offset: 3px; }

.github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.github:hover { border-color: rgba(255, 255, 255, 0.35); }
.github:hover { color: var(--text); }
html:not(.calm) .github { color: #cfcfcf; } /* stays readable over the glow */
html:not(.calm) .github:hover { color: #fff; }
.github svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .btn { width: 100%; min-width: 0; padding: 24px 32px; font-size: 28px; }
  .actions { grid-template-columns: 1fr; width: 100%; max-width: 400px; }
  .topbar nav { gap: 18px; padding: 18px 16px; }
  .topbar a { font-size: 14px; }
  /* No room on the right: the main links shift left to make some. */
  .topbar nav { justify-content: flex-start; }
  .nav-legal { right: 16px; gap: 12px; }
  .topbar .nav-legal a { font-size: 12px; }
  /* The lines sit close together here; float them gently so they never touch. */
  .brand  { --float-y: -4px; }
  .banger { --float-y: -3px; margin-top: 0.2em; }
}

/* Shorter windows: tighten everything so the page still fits on one screen. */
@media (max-height: 720px) {
  main { padding: 72px 16px 24px; }
  h1 { margin-bottom: 36px; }
  .btn { padding: 22px 40px; font-size: 30px; }
  .actions { margin-bottom: 28px; }
}
/* Too short to fit at all (e.g. a phone on its side): let it scroll after all. */
@media (max-height: 460px) {
  html, body { overflow: auto; }
  body { height: auto; min-height: 100dvh; }
}

/* ---------------------------------------------------------------------------
   Views: the waitlist, the home headline and the pricing page share the logo,
   which never moves. main.js flies one view out and the other in (see "Flying between
   views" there); the one not shown keeps its space, so the logo stays put.
   --------------------------------------------------------------------------- */
.view-home { display: flex; flex-direction: column; align-items: center; }
.view-pricing, .view-waitlist {
  position: absolute; left: 0; right: 0; bottom: 0;
  /* Starts above the spot just under the logo (--below-logo, set by main.js)
     and pads back down to it: it scrolls, so it clips, and the title's glow
     needs room above it. */
  top: calc(var(--below-logo, 50%) - 70px);
  display: flex; flex-direction: column; align-items: center;
  padding: 70px 16px 32px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.view-pricing::-webkit-scrollbar, .view-waitlist::-webkit-scrollbar { display: none; }
html:not(.on-pricing) .view-pricing,
html:not(.on-waitlist) .view-waitlist,
html.on-pricing .view-home,
html.on-waitlist .view-home { visibility: hidden; }
html.switching .view.flying { visibility: visible; } /* the two in flight, while the world carries them past */
html.on-pricing .view-pricing, html.on-waitlist .view-waitlist { pointer-events: auto; } /* so it can scroll on small screens */

/* Waitlist: just an email box and a button, each floating on its own clock,
   then the community links. */
.waitlist-form { display: flex; gap: 14px; margin-top: clamp(10px, 4vh, 48px); width: min(560px, 100%); }
.waitlist-form input, .waitlist-form button {
  height: 64px; border-radius: 16px; font: inherit; font-size: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: float var(--float-dur) ease-in-out var(--float-delay) infinite;
}
.waitlist-form input {
  flex: 1; min-width: 0; padding: 0 22px; color: var(--text);
  background: rgba(20, 20, 20, 0.82); border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
  --float-dur: 4.4s; --float-delay: 0.2s; --float-y: -6px;
}
.waitlist-form input::placeholder { color: #6a6a6a; }
.waitlist-form input:focus { outline: none; border-color: var(--attention); }
.waitlist-form button {
  padding: 0 34px; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--attention); border: 1px solid var(--attention);
  transition: background-color 0.15s, transform 0.15s;
  --float-dur: 3.8s; --float-delay: 0.9s; --float-y: -8px;
}
.waitlist-form button:hover { background: var(--attention-hover); transform: translateY(-1px); }
.waitlist-form button:focus-visible { outline: 2px solid var(--attention); outline-offset: 3px; }
.waitlist-form button:disabled { cursor: default; opacity: 0.7; }
/* Signed up: the box and the button come loose (main.js places them), slide
   into one green dot, and that swells into the circle with the tick. */
.waitlist-form.merging { position: relative; }
.waitlist-form.merging input, .waitlist-form.merging button { position: absolute; margin: 0; animation: none; transition: none; }
.waitlist-check {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  border-radius: 50%; display: grid; place-items: center; background: var(--ok);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 42px rgba(var(--ok-rgb), 0.45);
}
.waitlist-check[hidden] { display: none; }
.waitlist-check svg { width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.waitlist-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.waitlist-form.joined .waitlist-check path { stroke-dashoffset: 0; }
.waitlist-form.joined .waitlist-check { animation: float 4s ease-in-out infinite; --float-y: -7px; }
.waitlist-form.joined input, .waitlist-form.joined button { visibility: hidden; }

.waitlist-status { min-height: 1.5em; margin: 18px 0 0; color: #cfcfcf; font-size: 16px; }
.waitlist-status.done {
  margin-top: 26px; color: var(--text); font-size: 24px; font-weight: 600;
  animation: waitlist-in 0.7s ease-out both, float 4.6s ease-in-out 0.7s infinite; --float-y: -6px;
}
@keyframes waitlist-in { from { opacity: 0; transform: translateY(10px); } }
.waitlist-status.error { color: var(--apocalyptic); }

.community { margin-top: clamp(28px, 9vh, 110px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.community p { margin: 0; color: var(--muted); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.community-links { display: flex; gap: 18px; }
.community-links a {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  color: #cfcfcf; background: rgba(20, 20, 20, 0.82); border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.community-links a[href]:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.community-links a:focus-visible { outline: 2px solid var(--attention); outline-offset: 3px; }
.community-links a.soon { color: #5f5f5f; cursor: default; }
.community-links svg { width: 28px; height: 28px; }

@media (max-width: 600px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form input { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-form input, .waitlist-form button, .waitlist-form.joined .waitlist-check, .waitlist-status.done { animation: none; }
}

/* Pricing */
.pricing-title {
  margin: 0;
  font-size: clamp(36px, min(5.4vw, 8.5vh), 92px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--attention);
  text-shadow: 0 0 6px rgba(var(--attention-rgb), 0.9),
               0 0 24px rgba(var(--attention-rgb), 0.85),
               0 0 60px rgba(var(--attention-rgb), 0.6);
}
.pricing-sub {
  margin: 0.35em 0 0;
  font-size: clamp(17px, min(2.5vw, 4.2vh), 40px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apocalyptic);
  text-shadow: 0 0 6px rgba(var(--apocalyptic-rgb), 0.9),
               0 0 24px rgba(var(--apocalyptic-rgb), 0.85),
               0 0 56px rgba(var(--apocalyptic-rgb), 0.55);
  animation: ember 1.7s ease-in-out infinite;
}
.pricing-but {
  margin: clamp(18px, 3.4vh, 34px) 0 clamp(14px, 2.4vh, 22px);
  color: #b4b4b4;
  font-size: 17px;
  font-style: italic;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1080px, 100%);
}
.plan {
  padding: 22px 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(6px);
  text-align: left;
}
.plan h3 { margin: 0; font-size: 21px; font-weight: 600; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 4px; }
.price-big { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price-per { color: var(--muted); font-size: 15px; }
.plan-billed { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.plan-contact a { color: inherit; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.plan-contact a:hover { color: #fff; text-decoration-color: currentColor; }

/* Monthly / yearly: a small switch, blue when on (yearly). */
.billing { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.billing-switch {
  appearance: none; margin: 0; position: relative; width: 34px; height: 20px; border-radius: 999px;
  background: var(--surface-hover); border: 1px solid var(--border-strong); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.billing-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #e6e6e6; transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.billing-switch:checked { background: var(--attention); border-color: var(--attention); }
.billing-switch:checked::after { transform: translateX(14px); }
.billing-switch:focus-visible { outline: 2px solid var(--attention); outline-offset: 2px; }
.billing span:first-child { color: var(--text); }
.billing:has(.billing-switch:checked) span:first-child { color: var(--muted); }
.billing:has(.billing-switch:checked) span:last-child { color: var(--text); }
.plan ul { margin: 16px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan li { color: #cfcfcf; font-size: 15px; line-height: 1.45; }
.plan li::marker { color: var(--attention); }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .pricing-sub { animation: none; }
}

/* Intro skipped (seen it recently): the top bar is simply there. */
.no-intro .topbar { transition: none; }
