@import url("./design-tokens.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--layout-header-height) + var(--space-2));
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-surface-dark);
  color: var(--color-ink);
  font-family: var(--font-family-ui);
  font-size: var(--font-size-body);
  -webkit-font-smoothing: antialiased;
}

body.is-modal-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: var(--focus-outline-width) solid var(--color-focus);
  outline-offset: var(--focus-outline-offset);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-family-display);
  letter-spacing: var(--letter-spacing-display);
}

.site-shell {
  overflow: clip;
}

.section-inner,
.hero-inner,
.site-header-inner {
  width: min(var(--layout-container-max), calc(100% - var(--layout-container-gutter)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--layout-header-height);
  border-bottom: var(--border-hairline) solid var(--color-border-dark);
  background: var(--header-background);
  backdrop-filter: blur(var(--header-blur));
}

.site-header-inner {
  display: flex;
  min-height: var(--layout-header-height);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-family-display);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2.2vw, var(--space-8));
}

.site-nav a,
.footer-nav a {
  color: var(--color-text-muted);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  padding: var(--space-2) 10px;
  border-radius: 2px;
  background: var(--color-accent);
  color: var(--color-button-primary-fg);
}

.menu-toggle,
.hero-visual-mobile {
  display: none;
}

.menu-toggle {
  width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
}

.menu-toggle img {
  width: var(--space-6);
  height: var(--space-6);
}

.kicker,
.plan-label {
  color: var(--color-accent);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  min-height: var(--button-height);
  align-items: center;
  justify-content: center;
  padding: var(--button-padding-block) var(--button-padding-inline);
  border: 2px solid transparent;
  border-radius: var(--radius-control);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  text-decoration: none;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

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

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

.button-outline {
  border-color: var(--color-button-outline-border);
  color: var(--color-button-outline-fg);
}

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

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 760px;
  align-items: center;
  overflow: visible;
  border-bottom: 4px solid var(--color-accent);
  background: var(--color-surface-dark-deep);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(510px, 0.95fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(var(--space-7), 3vw, var(--space-10));
  padding-block: 76px var(--space-15);
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(4.2rem, 6.2vw, 6.15rem);
  line-height: 0.84;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--color-text-muted);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 34px 0 0;
  padding: 0;
  color: var(--color-proof-text);
  font-size: 0.72rem;
  list-style: none;
}

.hero-proof li {
  padding-left: 14px;
  border-left: 2px solid var(--color-proof-rule);
}

.hero-visual {
  min-width: 0;
  margin: 0;
}

.hero-visual-desktop {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 50vw;
  height: calc(100% + var(--space-13));
  max-width: none;
  overflow: visible;
}

.hero-visual-desktop img {
  position: absolute;
  top: -5px;
  left: max(-388px, -24.25vw);
  width: min(1600px, 100vw);
  max-width: none;
  height: auto;
}

.workflow-intro {
  position: relative;
  z-index: 3;
  background: var(--color-accent);
  color: var(--color-ink-strong);
}

.workflow-intro::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 6px;
  background: var(--color-accent);
  content: "";
}

.intro-grid {
  display: grid;
  justify-items: center;
  padding-block: var(--space-10);
  text-align: center;
}

.intro-copy-stack {
  width: min(100%, 760px);
}

.intro-copy-stack .kicker {
  margin-bottom: var(--space-4);
  color: var(--color-ink-strong);
}

.intro-grid h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.intro-grid h2 span {
  white-space: nowrap;
}

.chapter {
  position: relative;
  min-height: var(--layout-section-min-height);
  overflow: hidden;
  border-bottom: var(--border-hairline) solid var(--color-section-rule);
}

.chapter-light {
  background: var(--color-surface-light);
  color: var(--color-ink-strong);
}

.chapter-dark {
  background: var(--color-surface-dark-alt);
  color: var(--color-ink);
}

