:root {
  --bg: #fff7ee;
  --bg-soft: #fff1e4;
  --surface: rgba(255, 253, 248, 0.92);
  --surface-strong: #fff0df;
  --text: #2c2018;
  --muted: #6e6055;
  --border: #ddc7b4;
  --accent: #ff7a59;
  --accent-soft: #ffd2c7;
  --accent-blue: #9ec9ff;
  --accent-yellow: #ffe186;
  --accent-green: #b8ddb1;
  --max-width: 1200px;
  --page-padding: clamp(20px, 4vw, 40px);
  --section-gap: clamp(64px, 9vw, 112px);
  --grid-gap: clamp(16px, 2vw, 24px);
  --shadow: 0 18px 50px rgba(114, 86, 60, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 122, 89, 0.19), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(158, 201, 255, 0.22), transparent 28%),
    radial-gradient(circle at 30% 84%, rgba(255, 225, 134, 0.28), transparent 26%),
    linear-gradient(180deg, #fffaf5 0%, #fff2e8 100%);
  color: var(--text);
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol {
  margin: 0;
  padding-left: 1.25rem;
}

details > summary {
  cursor: pointer;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 16px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  transform: translateY(-220%);
  transition: transform 140ms ease;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header,
.site-footer,
.page-section,
.page-hero {
  width: min(var(--max-width), calc(100vw - (var(--page-padding) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -8px;
  z-index: -1;
  background: rgba(255, 247, 238, 0.84);
  border-bottom: 1px solid rgba(221, 199, 180, 0.8);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.wordmark-title,
.section-label,
.badge,
.eyebrow,
.meta-label,
.button,
.footer-meta,
.site-nav a,
.step-index,
.placeholder-label,
.route-grid-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.wordmark-title {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.wordmark-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 28ch;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.page-hero {
  padding: clamp(48px, 10vw, 120px) 0 clamp(36px, 6vw, 64px);
}

.hero-grid,
.split-grid,
.two-column,
.three-column,
.four-column,
.cta-band,
.route-grid {
  display: grid;
  gap: var(--grid-gap);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
}

.hero-visual,
.media-card,
.split-visual {
  display: grid;
  gap: 14px;
}

.eyebrow,
.section-label,
.meta-label,
.badge,
.footer-meta,
.step-index,
.placeholder-label,
.route-grid-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title,
.section-title,
.display-title,
.card h3,
.cta-card h3,
.download-card h3,
.policy-card h3,
.route-card h3,
.faq-item summary {
  color: var(--text);
  font-family: "Syne", "Trebuchet MS", sans-serif;
  letter-spacing: -0.04em;
}

.page-title,
.section-title,
.display-title {
  margin: 0;
  line-height: 0.98;
}

.page-title {
  max-width: 9.5ch;
  font-size: clamp(2.8rem, 7.6vw, 5.8rem);
}

.display-title {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.lede,
.section-copy,
.route-intro {
  max-width: 60ch;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  color: #5b4c42;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 50px;
  padding: 0 20px;
  border: 2px solid #d8baa0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 22px 50px rgba(255, 122, 89, 0.18);
}

.button.secondary {
  background: var(--accent-blue);
  border-color: #8db9ef;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
}

.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.hero-note,
.status-note,
.fine-print {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel,
.card,
.frame,
.faq-item,
.cta-card,
.download-card,
.policy-card,
.route-card,
.band-shell {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel,
.card,
.faq-item,
.cta-card,
.download-card,
.policy-card,
.route-card,
.band-shell {
  padding: clamp(18px, 3vw, 28px);
}

.hero-panel {
  min-height: 100%;
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(158, 201, 255, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 100%),
    var(--surface);
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.hero-panel dt {
  margin-bottom: 6px;
}

.hero-panel dd {
  margin: 0;
  color: #56483f;
}

.hero-art,
.media-card img,
.media-card video,
.split-visual img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.hero-art {
  max-width: 540px;
  justify-self: end;
}

.sticker-row,
.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sticker-row .placeholder-label {
  position: static;
}

.card-icon {
  width: 72px;
  height: 72px;
}

.page-section {
  padding: 0 0 var(--section-gap);
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

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

.four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-column,
.split-grid,
.cta-band,
.route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card h3,
.cta-card h3,
.download-card h3,
.policy-card h3,
.route-card h3,
.faq-item summary {
  margin: 0;
  font-size: 1.3rem;
}

.card,
.cta-card,
.download-card,
.policy-card,
.route-card,
.band-shell {
  position: relative;
  overflow: hidden;
}

.card::before,
.cta-card::before,
.download-card::before,
.policy-card::before,
.route-card::before,
.band-shell::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--accent), var(--accent-yellow), var(--accent-blue));
}

.card p,
.cta-card p,
.download-card p,
.policy-card p,
.route-card p,
.faq-item p {
  margin-bottom: 0;
}

.three-column > article:nth-child(2)::before,
.route-grid > article:nth-child(2)::before,
.cta-band > article:nth-child(2)::before,
.two-column > article:nth-child(2)::before {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

.three-column > article:nth-child(3)::before,
.four-column > article:nth-child(3)::before {
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent));
}

.four-column > article:nth-child(4)::before {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
}

.number-list {
  display: grid;
  gap: 16px;
}

.number-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px dashed var(--border);
}

.number-list li:last-child {
  border-bottom: 1px dashed var(--border);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  background: #fff4c9;
  border: 1px solid #eed481;
  color: var(--text);
}

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

.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: block;
  padding: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 34%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 40px,
      rgba(44, 32, 24, 0.04) 40px,
      rgba(44, 32, 24, 0.04) 41px
    ),
    var(--surface-strong);
}

.frame:nth-child(1) {
  background-color: #fff0df;
}

.frame:nth-child(2) {
  background-color: #eaf4ff;
}

.frame:nth-child(3) {
  background-color: #fff5c6;
}

.frame:nth-child(4) {
  background-color: #ecf7e9;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(44, 32, 24, 0.12);
}

.placeholder-label {
  padding: 8px 10px;
  border: 1px solid rgba(44, 32, 24, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.frame .placeholder-label {
  position: absolute;
  left: 28px;
  bottom: 28px;
}

.diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.diagram-step {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.diagram-step::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
}

.diagram-step::after {
  content: ">";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.diagram-step:last-child::after {
  display: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item > *:not(summary) {
  margin-top: 12px;
}

.cta-band {
  align-items: stretch;
}

.cta-card,
.band-shell {
  display: grid;
  gap: 14px;
}

.site-footer {
  display: grid;
  gap: 22px;
  padding: 0 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

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

.route-hero {
  padding-top: clamp(36px, 8vw, 72px);
}

.route-grid {
  margin-top: 28px;
}

.route-card ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.route-card li {
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.download-card .button {
  width: 100%;
  margin-top: 10px;
}

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

.fine-print {
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .split-grid,
  .three-column,
  .four-column,
  .cta-band,
  .route-grid,
  .frame-grid,
  .diagram {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
  }

  .page-title {
    max-width: 100%;
  }

  .hero-art {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-panel dl {
    grid-template-columns: 1fr;
  }

  .diagram-step::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -18px;
    transform: translateX(-50%) rotate(90deg);
  }
}

@media (max-width: 640px) {
  .site-header::before {
    inset: 0 -4px;
  }

  .wordmark-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .page-title {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
    line-height: 1;
  }

  .display-title {
    font-size: clamp(2.15rem, 10.5vw, 3.3rem);
  }

  .page-hero {
    padding-top: 36px;
  }
}
