:root {
  --bg: #f3f5fb;
  --bg-deep: #e8eefc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 252, 246, 0.94);
  --surface-dark: #10233b;
  --ink: #10233b;
  --muted: #5d6d83;
  --line: rgba(16, 35, 59, 0.11);
  --accent: #2d63ff;
  --accent-strong: #1739ad;
  --accent-warm: #ff7b48;
  --accent-mint: #1ba894;
  --shadow: 0 28px 80px rgba(26, 46, 90, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 99, 255, 0.18), transparent 26%),
    radial-gradient(circle at 100% 14%, rgba(255, 123, 72, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #eef2fb 38%, #f7f4ed 100%);
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(45, 99, 255, 0.25);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

code,
pre {
  font-family: "SF Mono", "IBM Plex Mono", "Source Code Pro", "Menlo", monospace;
}

::selection {
  background: rgba(45, 99, 255, 0.22);
}

.site-frame {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.site-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.site-glow-a {
  width: 360px;
  height: 360px;
  top: 80px;
  right: -120px;
  background: rgba(45, 99, 255, 0.12);
}

.site-glow-b {
  width: 280px;
  height: 280px;
  top: 420px;
  left: -120px;
  background: rgba(255, 123, 72, 0.12);
}

.site-header,
.page-shell,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 16px;
}

.header-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(32, 54, 96, 0.1);
  backdrop-filter: blur(18px);
  border-radius: 999px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.wordmark-top {
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.wordmark-bottom {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

.site-nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.96rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(45, 99, 255, 0.1);
  color: var(--accent-strong);
}

.page-shell {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3vw, 32px) 0 clamp(32px, 5vw, 48px);
}

.hero-shell,
.content-section,
.quote-band,
.cta-panel,
.day-nav,
.article,
.site-footer {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
}

.hero-main h1,
.section-heading h2,
.feature-card h3,
.path-card h3,
.video-card h3,
.day-card h3,
.check-card h3,
.prompt-head h3,
.mapping-card h3,
.workflow-card h3,
.cta-panel h3,
.article h1,
.article h2,
.article h3,
.day-nav-card strong {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  line-height: 1.05;
}

.hero-main h1 {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  max-width: 12ch;
  margin-top: 12px;
}

.eyebrow,
.day-chip {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-copy,
.section-deck,
.compact-copy,
.footer-copy {
  color: var(--muted);
}

.hero-copy {
  font-size: clamp(1.02rem, 1.8vw, 1.14rem);
  max-width: 58rem;
  margin: 20px 0 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.copy-button,
.progress-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.button:hover,
.copy-button:hover,
.progress-toggle:hover {
  transform: translateY(-1px);
}

.button.primary,
.progress-toggle {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 24px rgba(45, 99, 255, 0.22);
}

.button.secondary,
.copy-button {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border-color: rgba(45, 99, 255, 0.14);
}

.progress-toggle[data-done="true"] {
  background: linear-gradient(135deg, var(--accent-mint) 0%, #187564 100%);
}

.hero-aside,
.hero-stack {
  display: grid;
  gap: 14px;
}

.hero-card,
.feature-card,
.path-card,
.video-card,
.day-card,
.check-card,
.mapping-card,
.workflow-card,
.primer-card,
.rail-panel,
.day-nav-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(21, 42, 76, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero-card,
.feature-card,
.path-card,
.video-card,
.day-card,
.check-card,
.mapping-card,
.primer-card,
.rail-panel,
.day-nav-card {
  padding: 20px;
}

.progress-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(16, 35, 59, 0.08);
  overflow: hidden;
  margin: 14px 0;
}

.progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-mint) 100%);
}

.metric-line {
  margin: 0;
}

.small-note {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.mini-checks,
.big-checks,
.rail-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.mini-checks li,
.big-checks li,
.article li,
.rail-list li {
  margin: 0 0 10px;
}

.mini-metadata {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.mini-metadata li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.96rem;
}

.mini-metadata span {
  color: var(--muted);
}

.content-section,
.cta-panel,
.quote-band,
.day-nav,
.site-footer {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 15ch;
}

.section-deck {
  max-width: 62rem;
  margin: 0;
}

.persona-grid,
.rule-grid,
.insight-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.day-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.day-card h3 {
  font-size: 1.5rem;
}

.day-card h3 a,
.feature-card a,
.day-nav-card a {
  text-decoration: none;
}

.text-link {
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
}

.feature-card h3,
.path-card h3,
.video-card h3,
.check-card h3,
.workflow-card h3,
.mapping-card h3,
.primer-card h3 {
  font-size: 1.42rem;
  margin-bottom: 10px;
}

.path-card,
.video-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hero-card::before,
.feature-card::before,
.path-card::before,
.video-card::before,
.day-card::before,
.check-card::before,
.mapping-card::before,
.workflow-card::before,
.primer-card::before,
.rail-panel::before,
.day-nav-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(45, 99, 255, 0.8), rgba(27, 168, 148, 0.35), rgba(255, 123, 72, 0.7));
}

.quote-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.quote-mark {
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent-warm);
}

