/* Variables */
:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #101216;
  --text: #f2f2f0;
  --muted: #a8adb7;
  --line: #2b2e35;
  --accent: #e1e1da;
  --page-gutter: clamp(1rem, 4vw, 2rem);
  --content-width: 72rem;
  --reading-width: 48rem;
  --section-space: clamp(4rem, 9vw, 7.5rem);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #171a21 0%, var(--bg) 38rem);
  color: var(--text);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

p,
ul {
  margin-top: 0;
}

img,
svg {
  max-width: 100%;
}

/* Layout */
.shell {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--content-width));
  margin-inline: auto;
}

.site-main {
  flex: 1;
  width: 100%;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.home-main {
  padding-block: 0;
  overflow-x: hidden;
}

.home-section {
  padding-block: var(--section-space);
  scroll-margin-top: 5.5rem;
}

.home-section + .home-section {
  border-top: 1px solid var(--line);
}

.hero,
.page-intro,
.document {
  max-width: var(--reading-width);
}

.hero,
.page-intro {
  min-height: clamp(18rem, 48vh, 32rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-main .hero {
  min-height: clamp(38rem, 82vh, 52rem);
}

/* Accessibility */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: var(--page-gutter);
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(calc(-100% - 1rem));
  border: 2px solid var(--accent);
  border-radius: 0.4rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--bg);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.94);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-wordmark {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 750;
}

.wordmark {
  width: clamp(8rem, 17vw, 10.5rem);
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.wordmark-image {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.primary-nav {
  gap: 0.25rem;
}

.primary-nav a,
.footer-nav a,
.footer-meta a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.primary-nav a {
  padding-inline: 0.75rem;
  border-radius: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.4em;
}

/* Content */
.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}

.page-intro h1,
.document h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}

.subtitle {
  max-width: 32.5rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-copy {
  max-width: 42rem;
  margin-top: 1.75rem;
}

.hero-copy p,
.reading-section p,
.product-card p,
.accuracy-copy p,
.updates-copy p,
.placeholder-caption,
.accuracy-summary,
.availability-section > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-copy p:last-child,
.reading-section > p:last-child,
.product-card p:last-child,
.accuracy-copy p:last-child,
.updates-copy p:last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.button-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.button-link:hover {
  border-color: var(--accent);
}

.button-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.button-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Homepage */
.home-section h2 {
  max-width: 18ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.home-section h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.reading-section {
  max-width: var(--reading-width);
}

.reading-section > p,
.reading-section > .closing-statement,
.reading-section > .feature-list {
  max-width: 43rem;
}

.feature-list {
  margin-bottom: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.feature-list li {
  padding-left: 0.4rem;
  line-height: 1.7;
}

.feature-list li + li {
  margin-top: 0.4rem;
}

.closing-statement {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

.closing-statement p {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.product-preview {
  max-width: var(--content-width);
}

.product-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.placeholder-caption {
  max-width: 42rem;
  margin: 1rem auto 0;
  text-align: center;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(16, 18, 22, 0.72);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.product-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.card-copy {
  flex: 1;
  margin-bottom: 2rem;
}

.product-card .product-screenshot {
  align-self: end;
}

.accuracy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.feature-list-heading {
  margin-bottom: 1rem;
  padding-left: 1.65rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  margin-top: 0;
}

.feature-grid li + li {
  margin-top: 0;
}

.accuracy-summary {
  max-width: 50rem;
  margin: 1rem 0 0;
}

.availability-section {
  max-width: 52rem;
  text-align: center;
}

.availability-section h2 {
  max-width: none;
}

.availability-section > p {
  max-width: 42rem;
  margin-inline: auto;
}

.availability-section .eyebrow {
  color: var(--text);
}

.store-cta {
  width: fit-content;
  min-height: 2.75rem;
  margin: 2rem auto;
  display: grid;
  place-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.store-cta p {
  margin: 0;
}

.updates-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 2rem clamp(2rem, 8vw, 7rem);
  align-items: center;
}

.email-form-embed {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* Document */
.document h1 {
  max-width: none;
  margin-bottom: 1.75rem;
}

.document .subtitle {
  margin-bottom: 2.5rem;
}

.document h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  line-height: 1.3;
}

.document p,
.document li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.document ul {
  padding-left: 1.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.7);
}

.footer-inner {
  padding-block: 2.5rem;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: start;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand p,
.footer-meta p {
  margin-bottom: 0;
}

.footer-brand p + p {
  margin-top: 0.6rem;
}

.footer-wordmark {
  color: var(--text);
}

.footer-nav {
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.footer-nav a,
.footer-meta a {
  color: var(--muted);
}

.footer-meta {
  justify-self: end;
  text-align: right;
}

.footer-meta p {
  margin-top: 0.6rem;
}

@media (max-width: 48rem) {
  .product-cards,
  .accuracy-section,
  .updates-section {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.85fr);
    gap: 2rem;
    align-items: center;
  }

  .card-copy {
    margin-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-meta {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 22rem) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  .site-main:not(.home-main) {
    padding-block: 3.5rem;
  }

  h1 {
    font-size: 2.6rem;
    letter-spacing: -0.04em;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 22.01rem) and (max-width: 40rem) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

  .skip-link {
    transition: none;
  }
}
