/* candid — coming soon. One page, no build step. Colours and type match the app. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.46);
  --line: #1f2a44;
  --tint: rgba(255, 255, 255, 0.025);
  --card: rgba(14, 20, 34, 0.72);
  --panel: #05070c;
  --surface: #0e1422;
  --field: #0a0f1a;
  --accent: #3b82f6;
  --danger: #f87171;
  --ok: #34d399;
  --glow: 0.5;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --fg: #0a0a0a;
    --muted: rgba(10, 10, 10, 0.68);
    --faint: rgba(10, 10, 10, 0.5);
    --line: #d9e1ee;
    --tint: rgba(10, 10, 10, 0.022);
    --card: rgba(255, 255, 255, 0.8);
    --panel: #ffffff;
    --surface: #f4f6fb;
    --field: #ffffff;
    --accent: #2563eb;
    --danger: #dc2626;
    --ok: #047857;
    --glow: 0.2;
  }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; }

/* ── Top of the page: slogan and form ─────────────────────────────────── */
.bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 20px) 24px 14px;
}
.wordmark { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.wordmark span { color: var(--accent); }

.top {
  position: relative;
  min-height: calc(100svh - 74px - env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
}
/* A slow drift of brand colour behind the slogan. */
.glow {
  position: absolute;
  top: -6%;
  left: 50%;
  width: min(90vw, 760px);
  aspect-ratio: 1;
  margin-left: calc(min(90vw, 760px) / -2);
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #38bdf8);
  filter: blur(120px);
  opacity: var(--glow);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to   { transform: translate3d(9%, 7%, 0) scale(1.2); }
}

.wrap {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: grid;
  gap: 36px;
  align-content: center;
}
.wrap.narrow { display: block; max-width: 480px; }
@media (min-width: 920px) {
  .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: center; padding: 32px 32px 48px; }
}

.cue {
  position: relative;
  align-self: center;
  padding: 6px 12px calc(env(safe-area-inset-bottom) + 22px);
  font-size: 12px;
  color: var(--faint);
  text-decoration: none;
}
.cue:hover { color: var(--fg); }
.cue span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Each part of a block arrives in turn. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rise > * { animation: rise 620ms var(--ease-out) backwards; }
.rise > *:nth-child(1) { animation-delay: 80ms; }
.rise > *:nth-child(2) { animation-delay: 170ms; }
.rise > *:nth-child(3) { animation-delay: 260ms; }
.rise > *:nth-child(4) { animation-delay: 350ms; }
.card.rise { animation: rise 700ms var(--ease-out) 320ms backwards; }
.card.rise > * { animation: none; }

.hero { text-align: center; padding: 0 8px; }
@media (min-width: 920px) { .hero { text-align: left; padding: 0; } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.8s var(--ease-out) infinite;
}
.dot.green { background: var(--ok); }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

h1 {
  margin-top: 18px;
  font-size: clamp(46px, 12.2vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.you {
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #818cf8, #60a5fa, #38bdf8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slide 7s linear infinite;
}
@keyframes slide { to { background-position: 200% 50%; } }
.lead { margin-top: 20px; font-size: clamp(19px, 2.4vw, 23px); font-weight: 500; }
.body { margin: 14px auto 0; max-width: 30em; font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (min-width: 920px) {
  .body { margin-left: 0; }
  /* Beside the form the headline sets on two lines, on purpose. */
  h1 { font-size: clamp(76px, 7.6vw, 108px); }
  .you { display: block; }
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  padding: 24px 20px;
  box-shadow: 0 40px 80px -50px rgba(37, 99, 235, 0.7);
  scroll-margin-top: 24px;
}
@media (min-width: 520px) { .card { padding: 32px; } }
.card h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.card-lead { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }

form { margin-top: 22px; display: grid; gap: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-size: 13px; font-weight: 600; }
.optional { font-weight: 500; color: var(--faint); }
input, select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* below 16px iOS zooms the page on focus */
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
input[aria-invalid="true"] { border-color: var(--danger); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button, .button {
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 160ms ease, box-shadow 200ms ease;
}
.button { display: inline-flex; align-items: center; padding: 0 28px; margin-top: 28px; text-decoration: none; }
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(59, 130, 246, 0.7); }
button:active, .button:active { transform: translateY(0) scale(0.99); }
button:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.error { font-size: 14px; font-weight: 500; color: var(--danger); }
.fine { font-size: 12px; line-height: 1.5; color: var(--faint); text-align: center; }

.done { text-align: center; padding: 28px 4px; }
.done h2 { margin-top: 18px; outline: none; }
.done p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.done a { color: var(--accent); }
.tick { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 620ms var(--ease-out) forwards; }
.tick path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 420ms var(--ease-out) 460ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2, .done p { animation: rise 520ms var(--ease-out) 620ms backwards; }

/* ── The sections below ───────────────────────────────────────────────── */
.band { position: relative; border-top: 1px solid var(--line); background: var(--bg); }
.band.tint { background: linear-gradient(var(--tint), var(--tint)), var(--bg); }
.inner { max-width: 1080px; margin: 0 auto; padding: 80px 20px; }
@media (min-width: 760px) { .inner { padding: 112px 32px; } }
.inner.narrow, .narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
}

.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.band h2 { margin-top: 12px; font-size: clamp(30px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.band h2.big { margin-top: 0; font-size: clamp(36px, 6vw, 56px); font-weight: 900; letter-spacing: -0.035em; }
.copy { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.center .copy { max-width: 34em; margin-left: auto; margin-right: auto; }
.note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--faint); }

/* A statement that lights up word by word as it is scrolled through. */
.statement { margin-top: 24px; font-size: clamp(28px, 5.2vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.statement em { font-style: normal; color: var(--accent); }

.panel { border: 1px solid var(--line); border-radius: 28px; background: var(--panel); padding: 22px 20px; }
@media (min-width: 520px) { .panel { padding: 28px; } }

/* Sections ease up into view. Without JavaScript they are simply there. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .trio .reveal:nth-child(2) { transition-delay: 90ms; }
.js .trio .reveal:nth-child(3) { transition-delay: 180ms; }

/* Job boards → candid, row by row. */
.shift-row { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.shift-row.head { padding: 0 0 12px; border-top: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.blue, .arrow { color: var(--accent); }
.now { font-weight: 600; }
.js .shift .was, .js .shift .arrow, .js .shift .now { transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .shift .arrow, .js .shift .now { opacity: 0; transform: translateX(-10px); }
.js .shift.in .was { opacity: 0.45; }
.js .shift.in .arrow, .js .shift.in .now { opacity: 1; transform: none; }
.js .shift .shift-row:nth-child(2) > * { transition-delay: 300ms; }
.js .shift .shift-row:nth-child(3) > * { transition-delay: 700ms; }
.js .shift .shift-row:nth-child(4) > * { transition-delay: 1100ms; }

/* ── The phone ────────────────────────────────────────────────────────── */
.demo { margin-top: 48px; display: grid; gap: 40px; align-items: center; justify-content: center; }
@media (min-width: 860px) { .demo { grid-template-columns: auto minmax(0, 352px); gap: 64px; margin-top: 64px; } }
.phone {
  position: relative;
  width: 252px;
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  border: 9px solid #171717;
  border-radius: 44px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(37, 99, 235, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.island { position: absolute; left: 50%; top: 10px; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #000; }
.screen { position: absolute; inset: 0; color: #fff; background: linear-gradient(#0ea5e9, #2563eb 45%, #3730a3); }
.phone[data-person="1"] .screen { background: linear-gradient(#3b82f6, #4f46e5 45%, #0f172a); }
.phone[data-person="2"] .screen { background: linear-gradient(#06b6d4, #0284c7 45%, #1e3a8a); }
.screen.next { animation: next 600ms var(--ease-out); }
@keyframes next { from { transform: translateY(100%); } }
.haze { position: absolute; top: -40px; left: -40px; width: 224px; height: 224px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); filter: blur(48px); animation: drift 14s ease-in-out infinite alternate; }

.progress { position: absolute; left: 16px; right: 16px; top: 36px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: #fff; }

.person { position: absolute; left: 0; right: 0; top: 24%; display: grid; justify-items: center; gap: 16px; }
.avatar { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); font-size: 30px; font-weight: 900; }
.bars { display: flex; align-items: center; gap: 4px; height: 24px; }
.bars i { width: 3px; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, 0.9); animation: speak 900ms ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -620ms; }
.bars i:nth-child(3) { animation-delay: -240ms; }
.bars i:nth-child(4) { animation-delay: -780ms; }
.bars i:nth-child(5) { animation-delay: -410ms; }
.bars i:nth-child(6) { animation-delay: -90ms; }
.bars i:nth-child(7) { animation-delay: -540ms; }
@keyframes speak { 50% { transform: scaleY(0.3); } }
.phone:not(.playing) .bars i, .phone:not(.playing) .haze { animation-play-state: paused; }

.rail { position: absolute; right: 12px; bottom: 112px; display: grid; gap: 12px; }
.rail span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); }
.rail svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.phone[data-step="3"] .heart { color: #fb7185; animation: pop 440ms var(--ease-spring); }
.phone[data-step="3"] .heart svg { fill: currentColor; }
@keyframes pop { 35% { transform: scale(1.36); } }

.info { position: absolute; left: 16px; right: 16px; bottom: 20px; }
.says { min-height: 42px; padding-right: 48px; font-size: 13px; font-weight: 500; line-height: 1.35; }
.says span { display: inline-block; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); }
.says span.swap { animation: rise 260ms var(--ease-out); }
.pname { margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.2; }
.pline { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.prole { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); font-size: 11px; font-weight: 600; }

.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 56%; padding: 16px; border-radius: 26px; background: #fff; color: #171717; box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, 0.5); transform: translateY(108%); transition: transform 550ms var(--ease-out); }
.phone[data-step="2"] .sheet { transform: none; }
.grab { width: 36px; height: 4px; margin: 0 auto; border-radius: 999px; background: #d4d4d4; }
.sheet-label { margin-top: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #737373; }
.sheet-name { margin-top: 4px; font-size: 14px; font-weight: 700; }
.sheet-head { margin-top: 12px; font-size: 10px; font-weight: 600; color: #2563eb; }
.lines { display: grid; gap: 6px; margin-top: 6px; }
.lines i { height: 6px; border-radius: 999px; background: #e5e5e5; }
.lines i:nth-child(2) { width: 80%; }
.lines i:nth-child(3) { width: 60%; }

.toast { position: absolute; left: 50%; top: 56px; padding: 6px 12px; border-radius: 999px; background: #fff; color: #171717; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5); opacity: 0; transform: translate(-50%, -6px) scale(0.85); transition: opacity 250ms ease, transform 300ms var(--ease-spring); }
.phone[data-step="3"] .toast { opacity: 1; transform: translate(-50%, 0) scale(1); }

.stages { display: grid; gap: 12px; }
.stages li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; opacity: 0.55; transition: opacity 500ms ease, border-color 500ms ease, background-color 500ms ease; }
.stages li.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.stages h3 { font-size: 16px; font-weight: 700; }
.stages p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 10%, transparent); font-size: 11px; font-weight: 700; transition: background-color 500ms ease, color 500ms ease; }
.stages li.on .num { background: var(--accent); color: #fff; }

/* ── The live card ────────────────────────────────────────────────────── */
.live-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.stats div { padding: 12px; border-radius: 16px; background: var(--surface); text-align: center; }
.stats b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats b.bump { animation: bump 260ms var(--ease-spring); }
@keyframes bump { from { opacity: 0; transform: scale(0.82); } }
.stats span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.events { display: grid; gap: 8px; align-content: start; height: 184px; margin-top: 20px; overflow: hidden; }
.events li { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border-radius: 16px; background: var(--surface); font-size: 14px; font-weight: 500; }
.events li.new { animation: drop 400ms var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(0.97); } }
.events .ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.events svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.events .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.events .when { font-size: 12px; color: var(--faint); }

/* ── Who it's for ─────────────────────────────────────────────────────── */
.trio { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.panel.accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, #0ea5e9 10%, transparent), color-mix(in srgb, #6366f1 10%, transparent)), var(--panel); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.panel.accent .tag { color: var(--accent); }
.trio h3 { margin-top: 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.onway { max-width: 40em; margin: 40px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); }
.onway strong { color: var(--fg); font-weight: 600; }

.foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 22px 24px calc(env(safe-area-inset-bottom) + 22px);
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .dot::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .stages li { opacity: 1; }
}
