:root {
  color-scheme: light;
  --ink: #173b31;
  --muted: #455d54;
  --green: #155e46;
  --green-dark: #104a37;
  --mint: #eaf5ee;
  --warm: #f8f5ed;
  --line: #d5e1d7;
  --white: #fff;
  --error: #9a361c;
  --focus: #964410;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 1rem/1.55 "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden, .trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 2;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  background: var(--white);
  padding: 12px;
}
.skip-link:focus { transform: none; }
.section { padding-block: 60px; }
.section h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: -.04em; }
.section-copy { margin-top: 10px; color: var(--muted); font-size: 1.06rem; }
.script-note { padding-block: 14px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.brand img { flex: none; }
.brand small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 3px; }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 34px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview-strip { background: #f4f7f0; border-bottom: 1px solid #dae5d9; }
.preview-strip .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-block: 8px; font-size: .82rem; color: var(--muted); }
.preview-strip strong { color: var(--green-dark); }

.hero { background: var(--mint); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 76px); align-items: center; padding-block: 58px; }
.intro, .sample { min-width: 0; }
.hero-label { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 700; color: var(--green); margin-bottom: 16px; }
.hero-label span { width: 8px; height: 8px; border-radius: 50%; background: #3a8b5d; }
h1 { font-size: clamp(2.8rem, 5.45vw, 4.6rem); letter-spacing: -.06em; max-width: 10ch; }
.intro-copy { max-width: 34ch; color: var(--muted); font-size: clamp(1.08rem, 1.65vw, 1.23rem); margin-top: 22px; }
.hero-actions, .help-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.hero-actions { margin-top: 26px; }
.intro-note { margin-top: 15px; color: var(--muted); font-size: .87rem; max-width: 42ch; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.25;
  text-decoration: none;
}
.primary { color: var(--white); background: var(--green); border-color: var(--green); }
.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.secondary { background: var(--white); color: var(--green-dark); border-color: #aac3b2; }
.secondary:hover { background: #f0f7f0; border-color: var(--green); }
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font-weight: 650;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-button:hover { color: #0c392b; }

.sample {
  background: var(--white);
  border: 1px solid #c9ddcf;
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  box-shadow: 0 8px 26px #173b3110;
}
.sample-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 12px; margin-bottom: 13px; }
.sample-header h2 { font-size: 1.36rem; letter-spacing: -.025em; }
.lesson-kicker { margin-bottom: 5px; color: var(--green); font-size: .74rem; font-weight: 750; letter-spacing: .09em; }
.lesson-length { border-radius: 50px; background: var(--mint); color: var(--green-dark); font-size: .78rem; padding: 4px 9px; white-space: nowrap; }
.lesson-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lesson-topics button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: #f7faf6;
  font-weight: 650;
  font-size: .88rem;
}
.lesson-topics button[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.lesson-topics button:not([aria-pressed="true"]):hover { border-color: var(--green); }
.lesson-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #163b32;
}
.lesson-summary { margin-top: 12px; color: var(--muted); font-size: .96rem; }
.lesson-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 14px; }
.lesson-actions .button { font-size: .9rem; }
.sample-note { color: var(--muted); font-size: .8rem; }
.lesson-transcript { margin-top: 13px; border-top: 1px solid var(--line); }
.lesson-transcript summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; cursor: pointer; color: var(--green-dark); font-weight: 650; }
.lesson-transcript ol { margin: 0; padding: 2px 0 4px 23px; color: var(--muted); }
.lesson-transcript li { margin-block: 6px; padding-left: 4px; font-size: .9rem; }
.lesson-transcript .link-button { display: flex; min-height: 40px; font-size: .86rem; }