.chapter-word {
  position: absolute;
  top: -0.17em;
  left: max(18px, calc((100vw - var(--layout-container-max)) / 2 - var(--space-6)));
  z-index: 0;
  color: transparent;
  background: var(--gradient-chapter-light);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: var(--font-family-display);
  font-size: clamp(7.5rem, 16.5vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.chapter-dark .chapter-word {
  background: var(--gradient-chapter-dark);
  background-clip: text;
  -webkit-background-clip: text;
}

.chapter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.5fr);
  min-height: var(--layout-section-min-height);
  align-items: center;
  gap: clamp(46px, 7vw, 110px);
  padding-block: var(--space-17) 86px;
}

.chapter-reverse {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
}

.chapter-reverse .chapter-copy {
  order: 2;
}

@media (min-width: 981px) {
  .chapter-reverse {
    width: min(1320px, calc(100% - var(--layout-container-gutter)));
    grid-template-columns: minmax(0, 1.4fr) minmax(460px, 0.95fr);
    gap: clamp(46px, 5.2vw, 80px);
  }

  .chapter-reverse .chapter-copy {
    max-width: 500px;
  }
}

.chapter-copy {
  max-width: 430px;
}

.chapter-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.1vw, 4.2rem);
  line-height: 0.98;
}

.chapter-title-highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  transition: color var(--motion-medium) ease var(--motion-slow);
}

.chapter-title-lead {
  display: inline-block;
  white-space: nowrap;
}

.chapter-title-highlight::before {
  position: absolute;
  top: 0.08em;
  right: -0.09em;
  bottom: 0.02em;
  left: -0.09em;
  z-index: -1;
  background: var(--color-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.25s var(--motion-ease-out);
}

.chapter-revealed .chapter-title-highlight::before {
  transform: scaleX(1);
}

.chapter-dark.chapter-revealed .chapter-title-highlight {
  color: var(--color-button-primary-fg);
}

.chapter-copy > p:last-child {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--color-copy-on-light);
  font-size: var(--font-size-body-large);
  line-height: 1.58;
}

.chapter-dark .chapter-copy > p:last-child {
  color: var(--color-text-muted);
}

.chapter-visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.chapter-visual img,
.chapter-visual video {
  width: 100%;
  max-height: 610px;
  object-fit: contain;
}

.chapter-visual video {
  aspect-ratio: 3 / 2;
}

.themes-section {
  position: relative;
  isolation: isolate;
  min-height: 893px;
  padding-block: 120px 23px;
  overflow: hidden;
  border-block: 4px solid var(--color-border);
  background: linear-gradient(90deg, var(--color-surface-light) 0 50%, var(--color-surface-dark-alt) 50% 100%);
  color: var(--color-surface-light);
}

