:root {
  --bg: #f4efe4;
  --bg-strong: #e6dbc3;
  --surface: rgba(255, 250, 242, 0.78);
  --surface-strong: rgba(255, 248, 236, 0.94);
  --ink: #1f1a16;
  --ink-soft: #5d5146;
  --line: rgba(63, 45, 29, 0.12);
  --accent: #0c7967;
  --accent-strong: #084d42;
  --accent-warm: #c46e2f;
  --shadow: 0 24px 80px rgba(34, 26, 20, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: 'Aptos', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 110, 47, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 121, 103, 0.22), transparent 34%),
    linear-gradient(180deg, #f6f1e7 0%, #efe4d2 52%, #f8f2e8 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.page-shell-static {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell-static > .section {
  flex: 1;
}

.topbar,
.hero,
.section,
.footer {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.72);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-links a,
.text-link,
.quickstart-card a,
.info-card a {
  color: var(--accent-strong);
  text-decoration: none;
}

.topbar-links a:hover,
.text-link:hover,
.quickstart-card a:hover,
.info-card a:hover {
  text-decoration: underline;
}

.hero,
.section,
.footer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: 40px;
  overflow: visible;
}

.section,
.footer {
  overflow: hidden;
}

.hero::before,
.section::before {
  content: '';
  position: absolute;
  inset: auto auto 0 -12%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 121, 103, 0.14), transparent 66%);
  pointer-events: none;
}

.hero-grid,
.discovery-grid,
.quickstart-grid,
.plan-grid,
.metro-grid,
.flow-grid,
.self-serve-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  align-items: start;
}

.hero-copy,
.hero-panel,
.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  max-width: 34rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero-body,
.section-heading p,
.quickstart-card p,
.info-card p,
.flow-step p,
.footer p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-body {
  max-width: 56ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fffdf8;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.button-secondary {
  background: rgba(12, 121, 103, 0.08);
  border-color: rgba(12, 121, 103, 0.18);
}

.button-ghost {
  background: rgba(196, 110, 47, 0.08);
  border-color: rgba(196, 110, 47, 0.18);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.9);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.code-card,
.signal-card,
.info-card,
.quickstart-card,
.plan-card,
.metro-card,
.flow-step {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.code-card,
.signal-card,
.info-card,
.quickstart-card,
.plan-card,
.metro-card {
  padding: 22px;
}

.code-card-title {
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

pre,
code {
  font-family: var(--font-mono);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #171512;
  color: #f9f1e3;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 100%;
}

.code-card pre {
  max-width: 100%;
  width: 100%;
}

.signal-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-stat {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(12, 121, 103, 0.06);
}

.signal-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
}

.signal-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section {
  padding: 34px;
  margin-top: 22px;
}

.section-alt {
  background: rgba(249, 243, 233, 0.92);
}

.section-accent {
  background: linear-gradient(135deg, rgba(12, 121, 103, 0.1), rgba(196, 110, 47, 0.12));
}

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

.discovery-grid,
.quickstart-grid,
.plan-grid,
.metro-grid,
.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.self-serve-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 22px;
}

.self-serve-grid.claim-complete {
  grid-template-columns: 1fr;
}

.self-serve-grid.claim-complete .claim-card {
  order: -1;
}

.self-serve-grid.claim-complete .purchase-card {
  opacity: 0.8;
}

.coverage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.coverage-filter,
.pricing-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coverage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.92);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip-note {
  color: var(--accent-warm);
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-chip.is-active .filter-chip-note {
  color: rgba(255, 253, 248, 0.86);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: transparent;
  color: #fffdf8;
}

.pricing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pricing-note {
  margin: 0;
  color: var(--ink-soft);
}

.metro-card .metro-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 121, 103, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metro-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(18, 33, 30, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.metro-flag-ca {
  background: linear-gradient(
    90deg,
    #d52b1e 0%,
    #d52b1e 24%,
    #ffffff 24%,
    #ffffff 76%,
    #d52b1e 76%,
    #d52b1e 100%
  );
}

.metro-flag-us {
  background:
    linear-gradient(180deg, #3c3b6e 0%, #3c3b6e 52%, transparent 52%),
    repeating-linear-gradient(180deg, #b22234 0 12.5%, #ffffff 12.5% 25%);
}

.metro-flag-default {
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(12, 121, 103, 0.4), rgba(196, 110, 47, 0.45));
}

.metro-country-code {
  letter-spacing: 0.08em;
}

.metro-card ul,
.plan-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.plan-card.featured {
  border-color: rgba(12, 121, 103, 0.28);
  box-shadow: inset 0 0 0 1px rgba(12, 121, 103, 0.08);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 10px;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 2rem;
}

.plan-price span,
.plan-subtitle {
  color: var(--ink-soft);
}

.plan-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.plan-note-strong {
  color: var(--accent-strong);
  font-weight: 700;
}

.flow-step {
  padding: 22px;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  margin-top: 22px;
}

.footer-brand {
  max-width: 32rem;
}

.footer-copy {
  margin-top: 8px;
  font-size: 0.92rem;
}

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

.muted {
  color: var(--ink-soft);
}

.guide-page h1 {
  max-width: 18ch;
}

.guide-content {
  display: grid;
  gap: 18px;
}

.standalone-page {
  min-height: calc(100vh - 76px);
}

.guide-step {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.92);
}

.guide-step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.code-language {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

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

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section p,
.legal-section li,
.legal-section address {
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(12, 121, 103, 0.06);
  color: var(--ink-soft);
}

.legal-callout {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 121, 103, 0.16);
  background: rgba(255, 248, 236, 0.92);
}

.guide-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.purchase-card,
.claim-card {
  display: grid;
  gap: 14px;
}

.claim-card {
  scroll-margin-top: 28px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.claim-card.is-active {
  border-color: rgba(12, 121, 103, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(12, 121, 103, 0.1),
    0 18px 48px rgba(12, 121, 103, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--ink);
  font: inherit;
}

.field select {
  cursor: pointer;
}

.claim-card pre {
  min-height: 220px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.claim-note {
  margin: 0;
}

@media (min-width: 981px) {
  .hero-panel {
    margin-left: -125px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .discovery-grid,
  .quickstart-grid,
  .plan-grid,
  .metro-grid,
  .flow-grid,
  .legal-grid,
  .self-serve-grid {
    grid-template-columns: 1fr;
  }

  .signal-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-left: 0;
  }

  .topbar {
    border-radius: 24px;
  }

  .coverage-toolbar,
  .pricing-toolbar {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 100%);
  }

  .hero,
  .section,
  .footer {
    padding: 22px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .claim-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .claim-actions .button {
    width: 100%;
  }

  .code-card,
  .signal-card {
    width: 100%;
    min-width: 0;
  }

  .code-card pre {
    padding: 16px;
    font-size: 0.8rem;
  }

  .info-card pre,
  .quickstart-card pre,
  .claim-card pre {
    padding: 14px;
    font-size: 0.78rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
