:root {
  --green: #95c11f;
  --green-dark: #18300c;
  --green-text: #3c540a;
  --orange: #ff8f00;
  --cream: #f6f8ec;
  --ink: #1e2415;
  --muted: #5f6858;
  --white: #ffffff;
  --line: #dce3cf;
  --danger: #a7391f;
  --shadow: 0 18px 45px rgba(24, 48, 12, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.62;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  padding: 12px 18px;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(15, 33, 6, 0.2);
}

.header-inner {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 17px 0 14px;
}

.brand {
  display: block;
  border-radius: 10px;
}

.brand img {
  width: 175px;
  height: auto;
}

.header-copy h1,
.header-copy p {
  margin: 0;
}

.header-copy .eyebrow {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-copy h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

.header-copy h1 span {
  color: var(--green);
}

.header-copy h1 + p {
  margin-top: 3px;
  color: #dce6d3;
  font-size: 0.82rem;
  line-height: 1.35;
}

.progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(1180px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.progress-step {
  position: relative;
  padding: 10px 8px 12px;
  color: #afbe9f;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.progress-step::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: transparent;
  content: "";
}

.progress-step.is-current {
  color: var(--white);
}

.progress-step.is-current::after {
  background: var(--orange);
}

.progress-step.is-done {
  color: var(--green);
}

.progress-step.is-done::after {
  background: var(--green);
}

main {
  min-height: 60vh;
}

#app,
noscript {
  display: block;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 43, 10, 0.94) 0%, rgba(16, 43, 10, 0.75) 48%, rgba(16, 43, 10, 0.08) 78%);
  content: "";
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  align-self: center;
  width: min(650px, 75%);
  padding: clamp(32px, 6vw, 72px);
  color: var(--white);
}

.kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h2,
.page-title {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h2 span {
  color: var(--green);
}

.hero .lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: #eef4ea;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.5;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.campaign-strip {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  margin: 24px 0 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(24, 48, 12, 0.07);
}

.campaign-strip > div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.campaign-strip > div:last-child {
  border-right: 0;
}

.campaign-strip strong,
.campaign-strip span {
  display: block;
}

.campaign-strip strong {
  color: var(--green-text);
  font-size: 1.18rem;
  line-height: 1.25;
}

.campaign-strip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.welcome-grid,
.module-layout,
.completion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

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

.panel h2 {
  margin-bottom: 15px;
  color: var(--green-dark);
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.panel h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.22rem;
  line-height: 1.25;
}

.panel p:last-child {
  margin-bottom: 0;
}

.notice-panel {
  border-left: 8px solid var(--orange);
  background: #fffaf2;
}

.notice-panel strong {
  color: var(--green-text);
}

.module-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.module-title-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  border-radius: var(--radius);
  background: var(--green-dark);
  color: var(--white);
  padding: clamp(30px, 5vw, 58px);
}

.module-title-card .page-title {
  max-width: 820px;
}

.module-art {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.lesson-list {
  display: grid;
  gap: 20px;
}

.lesson {
  position: relative;
  padding-left: clamp(26px, 5vw, 76px);
}

.lesson-number {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-dark);
  font-weight: 900;
  place-items: center;
}

.resource-figure {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  padding: 14px;
}

.resource-figure img {
  width: 100%;
  border-radius: 12px;
}

.resource-figure figcaption {
  padding: 12px 8px 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.btn,
.listen-button,
.option-button,
.text-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--orange);
  color: #3a2100;
  padding: 14px 24px;
  text-decoration: none;
  box-shadow: 0 7px 0 #bf6500;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 #bf6500;
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 #bf6500;
}

.btn-green {
  background: var(--green);
  color: var(--green-dark);
  box-shadow: 0 7px 0 #5f8200;
}

.btn-green:hover {
  box-shadow: 0 9px 0 #5f8200;
}

.btn-green:active {
  box-shadow: 0 2px 0 #5f8200;
}

.btn-secondary {
  border: 2px solid var(--green-text);
  background: var(--white);
  color: var(--green-text);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:active {
  box-shadow: none;
}

.listen-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--green-text);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-text);
  padding: 8px 17px;
  font-size: 0.85rem;
}

.listen-button::before {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  content: "";
}

