@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&display=swap');

:root {
  --ink: #15332b;
  --muted: #60766f;
  --green: #168a45;
  --green-dark: #075b32;
  --lime: #8bc53f;
  --yellow: #f5c327;
  --orange: #ef7c29;
  --cream: #f7faf3;
  --line: #d9e6de;
  --white: #fff;
  --shadow: 0 24px 65px rgba(8, 72, 43, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: 'Nunito Sans', Arial, sans-serif; }
button, a { font: inherit; }
a { color: inherit; }

.brandbar { height: 78px; padding: 0 clamp(22px, 6vw, 90px); display: flex; align-items: center; gap: 28px; background: white; border-bottom: 1px solid var(--line); }
.brandbar .brand img { width: 105px; height: 64px; object-fit: contain; display: block; }
.brandbar span { font-weight: 800; color: var(--muted); }
.brandbar .back { margin-left: auto; text-decoration: none; font-weight: 800; color: var(--green-dark); }

.hero { min-height: 600px; padding: 72px clamp(28px, 7vw, 100px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr); align-items: center; gap: clamp(42px, 7vw, 110px); color: white; overflow: hidden; background: radial-gradient(circle at 85% 30%, #9bdc68 0, #58b94e 18%, transparent 39%), linear-gradient(128deg, #075b32 0%, #168a45 55%, #35a94f 100%); }
.eyebrow, .kicker { margin: 0 0 14px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(64px, 8.6vw, 126px); line-height: .82; letter-spacing: -.065em; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.lead { max-width: 680px; margin: 30px 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions a { padding: 15px 19px; border-radius: 5px; text-decoration: none; font-weight: 900; }
.actions .primary { color: #163029; background: var(--yellow); }
.actions .secondary { border: 1px solid rgba(255,255,255,.75); }

.cover-wrap { position: relative; width: min(400px, 100%); margin: auto; }
.cover-wrap img { position: relative; z-index: 2; width: 100%; max-height: 500px; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(0,0,0,.28)); transform: rotate(2deg); }
.shape { position: absolute; z-index: 3; width: 70px; height: 70px; border-radius: 20px; transform: rotate(18deg); }
.shape-one { top: 8%; left: -10%; background: var(--yellow); }
.shape-two { right: -8%; top: 46%; background: var(--orange); }
.shape-three { left: -4%; bottom: 5%; background: #e84587; }

main { padding: 0 clamp(24px, 6.5vw, 92px) 90px; }
.intro { padding: 88px 0 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.intro .kicker, .annex-section .kicker { color: var(--green); }
.intro h2, .annex-section h2 { margin: 0; font-size: clamp(45px, 6vw, 82px); line-height: .92; letter-spacing: -.055em; }
.intro h2 span { color: var(--green); }
.intro > p { max-width: 620px; margin: 0 0 8px; color: var(--muted); font-size: 20px; line-height: 1.65; }

.tracks { display: grid; gap: 32px; }
.track { display: grid; grid-template-columns: 260px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 16px 42px rgba(12,63,42,.08); }
.track > header { padding: 34px; color: white; background: var(--green); }
.track.orange > header { background: #e06b22; }
.track.blue > header { background: #167e99; }
.track.gold > header { background: #b28713; }
.track > header span { font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; opacity: .8; }
.track > header h3 { margin: 15px 0 5px; font-size: 32px; line-height: 1.05; }
.track > header p { margin: 0; font-weight: 700; opacity: .85; }
.session-grid { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; background: #f7faf7; }
.session-card { position: relative; min-height: 172px; padding: 22px; display: grid; grid-template-columns: 48px 1fr; gap: 15px; text-align: left; color: var(--ink); background: linear-gradient(145deg,#fff 0%,#f9fcf9 100%); border: 1px solid #d7e4da; border-radius: 17px; cursor: pointer; box-shadow: 0 5px 16px rgba(14,70,45,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.session-card::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 17px 0 0 17px; background: var(--green); opacity: .75; }
.session-card:hover { transform: translateY(-4px); border-color: #9cc6aa; box-shadow: 0 15px 28px rgba(10,93,52,.13); }
.session-number { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-weight: 900; box-shadow: 0 7px 16px rgba(22,138,69,.22); }
.track.orange .session-number, .track.orange .session-card::after { background: #e06b22; }
.track.blue .session-number, .track.blue .session-card::after { background: #167e99; }
.track.gold .session-number, .track.gold .session-card::after { background: #b28713; }
.session-card small { color: var(--green); font-weight: 900; }
.session-card h4 { margin: 5px 0 10px; font-size: 21px; line-height: 1.14; }
.session-card p { margin: 0; color: var(--muted); font-size: 13px; }
.session-card b { grid-column: 2; align-self: end; width: fit-content; padding: 6px 10px; color: var(--green); background: #eaf6ed; border-radius: 999px; font-size: 12px; }

.annex-section { padding: 90px 0 10px; }
.annex-section h2 { margin-bottom: 34px; }
.annexes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.annex-card { min-height: 190px; padding: 24px; display: flex; flex-direction: column; text-decoration: none; background: white; border: 1px solid var(--line); transition: .18s ease; }
.annex-card:hover { transform: translateY(-3px); border-color: var(--green); }
.annex-card span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.annex-card h4 { margin: 14px 0; font-size: 22px; }
.annex-card p { margin-top: auto; color: var(--muted); }

dialog { width: min(1060px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 14px; box-shadow: var(--shadow); scroll-behavior: auto; }
dialog::backdrop { background: rgba(3, 46, 31, .78); backdrop-filter: blur(6px); }
.close { position: sticky; z-index: 9; top: 12px; float: right; width: 42px; height: 42px; margin: 12px 14px -54px 0; color: white; background: var(--green); border: 0; border-radius: 50%; font-size: 27px; cursor: pointer; }
#viewer-content { min-height: 60vh; }
.session-view { padding: 56px clamp(24px, 6vw, 68px) 70px; }
.session-view > .kicker { color: var(--green); }
.session-view > h2 { max-width: 820px; margin: 0; padding-right: 52px; font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: -.05em; }
.session-view .topic { margin: 13px 0 28px; color: var(--muted); font-size: 18px; }
.session-intro { margin-bottom: 26px; padding: 20px; color: #245847; background: #edf8ef; border-left: 4px solid var(--green); line-height: 1.65; }
.session-development { display: grid; gap: 24px; margin-top: 28px; }
.content-block { overflow: hidden; background: #fff; border: 1px solid #d7e4da; border-radius: 18px; box-shadow: 0 8px 24px rgba(14,70,45,.06); }
.content-block-header { padding: 21px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; background: linear-gradient(120deg,#edf7ef,#f9fcfa); border-bottom: 1px solid #d7e4da; }
.content-block-header span { display: block; margin-bottom: 5px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.content-block-header h3 { margin: 0; font-size: 23px; line-height: 1.18; }
.content-block-header p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.content-block-header > strong { flex: 0 0 auto; padding: 7px 10px; color: var(--green-dark); background: white; border: 1px solid #d7e4da; border-radius: 999px; font-size: 11px; }
.media-block { margin-top: 28px; }
.media-block .media-grid { padding: 18px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.media-item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.embed { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; background: #10251e; }
.embed.four-three { aspect-ratio: 4 / 3; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-item h4 { margin: 10px 4px 2px; font-size: 16px; }
.pending-media { min-height: 180px; display: grid; place-items: center; text-align: center; color: var(--muted); background: #f4f6f4; border: 1px dashed #aebeb4; }

.lesson-pages { padding: 18px; display: grid; gap: 14px; background: #f7faf7; }
.page-transcript { margin: 0; padding: 24px; background: white; border: 1px solid #dfe9e1; border-radius: 13px; box-shadow: 0 4px 12px rgba(14,70,45,.04); }
.page-transcript:last-child { margin-bottom: 0; }
.page-label { display: inline-block; margin-bottom: 13px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.page-transcript h3 { margin: 24px 0 8px; color: var(--green-dark); font-size: 25px; }
.page-transcript h4 { margin: 20px 0 8px; font-size: 18px; }
.page-transcript h5 { margin: 18px 0 6px; color: #b35b16; font-size: 16px; }
.page-transcript p { margin: 0; color: #27443a; font-size: 15px; line-height: 1.78; }
.page-transcript .question-list,
.page-transcript .bullet-list { margin: 10px 0 16px; padding-left: 25px; color: #27443a; }
.page-transcript .question-list li,
.page-transcript .bullet-list li { margin: 7px 0; padding-left: 3px; font-size: 15px; line-height: 1.65; }
.page-transcript .question-list li::marker { color: var(--green); }
.page-transcript .bullet-list li::marker { color: #b35b16; }

.reader-stage { min-height: 560px; padding: 24px; display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; gap: 15px; background: #eef3ee; }
.reader-image-link { min-width: 0; display: grid; place-items: center; }
.reader-image-link img { display: block; width: auto; max-width: 100%; height: auto; max-height: 72vh; min-height: 460px; object-fit: contain; background: white; border-radius: 5px; box-shadow: 0 16px 34px rgba(21,51,43,.18); }
.reader-arrow { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--green); border: 0; border-radius: 50%; font-size: 35px; line-height: 1; cursor: pointer; }
.reader-arrow:disabled { opacity: .25; cursor: default; }
.reader-controls { padding: 14px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: white; border-top: 1px solid #d7e4da; }
.reader-status { color: var(--muted); font-size: 13px; font-weight: 800; }
.reader-page-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.reader-page-button { min-width: 34px; height: 34px; padding: 0 8px; color: var(--green-dark); background: #edf7ef; border: 1px solid #cbe1d1; border-radius: 8px; font-size: 12px; font-weight: 900; cursor: pointer; }
.reader-page-button.active { color: white; background: var(--green); border-color: var(--green); }
.reader-open { justify-self: end; color: var(--green-dark); font-size: 13px; font-weight: 900; text-decoration: none; }
.canva-document-body { padding: 24px; display: grid; justify-items: center; gap: 14px; background: #eef3ee; }
.canva-document-frame { position: relative; overflow: hidden; width: min(720px,100%); aspect-ratio: 100 / 142.2925; background: white; border-radius: 8px; box-shadow: 0 16px 34px rgba(21,51,43,.18); }
.canva-document-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.canva-document-body .reader-open { justify-self: center; padding: 9px 14px; background: white; border: 1px solid #cbe1d1; border-radius: 999px; }
.image-document-body { padding: 24px; display: grid; justify-items: center; gap: 14px; background: #eef3ee; }
.image-document-body > a:first-child { width: min(850px, 100%); }
.image-document-body img { display: block; width: 100%; height: auto; border-radius: 7px; box-shadow: 0 16px 34px rgba(21,51,43,.18); }
.image-document-body .reader-open { justify-self: center; padding: 9px 14px; background: white; border: 1px solid #cbe1d1; border-radius: 999px; }
.audio-block .audio-card { margin: 0; border: 0; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.resource-card { padding: 12px; display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); background: white; }
.resource-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #eee; }
.resource-card strong { margin: 10px 3px 2px; }
.resource-card span { margin: 0 3px; color: var(--muted); font-size: 12px; }
.audio-card { margin-top: 14px; padding: 18px; display: grid; grid-template-columns: 1fr minmax(260px, 460px); align-items: center; gap: 20px; background: #edf8ef; border: 1px solid #cae3d2; }
.audio-card strong { display: block; }
.audio-card audio { width: 100%; }
.book-link { margin-top: 26px; padding: 14px 17px; display: block; text-align: center; color: var(--green-dark); text-decoration: none; font-weight: 900; border: 1px solid #b8d0c0; }

.annex-view img { width: 100%; display: block; border: 1px solid var(--line); }

footer { min-height: 170px; padding: 42px clamp(24px, 6.5vw, 92px); display: flex; align-items: center; gap: 24px; color: white; background: var(--green-dark); }
footer img { width: 112px; border-radius: 4px; }
footer div { display: grid; }
footer span { opacity: .7; }
footer a { margin-left: auto; }

@media (max-width: 900px) {
  .brandbar span { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .cover-wrap { width: 280px; }
  .intro { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .annexes-grid { grid-template-columns: 1fr; }
  .reader-controls { grid-template-columns: 1fr; text-align: center; }
  .reader-open { justify-self: center; }
}

@media (max-width: 650px) {
  .brandbar { height: 66px; padding: 0 16px; }
  .brandbar .brand img { width: 86px; height: 56px; }
  .brandbar .back { font-size: 12px; }
  .hero { min-height: auto; padding: 58px 22px; }
  .hero h1 { font-size: 67px; }
  main { padding-left: 16px; padding-right: 16px; }
  .session-grid, .media-grid, .resource-grid { grid-template-columns: 1fr; }
  .session-view { padding-left: 18px; padding-right: 18px; }
  .session-view > h2 { font-size: 40px; }
  .content-block-header { padding: 17px; flex-direction: column; }
  .content-block-header > strong { align-self: flex-start; }
  .lesson-pages { padding: 10px; }
  .page-transcript { padding: 17px; }
  .reader-stage { min-height: 0; padding: 12px 8px; grid-template-columns: 36px minmax(0,1fr) 36px; gap: 6px; }
  .reader-image-link img { width: 100%; min-height: 0; max-height: 68vh; }
  .reader-arrow { width: 34px; height: 34px; font-size: 26px; }
  .reader-controls { padding: 12px; }
  .canva-document-body { padding: 12px; }
  .image-document-body { padding: 12px; }
  .audio-card { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  footer a { margin-left: 0; }
}
