:root {
  --ink: #17372f;
  --muted: #61736d;
  --cream: #f7f4ec;
  --paper: #fffefa;
  --green: #256b55;
  --green-dark: #174e3e;
  --mint: #dfeee7;
  --peach: #f5c9a9;
  --line: #dce2dc;
  --danger: #a33b35;
  --shadow: 0 22px 60px rgba(30, 63, 53, 0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { min-height: 100vh; margin: 0; color: var(--ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 18% 15%, rgba(245, 201, 169, .24), transparent 26%), radial-gradient(circle at 86% 80%, rgba(157, 199, 175, .24), transparent 30%), var(--cream); }
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.site-header { height: 78px; padding: 0 clamp(22px, 5vw, 74px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23, 55, 47, .1); }
.brand { color: var(--ink); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 23px; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: sans-serif; }
.quiet-button, .copy-button, .text-button, .show-button, .back-button { border: 0; background: transparent; cursor: pointer; }
.quiet-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.4); font-size: 14px; font-weight: 600; }
.quiet-button:hover { background: white; }

main { min-height: calc(100vh - 122px); }
.hero { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: clamp(68px, 10vh, 120px) 0 74px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; font-size: 12px; color: var(--green); margin-bottom: 18px; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(48px, 7vw, 76px); line-height: .98; letter-spacing: -.035em; }
h1 em { color: var(--green); font-style: italic; }
.hero-copy { max-width: 610px; margin: 28px auto 26px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.safety-note { width: fit-content; max-width: 580px; margin: 0 auto 30px; padding: 14px 20px; display: flex; text-align: left; gap: 13px; align-items: center; border: 1px solid #b9d7c9; border-radius: 12px; background: rgba(231, 243, 236, .72); color: #31584b; font-size: 14px; line-height: 1.5; }
.safety-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-weight: 700; }
.primary-button, .site-button { border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 700; cursor: pointer; box-shadow: 0 7px 18px rgba(37,107,85,.2); transition: transform .15s, background .15s; }
.primary-button:hover, .site-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button.large { padding: 16px 25px; font-size: 16px; }
.primary-button span { padding-left: 10px; }
.time-note { margin-top: 16px; color: #84918c; font-size: 13px; }
.restore-button { display: block; margin: 18px auto 0; padding: 6px; border: 0; border-bottom: 1px solid #8ca399; background: transparent; color: var(--green); cursor: pointer; font-size: 12px; }

.lesson-shell { width: min(1180px, calc(100% - 40px)); margin: 38px auto 56px; display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.coach-panel { padding: 20px 0; }
.coach-panel h2 { margin: 0 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; line-height: 1.05; }
.coach-panel > div > p { color: var(--muted); line-height: 1.65; }
.practice-card { margin: 26px 0 16px; padding: 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(30, 63, 53, .07); }
.practice-label { margin-bottom: 8px; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.credential-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid #e8ebe7; }
.credential-row:first-of-type { border-top: 0; }
.credential-row div { min-width: 0; }
.credential-row span { display: block; color: var(--muted); font-size: 12px; }
.credential-row strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 14px; }
.copy-button { flex: 0 0 auto; padding: 6px 8px; color: var(--green); font-size: 12px; font-weight: 700; border-radius: 6px; }
.copy-button:hover { background: var(--mint); }
.tip-card { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: #f4e6d7; color: #654c39; font-size: 13px; line-height: 1.5; }
.tip-card strong { display: block; margin-bottom: 3px; }
.tip-card p { margin: 0; }
.tip-card ol { margin: 6px 0 0; padding-left: 18px; }
.tip-card li + li { margin-top: 4px; }
.tip-icon { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #805d42; color: white; font-weight: 700; font-family: serif; }
.progress-list { list-style: none; padding: 0; margin: 27px 0 0; display: flex; gap: 7px; }
.progress-list li { flex: 1; color: #8a9792; font-size: 11px; line-height: 1.3; }
.progress-list li::before { content: ""; display: block; height: 4px; margin-bottom: 8px; border-radius: 5px; background: #d8ded9; }
.progress-list li.active, .progress-list li.done { color: var(--ink); font-weight: 600; }
.progress-list li.active::before { background: var(--green); }
.progress-list li.done::before { background: #8fbea8; }
.progress-list li span { display: none; }

.browser-wrap { border-radius: 16px; overflow: hidden; border: 1px solid #d4dad5; background: var(--paper); box-shadow: var(--shadow); }
.browser-bar { height: 48px; padding: 0 17px; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; background: #e7eae6; border-bottom: 1px solid #d1d7d2; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: #c3cac4; }
.browser-dots span:first-child { background: #df9b86; }
.browser-dots span:nth-child(2) { background: #dfc27e; }
.address-bar { justify-self: stretch; padding: 7px 12px; border-radius: 6px; background: #f9faf8; text-align: center; color: #78837e; font-size: 11px; }
.address-bar > span:first-child { font-size: 9px; }
.practice-site { min-height: 665px; padding: 25px 28px 60px; background: linear-gradient(rgba(255,254,250,.9), rgba(255,254,250,.9)), radial-gradient(circle at 20% 80%, #d8ece1, transparent 35%); }
.meadow-brand { display: flex; align-items: center; gap: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; color: #23493d; }
.meadow-brand span { color: var(--green); font-family: sans-serif; font-size: 25px; }
.auth-card { width: min(390px, 100%); margin: 52px auto 0; padding: 32px; border-radius: 14px; background: white; border: 1px solid #e0e4df; box-shadow: 0 12px 36px rgba(27,59,49,.1); }
.auth-heading { text-align: center; margin-bottom: 27px; }
.auth-heading.compact { margin-bottom: 22px; }
.auth-heading h3, .celebration h3 { margin: 11px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.auth-heading p, .celebration > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-icon { width: 39px; height: 39px; display: grid; place-items: center; margin: 0 auto; border-radius: 11px; background: var(--mint); color: var(--green); font-weight: 700; }
.auth-icon.success { border-radius: 50%; background: var(--green); color: white; }
.auth-icon.big { width: 54px; height: 54px; font-size: 22px; }
.field-group { margin-top: 17px; }
.field-group label, .label-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.text-button { color: var(--green); font-size: 12px; font-weight: 600; }
input { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid #cbd3cd; border-radius: 8px; background: white; font-size: 14px; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,107,85,.13); }
.password-input { position: relative; }
.password-input input { padding-right: 58px; }
.show-button { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); padding: 5px; color: var(--green); font-size: 11px; font-weight: 700; }
.site-button { width: 100%; margin-top: 22px; padding: 13px 18px; }
.form-help { margin: 17px 0 0; color: #84918c; font-size: 11px; line-height: 1.5; text-align: center; }
.form-message { margin-top: 15px; padding: 10px 12px; border-radius: 7px; background: #fae9e6; color: var(--danger); font-size: 12px; line-height: 1.45; }
.form-message.good { color: var(--green-dark); background: var(--mint); }
.back-button { margin: -10px 0 15px -7px; padding: 7px; color: var(--green); font-size: 12px; font-weight: 600; }
.fake-email { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfa; font-size: 12px; line-height: 1.5; }
.fake-email > div { padding: 5px 0; border-bottom: 1px solid #e5e9e5; }
.fake-email > div span { display: inline-block; width: 55px; color: var(--muted); }
.fake-email p { margin: 15px 0 0; }
.rules-list { list-style: none; margin: 15px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rules-list li { position: relative; padding-left: 21px; color: #7b8983; font-size: 11px; line-height: 1.35; }
.rules-list li::before { content: "○"; position: absolute; left: 0; color: #9ba6a1; }
.rules-list li.passes { color: var(--green); }
.rules-list li.passes::before { content: "✓"; font-weight: 800; }
.celebration { text-align: center; }
.confetti { margin: -7px 0 18px; color: #d78760; letter-spacing: .3em; }
.learned-list { margin-top: 20px; padding: 15px; border-radius: 9px; background: var(--mint); color: var(--green-dark); text-align: left; font-size: 13px; line-height: 1.5; }
.learned-list div + div { margin-top: 7px; }

footer { min-height: 44px; display: grid; place-items: center; color: #82908a; font-size: 11px; }

@media (max-width: 820px) {
  .lesson-shell { grid-template-columns: 1fr; width: min(650px, calc(100% - 28px)); margin-top: 20px; }
  .coach-panel { padding-bottom: 0; }
  .progress-list { margin-bottom: 0; }
  .browser-wrap { margin-top: 0; }
}

@media (max-width: 520px) {
  .site-header { height: 66px; padding: 0 16px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { padding-top: 56px; }
  .hero-copy { font-size: 16px; }
  .safety-note { font-size: 13px; }
  .coach-panel h2 { font-size: 34px; }
  .browser-bar { grid-template-columns: 46px 1fr 46px; padding: 0 10px; }
  .practice-site { min-height: 620px; padding: 20px 13px 40px; }
  .auth-card { margin-top: 40px; padding: 25px 20px; }
  .rules-list { grid-template-columns: 1fr; }
}

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