.themes-section::before {
  position: absolute;
  top: -0.14em;
  left: max(14px, calc((100vw - 1500px) / 2));
  z-index: 0;
  color: transparent;
  background: var(--gradient-theme-word);
  background-clip: text;
  -webkit-background-clip: text;
  content: "THEMES";
  font-family: var(--font-family-display);
  font-size: clamp(8.5rem, 17vw, 18rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
  text-transform: uppercase;
  white-space: nowrap;
  mix-blend-mode: difference;
  pointer-events: none;
  user-select: none;
}

.themes-section > * {
  position: relative;
  z-index: 1;
}

.theme-heading {
  --theme-heading-inset: 144px;
  display: block;
  width: min(1500px, calc(100% - 80px));
  padding-left: var(--theme-heading-inset);
  margin: 0 auto clamp(30px, 3vw, 46px);
}

.theme-heading > div {
  width: min(100%, 1120px);
}

.theme-heading h2 {
  max-width: none;
  margin: -0.08em 0 0;
  padding-block: 0.08em 0.14em;
  color: transparent;
  background: linear-gradient(90deg, var(--color-ink-strong) 0, var(--color-ink-strong) calc(50vw - max(40px, calc((100vw - 1500px) / 2)) - var(--theme-heading-inset)), var(--color-surface-light) calc(50vw - max(40px, calc((100vw - 1500px) / 2)) - var(--theme-heading-inset)), var(--color-surface-light) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(4rem, 5.6vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.058em;
  white-space: nowrap;
}

.theme-heading > p {
  max-width: min(560px, calc(50vw - max(40px, calc((100vw - 1500px) / 2)) - var(--theme-heading-inset) - var(--space-6)));
  margin: var(--space-7) 0 0;
  color: var(--color-theme-copy-on-light);
  font-size: clamp(0.98rem, 1.25vw, 1.18rem);
  font-weight: 680;
  line-height: 1.48;
}

.theme-carousel {
  position: relative;
}

.theme-belt-stage {
  position: relative;
  isolation: isolate;
  width: calc(100% - var(--space-12));
  max-width: 1680px;
  margin-inline: auto;
  border-block: var(--border-strong) solid var(--color-border);
  background: var(--color-theme-belt);
}

.theme-belt-stage::before,
.theme-belt-stage::after {
  position: absolute;
  top: -14px;
  bottom: -12px;
  z-index: 3;
  width: clamp(52px, 5vw, var(--space-13));
  border: var(--border-strong) solid var(--color-border);
  background: var(--color-theme-endcap);
  box-shadow: var(--shadow-theme-endcap);
  content: "";
  pointer-events: none;
}

.theme-belt-stage::before {
  left: -10px;
  border-radius: 0 9px 9px 0;
}

.theme-belt-stage::after {
  right: -10px;
  border-radius: 9px 0 0 9px;
}

.theme-belt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 18px clamp(var(--space-12), 5.2vw, var(--space-15)) 22px;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}

.theme-belt::-webkit-scrollbar {
  display: none;
}

.theme-belt:active {
  cursor: grabbing;
}

.theme-card {
  position: relative;
  flex: 0 0 calc((100% - var(--space-8)) / 3);
  min-width: 390px;
  padding: 0;
  overflow: hidden;
  border: var(--border-strong) solid var(--color-border);
  border-radius: 3px;
  background: var(--color-theme-card);
  color: var(--color-ink);
  box-shadow: var(--shadow-brutal-small);
  cursor: zoom-in;
  text-align: left;
}

.theme-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  background: var(--color-border);
  pointer-events: none;
}

.theme-card-meta {
  display: grid;
  min-height: 64px;
  padding: var(--space-4) var(--space-4) 14px;
  border-top: var(--border-strong) solid var(--color-border);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-label);
}

.theme-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-transform: uppercase;
}

.theme-access {
  color: var(--color-accent);
  font-weight: var(--font-weight-heavy);
  white-space: nowrap;
}

.theme-story {
  max-height: 0;
  overflow: hidden;
  color: var(--color-text-muted);
  font-family: var(--font-family-ui);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height 420ms var(--motion-ease-out), margin-top 420ms var(--motion-ease-out), opacity 220ms ease, transform 420ms var(--motion-ease-out);
}

.theme-card:hover .theme-story,
.theme-card:focus-visible .theme-story {
  max-height: 9rem;
  margin-top: 11px;
  opacity: 1;
  transform: translateY(0);
}

.theme-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: var(--space-6);
}

.theme-carousel-slider {
  --slider-fill: 0%;
  width: min(460px, calc(100% - 96px));
  height: var(--space-6);
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: grab;
}

.theme-carousel-slider::-webkit-slider-runnable-track {
  height: var(--space-2);
  border: 2px solid var(--color-slider-border);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-slider-fill) 0 var(--slider-fill), var(--color-slider-track) var(--slider-fill) 100%);
}

.theme-carousel-slider::-webkit-slider-thumb {
  width: 23px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--color-slider-border);
  border-radius: var(--radius-control);
  appearance: none;
  background: var(--color-slider-thumb);
}

