@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #17211d;
  --ink-soft: #394740;
  --ink-muted: #67736d;
  --paper: #f3f5f3;
  --paper-raised: #fafbf9;
  --paper-inset: #e9eeeb;
  --line: rgba(23, 33, 29, .13);
  --line-soft: rgba(23, 33, 29, .075);
  --line-strong: rgba(23, 33, 29, .28);
  --emerald: #16835b;
  --emerald-bright: #20a873;
  --emerald-wash: #dff1e9;
  --orange: #dc702b;
  --orange-wash: #fae5d7;
  --night: #15211d;
  --night-raised: #1c2b25;
  --night-line: rgba(255,255,255,.11);
  --white: #f7faf8;
  --shadow: 0 16px 40px rgba(24, 39, 32, .08);
  --radius-s: 7px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, system-ui, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(220,112,43,.68); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); background: var(--night); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(243,245,243,.91); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; }
.brand > span:last-child > span { color: var(--emerald); }
.brand-mark { width: 28px; height: 28px; display: flex; gap: 2px; align-items: flex-end; padding: 5px; background: var(--night); border-radius: 8px; }
.brand-mark span { display: block; flex: 1; background: var(--emerald-bright); border-radius: 1px; }
.brand-mark span:nth-child(1) { height: 35%; }
.brand-mark span:nth-child(2) { height: 60%; }
.brand-mark span:nth-child(3) { height: 95%; background: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.main-nav a:hover { color: var(--emerald); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-s); background: var(--emerald); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 18px rgba(22,131,91,.16); transition: transform .18s ease, background .18s ease; }
.button:hover { background: #106f4c; transform: translateY(-2px); }
.button-small { min-height: 42px; padding-inline: 16px; }
.button-orange { background: var(--orange); box-shadow: 0 8px 18px rgba(220,112,43,.18); }
.button-orange:hover { background: #c45f20; }

.hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 72px; min-height: 690px; padding-block: 72px; }
.hero > * { min-width: 0; }
.eyebrow, .kicker, .lesson-code { margin: 0; color: var(--emerald); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 4px rgba(32,168,115,.12); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin: 20px 0 24px; font-size: clamp(48px, 6vw, 80px); font-weight: 800; }
h1 em { color: var(--emerald); font-style: normal; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 800; }
h3 { font-size: 21px; }
.hero-lead { max-width: 590px; margin: 0; color: var(--ink-soft); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.text-link, .card-link { color: var(--ink); font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line-strong); }
.text-link:hover, .card-link:hover { color: var(--emerald); }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { padding-right: 14px; }
.hero-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-stats dt { font-family: "DM Mono", monospace; font-size: 14px; font-weight: 500; }
.hero-stats dd { margin: 3px 0 0; color: var(--ink-muted); font-size: 11px; }
.hero-visual { position: relative; margin: 0; }
.hero-visual:before { content: ""; position: absolute; z-index: -1; inset: -18px 38px 18px -18px; border: 1px solid var(--line); border-radius: var(--radius-l); }
.hero-visual img { aspect-ratio: 3/2; width: 100%; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.hero-visual figcaption { position: absolute; right: -18px; bottom: -28px; width: 260px; display: grid; gap: 5px; padding: 18px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.hero-visual figcaption strong { font-size: 14px; }
.hero-visual figcaption > span:not(.live-label):not(.mini-progress) { color: var(--ink-muted); font-size: 11px; }
.live-label { display: flex; align-items: center; gap: 7px; color: var(--emerald); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.live-label .status-dot { width: 6px; height: 6px; }
.mini-progress { height: 5px; margin-top: 5px; overflow: hidden; background: var(--paper-inset); border-radius: 4px; }
.mini-progress i { display: block; height: 100%; background: var(--emerald-bright); border-radius: inherit; }

.section { padding-block: 104px; scroll-margin-top: 70px; }
.section-tint { background: #e9eeeb; }
.section-head { display: grid; grid-template-columns: 1fr minmax(260px, 430px); gap: 60px; align-items: end; margin-bottom: 44px; }
.section-head h2 { margin-top: 12px; }
.section-head > p, .section-intro { margin: 0; color: var(--ink-soft); }
.level-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; counter-reset: level; }
.level-card { min-height: 390px; display: flex; flex-direction: column; padding: 28px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m); transition: transform .2s ease, border-color .2s ease; }
.level-card:hover { transform: translateY(-4px); border-color: rgba(22,131,91,.35); }
.level-active { box-shadow: inset 0 3px 0 var(--emerald); }
.level-top, .lesson-meta, .lesson-foot, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.level-number { font-family: "DM Mono", monospace; font-size: 13px; color: var(--ink-muted); }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 9px; background: var(--paper-inset); color: var(--ink-soft); border-radius: 99px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-green { background: var(--emerald-wash); color: #0c704b; }
.badge-orange { background: var(--orange-wash); color: #a7480c; }
.level-card h3 { margin: 38px 0 14px; font-size: 27px; }
.level-card > p { color: var(--ink-soft); font-size: 14px; }
.check-list { display: grid; gap: 8px; margin: 20px 0 28px; padding: 0; list-style: none; font-size: 13px; }
.check-list li:before { content: "✓"; margin-right: 8px; color: var(--emerald); font-weight: 800; }
.card-link { align-self: flex-start; margin-top: auto; padding-bottom: 2px; }

.lesson-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.lesson-card { min-height: 355px; display: flex; flex-direction: column; padding: 24px; background: rgba(250,251,249,.84); border: 1px solid var(--line); border-radius: var(--radius-m); }
.lesson-featured { background: var(--night); color: var(--white); border-color: var(--night); }
.lesson-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--emerald-wash); color: var(--emerald); border-radius: 10px; font-size: 20px; }
.lesson-featured .lesson-icon { background: rgba(32,168,115,.16); color: #66d3a8; }
.lesson-code { margin-top: 38px; }
.lesson-card h3 { margin: 10px 0 14px; }
.lesson-card > p:not(.lesson-code) { color: var(--ink-soft); font-size: 13px; }
.lesson-featured > p:not(.lesson-code) { color: rgba(247,250,248,.68); }
.lesson-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-muted); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.lesson-featured .lesson-foot { border-color: var(--night-line); color: rgba(247,250,248,.55); }

.strategy-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.strategy-copy h2 { margin: 14px 0 22px; }
.module-list { margin-top: 36px; border-top: 1px solid var(--line); }
.module-list article { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.module-index { width: 32px; height: 32px; display: grid; place-items: center; background: var(--emerald-wash); color: var(--emerald); border-radius: 50%; font-family: "DM Mono", monospace; font-size: 12px; }
.module-list h3 { margin-bottom: 6px; font-size: 17px; letter-spacing: -.02em; }
.module-list p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.strategy-visual { margin: 0; position: relative; }
.strategy-visual img { aspect-ratio: 3/2; width: 100%; object-fit: cover; border-radius: var(--radius-l); }
.strategy-visual figcaption { display: grid; gap: 2px; margin: 12px 10px 0; padding-left: 14px; border-left: 3px solid var(--orange); }
.strategy-visual figcaption span { color: var(--orange); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.strategy-visual figcaption strong { font-size: 13px; }

.section-dark { color: var(--white); background: var(--night); }
.plan-head { display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: end; margin-bottom: 52px; }
.plan-head h2 { max-width: 650px; margin-top: 12px; }
.plan-head > p { margin: 0; color: rgba(247,250,248,.64); }
.kicker-light { color: #66d3a8; }
.timeline { display: grid; grid-template-columns: repeat(7,1fr); margin: 0; padding: 0; border-top: 1px solid var(--night-line); list-style: none; }
.timeline li { position: relative; min-height: 315px; display: flex; flex-direction: column; padding: 22px 18px 18px; border-right: 1px solid var(--night-line); }
.timeline li:first-child { border-left: 1px solid var(--night-line); }
.timeline li:before { content: ""; position: absolute; top: -5px; left: 18px; width: 9px; height: 9px; background: var(--emerald-bright); border: 3px solid var(--night); border-radius: 50%; }
.timeline .day { color: rgba(247,250,248,.22); font-family: "DM Mono", monospace; font-size: 34px; }
.timeline small { color: #66d3a8; font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.timeline h3 { margin: 8px 0 12px; font-size: 17px; letter-spacing: -.02em; }
.timeline p { margin: 0; color: rgba(247,250,248,.62); font-size: 12px; }
.timeline .time { margin-top: auto; color: rgba(247,250,248,.44); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.timeline .day-final { color: var(--orange); }
.timeline li:last-child:before { background: var(--orange); }

.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.settings-panel { padding: 28px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m); }
.panel-heading { justify-content: flex-start; margin-bottom: 24px; }
.panel-heading > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--emerald-wash); color: var(--emerald); border-radius: 10px; font-size: 21px; }
.panel-heading h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.025em; }
.setting-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.setting-row strong { font-size: 13px; }
.setting-row p { margin: 3px 0 0; color: var(--ink-muted); font-size: 12px; }
.setting-value { align-self: start; padding: 4px 8px; background: var(--paper-inset); color: var(--ink-soft); border-radius: 4px; font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.coach-note { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 18px 22px; background: var(--orange-wash); border-radius: var(--radius-m); }
.note-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; background: var(--orange); color: white; border-radius: 50%; font-weight: 800; }
.coach-note strong { font-size: 13px; }
.coach-note p { margin: 2px 0 0; color: #76411f; font-size: 12px; }

.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.faq-intro { position: sticky; top: 110px; align-self: start; }
.faq-intro h2 { margin: 14px 0 20px; }
.faq-intro > p:last-child { color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 46px 24px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span:before, .faq-list summary span:after { content: ""; position: absolute; right: 8px; top: 34px; width: 13px; height: 2px; background: var(--emerald); transition: transform .2s ease; }
.faq-list summary span:after { transform: rotate(90deg); }
.faq-list details[open] summary span:after { transform: rotate(0); }
.faq-list details p { max-width: 650px; margin: -4px 0 24px; color: var(--ink-soft); font-size: 14px; }

.closing { display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 90px; padding-block: 90px; }
.closing h2 { margin-top: 14px; }
.closing > div:last-child p { margin: 0 0 24px; color: var(--ink-soft); }

.site-footer { padding-top: 64px; color: rgba(247,250,248,.72); background: #101915; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 70px; padding-bottom: 60px; }
.brand-footer { color: var(--white); }
.footer-grid > div p { max-width: 290px; font-size: 13px; }
.footer-grid nav { display: grid; align-content: start; gap: 9px; }
.footer-grid nav strong { margin-bottom: 8px; color: var(--white); font-size: 12px; }
.footer-grid nav a { font-size: 12px; }
.footer-grid nav a:hover, .footer-bottom a:hover { color: #66d3a8; }
.footer-bottom { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--night-line); color: rgba(247,250,248,.42); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.footer-bottom nav { display: flex; gap: 20px; }

.legal-main { padding-bottom: 100px; }
.legal-hero { padding-block: 82px 56px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 14px 0 12px; font-size: clamp(44px,6vw,72px); }
.legal-hero > p:last-child { margin: 0; color: var(--ink-muted); font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0,750px); justify-content: space-between; gap: 90px; padding-top: 58px; }
.legal-nav { position: sticky; top: 110px; align-self: start; display: grid; gap: 9px; padding: 20px; background: var(--paper-inset); border-radius: var(--radius-m); }
.legal-nav strong { margin-bottom: 8px; font-size: 12px; }
.legal-nav a { color: var(--ink-muted); font-size: 12px; }
.legal-nav a:hover { color: var(--emerald); }
.legal-lead { margin: 0 0 54px; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.legal-content section { position: relative; padding: 0 0 46px 54px; border-left: 1px solid var(--line); scroll-margin-top: 100px; }
.legal-content section > span { position: absolute; top: 0; left: -17px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; color: var(--emerald); font-family: "DM Mono", monospace; font-size: 10px; }
.legal-content section h2 { margin-bottom: 20px; font-size: 27px; }
.legal-content section p { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-shell .button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 54px; padding-top: 60px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(92%, 760px); margin-inline: auto; }
  .lesson-grid { grid-template-columns: repeat(2,1fr); }
  .strategy-layout { gap: 46px; }
  .timeline { grid-template-columns: repeat(4,1fr); }
  .timeline li { min-height: 280px; border-top: 1px solid var(--night-line); }
  .timeline li:nth-child(5) { border-left: 1px solid var(--night-line); }
  .faq-layout { gap: 50px; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { position: relative; }
  .nav-shell { min-height: 66px; }
  .nav-shell > .button { display: none; }
  .brand { font-size: 16px; }
  .hero { min-height: auto; padding-block: 50px 74px; }
  h1 { font-size: clamp(38px,11vw,44px); }
  .hero-lead { max-width: 100%; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats div + div { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .hero-visual { width: 100%; }
  .hero-visual:before { inset: -10px 16px 12px -8px; }
  .hero-visual figcaption { right: 10px; bottom: -42px; width: 230px; }
  .section { padding-block: 72px; }
  .section-head, .plan-head, .closing { grid-template-columns: 1fr; gap: 24px; }
  .section-head { margin-bottom: 32px; }
  .level-grid, .settings-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 350px; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-card { min-height: 310px; }
  .strategy-layout { grid-template-columns: 1fr; }
  .strategy-visual { order: -1; }
  .timeline { grid-template-columns: 1fr; border-top: 0; }
  .timeline li, .timeline li:first-child, .timeline li:nth-child(5) { min-height: 0; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; padding: 22px 0; border: 0; border-top: 1px solid var(--night-line); }
  .timeline li:before { display: none; }
  .timeline .day { font-size: 24px; }
  .timeline .time { margin-top: 4px; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-intro { position: static; }
  .closing { align-items: start; padding-block: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 20px; }
  .legal-hero { padding-block: 58px 42px; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 34px; }
  .legal-nav { position: static; grid-template-columns: repeat(2,1fr); }
  .legal-nav strong { grid-column: 1/-1; }
  .legal-content section { padding-left: 32px; }
}

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