:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #101828;
  --muted: #4a5565;
  --border: #e4e7ec;
  --primary: #4f46e5;
  --primary-text: #ffffff;
  --accent: #eef2ff;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --radius: 14px;
  --max: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a2e;
    --text: #eef2ff;
    --muted: #a9b4c9;
    --border: #223048;
    --primary: #818cf8;
    --primary-text: #0b1020;
    --accent: #17203a;
    --warning: #fbbf24;
    --warning-bg: #1f1a0d;
  }
}

* {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 0 0 10px 0;
  border: 1px solid var(--border);
  z-index: 10;
}

.skip:focus {
  left: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

header.site .name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

header.site .name a {
  color: inherit;
  text-decoration: none;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
}

header.site nav a:hover {
  color: var(--text);
}

.hero {
  /* Keep the side gutters from .wrap: a `padding` shorthand here wiped them and
     ran the headline to the screen edges on a phone. */
  padding: 72px 20px 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p.lede {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-text);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 56px 0;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.section-lede {
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Product card: the only place on the page with its own layout. */
.product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-head img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.product-head h3 {
  margin: 0;
  font-size: 20px;
}

.product-head .kind {
  color: var(--muted);
  font-size: 14px;
}

.product ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.product li {
  margin: 4px 0;
}

.product .actions {
  justify-content: flex-start;
  /* Cards in a row share a height; keep the buttons on the same line. */
  margin-top: auto;
  padding-top: 4px;
}

.product .price {
  font-weight: 700;
}

.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
}

.badge.soon {
  background: var(--warning-bg);
  color: var(--warning);
}

.support {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support > div {
  flex: 1 1 340px;
}

.support p {
  margin: 0;
  color: var(--muted);
}

.support > .button {
  flex: 0 0 auto;
}

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 20px;
  padding: 28px 0;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  /* Three nav links do not fit beside the wordmark on a phone; give them their
     own row instead of wrapping each label onto three lines. */
  header.site .wrap {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  header.site nav {
    flex-basis: 100%;
    margin-left: 0;
    gap: 16px;
    padding-bottom: 10px;
    font-size: 13px;
  }

  .hero {
    padding-top: 48px;
  }

  section {
    padding: 40px 0;
  }
}
