:root {
  color-scheme: light;
  --paper: #f8faf4;
  --white: #fff;
  --ink: #163227;
  --muted: #4d6558;
  --green: #186146;
  --green-dark: #124633;
  --mint: #e8f3e7;
  --line: #d8e5d9;
  --amber: #fff2c5;
  --focus: #b6770a;
  --radius: 24px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
input, button { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--green-dark); background: #d8ecce; }

.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--green);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; line-height: 1.22; }
.brand strong { font-size: 16px; letter-spacing: -.025em; }
.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #eefae6;
  background: var(--green);
}
.brand-mark svg { width: 25px; height: 25px; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); font-size: 14px; font-weight: 650; color: var(--muted); }
.nav-links a { padding-block: 10px; }
.nav-links a:hover, .text-link:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: .24em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 54px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 740;
  text-align: center;
  line-height: 1.25;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 6px 16px #16322726; }
.button-small { min-height: 43px; padding: 8px 16px; font-size: 14px; }
.button-outline { border-color: #a8c9af; color: var(--green-dark); }
.button-outline:hover { background: var(--mint); border-color: #71a383; }
.button-full { width: 100%; }
.text-link { color: var(--green); font-weight: 710; font-size: 15px; }
.text-link span { padding-left: 3px; }

.hero {
  overflow: clip;
  background: radial-gradient(ellipse at 90% 33%, #e9f2e4 0, transparent 53%), var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 6vw, 84px);
  padding-block: clamp(63px, 8.2vw, 114px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.eyebrow-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #4f965c; }
.hero h1 {
  max-width: 16ch;
  margin-top: 15px;
  font-size: clamp(2.8rem, 5.45vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.064em;
  line-height: .99;
  text-wrap: balance;
}
.hero h1 span { color: var(--green); }
.intro { max-width: 51ch; margin-top: 24px; font-size: clamp(1.03rem, 1.7vw, 1.19rem); color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px 22px; margin-top: 28px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .86rem;
}
.hero-facts strong { color: var(--ink); }
.hero-facts li + li { border-left: 1px solid #cbd9ce; padding-left: 17px; }

.demo-wrap { position: relative; min-width: 0; isolation: isolate; }
.demo-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -28px -24px;
  border-radius: 28px;
  background-image: linear-gradient(#a3c5a63b 1px, transparent 1px), linear-gradient(90deg, #a3c5a63b 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: radial-gradient(ellipse at center, black 48%, transparent 76%);
}
.demo {
  overflow: hidden;
  border: 1px solid #bcd2c0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 22px 48px #153a261d;
}
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 23px;
  color: var(--white);
  background: var(--green-dark);
}
.demo-name > span { display: block; color: #c8e2cd; font-size: .76rem; font-weight: 700; }
.demo-name h2 { font-size: 1.2rem; line-height: 1.22; letter-spacing: -.025em; }
.live-label {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #91b69d;
  border-radius: 7px;
  color: #e7f6e4;
  font-size: .72rem;
  font-weight: 700;
}
.demo-body { padding: 23px; }
.demo-question { font-size: 1.15rem; line-height: 1.32; font-weight: 760; letter-spacing: -.018em; }
.inventory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 20px; }
.inventory div { display: grid; gap: 2px; padding: 10px 7px 9px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #f4f8f3; }
.inventory dt { color: var(--muted); font-size: .75rem; font-weight: 650; }
.inventory dd { font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; font-weight: 800; }
#stock-form label { display: block; margin-bottom: 6px; font-size: .83rem; font-weight: 750; }
.answer-row { display: flex; gap: 9px; align-items: stretch; }
.answer-row input {
  min-width: 0;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #b7a467;
  border-radius: 10px;
  color: var(--ink);
  background: var(--amber);
}
.answer-row input::placeholder { color: #6d613b; }
.answer-row .button { min-height: 47px; padding: 9px 16px; }
.feedback { min-height: 2.5em; margin-top: 9px; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.feedback[data-state="correct"] { color: #1b6543; font-weight: 760; }
.feedback[data-state="retry"], .feedback[data-state="invalid"] { color: #8a3522; font-weight: 710; }
.demo-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 23px;
  border-top: 1px solid var(--line);
  background: #f3f8f1;
  color: var(--green-dark);
  font-size: .77rem;
  font-weight: 660;
}
.demo-footer svg { width: 17px; height: 17px; flex: 0 0 auto; }

.section { padding-block: clamp(54px, 7vw, 94px); scroll-margin-top: 18px; }
.section h2 { margin-top: 9px; font-size: clamp(2rem, 4.1vw, 3.35rem); line-height: 1.06; letter-spacing: -.052em; font-weight: 800; text-wrap: balance; }
.section-lead { max-width: 710px; }
.section-lead > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 1.04rem; }
.exercise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 27px; }
.exercise-card { display: grid; align-content: start; gap: 8px; padding: clamp(17px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tile-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; color: var(--green); background: var(--mint); }
.tile-icon svg { width: 24px; height: 24px; }
.exercise-number { color: var(--muted); font-size: .76rem; font-weight: 740; white-space: nowrap; }
.exercise-number span { padding-inline: 3px; color: #5b8a6a; }
.exercise-card h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.027em; }
.exercise-card p { color: var(--muted); font-size: .96rem; }
.simulation-note { display: flex; align-items: flex-start; gap: 16px; margin-top: 15px; padding: 18px; border: 1px solid #c7dec9; border-radius: 16px; background: #edf5ea; }
.simulation-note .tile-icon { flex: 0 0 auto; background: #d8ecd7; }
.simulation-note h3 { font-size: 1.08rem; letter-spacing: -.02em; }
.simulation-note p { margin-top: 3px; color: var(--muted); font-size: .92rem; }

.workbook { background: var(--mint); border-block: 1px solid var(--line); }
.workbook-layout { display: grid; align-items: center; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(27px, 6vw, 80px); }
.workbook h2 { max-width: 14ch; }
.steps { display: grid; gap: 16px; margin: 23px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; color: var(--muted); font-size: .94rem; }
.step-number {
  display: grid;
  grid-row: span 2;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--green-dark);
  background: #d1e7d0;
  font-weight: 780;
}
.steps strong { color: var(--ink); }
.worksheet-frame { min-width: 0; padding: 12px; border: 1px solid #b8d1bc; border-radius: 18px; background: var(--white); box-shadow: 0 14px 28px #2c5c3612; }
.worksheet-title { display: flex; align-items: center; gap: 8px; padding: 4px 5px 12px; font-size: .89rem; font-weight: 760; }
.worksheet-dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8f58; }
.file-label { margin-left: auto; padding: 2px 7px; border-radius: 6px; color: var(--green-dark); background: var(--mint); font-size: .74rem; }
.worksheet-view { overflow: auto; border: 1px solid var(--line); border-radius: 9px; scrollbar-color: #91b49b #f0f6ee; }
.worksheet-view img { display: block; width: 100%; min-width: 530px; height: auto; }
.worksheet-frame figcaption { padding: 9px 5px 2px; color: var(--muted); font-size: .8rem; }

.offer { padding-bottom: 0; }
.offer-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(24px, 5vw, 63px);
  overflow: hidden;
  padding: clamp(24px, 5vw, 62px);
  border-radius: 29px;
  color: var(--white);
  background: radial-gradient(ellipse at 0 0, #215c46 0, transparent 66%), #113527;
}
.offer-copy .eyebrow { color: #baddbb; }
.offer-copy h2 { margin-top: 11px; color: #f5fbef; font-size: clamp(2.15rem, 4.8vw, 4rem); }
.offer-copy > p:not(.eyebrow) { max-width: 37ch; margin-top: 18px; color: #d4e7d7; font-size: 1.04rem; }
.purchase { padding: clamp(19px, 3vw, 28px); border-radius: 18px; color: var(--ink); background: var(--white); }
.purchase-caption { color: var(--green); font-size: .86rem; font-weight: 750; }
.price { margin-top: 3px; color: var(--ink); font-weight: 810; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.payment-note, .purchase-help { color: var(--muted); font-size: .82rem; }
.payment-note { margin-top: 3px; }
.includes { display: grid; gap: 7px; margin: 16px 0 18px; padding: 15px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .9rem; }
.includes li { display: flex; align-items: baseline; gap: 9px; }
.includes li::before { content: "✓"; color: var(--green); font-weight: 800; }
.purchase-pending { padding: 10px 12px; border-radius: 10px; color: var(--green-dark); background: var(--mint); text-align: center; font-weight: 720; }
.purchase-help { margin-top: 10px; text-align: center; }

.faq-layout { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(25px, 5vw, 60px); }
.faq-list { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 15px; cursor: pointer; list-style: none; font-size: .98rem; font-weight: 730; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 15px 14px; color: var(--muted); font-size: .93rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 23px; color: var(--muted); font-size: .88rem; }
.footer-brand { color: var(--ink); font-weight: 750; }

@media (max-width: 850px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-block: 54px; }
  .hero h1 { max-width: 18ch; font-size: clamp(2.65rem, 8vw, 4.2rem); }
  .demo-wrap { max-width: 580px; }
  .workbook-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .workbook h2 { max-width: none; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { min-height: 69px; }
  .nav-links { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .brand strong { font-size: 15px; }
  .hero-layout { padding-block: 41px; }
  .hero h1 { letter-spacing: -.055em; }
  .intro { margin-top: 17px; }
  .hero-actions { margin-top: 22px; }
  .hero-facts { gap: 6px; }
  .hero-facts li, .hero-facts li + li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbf7; }
  .demo-header, .demo-body, .demo-footer { padding-inline: 16px; }
  .demo-header { padding-block: 15px; }
  .demo-body { padding-top: 18px; }
  .demo-name h2 { font-size: 1.05rem; }
  .live-label { font-size: .64rem; padding-inline: 6px; }
  .exercise-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .exercise-card { padding: 17px; }
  .offer-panel { grid-template-columns: minmax(0, 1fr); border-radius: 21px; }
  .offer-copy h2 br { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
