:root {
  color-scheme: light dark;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-muted: #eaf0f8;
  --ink: #182235;
  --muted: #475569;
  --line: #cbd5e1;
  --accent: #0758bf;
  --accent-strong: #003f91;
  --accent-soft: #dbeafe;
  --focus: #f59e0b;
  --notice: #5f3300;
  --notice-bg: #fff3d6;
  --shadow: 0 1rem 3rem rgb(22 34 53 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.25rem;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 19ch;
  font-size: clamp(2.35rem, 9vw, 5rem);
}

h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p,
li {
  color: var(--muted);
}

li + li {
  margin-top: 0.5rem;
}

.container {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.55rem 0.8rem;
  border-radius: 0.35rem;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 92%, transparent);
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.25rem;
  min-height: 4.75rem;
  padding-block: 0.75rem;
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
}

.hero {
  padding-block: clamp(4.5rem, 14vw, 8.5rem);
  background:
    radial-gradient(circle at 85% 10%, var(--accent-soft), transparent 34rem),
    var(--page);
}

.hero-product {
  padding-bottom: clamp(3.5rem, 10vw, 6rem);
}

.hero-content {
  max-width: 52rem;
}

.narrow {
  max-width: 46rem;
}

.eyebrow,
.card-kicker {
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 44rem;
  font-size: clamp(1.08rem, 2.6vw, 1.35rem);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.section-tint {
  background: var(--surface-muted);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin-bottom: 0.9rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 0.4rem 1.3rem rgb(22 34 53 / 5%);
}

.card-featured {
  border-color: var(--accent);
}

.card p:last-of-type {
  margin-bottom: 1.3rem;
}

.text-link {
  width: fit-content;
  margin-top: auto;
  font-weight: 750;
}

.content-grid,
.callout-grid {
  display: grid;
  gap: 1.75rem;
}

.prose {
  max-width: 42rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.callout {
  padding: 1.5rem;
  border-left: 0.35rem solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--surface);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.store-button {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface-muted);
  color: var(--muted);
  font: inherit;
  font-weight: 750;
}

.store-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.store-button span {
  font-size: 0.85rem;
  font-weight: 650;
}

.draft-banner {
  margin: 0;
  padding: 0.65rem 1rem;
  background: var(--notice-bg);
  color: var(--notice);
  font-size: 0.93rem;
  font-weight: 750;
  text-align: center;
}

.legal-main {
  padding-block: clamp(3.25rem, 9vw, 6rem);
}

.legal-content {
  max-width: 50rem;
}

.legal-content h1 {
  margin-bottom: 1rem;
}

.legal-content section {
  margin-top: 2.5rem;
  padding-top: 0.15rem;
}

.legal-content section h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.placeholder-main,
.not-found-main {
  display: grid;
  min-height: calc(100vh - 11rem);
  place-items: center;
  padding-block: 4rem;
}

.placeholder-card,
.not-found-card {
  max-width: 44rem;
  padding: clamp(2rem, 8vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.45rem;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  color: #fff;
}

.site-footer {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-content {
  display: grid;
  gap: 0.35rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-content strong {
  color: var(--ink);
}

@media (min-width: 42rem) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid,
  .callout-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1726;
    --surface: #172235;
    --surface-muted: #1f3048;
    --ink: #f4f7fb;
    --muted: #c5d1e2;
    --line: #3a4b64;
    --accent: #96c3ff;
    --accent-strong: #b9d7ff;
    --accent-soft: #1e497e;
    --focus: #ffd37d;
    --notice: #211600;
    --notice-bg: #ffd37d;
    --shadow: 0 1rem 3rem rgb(0 0 0 / 30%);
  }

  .site-header {
    background: color-mix(in srgb, var(--page) 90%, transparent);
  }

  .button {
    color: #10243e;
    background: var(--accent-strong);
  }

  .button:hover {
    color: #10243e;
    background: var(--accent);
  }
}

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