/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d0c;
  --bg-elev: #111413;
  --bg-soft: #15191a;
  --line: #21262a;
  --ink: #f4f6f4;
  --ink-dim: #b6bcb8;
  --ink-faint: #7d8480;
  --accent: #c8ff3e;
  --accent-ink: #0b0d0c;
  --danger: #ff6b6b;
  --ok: #67e8a3;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@supports (font-variation-settings: normal) {
  :root { --font-sans: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
button { font: inherit; cursor: pointer; }

/* The HTML `hidden` attribute is `display: none` in the UA stylesheet without
   `!important`, so any later `display` rule (e.g. `.profile { display: flex }`)
   silently overrides it. Force it to win. */
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: 6px;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* ---------- Layout ---------- */
.site-header,
.hero__inner,
.features,
.manifesto,
.closing__inner,
.site-footer {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--accent); }
.brand__mark { width: 26px; height: 26px; color: var(--accent); }
.brand__word { font-size: 19px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); }

.cta,
.site-nav a.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform .12s ease, background .15s ease;
}
.cta:hover,
.site-nav a.cta:hover { background: #d6ff63; color: var(--accent-ink); transform: translateY(-1px); }
.cta--big { padding: 14px 22px; font-size: 16px; margin-top: 24px; }

@media (max-width: 640px) {
  .site-nav a:not(.cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(200,255,62,0.08), transparent 60%),
    radial-gradient(40% 50% at 90% 10%, rgba(103,232,163,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,255,62,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200,255,62,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(200,255,62,0.04); }
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.lede {
  margin: 0 0 36px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.5;
}

/* ---------- Waitlist form ---------- */
.waitlist {
  margin: 0 0 16px;
  max-width: 560px;
}
.waitlist__row {
  display: flex;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  /* Clip the rectangular input/autofill fill to the pill shape so its sharp
     corners can't poke through the rounded ends. The outer focus glow uses
     an outset box-shadow, which is unaffected by overflow:hidden. */
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.waitlist__row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,255,62,0.15);
}
.waitlist__row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  padding: 12px 16px;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.waitlist__row input[type="email"]:focus,
.waitlist__row input[type="email"]:focus-visible {
  outline: 0;
  box-shadow: none;
  border: 0;
}
.waitlist__row input[type="email"]::placeholder { color: var(--ink-faint); }

/* Suppress Chrome/Safari autofill chrome (cream background + accent-coloured
   highlight ring) so the input keeps matching its dark container.
   The 1000px inset shadow is the standard trick for the background;
   we also need to flatten any border/outline the autofill state introduces. */
.waitlist__row input[type="email"]:-webkit-autofill,
.waitlist__row input[type="email"]:-webkit-autofill:hover,
.waitlist__row input[type="email"]:-webkit-autofill:focus,
.waitlist__row input[type="email"]:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-elev) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-elev) inset !important;
  border: 0 !important;
  outline: 0 !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}
.profile__field input[type="text"]:-webkit-autofill,
.profile__field input[type="text"]:-webkit-autofill:hover,
.profile__field input[type="text"]:-webkit-autofill:focus,
.profile__field input[type="text"]:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-soft) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-soft) inset !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}
.waitlist__row button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .15s ease, transform .12s ease;
  white-space: nowrap;
}
.waitlist__row button:hover { background: #d6ff63; transform: translateY(-1px); }
.waitlist__row button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 4px 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.45;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.consent a { color: var(--ink); }

.waitlist__status {
  margin: 14px 4px 0;
  min-height: 1.4em;
  font-size: 14px;
  color: var(--ok);
}
.waitlist__status[data-state="error"] { color: var(--danger); }

.micro {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 540px;
}

@media (max-width: 540px) {
  .waitlist__row { flex-direction: column; border-radius: 16px; padding: 8px; }
  .waitlist__row input[type="email"] { padding: 14px; }
  .waitlist__row button { width: 100%; padding: 14px; border-radius: 12px; }
}

/* ---------- Profile questionnaire (stage 2) ---------- */
.signup { max-width: 640px; }

.profile {
  margin: 0;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.profile__intro h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 600;
  outline: none;
}
.profile__intro p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14px;
}

.profile__field { border: 0; padding: 0; margin: 0; }
.profile__field legend,
.profile__field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0;
}
.profile__field .muted { color: var(--ink-faint); font-weight: 400; }

.profile__field input[type="text"] {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.profile__field input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,255,62,0.15);
}
.profile__field input[type="text"]::placeholder { color: var(--ink-faint); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chips span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-dim);
  font-size: 14px;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.chips label:hover span { color: var(--ink); border-color: #2e3438; }
.chips input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chips input[type="radio"]:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}

.profile__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.profile__actions button[type="submit"] {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .15s ease, transform .12s ease;
}
.profile__actions button[type="submit"]:hover { background: #d6ff63; transform: translateY(-1px); }
.profile__actions button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.profile__actions .link {
  background: none;
  border: 0;
  color: var(--ink-dim);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 3px;
  padding: 8px 4px;
}
.profile__actions .link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.profile__actions .link:disabled { opacity: 0.5; cursor: not-allowed; }

.profile__status {
  margin: 0;
  min-height: 1.4em;
  font-size: 14px;
  color: var(--ok);
}
.profile__status[data-state="error"] { color: var(--danger); }

.done {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.done h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 600;
  outline: none;
}
.done p { margin: 0; color: var(--ink-dim); }

/* ---------- Features ---------- */
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 48px;
  max-width: 720px;
  line-height: 1.1;
}

.features {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.features__grid article {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features__grid h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.features__grid h3::before {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}
.features__grid p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ---------- Manifesto ---------- */
.manifesto {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}
.manifesto__body {
  max-width: 720px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-dim);
  line-height: 1.65;
}
.manifesto__body p { margin: 0 0 1.2em; }
.manifesto__body p:last-child { margin-bottom: 0; }
.manifesto__sign { color: var(--ink-faint); font-size: 14px; margin-top: 28px !important; }

/* ---------- Closing ---------- */
.closing {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(200,255,62,0.06), transparent 70%),
    var(--bg);
  padding: 80px 0 100px;
}
.closing__inner {
  text-align: center;
  max-width: 640px;
}
.closing h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 600;
}
.closing p { margin: 0; color: var(--ink-dim); }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}
.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.brand--footer .brand__mark { width: 22px; height: 22px; }
.brand--footer .brand__word { font-size: 17px; }

.site-footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
}
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__legal {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  max-width: 760px;
  line-height: 1.5;
}

/* ---------- Document pages (privacy, terms) ---------- */
.doc {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 60px 24px 100px;
}
.doc h1 {
  font-size: clamp(34px, 4vw, 48px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.doc .doc__meta {
  color: var(--ink-faint);
  margin: 0 0 40px;
  font-size: 14px;
}
.doc h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 {
  font-size: 17px;
  margin: 28px 0 8px;
  font-weight: 600;
  color: var(--ink);
}
.doc p, .doc li {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
}
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0 16px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); }
.doc__back {
  display: inline-block;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
}
.doc__back:hover { color: var(--accent); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: top;
}
.doc th { color: var(--ink); font-weight: 600; background: var(--bg-soft); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