.practice-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(24px, 6vw, 75px); border-bottom: 1px solid var(--line); }
.practice-intro > .link-button { margin-top: 10px; }
.practice-card { padding: 22px 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #f4f9f4; }
.practice-card h3 { font-size: clamp(1.22rem, 2.5vw, 1.55rem); margin-block: 8px 16px; }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.answers button {
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid #a9c5b0;
  border-radius: 7px;
  background: #f7faf6;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
}
.answers button:not([aria-pressed="true"]):hover { border-color: var(--green); background: #ecf5eb; }
.answers button.correct { background: #d9efdd; border-color: #4f855c; }
.answers button.retry { background: #f8e9dd; border-color: #b97b60; }
.sample-help { font-size: .89rem; }
.sample-help .link-button { font-size: .9rem; }
.sample-help p { color: var(--muted); padding-block: 0 8px; }
.sample-feedback { color: var(--green-dark); font-size: .93rem; font-weight: 650; }
.sample-feedback.retry { color: var(--error); }
.next-question { margin-top: 13px; }
.shadow-lab { max-width: 405px; min-width: 0; padding: 10px 13px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 10px; }
.shadow-lab legend { padding-inline: 5px; font-weight: 700; }
.shadow-lab svg { display: block; width: 100%; height: auto; }
.shadow-lab label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7px; font-weight: 650; font-size: .86rem; }
.shadow-lab input[type="range"] { min-height: 34px; margin: 0; padding: 0; accent-color: var(--green); border: 0; }
.shadow-lab p { color: var(--muted); font-size: .88rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { display: flex; align-items: flex-start; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  color: var(--green-dark);
  background: var(--mint);
  font-weight: 750;
}
.steps h3 { font-size: 1.11rem; margin-top: 5px; }
.steps p { color: var(--muted); margin-top: 7px; }

.guide-section { background: var(--warm); border-block: 1px solid #ebe5d9; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.guide { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid #dedbd0; border-radius: var(--radius); background: var(--white); }
.guide-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; margin-bottom: 14px; }
.guide-icon svg { width: 24px; height: 24px; }
.pdf-icon { background: #e9efe0; color: #3d5d31; }
.web-icon { background: #e1efe9; color: #235f4d; }
.print-icon { background: #f7e9da; color: #7e4b30; }
.guide h3 { font-size: 1.25rem; margin-bottom: 8px; }
.guide p { color: var(--muted); }
.guide .time { margin-top: auto; padding-top: 14px; color: var(--ink); font-weight: 650; font-size: .88rem; }
.guide .button { margin-top: 14px; }
.guide-note { color: var(--muted); font-size: .88rem; margin-top: 16px; max-width: 78ch; }

.help-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 7vw, 88px); }
.help-status { color: var(--muted); margin-top: 10px; font-size: .93rem; }
.help-actions { margin-top: 18px; }
.support-address { display: inline-block; overflow-wrap: anywhere; margin-top: 8px; color: var(--green-dark); font-weight: 650; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary, .more-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  font-weight: 650;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; color: var(--green-dark); font-size: 1.25rem; }
details[open] > summary::after { content: "−"; }
.questions summary { padding-block: 12px; }
.questions details p { color: var(--muted); padding: 0 18px 15px 0; }
.site-footer { border-top: 1px solid var(--line); background: #f5f8f3; }
.footer-row, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.footer-row { justify-content: space-between; padding-block: 12px; }
.footer-links button { font-size: .87rem; }

dialog {
  position: fixed;
  width: min(590px, calc(100% - 28px));
  max-height: 90dvh;
  margin: auto;
  padding: 24px 26px;
  border: 1px solid #b8cdbd;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 72px #123d2b35;
  overflow-y: auto;
}
dialog::backdrop { background: #0b281f94; }
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
}
.close-button:hover { background: var(--mint); }
dialog h2 { font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -.035em; padding-right: 38px; }
.dialog-step { margin-bottom: 6px; color: var(--green); font-weight: 700; font-size: .85rem; }
.dialog-note, .chapter-summary, .form-note { margin-top: 12px; color: var(--muted); }
form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
form label { display: block; margin-top: 14px; font-weight: 650; font-size: .93rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 13px; }
input:not([type="checkbox"]), select, textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid #a8bdb0;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #586c63; }
.optional { color: var(--muted); font-size: .85rem; font-weight: 400; }
.more-details { margin-top: 12px; border-top: 1px solid var(--line); }
.more-details summary { justify-content: flex-start; font-size: .92rem; }
.more-details summary::after { margin-left: auto; }
.more-details[open] > summary { margin-bottom: -7px; }
.chapter-summary { overflow-wrap: anywhere; font-size: .94rem; }
.upload { border: 1px dashed #a8bdb0; border-radius: 9px; padding: 10px 12px; background: #f7faf6; }
.upload small { display: block; margin-top: 3px; font-weight: 400; color: var(--muted); }
input[type="file"] { border: 0; padding: 5px 0; background: transparent; font-size: .88rem; }
input::file-selector-button { padding: 6px 10px; margin-right: 9px; border: 1px solid #a8bdb0; border-radius: 5px; background: var(--white); color: var(--ink); font: inherit; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0; accent-color: var(--green); }
.small, .form-note, .form-message { color: var(--muted); font-size: .87rem; }
.small { margin-top: 5px; }
.dialog-actions { margin-top: 18px; justify-content: flex-end; }
.error { color: var(--error); font-size: .9rem; margin-top: 6px; }
.error:empty, .form-message:empty { display: none; }
.form-message { margin-top: 8px; }
.request-result, .info-body { margin-top: 14px; }
.request-result p, .info-body p { margin-block: 0 11px; overflow-wrap: anywhere; }
.info-body h3 { font-size: 1.05rem; margin: 17px 0 8px; }
.info-body .link-button, .request-result .link-button { margin-right: 16px; }
.request-row { border-top: 1px solid var(--line); padding-block: 11px; }
.request-row p { margin: 4px 0 0; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 880px) {
  .wrap { width: min(1120px, calc(100% - 48px)); }
  .hero-grid { gap: 25px; padding-block: 44px; }
  .sample { padding: 18px; }
  .steps { gap: 16px; }
  .steps li { gap: 9px; }
  .guide { padding: 17px; }
  .section { padding-block: 48px; }
}

@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { align-items: flex-start; flex-direction: column; gap: 1px; padding-block: 12px 3px; }
  .brand img { width: 36px; height: 36px; }
  nav { width: 100%; flex-wrap: wrap; gap: 0 22px; }
  nav a { font-size: .89rem; }
  .hero-grid, .steps, .guide-grid, .help-grid, .practice-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 30px; gap: 24px; }
  h1 { font-size: clamp(2.7rem, 11.2vw, 3.65rem); max-width: 12ch; }
  .hero-label { margin-bottom: 10px; }
  .intro-copy { margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
  .intro-note { margin-top: 12px; }
  .sample { padding: 16px; }
  .practice-card { padding: 17px; }
  .section { padding-block: 36px; }
  .steps { margin-top: 17px; gap: 13px; }
  .steps li { padding-top: 12px; gap: 12px; }
  .guide-grid { margin-top: 17px; gap: 12px; }
  .guide { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0 12px; }
  .guide-icon { width: 38px; height: 38px; grid-row: 1 / span 2; margin: 0; }
  .guide h3, .guide p, .guide .button { grid-column: 2; }
  .guide .button { justify-self: start; }
  .help-grid { gap: 22px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  dialog { padding: 20px 17px; max-height: 92dvh; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 11px; font-size: .88rem; }
  nav { column-gap: 18px; }
}
