/*
  Neutral stylesheet for the template site. No webfonts, no external requests.
  Colours live in the custom properties below; change them there and nowhere else.
*/

:root {
  --bg: #0F1115;
  --surface: #181B21;
  --border: #262A32;
  --text: #ECEDEF;
  --muted: #9A9EA6;
  --accent: #5B8CFF;
  --accent-text: #0F1115;
  --danger: #E0A03A;
  --radius: 14px;
  --container: 1040px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --surface: #F4F5F7;
    --border: #E1E4E9;
    --text: #15181E;
    --muted: #5E636C;
    --accent: #3D6FEF;
    --accent-text: #FFFFFF;
    --danger: #B8741A;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  min-width: 320px;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.muted { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

/* ---- Layout ------------------------------------------------------------ */

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding-block: clamp(3rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--border); }

/* ---- Header / footer --------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step-1);
}
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); flex: none; }
.nav-links { display: flex; gap: clamp(0.75rem, 3vw, 1.5rem); flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: var(--step--1); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; color: var(--muted); font-size: var(--step--1); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); }

/* ---- Hero -------------------------------------------------------------- */

.hero { display: grid; gap: 2.5rem; align-items: center; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 32em; }
.hero-shot { justify-self: center; width: min(280px, 70vw); }
@media (min-width: 800px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; }
  .hero-shot { justify-self: end; }
}

/* ---- Waitlist form ----------------------------------------------------- */

.waitlist { max-width: 30rem; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.waitlist label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist-note { color: var(--muted); font-size: var(--step--1); margin-top: 0.6rem; }
.waitlist-status { min-height: 1.6em; margin-top: 0.6rem; font-size: var(--step--1); }
.waitlist-status.is-error { color: var(--danger); }
.waitlist-status.is-success { color: var(--accent); }

/* The honeypot is off-screen rather than display:none — some bots skip hidden fields. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.button, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 120ms ease, transform 120ms ease;
}
.button:hover, .cta:hover { filter: brightness(1.08); }
.button:active, .cta:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---- Feature sections -------------------------------------------------- */

.feature { display: grid; gap: 2rem; align-items: center; }
.feature-shot { justify-self: center; width: min(240px, 60vw); }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(even) .feature-copy { order: 2; }
}
.feature h2 { margin-bottom: 0.4em; }
.feature p { color: var(--muted); max-width: 34em; }

/* ---- How it works ------------------------------------------------------ */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.steps h3 { font-size: var(--step-0); }
.steps p { color: var(--muted); margin: 0; font-size: var(--step--1); }

/* ---- Closing ----------------------------------------------------------- */

.closing { text-align: center; }
.closing .waitlist { margin-inline: auto; }
.closing .waitlist-row { justify-content: center; }

/* ---- Reading pages (legal, support) ----------------------------------- */

.legal-main { padding-block: clamp(2rem, 6vw, 4rem); }
.legal-title { margin-bottom: 2rem; }
.legal-title p { color: var(--muted); margin: 0; }
.legal-content { max-width: 44rem; }
.legal-content h2 { font-size: var(--step-1); margin-top: 2.5rem; }
.legal-content h3 { font-size: var(--step-0); margin-top: 1.5rem; }
.legal-content section + section { border: 0; padding: 0; }
.legal-content section { padding: 0; }
.legal-content li { margin-bottom: 0.4em; }
.legal-note { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; color: var(--muted); }
.support-email { font-size: var(--step-1); font-weight: 600; word-break: break-all; }

/* Editing markers in the legal pages — remove before publishing. */
mark.todo { background: #FFE95C; color: #15181E; padding: 0 0.25em; border-radius: 3px; }

/* ---- Motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
