/* Public pages: warm paper, generous reading space and restrained colour. */
.octo-mark { width: 38px; height: 38px; flex: 0 0 auto; color: var(--teal-dark); }
.marketing { background: #faf9f5; padding: 0; color: #183a3b; }
.marketing-wrap { width: min(1200px, 100% - 96px); margin: 0 auto; }
.marketing h1, .marketing h2, .marketing h3 { color: #183a3b; }
.marketing a { text-decoration-thickness: 1px; }
.marketing a:focus-visible, .marketing summary:focus-visible, .skip-link:focus-visible { outline: 3px solid #a16635; outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 5; background: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.public-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 104px; border-bottom: 1px solid #dce2db; margin: 0 !important; }
.public-header .brand, .public-footer .brand { font-size: 1.25rem; letter-spacing: -.04em; }
.public-header nav { display: flex; gap: 28px; align-items: center; }
.public-header nav a { font-size: .86rem; font-weight: 650; text-decoration: none; }
.public-header .nav-signin { border: 1px solid #bccac3; border-radius: 8px; padding: 10px 18px; }
.marketing .button { gap: 22px; border-radius: 7px; padding: 15px 21px; font-size: .9rem; }
.marketing .primary { background: #185c50; border-color: #185c50; }
.marketing .primary:hover { background: #104638; }
.marketing .secondary { background: transparent; border-color: #b7c4bc; }
.marketing .secondary:hover { background: #edf0e9; }
.marketing .eyebrow { font-size: .7rem; letter-spacing: .15em; color: #516f60; margin-top: 0; margin-bottom: 20px; }
.home-hero { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(32px, 5vw, 78px); align-items: center; padding: 86px 0 90px; }
.marketing .home-hero h1 { max-width: none; font-size: clamp(2.8rem, 4.7vw, 4.45rem); line-height: 1.07; font-weight: 650; letter-spacing: -.055em; margin-bottom: 25px; }
.home-hero h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: #426e5c; }
.hero-lede { font-size: 1.09rem; color: #556762; max-width: 47ch; line-height: 1.75; }
.home-hero .button-row { margin: 29px 0 17px; }
.hero-note { color: #6b7770; font-size: .76rem; max-width: 44ch; }
.lesson-preview { background: white; border: 1px solid #d7dfd6; border-radius: 16px; padding: 27px 29px; box-shadow: 0 18px 40px #2449380a; transform: rotate(1deg); }
.preview-topline { display: flex; align-items: center; gap: 7px; color: #607268; font-size: .65rem; border-bottom: 1px solid #e5e9e2; padding-bottom: 17px; margin-bottom: 25px; }
.preview-topline > span:last-child { margin-left: auto; }
.preview-dot { width: 7px; height: 7px; background: #799a77; border-radius: 50%; }
.lesson-preview .eyebrow { font-size: .61rem; margin-bottom: 10px; }
.lesson-preview h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 2rem; line-height: 1.15; }
.preview-forces { display: block; width: 100%; height: auto; margin-top: 9px; }
.preview-forces text { font: 15px ui-sans-serif, system-ui, sans-serif; fill: #183a3b; text-anchor: middle; }
.preview-ground { stroke: #c8d5c6; stroke-width: 2; }
.preview-crate { fill: #e8eadd; stroke: #9aa98d; stroke-width: 2; }
.crate-detail { stroke: #c5cdb6; stroke-width: 1.5; }
.force-arrows { stroke: currentColor; color: #24685a; stroke-width: 3; fill: none; }
.diagram-note { font-size: .64rem; color: #6c7970; text-align: center; }
.preview-explanation { padding: 15px 17px; border-radius: 7px; background: #f0f3eb; margin: 18px 0; }
.small-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; color: #557358; }
.preview-explanation p { font-size: .88rem; line-height: 1.6; margin: 6px 0 0; }
.lesson-preview > .text-link { font-size: .76rem; text-decoration: none; }
.home-section { padding: 68px 0 73px; border-top: 1px solid #dce2db; }
.section-intro { max-width: 630px; margin-bottom: 34px; }
.section-intro h2, .home-final h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 550; line-height: 1.15; letter-spacing: -.045em; margin-bottom: 16px; }
.section-intro > p:not(.eyebrow) { color: #617068; max-width: 60ch; }
.cycle-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 40px 0 0; gap: 30px; }
.step-number { display: block; font-family: Georgia, 'Times New Roman', serif; color: #9a6b47; font-size: 1.7rem; margin-bottom: 20px; }
.cycle-grid h3 { font-size: 1rem; font-weight: 700; }
.cycle-grid p { font-size: .9rem; line-height: 1.75; color: #617068; margin-top: 12px; }
.home-subjects { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dce2db; border-left: 1px solid #dce2db; border-radius: 10px; overflow: hidden; }
.home-subjects article { padding: 25px 23px; border-right: 1px solid #dce2db; border-bottom: 1px solid #dce2db; min-height: 190px; }
.subject-index { color: #839485; font-size: .65rem; letter-spacing: .1em; }
.home-subjects h3 { font-size: 1.05rem; margin-top: 12px; }
.home-subjects p { color: #617068; font-size: .85rem; margin: 9px 0; }
.coverage-note { font-size: .67rem; color: #677863; }
.coverage-footnote { font-size: .76rem; color: #6c7970; margin: 22px 0 0; }
.parent-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.parent-section .section-intro { margin: 0; }
.parent-section .text-link { display: inline-block; margin-top: 12px; font-size: .9rem; }
.parent-points article + article { margin-top: 27px; padding-top: 24px; border-top: 1px solid #dce2db; }
.parent-points h3 { font-size: 1.04rem; }
.parent-points p { font-size: .9rem; color: #617068; margin-top: 9px; }
.home-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; }
.home-faq details { border-bottom: 1px solid #dce2db; padding: 19px 0; }
.home-faq details:first-child { padding-top: 0; }
.home-faq summary { font-size: .95rem; cursor: pointer; font-weight: 650; padding: 4px 0; }
.home-faq details p { font-size: .9rem; color: #617068; padding-top: 12px; }
.home-final { background: #eaf0e4; padding: 54px 30px; text-align: center; border-radius: 14px; margin-bottom: 60px; }
.home-final > p:not(.eyebrow) { color: #617068; }
.home-final .button-row { justify-content: center; margin-bottom: 0; }
.public-footer { display: flex; align-items: center; gap: 25px; padding: 27px 0 35px; border-top: 1px solid #dce2db; color: #6c7970; font-size: .75rem; }
.public-footer .octo-mark { width: 28px; height: 28px; }
.public-footer .brand { font-size: 1rem; }
.public-footer p { margin: 0 auto 0 0; }
.public-footer a:not(.brand) { white-space: nowrap; }
.start h1 { margin-left: auto; margin-right: auto; }
.sample-main { padding: 48px 0 70px; }
.sample-intro { max-width: 800px; margin-bottom: 45px; }
.sample-intro > .text-link { display: inline-block; margin-bottom: 30px; font-size: .85rem; }
.sample-intro h1 { max-width: 20ch; font-size: clamp(2.3rem, 4.5vw, 3.8rem); }
.sample-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 60px; align-items: start; }
.sample-outline { position: sticky; top: 25px; padding: 20px; border: 1px solid #dce2db; border-radius: 10px; font-size: .85rem; }
.sample-outline ol { padding-left: 20px; }
.sample-outline li { margin-bottom: 13px; padding-left: 3px; }
.sample-content { min-width: 0; }
.sample-section { scroll-margin-top: 25px; border-top: 1px solid #dce2db; padding: 30px 0; }
.sample-section-title { font-size: 1.75rem; letter-spacing: -.03em; margin-bottom: 25px; }
.sample-section > p { line-height: 1.8; }
.sample-section .study-diagram { max-width: 100%; overflow-x: auto; }
.sample-end { border-radius: 12px; padding: 30px; background: #eaf0e4; }
.sample-end .muted { font-size: .8rem; margin-top: 16px; }
@media (max-width: 1050px) {
 .marketing-wrap { width: calc(100% - 56px); }
 .home-hero { gap: 32px; padding: 65px 0; }
 .home-hero .button-row { gap: 10px; }
 .marketing .button { padding: 13px 17px; gap: 12px; }
 .lesson-preview { padding: 23px; }
 .parent-section, .home-faq { gap: 45px; }
 .sample-layout { gap: 30px; grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 760px) {
 .marketing-wrap { width: calc(100% - 40px); }
 .public-header { min-height: 82px; }
 .public-header .desktop-nav { display: none; }
 .public-header nav { gap: 0; }
 .home-hero { grid-template-columns: 1fr; gap: 35px; padding: 48px 0 55px; }
 .marketing .home-hero h1 { font-size: clamp(2.6rem, 8vw, 3.8rem); max-width: 16ch; }
 .hero-lede { max-width: 53ch; font-size: 1rem; }
 .lesson-preview { transform: none; max-width: 520px; }
 .home-section { padding: 45px 0; }
 .cycle-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
 .step-number { margin-bottom: 12px; }
 .home-subjects { grid-template-columns: 1fr 1fr; }
 .home-subjects article { padding: 20px; }
 .parent-section, .home-faq { grid-template-columns: 1fr; gap: 30px; }
 .home-faq .section-intro { margin-bottom: 0; }
 .home-final { padding: 38px 21px; margin-bottom: 35px; }
 .public-footer { flex-wrap: wrap; gap: 15px 22px; }
 .public-footer p { order: 3; flex-basis: 100%; }
 .public-footer .brand { margin-right: auto; }
 .sample-layout { grid-template-columns: 1fr; gap: 30px; }
 .sample-outline { position: static; }
 .sample-outline ol { columns: 2; column-gap: 30px; }
 .sample-outline li { break-inside: avoid; }
}
@media (max-width: 380px) {
 .marketing-wrap { width: calc(100% - 32px); }
 .public-header .brand { font-size: 1.1rem; gap: 6px; }
 .public-header .nav-signin { padding: 9px 12px; }
 .home-subjects article { padding: 17px 14px; }
 .preview-topline { flex-wrap: wrap; }
 .preview-topline > span:last-child { margin-left: 0; flex-basis: 100%; }
 .sample-outline ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
