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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", 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,
.hero *:not(.button.primary) {
  color: #ffffff;
}

.hero .eyebrow,
.hero .panel-kicker {
  color: var(--gold);
}

.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);
  font-family: Arial, Helvetica, sans-serif;
}

.brand {
  font-weight: 800;
}

.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);
}

.hero-grid {
  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;
}

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

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-weight: 700;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 5.8vw, 5.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.1vw, 3rem);
  line-height: 1.02;
}

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

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

.hero-actions,
.bonus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.bonus-panel {
  max-width: 640px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(199, 155, 69, 0.1));
  box-shadow: 0 20px 40px rgba(7, 30, 44, 0.2);
}

.bonus-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.bonus-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(199, 155, 69, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bonus-panel h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.bonus-image {
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(7, 30, 44, 0.24);
}

.bonus-panel p:last-of-type {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
}

.bonus-panel a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bonus-actions {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 13px 18px;
  font-family: Arial, Helvetica, sans-serif;
  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);
}

.button.tertiary {
  border-color: rgba(199, 155, 69, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

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

.book-scene::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%);
}

.book-scene 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);
}

.path-line {
  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,
.footer-cta {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 64px);
}

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

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

.section-intro p,
.coin-copy p,
.challenge-copy p,
.author-section p,
.footer-cta p,
.stage-detail p:last-child {
  color: #4b5b62;
  font-size: 1.08rem;
  line-height: 1.68;
}

.media-band {
  background: var(--white);
}

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

.media-panel,
.stage-detail,
.quiz-card,
.challenge-form {
  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);
}

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

.feature-panel {
  grid-row: span 2;
}

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

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

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

.sequence-layout {
  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;
}

.stage-rail {
  display: grid;
  gap: 10px;
}

.stage-button {
  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;
}

.stage-button span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--blue-deep);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

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

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

.stage-detail {
  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%);
}

.stage-detail h3 {
  font-size: clamp(1.8rem, 3.3vw, 3.4rem);
}

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

.coins-section {
  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);
}

.coins-section *:not(.coin) {
  color: #ffffff;
}

.coin-copy 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: 700;
}

.coin-wheel {
  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-family: Arial, Helvetica, sans-serif;
  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);
}

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

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

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

.challenge-form label {
  color: var(--blue-deep);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

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

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

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

.agreement-preview span {
  color: #65747b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 2px solid var(--gold);
  color: var(--blue-deep);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

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

.quiz-section {
  background: var(--paper);
}

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

.quiz-card {
  padding: clamp(18px, 3vw, 28px);
}

.answer-list {
  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;
}

.answer.incorrect {
  border-color: rgba(184, 45, 66, 0.35);
  background: #f5e5e8;
}

.score-bar {
  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);
  font-family: Arial, Helvetica, sans-serif;
}

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

.footer-cta {
  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);
}

.footer-cta * {
  color: #ffffff;
}

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

@media (max-width: 920px) {
  .hero-grid,
  .sequence-layout,
  .coins-section,
  .challenge-section,
  .author-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .book-scene {
    min-height: 420px;
  }

  .media-grid,
  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    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);
  }

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

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

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

@media (min-width: 1400px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .stage-detail h3 {
    font-size: 3rem;
  }
}
