/* Foreground — marketing site.
   Dark by default: the product is about everything else going black.
   A light variant follows at the bottom for people who ask for one. */

:root {
  --bg:      #08090a;
  --panel:   #101214;
  --edge:    #21262b;
  --ink:     #f2f4f6;
  --ink-dim: #9aa3ac;
  --accent:  #f2f4f6;
  --accent-ink: #08090a;

  --measure: 34rem;
  --page:    64rem;
  --radius:  14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

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

p { margin: 0; }

/* ---------- layout ---------- */

main { max-width: var(--page); margin: 0 auto; padding: 0 1.5rem; }

section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--edge);
}

section:first-child { border-top: 0; }

section > h2 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 2.5rem;
}

.lede {
  max-width: var(--measure);
  color: var(--ink-dim);
  font-size: 1.125rem;
}

.fineprint {
  color: var(--ink-dim);
  font-size: 0.875rem;
}

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.bar nav a { color: var(--ink-dim); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  padding-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 4rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero .lede { font-size: 1.0625rem; }

.hero .cta { margin-bottom: 0.75rem; }

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.keys {
  display: flex;
  gap: 0.375rem;
  margin: 2rem 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--edge);
  border-bottom-width: 2px;
  border-radius: 8px;
  background: var(--panel);
  font: 500 0.9375rem/1 ui-monospace, "SF Mono", Menlo, monospace;
}

.grid kbd {
  min-width: 0;
  height: auto;
  padding: 0.1em 0.35em;
  border-bottom-width: 1px;
  font-size: 0.8125em;
}

/* ---------- buttons ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--edge);
}

.btn-small { padding: 0.4rem 1rem; font-size: 0.9375rem; }

/* ---------- the demo video ---------- */

.video { margin: 0; }

.video video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      color-mix(in srgb, var(--ink) 3%, transparent) 12px 24px
    ),
    var(--panel);
  object-fit: cover;
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.5rem;
  max-width: 56rem;
}

.grid p {
  margin-top: 0.4rem;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

.grid h3 { font-size: 1.0625rem; }

/* ---------- details ---------- */

.specs { margin: 0; display: grid; gap: 0; }

.specs > div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--edge);
}

.specs > div:first-child { border-top: 0; padding-top: 0; }

.specs dt { font-weight: 500; }
.specs dd { margin: 0; color: var(--ink-dim); }

@media (max-width: 34rem) {
  .specs > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- buy ---------- */

.buy { text-align: center; }
.buy h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.buy .lede { margin: 0 auto; }
.buy .cta { justify-content: center; }
.buy .price {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

/* ---------- inner / utility pages (success, lookup, privacy, changelog) ---------- */

.page-narrow {
  max-width: 40rem;
  padding-top: 4rem;
}

.page-narrow h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.prose p + p,
.prose p + h3,
.prose ul + h3 {
  margin-top: 1.25rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-dim);
}

.key-box {
  margin: 2rem 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.key-box-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--edge);
  font-size: 0.875rem;
  color: var(--ink-dim);
}

.key-box pre {
  margin: 0;
  padding: 1.25rem 1rem;
  font: 500 0.875rem/1.55 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}

.steps-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel);
}

.steps-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.steps-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

.lookup-form {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
}

.lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lookup-row input {
  flex: 1 1 16rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.lookup-row input:focus {
  outline: 2px solid var(--ink-dim);
  outline-offset: 2px;
}

.notice {
  margin-top: 1.5rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.9375rem;
}

.notice-error {
  border-color: #ef4444;
  color: #fca5a5;
}

/* ---------- footer ---------- */

footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

footer p { display: flex; align-items: center; gap: 0.5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- light ---------- */

@media (prefers-color-scheme: light) {
  :root {
    --bg:      #ffffff;
    --panel:   #f5f6f7;
    --edge:    #e2e5e8;
    --ink:     #0b0d0e;
    --ink-dim: #62696f;
    --accent:  #0b0d0e;
    --accent-ink: #ffffff;
  }
}

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