/* EarlyApply site: shared styles for the homepage and the privacy policy. Midnight radar brand. */
:root {
  --bg: #050b0a;
  --bg-2: #0a1614;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: #0f1e1b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(52, 245, 176, 0.28);
  --fg: #eef5f2;
  --muted: #93a8a1;
  --faint: #5f7570;
  --accent: #34f5b0;
  --accent-ink: #04221a;
  --gold: #ffc94d;
  --glow: rgba(52, 245, 176, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8f7;
    --bg-2: #eaf1ee;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --border: rgba(10, 40, 32, 0.1);
    --border-strong: rgba(4, 140, 96, 0.35);
    --fg: #0c1714;
    --muted: #4c615b;
    --faint: #7d8f8a;
    --accent: #048c60;
    --accent-ink: #ffffff;
    --gold: #c98a00;
    --glow: rgba(4, 140, 96, 0.12);
    --shadow: 0 24px 60px rgba(10, 40, 32, 0.14);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, var(--glow), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, var(--glow), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font: 700 18px/1 var(--head); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__links .btn--primary, .nav__links .btn--primary:hover { color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font: 600 15px/1 var(--body);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px var(--glow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.btn--primary:hover { box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero: text left, product right ---------- */
.hero { padding: 56px 0 24px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: center; gap: 48px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  margin: 18px 0 0;
  font: 700 clamp(34px, 4.2vw, 50px)/1.06 var(--head);
  text-wrap: balance;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, #a7ffdc 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: light) {
  .hero h1 em { background: linear-gradient(100deg, #048c60 10%, #0aa874 60%, #c98a00 100%); -webkit-background-clip: text; background-clip: text; }
}
.hero__lead { margin: 16px 0 0; color: var(--muted); font-size: 16.5px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__alt { margin: 10px 0 0; font-size: 14px; color: var(--muted, #5b6470); }
.hero__alt a { color: inherit; text-decoration: underline; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--faint); font-size: 13.5px; }
.trust li::before { content: "✓"; margin-right: 6px; color: var(--accent); font-weight: 700; }

/* Small numbers row under the buttons */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 10px 26px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.stats div { min-width: 0; }
.stats dt { font: 700 20px/1.1 var(--head); letter-spacing: -0.02em; }
.stats dd { margin: 2px 0 0; max-width: 112px; color: var(--muted); font-size: 12px; line-height: 1.35; }

/* Animated radar behind the hero shot */
.stage { position: relative; }
.radar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(820px, 160vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 69px, color-mix(in srgb, var(--accent) 14%, transparent) 69px 70px),
    radial-gradient(circle, var(--glow), transparent 65%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 300deg, color-mix(in srgb, var(--accent) 22%, transparent) 355deg, transparent 360deg);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { rotate: 360deg; } }

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.shot img { width: 100%; height: auto; }
.shot--hero { border-color: var(--border-strong); box-shadow: var(--shadow), 0 0 100px var(--glow); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section__head { max-width: 640px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section__title { margin: 10px 0 0; font: 700 clamp(26px, 3.2vw, 34px)/1.15 var(--head); letter-spacing: -0.02em; }
.section__lead { margin: 12px 0 0; color: var(--muted); font-size: 16.5px; }

/* Features: a 2x2 grid of cards, picture on top */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature .shot { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.feature__body { padding: 20px 22px 22px; }
.feature h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 19px/1.25 var(--head); letter-spacing: -0.01em; }
.feature__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.feature__icon svg { width: 17px; height: 17px; }
.feature p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.ticks { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.ticks li { position: relative; margin: 6px 0; padding-left: 26px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2334f5b0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- How it works + privacy, side by side ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step, .steps li { position: relative; margin: 0 0 10px; padding: 14px 16px 14px 56px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--accent);
  font: 700 14px/1 var(--head);
  letter-spacing: 0.06em;
}
.steps h3 { margin: 0; font: 700 16px/1.3 var(--head); }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.band {
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 260px at 0% 0%, var(--glow), transparent 70%),
    var(--surface);
}
.band__lead { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.band .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.chip {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
}
.chip b { display: block; font: 700 14.5px/1.3 var(--head); }
.chip span { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- Final CTA: one row ---------- */
.final { margin: 64px 0 0; }
.final__card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 200px at 100% 100%, var(--glow), transparent 70%),
    var(--surface);
}
.final__card img { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 8px 24px var(--glow)); }
.final__text { flex: 1; min-width: 0; }
.final h2 { margin: 0; font: 700 clamp(20px, 2.4vw, 26px)/1.2 var(--head); letter-spacing: -0.02em; }
.final p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.final .btn { flex: none; }

/* ---------- Footer ---------- */
.footer { margin-top: 56px; padding: 28px 0 36px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .brand { font-size: 16px; }
.footer .brand img { width: 24px; height: 24px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); }
.footer p { flex-basis: 100%; margin: 6px 0 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .radar::after { animation: none; }
  .btn { transition: none; }
}

/* ---------- Privacy page ---------- */
.doc-hero { padding: 72px 0 8px; }
.doc-hero h1 { margin: 14px 0 0; font: 700 clamp(36px, 5.5vw, 58px)/1.05 var(--head); letter-spacing: -0.03em; }
.doc-hero .meta { margin: 14px 0 0; color: var(--muted); }
.doc-hero .intro { margin: 18px 0 0; max-width: 760px; color: var(--muted); font-size: 18px; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.summary li { padding: 20px; border: 1px solid var(--border-strong); border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); font-size: 15px; }
.summary li b { display: block; margin-bottom: 4px; font: 700 16px/1.3 var(--head); color: var(--fg); }
.summary li span { color: var(--muted); }

.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; margin-top: 64px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc p { margin: 0 0 10px; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); }
.toc a:hover { color: var(--fg); text-decoration: none; border-left-color: var(--accent); }

.prose { max-width: 760px; min-width: 0; }
.prose section { padding: 0 0 8px; scroll-margin-top: 84px; }
.prose section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.prose h2 { margin: 0 0 14px; font: 700 26px/1.25 var(--head); letter-spacing: -0.015em; }
.prose h2 span { margin-right: 10px; color: var(--accent); }
.prose h3 { margin: 26px 0 8px; font: 700 18px/1.35 var(--head); }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 82%, var(--muted)); overflow-wrap: anywhere; }
.prose strong { color: var(--fg); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose code { padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 14px 0 0; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--surface); color: var(--fg); font-weight: 600; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; padding: 20px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); }
.contact-card p { margin: 0; flex: 1 1 260px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .duo, .doc { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; }
  .stage { max-width: 640px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links a:not(.btn) { display: none; }
  .section { padding-top: 56px; }
  .final { margin-top: 48px; }
  .final__card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .footer { margin-top: 48px; }
  .band { padding: 22px; }
  .band .grid, .summary { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .nav .btn { width: auto; }
}

h2, h3, .hero__lead, .section__lead, .final p { text-wrap: balance; }

/* ---------- Job Radar story: the sweep finds each job, its card slides in, then the alert ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 34px; }
.scope {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), color-mix(in srgb, var(--accent) 30%, transparent) calc(12.5% - 1px) 12.5%),
    radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, var(--bg-2)), var(--bg) 72%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 80px var(--glow);
}
.scope::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.scope::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 285deg, color-mix(in srgb, var(--accent) 55%, transparent) 358deg, transparent 360deg);
  animation: sweep 4s linear infinite;
  animation-play-state: paused;
}
.watch.is-live .scope::after { animation-play-state: running; }
.watch.is-reset .scope::after { animation: none; }
.watch.is-live .watch__job.is-on { transition-delay: 0.35s; }
.scope__blip {
  position: absolute;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 18px 4px color-mix(in srgb, var(--accent) 55%, transparent);
}
.scope__tag {
  position: absolute;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
  translate: -50% -50%; /* left/top are the label's centre, beside its blip */
}
.watch__feed { display: flex; flex-direction: column; gap: 12px; }
.watch__job { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-strong); border: 1px solid var(--border); }
.watch__logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #fff; font-weight: 700; }
.watch__job b { display: block; font-size: 15.5px; line-height: 1.3; }
.watch__job small { color: var(--muted); font-size: 13px; }
.watch__new { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 12px; font-weight: 700; }
.watch__alert { align-self: flex-end; width: min(360px, 100%); margin-top: 6px; padding: 14px 16px; border-radius: 12px; background: #2b2b2b; color: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); font-size: 13px; line-height: 1.6; }
.watch__alert b { display: block; margin-bottom: 2px; font-size: 15px; }
.watch__alert small { color: #c7c7c7; }
.watch__steps { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.watch__steps b { margin-right: 6px; color: var(--accent); }

/* Animated (once the script runs): each step hidden until its moment, then in with a ping or a slide. */
.watch.is-live [data-step] { transition: opacity 0.45s ease, translate 0.45s ease, scale 0.45s ease; }
.watch.is-live [data-step]:not(.is-on) { opacity: 0; }
.watch.is-live .watch__job:not(.is-on) { translate: 28px 0; }
.watch.is-live .watch__alert:not(.is-on) { translate: 0 14px; }
.watch.is-live .scope__blip:not(.is-on) { scale: 0.2; }
.watch.is-live .scope__blip.is-on { animation: ping 1.2s ease-out 1; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent), 0 0 18px 4px color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 22px transparent, 0 0 18px 4px color-mix(in srgb, var(--accent) 55%, transparent); }
}

@media (max-width: 860px) {
  .watch { grid-template-columns: 1fr; gap: 28px; }
  .scope { max-width: 340px; margin: 0 auto; }
  .watch__alert { align-self: stretch; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scope::after { animation: none; rotate: 215deg; }
}
