/* Oddkeep website, mobile-first: base styles are the phone layout; min-width queries add desktop.
   Colours are the app's Ink & Volt tokens (documentation/brand/DESIGN.md). */
:root {
  --ground: #0b0d12;
  --surface: #151922;
  --raised: #1e2330;
  --subtle: #2c3342;
  --strong: #3a4252;
  --text: #f4f6fa;
  --muted: #9aa3b2;
  --lime: #b9e86a;
  --on-lime: #0b0d12;
  --error: #ff7a7a;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--gutter);
  max-width: 1312px;
  width: 100%;
  margin: 0 auto;
}
.wordmark { font: 700 20px/1 var(--display); text-decoration: none; }
.nav-links { display: none; }
.pill {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--on-lime);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

/* Waitlist form (hero and final call) */
.waitlist { display: grid; gap: 10px; }
.waitlist input {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: 400 16px var(--body);
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus { outline: none; border-color: var(--lime); }
.waitlist button {
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: var(--on-lime);
  font: 700 16px var(--body);
  cursor: pointer;
}
.waitlist button:disabled { opacity: 0.6; }
.waitlist .cf-turnstile.passed { display: none; } /* check passed: the token stays in its input */
.note { margin: 0; color: var(--muted); font-size: 13px; }
.note.error { color: var(--error); }

/* Phone frame around an app screenshot */
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 390 / 844;
  border: 2px solid var(--strong);
  border-radius: 44px;
  background: var(--ground);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.5);
  overflow: hidden;
}
.phone img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 36px;
}

/* Hero */
.hero {
  display: grid;
  gap: 32px;
  justify-items: center;
  padding: 8px var(--gutter) 48px;
  max-width: 1312px;
  width: 100%;
  margin: 0 auto;
}
.hero-copy { display: grid; gap: 18px; width: 100%; }
.hero h1 { font-size: 40px; line-height: 1.1; }
.lede { margin: 0; color: var(--muted); }
.stores { display: flex; gap: 10px; }
.store {
  display: grid;
  padding: 6px 12px;
  border: 1px solid var(--strong);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.store small { font-weight: 400; font-size: 10px; color: var(--muted); }

/* The pinned app walk-through: the section is 4 screens tall and its inner block sticks for the
   whole of it, so scrolling steps through the captions and screens before the page moves on. */
.steps { height: 400dvh; background: var(--surface); }
.pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  padding: 24px var(--gutter);
  overflow: hidden;
}
.progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; justify-self: start; }
.progress li { width: 8px; height: 4px; border-radius: 2px; background: var(--subtle); font-size: 0; transition: width 0.3s, background 0.3s; }
.progress li.on { width: 24px; background: var(--lime); }
.captions { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; grid-row: 2; }
.captions li { grid-area: 1 / 1; opacity: 0; transition: opacity 0.35s; }
.captions li.on { opacity: 1; }
.count { display: none; font: 500 14px var(--display); color: var(--lime); }
.captions h2 { font-size: 28px; line-height: 1.15; margin-bottom: 6px; }
.captions p { margin: 0; color: var(--muted); font-size: 15px; }
.steps .phone { grid-row: 3; height: 100%; width: auto; max-width: 100%; }
.steps .phone img { opacity: 0; transition: opacity 0.35s; }
.steps .phone img.on { opacity: 1; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 12px;
  padding: 64px var(--gutter);
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}
.feature { display: grid; justify-items: center; text-align: center; gap: 10px; align-content: start; }
.ring {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2.5px solid var(--text);
  border-radius: 50%;
}
.ring svg, .card h2 svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font: 700 15px var(--body); }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Secure + Responsible */
.trust { display: grid; gap: 16px; padding: 0 var(--gutter) 56px; max-width: 1032px; width: 100%; margin: 0 auto; }
.card { padding: 22px; border: 1px solid var(--subtle); border-radius: 16px; background: var(--surface); }
.card h2 { display: flex; align-items: center; gap: 12px; font-size: 36px; }
.card h2 svg { width: 28px; height: 28px; }
.card p { margin: 16px 0 0; }

/* Final call */
.final { display: grid; gap: 16px; padding: 56px var(--gutter) 40px; background: var(--surface); }
.final h2 { font-size: 32px; line-height: 1.15; }
.final > p { margin: 0; color: var(--muted); }

.footer {
  display: grid;
  gap: 6px;
  padding: 0 var(--gutter) 28px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.footer b { color: var(--text); font: 700 14px var(--display); }
.footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Floating waitlist badge (fixed, every section) */
.badge {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 10;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--lime);
  color: var(--on-lime);
  font: 700 13px/1.1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.4);
}
.badge small { font: 700 10px var(--body); letter-spacing: 0.08em; }
.badge span { font-size: 15px; }

/* Plain text pages (legal, support) */
.doc { flex: 1; width: min(720px, 100%); margin: 0 auto; padding: 24px var(--gutter) 48px; }
.doc .wordmark { display: inline-block; margin-bottom: 24px; }
.doc h1 { font-size: 32px; margin-bottom: 16px; }
.doc p { color: var(--muted); }
.doc strong { color: var(--text); }
body:has(.doc) .footer { background: none; }

/* Tablet and up */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 24px; padding-block: 110px; }
  .ring { width: 64px; height: 64px; border-width: 3px; }
  .ring svg { width: 28px; height: 28px; }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 14px; max-width: 230px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card { padding: 36px; }
  .card h2 { font-size: 56px; }
  .card h2 svg { width: 40px; height: 40px; }
  .card p { font-size: 18px; }
  .final { justify-items: center; text-align: center; padding-top: 110px; }
  .final h2 { font-size: 52px; }
  .waitlist { grid-template-columns: 1fr 190px; width: min(560px, 100%); }
  .waitlist .note, .waitlist .cf-turnstile { grid-column: 1 / -1; }
  .footer { grid-template-columns: 1fr auto; padding-top: 40px; }
  .badge { width: 116px; height: 116px; right: 32px; bottom: 32px; font-size: 17px; }
  .badge small { font-size: 12px; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --gutter: 96px; }
  .nav { padding-top: 28px; gap: 32px; }
  .wordmark { font-size: 24px; }
  .nav-links { display: flex; gap: 32px; margin-left: auto; }
  .nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; }
  .nav-links a:hover { color: var(--text); }
  .pill { margin-left: 0; padding: 12px 20px; font-size: 15px; border-radius: 10px; }
  .hero { grid-template-columns: 1fr auto; align-items: center; min-height: calc(100dvh - 88px); padding-bottom: 40px; }
  .hero h1 { font-size: 72px; line-height: 1.05; }
  .lede { font-size: 20px; max-width: 580px; }
  .hero-phone { width: 320px; }
  .pin {
    grid-template-columns: 440px auto 300px;
    grid-template-rows: 1fr;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding-block: 48px;
  }
  .captions, .steps .phone, .progress { grid-row: 1; }
  .count { display: block; }
  .captions h2 { font-size: 52px; line-height: 1.08; margin: 18px 0; }
  .captions p { font-size: 19px; }
  .steps .phone { height: min(776px, calc(100dvh - 96px)); }
  .progress { flex-direction: column; gap: 14px; justify-self: stretch; }
  .progress li {
    width: auto;
    height: auto;
    background: none;
    border-left: 3px solid var(--subtle);
    border-radius: 0;
    padding: 3px 0 3px 12px;
    font: 500 16px var(--body);
    color: var(--muted);
  }
  .progress li.on { width: auto; background: none; border-left-color: var(--lime); color: var(--text); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .captions li, .steps .phone img, .progress li { transition: none; }
}
