:root {
  --page-width: 1080px;
  --page-gutter: 28px;
}

/* Keep full-width section backgrounds while aligning every piece of content
   to one calm, centered column. */
.site-header,
.hero,
.section,
.stat-ribbon,
footer {
  padding-right: max(var(--page-gutter), calc((100vw - var(--page-width)) / 2));
  padding-left: max(var(--page-gutter), calc((100vw - var(--page-width)) / 2));
}

.site-header {
  gap: 34px;
  justify-content: flex-start;
}

.site-header nav {
  margin-left: auto;
}

.anonymous-pill {
  margin-left: 0;
}

.hero {
  display: block;
  min-height: 0;
  padding-top: clamp(92px, 9vw, 132px);
  padding-bottom: 82px;
  text-align: center;
}

.hero-copy {
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}

.hero h1 {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.55rem, 4.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.062em;
}

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

.hero .eyebrow {
  margin-bottom: 23px;
}

.hero-lede {
  max-width: 820px;
  margin: 38px auto 0;
  color: #292d35;
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.hero-lede span {
  color: var(--blue);
}

.hero-actions {
  justify-content: center;
  margin-top: 27px;
}

.hero .button {
  min-height: 43px;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
}

.hero .button-primary {
  min-width: 205px;
  background: #2d63c7;
}

.hero-resource {
  min-width: 112px;
  border: 1px solid #252931;
  background: #252931;
  color: #fff;
  cursor: default;
}

.hero-release-note {
  margin: 12px 0 0;
  color: #8a8f98;
  font: 500 .65rem var(--mono);
}

.hero-visual {
  max-width: 880px;
  margin: 62px auto 0;
  text-align: left;
}

.hero-copy,
.hero-visual,
.idea-grid,
.comparison,
.levels-heading,
.level-switcher,
.level-panel,
.loop-intro,
.method-player,
.evidence-top,
.evidence-grid,
.resources > * {
  width: 100%;
}

.loop-intro,
.method-player {
  max-width: none;
}

.stat-ribbon div {
  padding-right: clamp(20px, 2.5vw, 38px);
  padding-left: clamp(20px, 2.5vw, 38px);
}

.comparison,
.evidence-grid {
  gap: 16px;
}

.resources h2 {
  max-width: 720px;
}

@media (max-width: 1040px) {
  :root { --page-gutter: 32px; }
  .hero-copy,
  .hero-visual {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  :root { --page-gutter: 22px; }
  .site-header { gap: 18px; }
  .anonymous-pill { margin-left: auto; }
  .hero-copy,
  .hero-visual { max-width: none; }
  .hero { padding-top: 76px; }
  .hero h1 { font-size: clamp(2.35rem, 8vw, 3.6rem); }
}

@media (max-width: 480px) {
  :root { --page-gutter: 18px; }
  .hero { padding-top: 66px; padding-bottom: 62px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero .button { width: 100%; }
  .hero-visual { margin-top: 42px; }
}
