:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --text: #112033;
  --muted: #5d6b7c;
  --line: #d6dfeb;
  --accent: #1f67d2;
  --shadow: 0 20px 40px rgba(17, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  line-height: 1.55;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.hero,
.section {
  padding: 72px 0;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: end;
}

.hero h1,
.page-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.02;
}

.section-heading h2,
.feature h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.lead {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel,
.feature,
.link-tile,
.payment-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel,
.feature,
.link-tile {
  padding: 24px;
}

.hero-row + .hero-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  margin-bottom: 28px;
}

.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature h3,
.feature h2 {
  margin: 0 0 12px;
}

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

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-tile {
  text-decoration: none;
}

.link-tile span {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 700;
}

.link-tile small,
.page-copy p {
  color: var(--muted);
}

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

.page-main {
  min-height: calc(100vh - 145px);
}

.page-copy {
  max-width: 820px;
}

.page-copy h2 {
  margin: 30px 0 10px;
  font-size: 1.15rem;
}

.contact-line {
  font-size: 1.1rem;
  font-weight: 600;
}

.payment-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-state {
  width: min(560px, 100%);
  padding: 32px;
}

.payment-state h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
}

.payment-state p {
  margin: 0 0 14px;
  color: var(--muted);
}

.payment-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 820px) {
  .hero,
  .section {
    padding: 56px 0;
  }

  .hero-grid,
  .feature-grid,
  .faq-grid,
  .link-list {
    grid-template-columns: 1fr;
  }

  .nav,
  .footer-row {
    min-height: 64px;
  }
}