.quote-line {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.quote-subline {
  margin: 12px 0 0;
  max-width: 52rem;
  color: var(--muted);
}

.outcome-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 35, 59, 0.98) 0%, rgba(29, 56, 95, 0.96) 100%);
  color: #eff5ff;
}

.outcome-panel .big-checks {
  margin: 0;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.cta-panel.large {
  padding: clamp(28px, 4vw, 40px);
}

.cta-panel h3 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  max-width: 14ch;
}

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

.reveal-stack {
  display: grid;
  gap: 14px;
}

.reveal {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.reveal summary {
  cursor: pointer;
  list-style: none;
}

.reveal summary::-webkit-details-marker {
  display: none;
}

.reveal-title,
.reveal-summary {
  display: block;
}

.reveal-title {
  font-weight: 700;
}

.reveal-summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.96rem;
}

.reveal-body {
  margin-top: 16px;
}

.faq-item {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

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

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

.top-gap {
  margin-top: 18px;
}

.workflow-grid {
  display: grid;
  gap: 18px;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0f1d31;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-body {
  display: grid;
  gap: 12px;
}

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

.companion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.companion-links a {
  text-decoration: none;
  color: var(--accent-strong);
  background: rgba(45, 99, 255, 0.08);
  border: 1px solid rgba(45, 99, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  padding: 20px;
}

.prompt-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.92) 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}

.prompt-card pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0f1d31;
  color: #f5f8ff;
  line-height: 1.5;
}

.prompt-card code {
  font-size: 0.92rem;
}

.prompt-note {
  margin: 14px 0 0;
  color: var(--muted);
}