.theme-motion-toggle {
  min-height: 34px;
  padding: var(--space-2) var(--space-3);
  border: var(--border-hairline) solid var(--color-theme-control-border);
  border-radius: 3px;
  background: var(--color-theme-control);
  color: var(--color-theme-control-text);
  font-family: var(--font-family-mono);
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  cursor: pointer;
}

.belt-note {
  margin: 10px var(--space-6) 0;
  color: var(--color-theme-note);
  font-family: var(--font-family-mono);
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.ai-section {
  padding-block: clamp(var(--space-11), 6vw, 86px);
  background: var(--color-accent);
  color: var(--color-ink-strong);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(var(--space-11), 9vw, 150px);
}

.ai-choice {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ai-choice::before {
  display: block;
  min-height: clamp(110px, 10.32vw, 187px);
  margin-bottom: clamp(30px, 3vw, 46px);
  font-family: var(--font-family-display);
  font-size: clamp(4rem, 6vw, 6.8rem);
  font-weight: var(--font-weight-heavy);
  line-height: 0.86;
  letter-spacing: -0.055em;
  white-space: pre;
}

.ai-choice-ai::before {
  content: "AI IF YOU\A WANT IT.";
}

.ai-choice-silence::before {
  content: "SILENCE IF\A YOU DON'T.";
  font-size: clamp(3.8rem, 5.35vw, 6.1rem);
}

.ai-choice h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.ai-choice p {
  max-width: 520px;
  margin: 0;
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
}

.pricing-section {
  padding-block: var(--space-14) var(--space-15);
  background: var(--color-surface-dark);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.85fr));
}

.pricing-intro,
.pricing-option {
  min-width: 0;
  padding: var(--space-4) var(--space-9);
}

.pricing-intro {
  padding-left: 0;
  padding-right: 40px;
}

.pricing-intro h2 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 4.1vw, 4.3rem);
  line-height: var(--line-height-tight);
}

.pricing-intro h2 span {
  white-space: nowrap;
}

.pricing-intro > p:last-child,
.pricing-option p {
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
}

.pricing-option {
  display: flex;
  flex-direction: column;
  border-left: var(--border-hairline) solid var(--color-border-subtle);
}

.price {
  display: block;
  margin-block: var(--space-4) var(--space-3);
  color: var(--color-accent);
  font-family: var(--font-family-display);
  font-size: 3.4rem;
  line-height: 1;
}

.price span {
  color: var(--color-ink);
  font-family: var(--font-family-ui);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.pricing-option ul {
  display: grid;
  gap: 11px;
  margin: 10px 0 var(--space-7);
  padding: 0;
  color: var(--color-feature-text);
  font-size: var(--font-size-body-small);
  line-height: 1.4;
  list-style: none;
}

.pricing-option li {
  padding-left: 14px;
  border-left: var(--border-strong) solid var(--color-accent);
}

.pricing-option .button {
  align-self: flex-start;
  margin-top: auto;
}

.site-footer {
  padding-block: 30px;
  border-top: var(--border-hairline) solid var(--color-footer-border);
  background: var(--color-footer-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-9);
}

.footer-inner > span {
  color: var(--color-footer-text);
  font-size: 0.72rem;
}

.theme-preview[hidden] {
  display: none;
}

.theme-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background: var(--color-overlay);
}

.theme-preview-dialog {
  width: min(1180px, 100%);
  max-height: calc(100vh - var(--space-10));
  overflow: auto;
  border: 2px solid var(--color-dialog-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface-dark-raised);
}

.theme-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px var(--space-6);
}

.theme-preview-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.theme-preview-close {
  padding: 10px 14px;
  border: var(--border-hairline) solid var(--color-dialog-control-border);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
}

.theme-preview-dialog > img {
  width: 100%;
}

