:root {
  --ink: #000000;
  --paper: #ffffff;
  --surface: #f0f0f2;
  --line: #d2d2d7;
  --muted: #6e6e73;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);
  --radius-pill: 980px;
  --radius-card: 24px;
  --pad: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.landing {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.landing main {
  flex: 1;
  min-height: 0;
  display: flex;
}
body.landing .hero {
  flex: 1;
  min-height: 0;
  justify-content: center;
  padding: 40px var(--pad) 56px;
  max-width: none;
  margin: 0;
}
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.atmosphere,
.grid-fade {
  display: none;
}

.nav {
  height: 64px;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--pad);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.wordmark {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .soft { font-weight: 500; color: var(--muted); }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: none;
  background: none;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--ink); background: none; }

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 72px var(--pad) 88px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}
.hero.compact { min-height: auto; padding-bottom: 40px; }
.eyebrow,
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.brand {
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
body.landing .hero h1 {
  max-width: 14ch;
  margin-bottom: 32px;
}
.lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 32px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-weight: 500;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.cta.primary {
  background: var(--ink);
  color: var(--paper);
}
.cta.primary:hover { opacity: 0.82; }
.cta.ghost {
  background: var(--surface);
  color: var(--ink);
}
.cta.ghost:hover { background: #e8e8ed; }

.section {
  padding: 72px var(--pad);
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.section.wide { max-width: 920px; }
.section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.section h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 28px 0 10px;
}
.section p,
.section li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.section p { margin-bottom: 16px; }
.section ul { padding-left: 1.15rem; margin-bottom: 16px; }
.section li { margin-bottom: 0.4rem; }
.section.final .cta { margin-top: 0.25rem; }
.section a:not(.cta) {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.card p { margin-bottom: 0; font-size: 15px; color: var(--muted); }
.sku {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  margin-bottom: 12px;
}

.table-wrap { overflow-x: auto; margin: 20px 0 24px; }
table.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.sku-table th,
.sku-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sku-table th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.sku-table td { color: var(--ink); }
.sku-table .muted { color: var(--muted); font-weight: 400; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 8px 0 14px;
  color: var(--ink);
}
.price span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.price-note,
.price-note-inline {
  font-size: 13px;
  color: var(--muted);
}
.price-note { margin: -4px 0 20px; }
.price-note-inline { display: inline; font-weight: 500; }
.card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.card.featured h3,
.card.featured .sku,
.card.featured .price { color: var(--paper); }
.card.featured p,
.card.featured .price span { color: #c7c7cc; }
.card.featured .badge {
  background: #1d1d1f;
  color: #a1a1a6;
}
.card.featured .cta.primary {
  background: var(--paper);
  color: var(--ink);
}
.card.featured .cta.ghost {
  background: #1d1d1f;
  color: var(--paper);
}
.card.featured .cta.ghost:hover { background: #2c2c2e; }
.card .cta-row { margin-top: 20px; }
.partner-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.formula {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: -0.02em;
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
  margin: 8px 0 20px;
}

.waitlist {
  display: grid;
  gap: 14px;
  max-width: 28rem;
  margin: 20px 0 8px;
}
.waitlist label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.waitlist .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist input,
.waitlist select,
.waitlist textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
}
.waitlist input:focus,
.waitlist select:focus,
.waitlist textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
}
.waitlist textarea { resize: vertical; min-height: 5.5rem; }
.waitlist .cta-row { margin-top: 4px; }
.waitlist button.cta { cursor: pointer; }
.form-status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--muted);
}
.form-status.ok { color: var(--ink); }
.form-status.err { color: #ff3b30; }

pre, code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
code.inline {
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.12em 0.4em;
  border-radius: 8px;
}
pre.code {
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 18px 20px;
  border-radius: 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0 22px;
}

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.api-lock {
  min-height: calc(100vh - 64px - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 560px;
  margin: 0 auto;
  padding: 72px var(--pad) 88px;
  width: 100%;
}
.api-lock .find-line,
.api-lock .inquire {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.api-lock a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
hr.hairline {
  border: none;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 28px 0;
}
.waitlist .optional {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
body[data-site="labs"] .labs-request {
  border-top: none;
  padding-top: 0;
}
body[data-site="labs"] .form-alt {
  margin-top: 8px;
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 28px var(--pad) 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  max-width: 920px;
  margin: 0 auto;
}
footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  :root { --pad: 18px; }
  .nav { height: 56px; min-height: 56px; padding: 0 14px; }
  .nav-link { padding: 0; font-size: 13px; }
  .hero, .section, .api-lock { padding-left: var(--pad); padding-right: var(--pad); }
  body.landing .hero { padding: 28px var(--pad) 36px; }
  .price-grid { grid-template-columns: 1fr; }
  .brand { font-size: 2.6rem; }
}

@media (max-height: 640px) {
  body.landing .hero { padding-top: 20px; padding-bottom: 24px; }
  body.landing .hero-badge { margin-bottom: 18px; }
  body.landing .hero h1 { font-size: clamp(1.75rem, 6vh, 2.6rem); margin-bottom: 12px; }
  body.landing .lede { margin-bottom: 20px; font-size: 15px; }
}

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