/* Klipti — pre-launch. Dark, one accent, no images, no webfonts. */

:root {
  --bg: #0a0b0d;
  --bg-elev: #121419;
  --bg-elev-2: #171a20;
  --line: #23272f;
  --line-soft: #1a1d23;
  --text: #edeff2;
  --muted: #9aa3b0;
  --accent: #b8ff3c;
  --accent-dim: #8fd41f;
  --accent-ink: #0a0b0d;
  --danger: #ff6b6b;

  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A single soft accent bloom behind the hero. Cheap, no image. */
body::before {
  content: "";
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 90vh;
  background: radial-gradient(
    60% 55% at 50% 40%,
    rgba(184, 255, 60, 0.10) 0%,
    rgba(184, 255, 60, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

p { margin: 0; }

a { color: var(--accent); text-decoration-color: rgba(184, 255, 60, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

strong { font-weight: 650; color: var(--text); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}
.wordmark-dot { color: var(--accent); }
.wordmark-sm { font-size: 22px; }

.launch-chip {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}

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

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line-soft); }

.hero { padding: 72px 0 88px; }

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

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.accent { color: var(--accent); }

.lede {
  font-size: clamp(1.02rem, 2.3vw, 1.19rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 40px;
}

/* ---------- Forms ---------- */

.form-slot { max-width: 520px; }

.waitlist {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.field { display: grid; gap: 8px; }

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

input[type="email"],
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]::placeholder { color: #78818f; }

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 255, 60, 0.14);
}

input[type="email"][aria-invalid="true"] { border-color: var(--danger); }

.roles {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.roles legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 8px;
}

.role {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.role:hover { border-color: #333844; }

.role input { accent-color: var(--accent); margin: 0; width: 17px; height: 17px; }

.role:has(input:checked) {
  border-color: var(--accent);
  background: rgba(184, 255, 60, 0.06);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  accent-color: var(--accent);
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  flex: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}
.btn:hover { background: var(--accent-dim); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

.btn-ghost {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); }

.form-msg {
  font-size: 14px;
  margin: 0;
  min-height: 0;
}
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--accent); }

/* Success state replaces the form body. */
.waitlist.is-done > *:not(.form-done) { display: none; }

.form-done {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}
.form-done h3 {
  font-size: 1.32rem;
  color: var(--accent);
}
.form-done p {
  color: var(--muted);
  font-size: 15px;
}

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

section > h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  margin-bottom: 44px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.col {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.col > h3 {
  font-size: 1.16rem;
  color: var(--accent);
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.steps p {
  grid-column: 2;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Trust ---------- */

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-list li {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}

.trust-list h3 {
  font-size: 1.04rem;
  margin-bottom: 10px;
}

.trust-list p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.faq-list dt {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.faq-list dt:first-child { border-top: 0; padding-top: 0; }

.faq-list dd {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 15px;
  max-width: 74ch;
}

/* ---------- Bottom CTA ---------- */

.cta .lede { margin-bottom: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 64px;
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-entity {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--muted);
}
.footer-entity strong { display: inline-block; margin-bottom: 2px; }

.site-footer p { font-size: 15px; color: var(--muted); }

.footer-h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-en { font-size: 14px; line-height: 1.65; max-width: 62ch; }

.footer-legal {
  font-size: 13px !important;
  /* 5.3:1 on --bg. #6f7885 read nicer but landed at 4.4:1, just under AA. */
  color: #7b8593 !important;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  max-width: 78ch;
}

/* ---------- Worker-rendered 404 / no-JS result page ---------- */

body.minimal { display: grid; place-items: center; min-height: 100vh; padding: 24px; }

.minimal-card {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 420px;
}
.minimal-card h1 { font-size: 2.1rem; margin: 10px 0 0; }
.minimal-card p { color: var(--muted); }
.minimal-card .btn-ghost { margin-top: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .site-header { padding-top: 22px; }
  .launch-chip { font-size: 12px; padding: 5px 11px; }
  .waitlist { padding: 20px; }
  .col { padding: 26px 22px; }
  section > h2 { margin-bottom: 34px; }
}