@media (max-width: 1180px) {
  .theme-heading {
    --theme-heading-inset: clamp(30px, 8vw, 92px);
    width: min(100% - var(--layout-container-gutter), var(--layout-container-max));
  }

  .theme-heading h2 {
    font-size: clamp(3.8rem, 7.5vw, 6.4rem);
  }

  .theme-card {
    flex-basis: calc((100% - var(--space-4)) / 2.25);
    min-width: 360px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .chapter-grid,
  .chapter-reverse,
  .ai-grid,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-block: 70px;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-visual-desktop {
    display: none;
  }

  .hero-visual-mobile {
    display: block;
    margin: var(--space-8) 0 30px;
  }

  .hero-visual-mobile img {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 13vw, 7rem);
  }

  .workflow-intro::before {
    display: none;
  }

  .chapter-grid {
    gap: 46px;
    padding-block: var(--space-16) var(--space-13);
  }

  .chapter-reverse .chapter-copy {
    order: 0;
  }

  .chapter-copy {
    max-width: 650px;
  }

  .ai-grid {
    gap: var(--space-12);
  }

  .ai-choice::before {
    min-height: 0;
    font-size: clamp(3.4rem, 13vw, 5rem);
  }

  .ai-choice-silence::before {
    font-size: clamp(3rem, 11.8vw, 4.6rem);
  }

  .pricing-intro,
  .pricing-option {
    padding: var(--space-7) 0;
  }

  .pricing-option {
    border-top: 2px solid var(--color-border-subtle);
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible,
  .menu-toggle[aria-expanded="true"] {
    border-color: var(--color-accent);
    background: var(--color-accent);
  }

  .menu-toggle:hover img,
  .menu-toggle:focus-visible img,
  .menu-toggle[aria-expanded="true"] img {
    filter: brightness(0);
  }

  .site-nav {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-3) 0 var(--space-1);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav a[aria-current="page"] {
    padding: 11px var(--space-3);
  }

  .themes-section {
    min-height: 0;
    padding-block: 58px 42px;
    background: linear-gradient(180deg, var(--color-surface-light) 0 34%, var(--color-surface-dark-alt) 34% 100%);
  }

  .themes-section::before {
    top: -0.03em;
    left: var(--space-2);
    font-size: clamp(6rem, 24vw, 10rem);
  }

  .theme-heading {
    --theme-heading-inset: 0px;
    width: min(100% - 34px, 680px);
    margin-bottom: 40px;
  }

  .theme-heading h2 {
    color: var(--color-ink-strong);
    background: none;
    font-size: clamp(3rem, 11.5vw, 5rem);
    white-space: normal;
  }

  .theme-heading > p {
    max-width: 520px;
  }

  .theme-belt-stage {
    width: calc(100% - 18px);
  }

  .theme-belt {
    padding-inline: 50px;
  }

  .theme-card {
    flex-basis: min(84vw, 440px);
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    gap: 44px;
    padding-block: var(--space-11) 62px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 15vw, 4.6rem);
  }

  .hero-lede br {
    display: none;
  }

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

  .hero-proof {
    display: grid;
  }

  .intro-grid {
    padding-block: 34px;
  }

  .intro-grid h2 {
    font-size: 2.6rem;
  }

  .chapter {
    min-height: auto;
  }

  .chapter-word {
    left: 10px;
    font-size: clamp(5.2rem, 25vw, 7rem);
  }

  .chapter-grid {
    min-height: auto;
    padding-block: 86px 58px;
  }

  .chapter-copy h2 {
    font-size: 2.5rem;
  }

  .theme-heading h2 {
    font-size: 3.6rem;
  }

  .ai-choice::before {
    font-size: 3.5rem;
  }

  .pricing-intro h2 {
    font-size: 3rem;
  }

  .pricing-option .button {
    width: 100%;
  }

  .footer-nav {
    flex-wrap: wrap;
  }

  .theme-preview {
    padding: var(--space-3);
  }

  .theme-preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