.feedback-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(45, 99, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(45, 99, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 248, 243, 0.92));
  box-shadow: 0 18px 40px rgba(23, 42, 84, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feedback-card h3 {
  margin: 8px 0 0;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.12;
}

.feedback-card-compact {
  border-radius: 22px;
}

.feedback-copy,
.feedback-label,
.feedback-status,
.feedback-thanks,
.feedback-field span {
  color: var(--muted);
}

.feedback-choices,
.feedback-reasons,
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-choices {
  margin-top: 18px;
}

.feedback-detail {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.feedback-choice,
.feedback-reason {
  appearance: none;
  border: 1px solid rgba(16, 35, 59, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.feedback-choice:hover,
.feedback-reason:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 99, 255, 0.28);
}

.feedback-choice[data-active="true"],
.feedback-reason[data-active="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

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

.feedback-field textarea {
  width: 100%;
  min-height: 104px;
  border-radius: 18px;
  border: 1px solid rgba(16, 35, 59, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.feedback-field textarea:focus-visible {
  outline: 3px solid rgba(45, 99, 255, 0.18);
  outline-offset: 2px;
  border-color: rgba(45, 99, 255, 0.28);
}

.feedback-status,
.feedback-thanks {
  margin: 0;
}

.feedback-card[data-submitted="true"] .feedback-copy {
  margin-bottom: 0;
}

.support-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 34px rgba(16, 35, 59, 0.22);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.support-panel {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 29;
  width: min(360px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 28px;
  background: rgba(244, 247, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 60px rgba(15, 32, 62, 0.18);
  backdrop-filter: blur(18px);
}

.support-close {
  margin-left: auto;
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.numbered-steps {
  display: grid;
  gap: 14px;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.step-card p {
  margin: 0;
}

.step-index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-weight: 700;
}

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

.mapping-links,
.workflow-text p:last-child {
  color: var(--muted);
}

.mapping-links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

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

.day-nav-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.day-nav-card span:last-child,
.day-nav-card span:last-child a {
  color: var(--muted);
}

.day-nav-card.muted {
  opacity: 0.9;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: 20px;
}

.lesson-rail {
  display: grid;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 108px;
}

.rail-panel {
  padding: 18px;
}

.rail-list li.active {
  color: var(--accent-strong);
  font-weight: 700;
}

.rail-list a {
  text-decoration: none;
}

.article {
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 252, 247, 0.92);
}

.article-wide {
  width: 100%;
}

.article > :first-child {
  margin-top: 0;
}

.article h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.article h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 48px;
}

.article h3 {
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
  margin-top: 28px;
}

.article p,
.article li {
  max-width: 72ch;
}

.article ul,
.article ol {
  padding-left: 24px;
}

.article hr {
  border: 0;
  height: 1px;
  margin: 34px 0;
  background: linear-gradient(90deg, rgba(16, 35, 59, 0), rgba(16, 35, 59, 0.2), rgba(16, 35, 59, 0));
}

.article pre {
  margin: 24px 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0f1d31;
  color: #eff5ff;
}

.article a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.site-footer {
  margin-bottom: 24px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-copy {
  margin: 8px 0 0;
  max-width: 32rem;
}

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

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

@media (hover: hover) {
  .feature-card:hover,
  .path-card:hover,
  .video-card:hover,
  .day-card:hover,
  .check-card:hover,
  .mapping-card:hover,
  .workflow-card:hover,
  .primer-card:hover,
  .feedback-card:hover,
  .day-nav-card:hover,
  .reveal:hover,
  .faq-item:hover,
  .prompt-card:hover,
  .step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 99, 255, 0.2);
    box-shadow: 0 20px 40px rgba(24, 46, 87, 0.1);
  }
}

@media (max-width: 1120px) {
  .hero-shell,
  .video-grid,
  .workflow-card,
  .deep-dive-grid,
  .step-grid,
  .split-grid,
  .before-after-grid,
  .persona-grid,
  .rule-grid,
  .insight-grid,
  .mapping-grid,
  .path-grid,
  .split-grid-tight {
    grid-template-columns: 1fr;
  }

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

  .lesson-rail {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    padding-top: 12px;
  }

  .header-shell,
  .footer-shell,
  .cta-panel,
  .day-nav,
  .quote-band,
  .video-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-shell {
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: -4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-shell {
    padding: 24px;
  }

  .hero-main h1 {
    max-width: 100%;
  }

  .section-heading h2,
  .cta-panel h3 {
    max-width: none;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .button,
  .cta-actions .button,
  .feedback-actions .button,
  .copy-button,
  .progress-toggle {
    width: 100%;
  }

  .mini-metadata li {
    display: grid;
    gap: 4px;
    justify-content: start;
  }

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

@media (max-width: 640px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .header-shell {
    padding: 12px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .hero-shell,
  .content-section,
  .quote-band,
  .cta-panel,
  .day-nav,
  .article,
  .site-footer {
    padding: 20px;
  }

  .wordmark-top {
    font-size: 1.15rem;
  }

  .wordmark-bottom {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero-main h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
    margin-top: 8px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-card,
  .feature-card,
  .path-card,
  .video-card,
  .day-card,
  .check-card,
  .mapping-card,
  .primer-card,
  .rail-panel,
  .day-nav-card,
  .prompt-card,
  .feedback-card,
  .reveal,
  .faq-item,
  .step-card {
    padding: 16px;
    border-radius: 20px;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-index {
    width: 34px;
    height: 34px;
  }

  .prompt-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-card pre,
  .article pre {
    padding: 14px;
  }

  .prompt-card code {
    font-size: 0.84rem;
  }

  .article {
    padding: 18px;
    border-radius: 24px;
  }

  .article h2 {
    margin-top: 36px;
  }

  .article p,
  .article li {
    max-width: none;
  }

  .video-actions,
  .companion-links,
  .feedback-choices,
  .feedback-reasons,
  .feedback-actions {
    width: 100%;
  }

  .feedback-choice,
  .feedback-reason {
    width: 100%;
    justify-content: center;
  }

  .support-launcher {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }

  .support-panel {
    right: 12px;
    left: 12px;
    bottom: 74px;
    width: auto;
    border-radius: 24px;
  }

  .site-glow-a {
    width: 240px;
    height: 240px;
    top: 48px;
  }

  .site-glow-b {
    width: 220px;
    height: 220px;
    top: 320px;
  }

  .quote-mark {
    font-size: 3.6rem;
  }
}
