:root {
  --bg: #f4f7f6;
  --bg-deep: #e7f1ee;
  --ink: #17211f;
  --muted: #3e4f4a;
  --soft: #5c6e68;
  --line: #d7e2de;
  --card: #ffffff;
  --teal: #1fba9e;
  --teal-deep: #0c6e5e;
  --teal-ink: #084f44;
  --teal-soft: #dbf5ed;
  --code: #0f2924;
  --code-text: #c8f8e4;
  --warning: #8a4e08;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
  --radius: 22px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; }

a { color: var(--teal-ink); }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 246, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.brand svg { display: block; }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-button {
  margin-left: auto;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-button > span:not(.vh),
.nav-button > span:not(.vh)::before,
.nav-button > span:not(.vh)::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-button > span:not(.vh)::before,
.nav-button > span:not(.vh)::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-button > span:not(.vh)::before { top: -6px; }
.nav-button > span:not(.vh)::after { top: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover { background: rgba(255, 255, 255, 0.7); }

.nav-links .soon {
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
}

.nav-links .soon:hover { background: #24312e; color: white; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0 24px;
}

.hero > *,
.split > *,
.privacy-band > *,
.waitlist > *,
.steps > *,
.specs > *,
.plans > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: block;
}

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; }

h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 750;
}

.lede {
  margin: 0 0 24px;
  font-size: 20px;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: white;
  border-radius: 14px;
  padding: 10px 16px 10px 12px;
  min-height: 56px;
  text-decoration: none;
}

.store-badge small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.store-badge strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.button, button {
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--teal-deep);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: 0;
}

.button:hover { background: var(--teal-ink); color: white; }

.button.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.secondary:hover { background: #f7fbfa; color: var(--ink); }

.fine {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.hero-visual { display: flex; justify-content: center; }

.device {
  width: min(280px, 78vw);
  background: #141716;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  background: var(--bg);
}

.caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--soft);
  font-size: 13px;
  max-width: 280px;
}

section { padding: 72px 0; }

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
}

.section-intro {
  margin: 0 0 32px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.04);
}

.step b {
  display: block;
  color: var(--teal-deep);
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.step h3 { margin: 0 0 8px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .copy { order: 2; }

.split h2 { font-size: clamp(28px, 3vw, 40px); }
.split p { color: var(--muted); }
.split ul { margin: 0; padding-left: 18px; color: var(--muted); }
.split li + li { margin-top: 8px; }

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spec {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
}

.spec h3 { margin: 0 0 8px; font-size: 20px; }
.spec p { margin: 0; color: var(--muted); }

.demo-block {
  background: white;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.format-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.format-demo input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.format-tabs label {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
}

.format-demo input:focus-visible + label {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

.format-demo:has(#format-md:checked) label[for="format-md"],
.format-demo:has(#format-json:checked) label[for="format-json"],
.format-demo:has(#format-csv:checked) label[for="format-csv"] {
  background: var(--teal-deep);
  color: white;
}

.format-panes pre {
  display: none;
  margin: 0;
  background: var(--code);
  color: var(--code-text);
  border-radius: 18px;
  padding: 18px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.format-demo:has(#format-md:checked) pre.md,
.format-demo:has(#format-json:checked) pre.json,
.format-demo:has(#format-csv:checked) pre.csv { display: block; }

.demo-note {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.privacy-band {
  background: white;
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.privacy-band ul { margin: 0; padding-left: 18px; }
.privacy-band li + li { margin-top: 8px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  background: white;
  border-radius: 24px;
  padding: 22px;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan.featured {
  background: #e7f8f4;
  border-color: var(--teal);
}

.plan-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan h3 { margin: 0; font-size: 24px; }
.plan .price { margin-left: auto; font-size: 24px; font-weight: 750; letter-spacing: -0.03em; }
.plan p { margin: 0; color: var(--muted); }
.plan .button { margin-top: auto; }

.badge {
  background: var(--teal-deep);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 4px 8px;
}

.checks { margin: 8px 0 0; padding: 0; list-style: none; }
.checks li { padding-left: 22px; position: relative; margin-top: 6px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-deep); font-weight: 800; }

.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
  background: white;
  border-radius: 16px;
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.faq details p { margin: 0 0 16px; color: var(--muted); }

.waitlist {
  background: var(--ink);
  color: white;
  border-radius: 28px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.waitlist h2, .waitlist p { color: white; }
.waitlist .section-intro { color: rgba(255, 255, 255, 0.78); }

form { display: flex; flex-direction: column; gap: 10px; }

label { font-weight: 700; font-size: 14px; }

input[type="email"] {
  min-height: 52px;
  border-radius: 14px;
  border: 0;
  padding: 0 14px;
  font: inherit;
  width: 100%;
}

.form-note {
  margin: 0;
  color: #f3d7a1;
  font-size: 14px;
}

.form-note code {
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer {
  padding: 28px 0 48px;
  color: var(--soft);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--muted); }

.page-hero { padding: 36px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.prose {
  max-width: 44rem;
  padding-bottom: 64px;
}
.prose h2 { font-size: 28px; margin: 32px 0 8px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 18px; }

.callout {
  background: var(--teal-soft);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-button { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 20px 16px;
    background: rgba(244, 247, 246, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { width: 100%; }
  .hero, .split, .split.reverse, .privacy-band, .waitlist {
    grid-template-columns: 1fr;
  }
  .split.reverse .copy { order: 0; }
  .steps, .specs, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