.listen-button.is-speaking {
  background: var(--green-text);
  color: var(--white);
}

.question-shell {
  max-width: 850px;
  margin: 0 auto;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.question-title {
  margin: 5px 0 18px;
  color: var(--green-dark);
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.14;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.option-button {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 18px;
  text-align: left;
}

.option-letter {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-text);
  place-items: center;
}

.option-button:hover:not(:disabled) {
  border-color: var(--orange);
}

.option-button:disabled {
  cursor: default;
  opacity: 0.78;
}

.option-button.is-correct {
  border-color: var(--green);
  background: #f3f9e3;
  opacity: 1;
}

.option-button.is-wrong {
  border-color: var(--danger);
  background: #fff2ee;
  opacity: 1;
}

.feedback {
  margin-top: 20px;
  border-left: 6px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: #f3f9e3;
  padding: 15px 18px;
  font-weight: 800;
}

.feedback.is-wrong {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.score {
  display: inline-grid;
  min-width: 130px;
  min-height: 130px;
  margin: 20px 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 900;
  place-items: center;
}

.form-grid {
  display: grid;
  gap: 20px;
  margin-top: 25px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--green-dark);
  font-weight: 900;
}

.form-field input {
  width: 100%;
  min-height: 60px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 15px;
}

.form-field input:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(255, 143, 0, 0.25);
}

.field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 800;
}

.completion-visual {
  display: grid;
  gap: 20px;
}

.completion-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.completion-visual .stamp {
  width: min(330px, 80%);
  margin: -90px auto 0;
  border: 12px solid var(--cream);
  border-radius: 50%;
}

.completion-code {
  margin: 22px 0;
  border: 4px dashed var(--green);
  border-radius: 16px;
  background: #f3f9e3;
  color: var(--green-dark);
  padding: 20px;
  font-size: clamp(2rem, 7vw, 3.7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
}

.status-line {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-line strong {
  color: var(--green-text);
}

.review-grid {
  display: grid;
  gap: 22px;
}

.review-module {
  border-top: 7px solid var(--green);
}

.site-footer {
  background: var(--green-dark);
  color: #e7ede1;
  padding: 38px 20px;
  text-align: center;
}

.site-footer > div {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 12px;
}

.site-footer a {
  color: var(--green);
  font-weight: 900;
}

.text-button {
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #c4d1bb;
  padding: 4px 0;
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 780px) {
  body {
    font-size: 18px;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    grid-template-columns: 115px 1fr;
    gap: 14px;
    width: min(100% - 28px, 1180px);
    padding: 14px 0 12px;
  }

  .brand img {
    width: 112px;
  }

  .header-copy .eyebrow,
  .header-copy h1 + p {
    display: none;
  }

  .header-copy h1 span {
    display: block;
    margin-top: 3px;
    font-size: 0.82em;
  }

  .progress-step {
    padding: 9px 3px 11px;
    font-size: 0.68rem;
  }

  #app,
  noscript {
    width: min(100% - 24px, 1180px);
    padding: 24px 0 50px;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(16, 43, 10, 0.97) 0%, rgba(16, 43, 10, 0.77) 62%, rgba(16, 43, 10, 0.12) 100%);
  }

  .hero-content {
    align-self: end;
    width: 100%;
    padding: 30px 24px 36px;
  }

  .hero h2 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .hero-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .campaign-strip {
    grid-template-columns: 1fr 1fr;
  }

  .campaign-strip > div {
    border-bottom: 1px solid var(--line);
  }

  .campaign-strip > div:nth-child(2n) {
    border-right: 0;
  }

  .campaign-strip > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .welcome-grid,
  .module-layout,
  .completion-layout,
  .module-heading {
    grid-template-columns: 1fr;
  }

  .module-title-card,
  .module-art {
    min-height: 260px;
  }

  .module-art {
    height: 330px;
  }

  .lesson {
    padding: 74px 22px 24px;
  }

  .lesson-number {
    left: 22px;
    top: 18px;
  }

  .question-shell .panel {
    padding: 24px 18px;
  }

  .option-button {
    grid-template-columns: 40px 1fr;
    min-height: 72px;
    padding: 10px 12px;
  }

  .completion-visual {
    order: -1;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
