/* Homepage composition and mobile touch targets. Learning pages keep their styles. */
.story-home {
    --home-line: rgba(167, 208, 237, .18);
    --home-soft: rgba(123, 196, 235, .055);
    --story-muted: #adc0d3;
}
.story-home .container { max-width: 1240px; }
.home-skip { position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 14px 20px; background: #00d1ff; color: #062435; border-radius: 10px; opacity: 0; pointer-events: none; transform: translateY(-150%); }
.home-skip:focus { opacity: 1; pointer-events: auto; transform: none; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: 72px 52px; }
.home-intro h1 { font-size: clamp(3.2rem, 5.1vw, 4.65rem); line-height: 1.06; letter-spacing: -.065em; }
.home-intro h1 em { display: inline-block; color: var(--story-cyan); }
.home-intro .story-kicker { letter-spacing: .09em; font-size: .66rem; margin-bottom: 27px; }
.home-lead { max-width: 430px; color: var(--story-muted); font-size: 1.04rem; margin: 25px 0 18px; line-height: 1.7; }
.home-intro-actions a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: .8rem; }
.home-byline { display: flex; align-items: center; gap: 14px; margin-top: 46px; }
.home-byline-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--home-line); border-radius: 50%; color: var(--story-cyan); font-size: 1.3rem; }
.home-byline p { font-size: .72rem; color: var(--story-muted); margin: 0; }
.home-byline strong { font-weight: 500; color: var(--story-ink); }
.home-start { min-width: 0; padding: 30px; scroll-margin-top: 78px; background: linear-gradient(145deg, rgba(154, 219, 255, .09), transparent 65%), rgba(13, 29, 46, .9); border-color: rgba(186, 221, 245, .28); box-shadow: inset 0 1px rgba(229, 246, 255, .14), 0 25px 70px rgba(0, 9, 21, .25); }
.home-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.home-panel-top .story-kicker { margin: 0; font-size: .6rem; letter-spacing: .1em; }
.home-panel-icon { color: var(--story-cyan); font-size: 1.2rem; }
.home-start h2 { font-size: 1.8rem; line-height: 1.13; letter-spacing: -.035em; margin-bottom: 23px; }
.home-start fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.home-goals { display: grid; gap: 8px; }
.home-goals label { display: flex; gap: 12px; justify-content: space-between; align-items: center; position: relative; border: 1px solid var(--home-line); border-radius: 12px; padding: 13px 15px; cursor: pointer; background: rgba(11, 24, 39, .24); transition: background .2s, border-color .2s; }
.home-start input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.home-goals label:has(input:checked) { border-color: var(--story-cyan); background: rgba(0, 209, 255, .07); }
.home-start label:has(input:focus-visible) { outline: 2px solid var(--story-cyan); outline-offset: 4px; }
.home-goals strong { display: block; font-size: .84rem; font-weight: 650; }
.home-goals small { display: block; font-size: .7rem; color: var(--story-muted); margin-top: 3px; }
.home-goals i { width: 18px; height: 18px; border: 1px solid var(--story-muted); border-radius: 50%; flex-shrink: 0; }
.home-goals input:checked ~ i { border: 5px solid var(--story-cyan); background: #0d2435; }
.home-start .home-periods { margin-top: 20px; }
.home-periods legend { font-size: .72rem; color: var(--story-muted); margin-bottom: 9px; }
.home-periods>div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-periods label { position: relative; cursor: pointer; min-width: 0; }
.home-periods label>span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--home-line); border-radius: 9px; font-size: .76rem; transition: background .2s, border-color .2s; }
.home-periods input:checked+span { color: var(--story-cyan); background: rgba(0, 209, 255, .08); border-color: var(--story-cyan); }
.home-start .home-start-note { color: var(--story-muted); font-size: .69rem; line-height: 1.55; margin: 16px 0; min-height: 34px; }
.home-start-note a { color: var(--story-cyan); }
.home-primary { display: flex; justify-content: space-between; width: 100%; gap: 12px; min-height: 50px; font-size: .82rem; padding: 12px 16px; }
.home-calc-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-top: 6px; font-size: .76rem; color: var(--story-muted); text-decoration: none; }
.home-calc-link:hover { color: var(--story-cyan); }
.home-trust { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 0 38px; gap: 30px; }
.home-trust>div { display: flex; gap: 13px; align-items: center; }
.home-trust>div>span { font-size: 1.45rem; color: var(--story-cyan); width: 30px; text-align: center; }
.home-trust p { margin: 0; }
.home-trust strong, .home-trust small { display: block; }
.home-trust strong { font-size: .77rem; font-weight: 600; }
.home-trust small { color: var(--story-muted); font-size: .65rem; margin-top: 3px; }
.home-experiment-section { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 70px; padding-block: 64px; border-top: 1px solid var(--home-line); scroll-margin-top: 66px; }
.home-experiment-intro h2 { font-size: clamp(2.8rem, 4vw, 3.9rem); letter-spacing: -.04em; word-spacing: .04em; }
.home-section-lead { font-size: .95rem; color: var(--story-muted); max-width: 420px; margin: 22px 0; }
.home-insight { padding: 22px 0; border-block: 1px solid var(--home-line); margin-block: 26px; }
.home-insight>span { color: var(--story-purple); font-size: 2.25rem; letter-spacing: -.06em; font-weight: 700; }
.home-insight p { color: var(--story-muted); font-size: .85rem; max-width: 300px; margin: 8px 0 0; }
.home-insight strong { color: var(--story-ink); font-weight: 650; }
.home-experiment-prompt { font-size: .78rem; color: var(--story-muted); margin-bottom: 17px; }
.story-home .experiment { padding: 26px; }
.story-home .experiment h3 { font-size: clamp(1.55rem, 2vw, 1.9rem); line-height: 1.18; }
.story-home .experiment h3>span { color: var(--story-muted); font-weight: 400; font-size: .78em; letter-spacing: -.025em; }
.story-home .experiment .story-tag { font-size: .61rem; }
.story-home .experiment-settings label { font-size: .76rem; }
.story-home .experiment select { font-size: .8rem; min-height: 44px; }
.story-home input[type=range] { height: 32px; }
.story-home .lesson-offer { min-width: 0; }
.story-home .lesson-offer small { font-size: .67rem; }
.story-home .lesson-offer p { font-size: .73rem; }
.story-home .lesson-offer .offer-name { font-size: .75rem; }
.story-home .live-rate { font-size: .65rem; }
.story-home .lesson-offer { display: flex; flex-direction: column; }
.story-home .lesson-offer output { margin-top: auto; }
.story-home .chart-heading, .story-home .chart-legend { font-size: .7rem; }
.story-home .timeline-controls { gap: 14px; }
.story-home .timeline-controls button { min-height: 44px; }
.story-home .story-quiet { font-size: .78rem; }
.story-home .time-scrubber { font-size: .7rem; }
.story-home .experiment-result { font-size: .8rem; }
.experiment-details { color: var(--story-muted); border-top: 1px solid var(--home-line); margin-top: 15px; }
.experiment-details summary { font-size: .7rem; cursor: pointer; padding-block: 14px; min-height: 44px; }
.story-home .experiment-details p { font-size: .71rem; margin: 0 0 6px; }
.story-home .home-example-note { color: var(--story-muted); font-size: .71rem; margin: 12px 0 0; }
.story-home .story-chapter { padding-block: 58px; border-color: var(--home-line); }
.story-home .chapter-heading { margin-bottom: 30px; }
.story-home .chapter-heading h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.story-home .lesson-entrances { gap: 18px; }
.story-home .lesson-entrances>a { display: flex; flex-direction: column; padding: 26px; background: linear-gradient(145deg, var(--home-soft), transparent); border-color: var(--home-line); border-radius: 18px; }
.story-home .lesson-number { font-family: var(--font-main); font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
.story-home .entrance-art { height: 90px; margin: 18px 0; max-width: 160px; gap: 8px; }
.story-home .lesson-entrances h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.035em; }
.story-home .lesson-entrances p { font-size: .8rem; margin: 14px 0 24px; }
.story-home .entrance-action { display: flex; justify-content: space-between; font-size: .76rem; margin-top: auto; min-height: 28px; align-items: center; }
.story-home .period-entrances>a { padding: 26px; background: var(--home-soft); border-color: var(--home-line); }
.story-home .period-entrances>a>span { font-size: .73rem; }
.story-home .period-entrances strong { font-size: 3.6rem; margin-block: 8px; }
.story-home .period-entrances small { font-size: 1rem; }
.story-home .period-entrances p { font-size: .76rem; }
.story-home .period-entrances b { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 600; }
.story-home .home-calculator { gap: 24px; padding: 30px; margin-top: 24px; background: linear-gradient(100deg, rgba(0, 209, 255, .08), rgba(193, 160, 255, .04)); }
.home-calculator .story-kicker { font-size: .6rem; margin-bottom: 10px; }
.home-calculator>div:nth-child(2) { flex: 1; }
.home-calculator h3 { font-size: 1.3rem; }
.home-calculator p { max-width: 470px; font-size: .8rem; }
.home-calculator>a { flex-shrink: 0; }
.home-tool-icon { position: relative; display: grid; place-items: center; color: var(--story-cyan); border: 1px solid var(--home-line); border-radius: 16px; width: 64px; height: 72px; flex-shrink: 0; font-size: 2rem; }
.home-tool-icon>span { position: absolute; right: -7px; top: -7px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--story-cyan); color: #08283a; font-size: 1rem; border-radius: 7px; }
.story-home .catalog-inline { gap: 12px 26px; margin-top: 12px; }
.story-home .catalog-inline a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; }
.story-home .story-proof { grid-template-columns: 1fr 1fr; gap: 70px; }
.story-home .story-proof h2 { font-size: clamp(2rem, 3.3vw, 3.1rem); margin-bottom: 0; }
.story-home .proof-list>div { padding: 21px 0; border-color: var(--home-line); }
.story-home .proof-list>div:first-child { padding-top: 0; }
.story-home .proof-list strong { font-size: .9rem; }
.story-home .proof-list span { font-size: .82rem; }
.home-faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0 70px; }
.home-faq .chapter-heading h2 { font-size: 2rem; }
.home-faq-list details { border-bottom: 1px solid var(--home-line); }
.home-faq-list details:first-child { border-top: 1px solid var(--home-line); }
.home-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; padding-block: 21px; min-height: 64px; font-size: .87rem; font-weight: 550; cursor: pointer; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary>span { color: var(--story-cyan); font-size: 1.35rem; font-weight: 400; transition: transform .2s; }
.home-faq-list details[open] summary>span { transform: rotate(45deg); }
.home-faq-list p { margin: 0 30px 22px 0; font-size: .83rem; color: var(--story-muted); }
.home-faq-list a { color: var(--story-cyan); }
.home-final-link { grid-column: 2; display: flex; align-items: center; justify-content: space-between; color: var(--story-cyan); text-decoration: none; min-height: 50px; font-size: .8rem; margin-top: 20px; }
.story-home a:not(.story-button):hover { color: var(--story-cyan); }
.story-home [hidden] { display: none !important; }
:root[data-theme=light] .story-home { --home-line: rgba(38, 91, 126, .2); --home-soft: rgba(255, 255, 255, .36); --story-muted: #4e687c; --story-cyan: #006b89; }
:root[data-theme=light] .home-start { background: linear-gradient(140deg, rgba(255, 255, 255, .86), rgba(242, 248, 255, .82)); border-color: rgba(255, 255, 255, .95); box-shadow: inset 0 1px #fff, 0 25px 70px rgba(34, 67, 114, .12); }
:root[data-theme=light] .home-goals label { background: rgba(255, 255, 255, .2); }
:root[data-theme=light] .home-goals label:has(input:checked) { background: rgba(0, 122, 159, .05); }
:root[data-theme=light] .home-periods input:checked+span { background: rgba(0, 122, 159, .07); }
:root[data-theme=light] .home-goals input:checked ~ i { background: #fff; }
@media (hover: hover) {
    .home-goals label:hover, .home-periods label:hover>span { border-color: var(--story-cyan); }
    .story-home .period-entrances>a:hover { border-color: var(--story-cyan); background: rgba(0, 209, 255, .06); }
}
@media (max-width: 1050px) {
    .home-hero { gap: 32px; padding-block: 48px 38px; }
    .home-intro h1 { font-size: clamp(2.4rem, 4.9vw, 3.55rem); }
    .home-start { padding: 24px; }
    .home-experiment-section, .story-home .story-proof, .home-faq { gap: 34px; }
    .home-trust { gap: 18px; }
    .home-trust small { font-size: .6rem; }
    .home-tool-icon { display: none; }
}
@media (max-width: 760px) {
    .fm-glass-home .site-header :is(.theme-toggle, .header-burger) { width: 44px; height: 44px; }
    .story-home .container { padding-inline: 20px; }
    .home-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 30px 28px; }
    .home-intro { max-width: 550px; }
    .home-intro .story-kicker { font-size: .65rem; margin-bottom: 18px; letter-spacing: .06em; }
    .home-intro h1 { font-size: clamp(2.7rem, 10vw, 3.7rem); line-height: 1.06; }
    .home-lead { margin: 16px 0 8px; font-size: .9rem; line-height: 1.6; max-width: 440px; }
    .home-intro-actions a { font-size: .74rem; }
    .home-byline { display: none; }
    .home-start { padding: 23px 20px 14px; border-radius: 20px; }
    .home-panel-top { margin-bottom: 12px; }
    .home-start h2 { font-size: 1.55rem; margin-bottom: 18px; }
    .home-start h2 br { display: none; }
    .home-goals label { padding: 12px; }
    .home-start .home-periods { margin-top: 16px; }
    .home-start .home-start-note { font-size: .72rem; margin-block: 13px; }
    .home-primary { font-size: .77rem; padding-inline: 13px; gap: 8px; }
    .home-trust { grid-template-columns: 1fr; gap: 16px; padding-block: 8px 32px; }
    .home-trust>div { gap: 12px; }
    .home-trust>div>span { font-size: 1.2rem; width: 24px; }
    .home-trust strong { font-size: .75rem; }
    .home-trust small { font-size: .67rem; }
    .home-experiment-section { grid-template-columns: 1fr; padding-block: 36px; gap: 24px; }
    .home-experiment-intro .story-kicker { margin-bottom: 16px; }
    .home-experiment-intro h2 { font-size: 2.8rem; }
    .home-section-lead { font-size: .9rem; margin: 16px 0; }
    .home-insight { display: flex; gap: 20px; align-items: center; margin-block: 20px 0; padding-block: 18px; border-bottom: 0; }
    .home-insight>span { font-size: 1.8rem; white-space: nowrap; }
    .home-insight p { margin: 0; font-size: .8rem; }
    .home-experiment-prompt, .home-experiment-intro>.story-text-link { display: none; }
    .story-home .experiment { padding: 20px 16px; border-radius: 20px; }
    .story-home .experiment h3 { font-size: 1.65rem; }
    .story-home .experiment-settings { grid-template-columns: 1fr; gap: 10px; margin-block: 18px; }
    .story-home .experiment-settings label:last-child { display: flex; align-items: center; gap: 16px; }
    .story-home .experiment select { margin-top: 0; flex: 1; width: auto; font-size: 1rem; }
    .story-home .lesson-offer { padding: 12px 10px; }
    .story-home .lesson-offer p { font-size: .67rem; min-height: 32px; }
    .story-home .lesson-offer .offer-name { font-size: .7rem; gap: 5px; }
    .story-home .lesson-offer>strong { font-size: 2.15rem; }
    .story-home .lesson-offer output { font-size: 1rem; white-space: nowrap; }
    .story-home .lesson-offer small { font-size: .61rem; }
    .story-home .live-rate { font-size: .59rem; }
    .story-home .income-chart svg { height: 100px; }
    .story-home .timeline-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
    .story-home .timeline-controls .story-button { grid-column: 1 / -1; font-size: .8rem; }
    .story-home .story-quiet { font-size: .75rem; }
    .story-home .story-chapter { padding-block: 36px; }
    .story-home .chapter-heading { margin-bottom: 24px; }
    .story-home .chapter-heading h2 { font-size: 1.9rem; }
    .story-home .lesson-entrances { gap: 12px; }
    .story-home .lesson-entrances>a { padding: 20px 20px 18px 90px; min-height: 174px; }
    .story-home .lesson-number { position: static; margin-bottom: 12px; font-size: .58rem; letter-spacing: .04em; }
    .story-home .entrance-art { left: 18px; top: 42px; width: 52px; height: 65px; gap: 4px; margin: 0; }
    .story-home .lesson-entrances h3 { font-size: 1.2rem; }
    .story-home .lesson-entrances h3 br { display: none; }
    .story-home .lesson-entrances p { margin: 10px 0 12px; font-size: .78rem; }
    .story-home .entrance-action { font-size: .72rem; }
    .story-home .period-entrances { grid-template-columns: 1fr; gap: 10px; }
    .story-home .period-entrances>a { display: grid; grid-template-columns: 1fr auto; gap: 0 18px; padding: 18px; align-items: center; }
    .story-home .period-entrances>a>span { font-size: .68rem; }
    .story-home .period-entrances strong { grid-column: 1; grid-row: 2; font-size: 2.7rem; margin: 3px 0; }
    .story-home .period-entrances small { display: inline; font-size: .85rem; }
    .story-home .period-entrances p { grid-column: 1; margin: 0; font-size: .69rem; }
    .story-home .period-entrances b { grid-column: 2; grid-row: 1 / 4; gap: 12px; font-size: .75rem; }
    .story-home .home-calculator { padding: 24px 20px; gap: 20px; }
    .home-calculator h3 { font-size: 1.4rem; }
    .home-calculator p { margin-top: 12px; font-size: .82rem; }
    .home-calculator>a { width: 100%; justify-content: space-between; }
    .story-home .catalog-inline { flex-direction: column; gap: 0; }
    .story-home .story-proof { grid-template-columns: 1fr; gap: 30px; }
    .story-home .story-proof h2 { font-size: 2.2rem; }
    .home-faq { grid-template-columns: 1fr; gap: 0; }
    .home-faq-list summary { font-size: .82rem; padding-block: 19px; }
    .home-faq-list p { font-size: .8rem; }
    .home-final-link { grid-column: 1; }
}
@media (max-width: 360px) {
    .story-home .container { padding-inline: 16px; }
    .home-intro h1 { font-size: 2.6rem; }
    .home-start { padding-inline: 16px; }
    .home-start h2 { font-size: 1.4rem; }
    .home-goals strong { font-size: .76rem; }
    .home-goals small { font-size: .64rem; }
    .home-primary { font-size: .71rem; }
    .story-home .lesson-offer .offer-name { font-size: .61rem; }
    .story-home .lesson-offer output { font-size: .88rem; }
    .story-home .lesson-entrances>a { padding-left: 76px; }
    .story-home .entrance-art { width: 42px; }
}
