:root {
  --ink: #172d3d;
  --ink-soft: #486174;
  --paper: #f7f8f4;
  --paper-deep: #edf1ec;
  --white: #ffffff;
  --teal: #1d5b63;
  --teal-dark: #123f48;
  --aqua: #8bd8c9;
  --aqua-pale: #dff3ed;
  --coral: #f17e64;
  --coral-pale: #ffebe5;
  --gold: #e2ad58;
  --line: #dce5e1;
  --shadow: 0 18px 50px rgba(26, 57, 67, .08);
  --radius: 18px;
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ambient { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(2px); opacity: .45; z-index: -1; }
.ambient-one { top: -190px; right: -150px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(139,216,201,.35), rgba(139,216,201,0) 68%); }
.ambient-two { top: 900px; left: -230px; width: 540px; height: 540px; background: radial-gradient(circle, rgba(241,126,100,.09), rgba(241,126,100,0) 70%); }
.section-shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; width: min(1280px, calc(100% - 64px)); margin: 0 auto; border-bottom: 1px solid rgba(220,229,225,.72); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--white); background: var(--teal); font-size: 15px; letter-spacing: 0; }
.brand-accent { color: var(--coral); }
.topnav { display: flex; gap: 34px; margin-left: auto; margin-right: 30px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.topnav a { transition: color .2s ease; }
.topnav a:hover { color: var(--coral); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 19px; transition: all .2s ease; }
.icon-button:hover { background: var(--white); border-color: var(--coral); color: var(--coral); transform: rotate(-30deg); }
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; align-items: center; padding: 66px 0 72px; }
.eyebrow { margin: 0 0 17px; color: var(--coral); font-size: 10px; font-weight: 850; letter-spacing: .22em; }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--coral); vertical-align: 1px; box-shadow: 0 0 0 4px var(--coral-pale); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -.045em; }
h1 { margin-bottom: 23px; font-size: clamp(48px, 6vw, 80px); }
h1 em, h2 em { color: var(--coral); font-style: italic; }
.hero-text { max-width: 475px; margin-bottom: 31px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.hero-text strong { color: var(--ink); font-weight: 750; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { display: inline-flex; align-items: center; gap: 22px; padding: 14px 18px 14px 21px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 10px 22px rgba(29,91,99,.18); }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 14px 30px rgba(29,91,99,.23); }
.button-primary span { font-size: 19px; line-height: 10px; }
.button-small { padding: 11px 15px; gap: 10px; font-size: 11px; }
.text-link { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.text-link span { margin-left: 8px; color: var(--coral); font-size: 18px; }
.hero-orbit { width: min(390px, 80vw); height: 390px; position: relative; justify-self: end; margin-right: 55px; }
.orbit { position: absolute; border: 1px solid rgba(29,91,99,.17); border-radius: 50%; transform: rotate(-17deg); }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; }
.orbit-outer { inset: 0; border-color: rgba(29,91,99,.15); border-right-color: transparent; }
.orbit-outer::before { top: 46px; right: 28px; width: 13px; height: 13px; background: var(--coral); box-shadow: 0 0 0 7px rgba(241,126,100,.13); }
.orbit-inner { inset: 46px; border-color: rgba(29,91,99,.22); border-left-color: transparent; transform: rotate(35deg); }
.orbit-inner::after { bottom: 26px; left: 15px; width: 9px; height: 9px; background: var(--gold); }
.orbit-core { position: absolute; inset: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); background: var(--teal); box-shadow: 0 15px 38px rgba(29,91,99,.21); }
.orbit-core span { font-family: var(--display); font-size: 75px; line-height: .85; letter-spacing: -.08em; }
.orbit-core small { margin-top: 9px; font-size: 10px; font-weight: 800; letter-spacing: .27em; opacity: .7; }
.orbit-dot { position: absolute; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: var(--teal); background: var(--aqua-pale); font-size: 12px; }
.dot-top { top: 4px; left: 58px; }
.dot-right { top: 176px; right: -15px; color: var(--coral); background: var(--coral-pale); transform: rotate(12deg); }
.dot-bottom { right: 80px; bottom: 2px; color: var(--gold); background: #fff4dc; }
.stats-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 132px; }
.stat-card { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 15px 18px; background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 12px; }
.stat-main { display: grid; grid-template-columns: auto 1fr auto; column-gap: 13px; align-items: center; }
.stat-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--teal); background: var(--aqua-pale); font-size: 22px; }
.stat-icon.gold { color: #a87824; background: #fff4dc; }
.stat-icon.coral { color: var(--coral); background: var(--coral-pale); }
.stat-label { display: block; margin-bottom: 3px; color: #78909c; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.stat-card strong { display: block; color: var(--ink); font-size: 13px; }
.progress-track { width: 100%; height: 5px; margin: 0 5px; overflow: hidden; border-radius: 99px; background: var(--paper-deep); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width .55s ease; }
.progress-percent { color: var(--coral); font-size: 12px; font-weight: 850; }
.reset-inline { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 14px; border: 1px solid #f3c8bd; border-radius: 8px; color: #b65c4a; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; transition: all .2s ease; }
.reset-inline span { font-size: 17px; line-height: 10px; }
.reset-inline:hover { border-color: var(--coral); color: var(--white); background: var(--coral); }
.intro-section { margin-bottom: 134px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(36px, 4vw, 51px); }
.section-note { max-width: 375px; margin-bottom: 3px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.method-card { position: relative; min-height: 224px; padding: 23px 23px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.method-number { position: absolute; top: 18px; right: 20px; color: #b6c6c2; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.method-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 31px; border-radius: 12px; color: var(--teal); background: var(--aqua-pale); font-size: 21px; }
.method-card:nth-child(2) .method-icon { color: var(--coral); background: var(--coral-pale); }
.method-card:nth-child(3) .method-icon { color: #ae812c; background: #fff4dc; }
.method-card:nth-child(4) .method-icon { color: var(--teal); background: #e5eef0; }
.method-card h3 { margin-bottom: 9px; font-size: 15px; }
.method-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.editorial-note { display: flex; align-items: flex-start; gap: 12px; max-width: 820px; margin-top: 24px; padding: 16px 19px; color: var(--ink-soft); background: #f1f5f1; border-left: 3px solid var(--aqua); font-size: 11px; }
.editorial-note p { margin: 0; }
.editorial-note strong { color: var(--ink); }
.note-mark { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; color: var(--teal); background: var(--aqua); font: 800 11px Georgia, serif; }
.journey-section { margin-bottom: 131px; }
.section-heading-tight { align-items: center; margin-bottom: 33px; }
.journey-legend { display: flex; gap: 19px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.journey-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--line); }
.legend-dot.done { background: var(--teal); }
.legend-dot.current { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-pale); }
.law-layout { display: grid; grid-template-columns: 43% 57%; min-height: 540px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); overflow: hidden; box-shadow: 0 12px 40px rgba(26,57,67,.04); }
.law-list { padding: 14px 12px; background: #f2f6f3; border-right: 1px solid var(--line); }
.law-item { width: 100%; display: grid; grid-template-columns: 37px 1fr auto; gap: 11px; align-items: center; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--ink-soft); background: transparent; text-align: left; cursor: pointer; transition: all .18s ease; }
.law-item:hover { background: rgba(255,255,255,.74); color: var(--ink); }
.law-item.active { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: 0 4px 12px rgba(26,57,67,.04); }
.law-number { color: #90a4aa; font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.law-item.active .law-number { color: var(--coral); }
.law-item.done .law-number { color: var(--teal); }
.law-name { font-size: 12px; font-weight: 750; }
.law-short { display: block; margin-top: 1px; color: #8aa0a5; font-size: 10px; }
.law-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #cbd9d5; border-radius: 50%; color: transparent; font-size: 11px; }
.law-item.done .law-check { color: var(--white); background: var(--teal); border-color: var(--teal); }
.law-item.locked { opacity: .48; cursor: not-allowed; }
.lesson-panel { padding: 40px 45px; background: var(--white); }
.lesson-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.lesson-number { color: var(--coral); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.lesson-xp { padding: 6px 9px; border-radius: 5px; color: #9e7425; background: #fff4dc; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.lesson-panel h3 { max-width: 440px; margin-bottom: 14px; font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1.06; letter-spacing: -.04em; }
.lesson-panel h3 em { color: var(--coral); font-style: italic; }
.lesson-summary { max-width: 510px; margin-bottom: 28px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.lesson-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 30px; }
.lesson-detail { padding-top: 14px; border-top: 2px solid var(--aqua); }
.lesson-detail:nth-child(2) { border-color: var(--coral); }
.lesson-detail h4 { margin: 0 0 7px; font-size: 11px; letter-spacing: .04em; }
.lesson-detail p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.mission-box { margin-bottom: 25px; padding: 17px 19px; border-radius: 10px; background: #f3f7f4; }
.mission-box-label { display: block; margin-bottom: 7px; color: var(--teal); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.mission-box p { margin: 0; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.6; }
.lesson-bottom { display: flex; align-items: center; gap: 19px; }
.completed-state { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; font-weight: 800; }
.undo-button { padding: 0; border: 0; color: #9a6b63; background: transparent; font-size: 10px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.undo-button:hover { color: var(--coral); }
.completion-note { margin: 0; color: #869ba0; font-size: 10px; }
.field-section { margin-bottom: 130px; }
.field-banner { display: grid; grid-template-columns: 39% 61%; min-height: 294px; border-radius: 16px; overflow: hidden; background: var(--teal); }
.field-copy { padding: 43px 36px 34px; color: var(--white); }
.field-copy .eyebrow { color: var(--aqua); }
.field-copy h2 { margin-bottom: 17px; font-size: 40px; }
.field-copy p:last-child { max-width: 300px; margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; }
.daily-mission { display: flex; align-items: center; justify-content: center; padding: 25px 45px; background: var(--aqua); }
.daily-card { position: relative; width: 100%; max-width: 510px; padding: 26px 29px 24px; border-radius: 12px; color: var(--ink); background: var(--white); box-shadow: 0 15px 32px rgba(9,55,61,.16); }
.daily-card::before { content: "✦"; position: absolute; top: 19px; right: 22px; color: var(--coral); font-size: 18px; }
.daily-card .eyebrow { margin-bottom: 11px; color: var(--teal); }
.daily-card h3 { max-width: 390px; margin-bottom: 10px; font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1.1; }
.daily-card p { max-width: 400px; margin-bottom: 18px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.daily-action { display: flex; align-items: center; gap: 14px; }
.daily-action .button { color: var(--white); background: var(--coral); }
.daily-action .button:hover { background: #dc684f; }
.mission-complete { display: none; color: var(--teal); font-size: 11px; font-weight: 800; }
.daily-card.completed .mission-complete { display: inline-flex; align-items: center; gap: 6px; }
.daily-card.completed .daily-complete-button { display: none; }
.review-section { margin-bottom: 130px; }
.review-card { display: grid; grid-template-columns: 32% 68%; min-height: 285px; padding: 36px 39px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.review-heading { padding: 8px 35px 8px 0; border-right: 1px solid var(--line); }
.review-heading h2 { margin-bottom: 12px; font-size: 34px; }
.review-heading p:last-child { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.quiz-box { padding: 8px 0 8px 39px; }
.quiz-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: #8aa0a5; font-size: 10px; font-weight: 750; }
.quiz-law { color: var(--coral); letter-spacing: .11em; text-transform: uppercase; }
.quiz-box h3 { max-width: 530px; margin-bottom: 20px; font-size: 16px; line-height: 1.4; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: #fbfcfa; font-size: 11px; text-align: left; cursor: pointer; transition: all .18s ease; }
.quiz-option:hover { border-color: var(--aqua); background: var(--aqua-pale); color: var(--ink); }
.quiz-option.correct { border-color: var(--teal); color: var(--teal); background: var(--aqua-pale); }
.quiz-option.wrong { border-color: var(--coral); color: #a54d3d; background: var(--coral-pale); }
.quiz-feedback { min-height: 25px; margin: 12px 0 0; color: var(--ink-soft); font-size: 11px; }
.source-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; padding-bottom: 110px; }
.source-content h2 { margin-bottom: 18px; font-size: 45px; }
.source-content > p:not(.eyebrow) { max-width: 490px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.source-list { padding: 0; margin: 29px 0 0; list-style: none; border-top: 1px solid var(--line); }
.source-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.source-list a { color: var(--ink-soft); }
.source-list a:hover { color: var(--coral); }
.source-list strong { color: var(--ink); }
.source-list span { flex: 0 0 auto; color: #9aadae; font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.critical-card { margin-top: 25px; padding: 28px; border-radius: 13px; background: var(--coral-pale); }
.critical-symbol { display: grid; place-items: center; width: 33px; height: 33px; margin-bottom: 25px; border-radius: 50%; color: var(--coral); background: var(--white); font: 700 19px Georgia, serif; }
.critical-card h3 { margin-bottom: 9px; font-family: var(--display); font-size: 24px; font-weight: 400; }
.critical-card p { margin: 0; color: #825e57; font-size: 11px; line-height: 1.7; }
.footer { display: flex; justify-content: space-between; padding: 19px 0 29px; border-top: 1px solid var(--line); color: #91a3a6; font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: 300px; padding: 13px 17px; border-radius: 8px; color: var(--white); background: var(--teal-dark); box-shadow: 0 14px 35px rgba(9,55,61,.2); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 75px; }
  .hero-orbit { justify-self: center; margin: 55px 0 0; width: 300px; height: 300px; }
  .orbit-core { inset: 84px; }
  .orbit-core span { font-size: 62px; }
  .orbit-inner { inset: 36px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-main { grid-column: 1 / -1; }
  .reset-inline { grid-column: 1 / -1; justify-self: start; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .law-layout { grid-template-columns: 1fr; }
  .law-list { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .lesson-panel { min-height: 530px; }
  .field-banner, .review-card, .source-section { grid-template-columns: 1fr; }
  .field-copy { padding-bottom: 35px; }
  .daily-mission { padding: 35px; }
  .review-heading { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quiz-box { padding: 28px 0 0; }
  .source-section { gap: 25px; }
}
@media (max-width: 600px) {
  .section-shell, .topbar { width: min(100% - 36px, 1160px); }
  .topbar { height: 67px; }
  .topnav { display: none; }
  .hero { min-height: auto; padding: 67px 0 65px; }
  h1 { font-size: 52px; }
  .hero-text { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .stats-strip { grid-template-columns: 1fr; margin-bottom: 95px; }
  .stat-main { grid-column: auto; }
  .reset-inline { grid-column: auto; width: 100%; }
  .stat-card { min-height: 74px; }
  .intro-section, .journey-section, .field-section, .review-section { margin-bottom: 95px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-note { margin-top: 21px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: auto; }
  .method-icon { margin-bottom: 18px; }
  .journey-legend { flex-wrap: wrap; margin-top: 20px; }
  .law-list { grid-template-columns: 1fr; max-height: 390px; overflow-y: auto; }
  .lesson-panel { padding: 29px 24px 32px; }
  .lesson-panel h3 { font-size: 32px; }
  .lesson-columns { grid-template-columns: 1fr; gap: 17px; }
  .lesson-bottom { align-items: flex-start; flex-direction: column; gap: 13px; }
  .field-copy { padding: 34px 26px; }
  .field-copy h2 { font-size: 35px; }
  .daily-mission { padding: 19px; }
  .daily-card { padding: 23px 20px; }
  .review-card { padding: 25px 22px; }
  .source-content h2 { font-size: 39px; }
  .source-list li { align-items: flex-start; flex-direction: column; gap: 5px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}