/* Self-hosted copies of Google Fonts' Sora and Manrope (latin subset, variable weight; both SIL OFL 1.1). */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/fonts/sora-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); }

:root {
  --bg: #0b0b0b;
  --surface: #121512;
  --surface-2: #1a1f1a;
  --text: #e5eee5;
  --muted: #8fa08f;
  --accent: #00ff66;
  --accent-2: #00c853;
  --accent-fg: #0b0b0b;
  --border: rgba(229, 238, 229, 0.1);
  --radius: 24px;
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

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

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--accent); color: var(--accent-fg); font-weight: 700;
  padding: 12px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
h2.title { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.0625rem; max-width: 560px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 11, 11, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.top img { height: 36px; width: auto; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a.link {
  color: var(--muted); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 999px; min-height: 44px;
  display: none; align-items: center;
}
.top nav a.link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-2); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 32px; font-size: 1.125rem; }

/* Waitlist form */
.waitlist { max-width: 480px; }
.waitlist .fields { display: flex; flex-direction: column; gap: 16px; }
.waitlist label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.waitlist input[type='email'], .waitlist input[type='text'], .waitlist select {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(229, 238, 229, 0.25);
  background: var(--surface); color: var(--text); font: 500 1rem var(--font-body);
}
.waitlist input::placeholder { color: #7d8d7d; }
.waitlist select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%238fa08f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center;
}
.waitlist input:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist input[aria-invalid='true'], .waitlist select[aria-invalid='true'] { border-color: #ff8a8a; }
.waitlist label.check {
  display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 4px 0 0; font-weight: 500; cursor: pointer;
}
.waitlist input[type='checkbox'] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin: 0; }
.waitlist .opt { color: var(--muted); font-weight: 500; }
.waitlist .field-error { margin: 8px 0 0 4px; color: #ff8a8a; font-size: 0.875rem; font-weight: 600; }
.beta-note { color: var(--muted); font-size: 0.9375rem; margin: 0 0 24px; }
.hero .beta-note { margin: 16px 0 0; }
.done { max-width: 480px; margin: 28px auto 0; text-align: left; }
.done h3 { font-size: 1.5rem; margin-bottom: 12px; }
.done p { color: #c9d4c9; margin: 0 0 20px; }
.done a:not(.btn) { padding: 13px 2px; margin: -13px -2px; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .consent { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.waitlist .status { margin-top: 12px; min-height: 1.5em; font-weight: 600; font-size: 0.9375rem; }
.waitlist .status.ok { color: var(--accent); }
.waitlist .status.err { color: #ff8a8a; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(100%, 300px); aspect-ratio: 640 / 1385; border-radius: 44px; padding: 10px;
  background: #1d221d; border: 2px solid #2b322b; box-shadow: 0 30px 80px rgba(0, 255, 102, 0.08), 0 20px 50px rgba(0, 0, 0, 0.6);
}
.phone::before {
  content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%);
  background: #0b0b0b; border-radius: 999px; z-index: 1; opacity: 0.0;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #0b0b0b; }

/* How it works */
.steps { display: grid; gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step .num {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px;
  background: rgba(0, 255, 102, 0.12); color: var(--accent); font: 700 1.0625rem var(--font-head); margin-bottom: 20px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Feature tabs */
.features { background: linear-gradient(180deg, transparent, rgba(18, 21, 18, 0.6) 20%, rgba(18, 21, 18, 0.6) 80%, transparent); }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 40px; }
.tab {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); font: 600 0.9375rem var(--font-body); cursor: pointer;
}
.tab:hover { color: var(--text); border-color: rgba(229, 238, 229, 0.3); }
.tab[aria-selected='true'] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.panel { display: grid; gap: 40px; align-items: center; }
.panel[hidden] { display: none; }
.panel + .panel { margin-top: 56px; }
.panel h3 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: 12px; }
.panel p.desc { color: var(--muted); font-size: 1.0625rem; margin-bottom: 24px; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.panel li { position: relative; padding-left: 32px; }
.panel li::before {
  content: ''; position: absolute; left: 0; top: 0.4em; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(0, 255, 102, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%2300ff66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: fade 0.25s ease; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 22px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer strong { color: var(--text); }

/* CTA */
.cta-box {
  background: radial-gradient(120% 140% at 50% 0%, rgba(0, 255, 102, 0.1), transparent 60%), var(--surface);
  border: 1px solid var(--border); border-radius: 32px; padding: 56px 24px; text-align: center;
}
.cta-box .waitlist { margin: 28px auto 0; text-align: left; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: grid; gap: 20px; }
footer img { height: 32px; width: auto; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 56px 0 80px; max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #c9d4c9; }
.legal p + p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal .meta { color: var(--muted); margin-bottom: 32px; }

@media (min-width: 768px) {
  .top nav a.link { display: inline-flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .panel { grid-template-columns: 1fr 340px; gap: 72px; }
  .cta-box { padding: 72px 48px; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  section { padding: 104px 0; }
  .hero { padding: 72px 0 104px; }
}
.waitlist .fields .btn { width: 100%; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.cta-box .lead { margin-left: auto; margin-right: auto; }
.foot-tag { margin-top: 12px; }
.nojs { text-align: center; padding: 16px; }

/* Touch targets: the logo link and links inside sentences get a 44 px hit area without moving the text. */
.top .wrap > a { display: inline-flex; align-items: center; min-height: 44px; }
.consent a, .answer a, .legal a, .nojs a { padding: 13px 2px; margin: -13px -2px; }
section[id], .hero { scroll-margin-top: 68px; }
