@import:root {
  --ink: #12202b;
  --blue: #0c4f78;
  --blue-deep: #07324d;
  --gold: #c79b45;
  --red: #b82d42;
  --paper: #fbf7ef;
  --cream: #efe2cc;
  --mist: #d8e3df;
  --white: #ffffff;
}

@theme inline {
  --color-background: var(--paper);
  --color-foreground: var(--ink);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hero {
  min-height: 94vh;
  padding: 22px clamp(18px, 4vw, 64px) 58px;
  color: var(--white);
  background:
    linear-gradient(112deg, rgba(7, 30, 44, 0.96) 0%, rgba(11, 63, 92, 0.9) 48%, rgba(18, 32, 43, 0.74) 100%),
    url("media/stop-making-life-so-hard-infographic.png") center / cover;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -16vh 48vw;
  height: 34vh;
  background: var(--gold);
  transform: rotate(-8deg);
  opacity: 0.82;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: clamp(44px, 8vw, 92px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.navlinks {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.82);
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: var(--white);
}

.heroGrid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.84fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.heroCopy {
  max-width: 780px;
}

.eyebrow,
.panelKicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 9vw, 9.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: #13202a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.textLink {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 2px solid var(--gold);
  color: var(--blue-deep);
  font-weight: 900;
}

.textLink:hover,
.textLink:focus-visible {
  color: var(--red);
}

.bookScene {
  position: relative;
  min-height: min(62vw, 610px);
  display: grid;
  place-items: center;
}

.bookScene::before {
  content: "";
  position: absolute;
  width: min(30vw, 360px);
  aspect-ratio: 1;
  border: 16px solid rgba(199, 155, 69, 0.64);
  border-radius: 50%;
  transform: translate(-24%, 7%);
}

.bookScene img {
  position: relative;
  z-index: 2;
  width: min(74vw, 390px);
  border-radius: 8px;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.pathLine {
  position: absolute;
  inset: auto 10% 8% 4%;
  height: 24px;
  border-bottom: 5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: rotate(-10deg);
}

section,
.footerCta {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 64px);
}

.sectionIntro {
  max-width: 960px;
  margin: 0 auto 36px;
}

.sectionIntro.narrow {
  max-width: 760px;
  text-align: center;
}

.sectionIntro p,
.coinCopy p,
.challengeCopy p,
.authorSection p,
.footerCta p {
  color: #4b5b62;
  font-size: 1.08rem;
  line-height: 1.68;
}

.mediaBand {
  background: var(--white);
}

.mediaGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.mediaPanel,
.stageDetail,
.quizCard,
.challengeForm {
  border: 1px solid rgba(18, 32, 43, 0.13);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(18, 32, 43, 0.08);
}

.mediaPanel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.featurePanel {
  grid-row: span 2;
}

.mediaPanel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--blue-deep);
}

.infographicPanel img {
  border-radius: 6px;
  border: 1px solid rgba(18, 32, 43, 0.12);
}

.sequenceSection {
  background: linear-gradient(180deg, var(--paper), #f6f0e5);
}

.sequenceLayout {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}

.stageRail {
  display: grid;
  gap: 10px;
}

.stageButton {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(18, 32, 43, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.stageButton span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--blue-deep);
  font-weight: 900;
}

.stageButton.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.stageButton.active span {
  background: var(--gold);
  color: var(--ink);
}

.stageDetail {
  min-height: 340px;
  padding: clamp(26px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 86% 22%, var(--gold), transparent 28%);
}

.stageDetail h3 {
  font-size: clamp(2.2rem, 5vw, 5.4rem);
}

.stageDetail p:last-child {
  max-width: 700px;
  color: #34464e;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.coinsSection {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: center;
  background: #102938;
  color: var(--white);
}

.coinsSection *:not(.coin) {
  color: #ffffff !important;
}

.coinsSection h2,
.coinsSection h3,
.coinsSection blockquote,
.coinsSection .coinCopy,
.coinsSection .coinCopy p,
.coinsSection .coinWheel p {
  color: var(--white) !important;
}

.coinCopy p {
  color: rgba(255, 255, 255, 0.75);
}

blockquote {
  margin: 26px 0;
  border-left: 6px solid var(--gold);
  padding-left: 18px;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.18;
  font-weight: 900;
}

.coinWheel {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 12px;
  align-items: center;
}

.coin {
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: linear-gradient(145deg, #e9c16d, #9f7226);
  color: #14232d;
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  font-weight: 900;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.coin.active {
  border-color: var(--red);
  transform: translateY(-8px);
}

.coinWheel p {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.challengeSection {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: center;
  background: var(--white);
}

.challengeForm {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 36px);
}

.challengeForm label {
  color: var(--blue-deep);
  font-weight: 900;
}

.challengeForm textarea {
  min-height: 150px;
  resize: vertical;
  border: 2px solid rgba(12, 79, 120, 0.22);
  border-radius: 6px;
  padding: 16px;
  color: var(--ink);
}

.challengeForm textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.agreementPreview {
  display: grid;
  gap: 6px;
  border-radius: 6px;
  background: var(--paper);
  padding: 16px;
}

.agreementPreview span {
  color: #65747b;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.authorSection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 300px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--cream);
}

.authorSection img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 44px rgba(18, 32, 43, 0.18);
}

.quizSection {
  background: var(--paper);
}

.quizGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.quizCard {
  padding: clamp(18px, 3vw, 28px);
}

.answerList {
  display: grid;
  gap: 10px;
}

.answer {
  border: 1px solid rgba(18, 32, 43, 0.16);
  border-radius: 6px;
  background: #f7faf9;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
}

.answer.chosen {
  border-color: var(--blue);
  background: #dcebf0;
}

.answer.correct {
  border-color: #2f7d5d;
  background: #dff0e4;
}

.scoreBar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 22px auto 0;
  border-radius: 8px;
  background: var(--blue-deep);
  padding: 18px;
  color: var(--white);
}

.scoreBar strong {
  color: var(--gold);
}

.footerCta {
  display: grid;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(8, 34, 49, 0.9), rgba(8, 34, 49, 0.92)),
    url("media/stop-making-life-so-hard-infographic.png") center / cover;
  color: var(--white);
}

.footerCta * {
  color: #ffffff !important;
}

.footerCta h2,
.footerCta p {
  color: var(--white) !important;
}

.footerCta p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 920px) {
  .heroGrid,
  .sequenceLayout,
  .coinsSection,
  .challengeSection,
  .authorSection {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .bookScene {
    min-height: 420px;
  }

  .mediaGrid,
  .quizGrid {
    grid-template-columns: 1fr;
  }

  .featurePanel {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 42px;
  }

  .navlinks {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .heroActions,
  .button {
    width: 100%;
  }

  .coinWheel {
    grid-template-columns: repeat(2, minmax(104px, 1fr));
  }

  .stageButton {
    grid-template-columns: 32px 1fr;
  }
}
