:root {
    --blue: #1768c4;
    --blue-dark: #123f70;
    --blue-soft: #eaf4ff;
    --yellow: #fdd835;
    --yellow-soft: #fff8cf;
    --coral: #ff8066;
    --ink: #18344f;
    --muted: #6d8091;
    --cream: #fffcf4;
    --line: #dce8f0;
    --white: #fff;
    --shadow: 0 20px 50px rgba(37, 75, 108, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Trebuchet MS", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.announcement { position: relative; padding: 8px 30px; background: var(--blue-dark); color: #fff; text-align: center; font-size: 12px; letter-spacing: .04em; }
.announcement-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 4px; display: flex; align-items: center; border-radius: 4px; }
.announcement-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-header { position: relative; z-index: 20; background: rgba(255, 252, 244, .94); }
.nav-shell { width: min(1200px, calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-dark); font-size: 18px; font-weight: 800; white-space: nowrap; }
.brand b { color: var(--blue); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; position: relative; color: #fff; background: var(--blue); border-radius: 14px 14px 18px 10px; font-family: Georgia, serif; font-size: 24px; font-style: italic; box-shadow: 4px 4px 0 var(--yellow); transform: rotate(-3deg); }
.brand-mark span { position: absolute; right: 5px; bottom: 0; color: var(--yellow); font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.nav-links a { position: relative; padding: 28px 0 25px; color: #536c81; font-size: 14px; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 18px; width: 0; height: 3px; background: var(--yellow); border-radius: 4px; transition: .2s; transform: translateX(-50%); }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after { width: 18px; }
.nav-actions { display: flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 700; }
.text-link { color: var(--blue); }
.hello { color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; padding: 5px; border: 0; background: transparent; }
.nav-toggle span { width: 24px; height: 2px; margin: 5px; display: block; background: var(--ink); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--blue); border-radius: 50%; font-weight: 900; }

.button { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(23, 104, 196, .2); font-size: 14px; font-weight: 800; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { background: #0d58ad; box-shadow: 0 14px 30px rgba(23, 104, 196, .26); transform: translateY(-2px); }
.button-small { min-height: 40px; padding: 0 17px; border-radius: 11px; font-size: 12px; }
.button-yellow { background: var(--yellow); color: var(--blue-dark); box-shadow: 0 10px 24px rgba(253, 216, 53, .2); }
.button-yellow:hover { background: #ffe45d; }
.button.full { width: 100%; }
.outline-link { padding: 10px 15px; border: 1px solid #bcd2e3; border-radius: 11px; color: var(--blue); background: transparent; font-size: 12px; font-weight: 800; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }

.hero { width: min(1200px, calc(100% - 40px)); min-height: 635px; margin: auto; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 50px; }
.hero-copy { position: relative; z-index: 2; padding: 60px 0 80px; }
.hero-copy h1 { max-width: 590px; margin: 15px 0 19px; color: var(--blue-dark); font-size: clamp(48px, 5.2vw, 76px); line-height: .99; letter-spacing: -.055em; }
.hero-copy h1 em { position: relative; color: var(--blue); font-family: Georgia, serif; font-weight: 500; }
.hero-copy h1 em::after { content: ""; position: absolute; z-index: -1; left: -3px; right: -3px; bottom: 4px; height: 12px; background: var(--yellow); border-radius: 60% 20% 60% 30%; opacity: .75; transform: rotate(-2deg); }
.hero-copy > p { max-width: 530px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 24px; }
.play-link { display: flex; align-items: center; gap: 10px; color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.play-button { width: 39px; height: 39px; display: grid; place-items: center; padding-left: 2px; background: #fff; color: var(--blue); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 7px 18px rgba(32, 73, 111, .1); font-size: 10px; }
.trust-row { margin-top: 38px; display: flex; align-items: center; gap: 15px; }
.avatar-stack { display: flex; }
.avatar-stack i { width: 32px; height: 32px; margin-right: -8px; border: 3px solid var(--cream); border-radius: 50%; background: var(--coral); }
.avatar-stack i:nth-child(2) { background: var(--yellow); }
.avatar-stack i:nth-child(3) { background: #74c7ad; }
.trust-row div:last-child { display: grid; font-size: 12px; }
.trust-row span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.hero-art { min-height: 590px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-blob { position: absolute; inset: 60px 0 45px 45px; border-radius: 50% 42% 48% 43%; background: #dceeff; transform: rotate(-4deg); }
.hero-art::before { content: ""; position: absolute; width: 80px; height: 80px; left: 5%; top: 23%; border: 18px solid var(--yellow); border-radius: 30% 70% 40% 60%; transform: rotate(24deg); opacity: .75; }
.hero-art::after { content: ""; position: absolute; width: 70px; height: 22px; right: 3%; bottom: 16%; border-top: 6px solid var(--coral); border-radius: 50%; transform: rotate(-28deg); }
.hero-art > img { width: 95%; height: 500px; position: relative; object-fit: cover; object-position: 67% center; border-radius: 46% 40% 45% 35%; box-shadow: var(--shadow); }
.floating-card { position: absolute; z-index: 3; padding: 12px 16px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 14px 30px rgba(28, 66, 101, .15); font-size: 11px; }
.floating-card > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--yellow); color: var(--blue-dark); font-weight: 900; }
.floating-card div { display: grid; gap: 2px; }
.floating-card small { color: var(--muted); font-size: 9px; }
.card-safe { left: 0; bottom: 22%; }
.card-curious { right: -12px; top: 22%; }
.card-curious > span { background: var(--blue); color: #fff; }

.value-strip { padding: 28px max(20px, calc((100% - 1200px)/2)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; background: #fff; border-top: 1px solid #e9f0f4; border-bottom: 1px solid #e9f0f4; }
.value-strip > div { padding: 7px 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 13px; border-right: 1px solid var(--line); }
.value-strip > div:last-child { border-right: 0; }
.value-strip strong { align-self: end; color: var(--blue-dark); font-size: 14px; }
.value-strip p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.value-icon { width: 42px; height: 42px; grid-row: span 2; display: grid; place-items: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-family: Georgia, serif; font-weight: 900; transform: rotate(-3deg); }
.value-icon.bulb { background: var(--yellow-soft); color: #ad8d00; }
.value-icon.smile { background: #ffe7e1; color: #e4563d; }
.value-icon.print { background: #e6f7ef; color: #318765; }

.section-shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.featured-section { padding: 100px 0 110px; }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .how-copy h2, .newsletter h2, .about-contact h2 { max-width: 620px; margin: 8px 0 0; color: var(--blue-dark); font-size: clamp(30px, 3.5vw, 46px); line-height: 1.12; letter-spacing: -.04em; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px; }
.story-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e2ecf3; border-radius: 22px; box-shadow: 0 10px 30px rgba(31, 71, 107, .06); transition: transform .25s, box-shadow .25s; }
.story-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.story-cover { height: 300px; position: relative; display: block; overflow: hidden; background: var(--blue-soft); }
.story-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.story-card:hover .story-cover img { transform: scale(1.035); }
.age-pill, .free-pill { position: absolute; top: 13px; padding: 7px 10px; background: rgba(255,255,255,.92); border-radius: 8px; color: var(--blue-dark); font-size: 10px; font-weight: 900; box-shadow: 0 4px 12px rgba(22, 54, 84, .08); }
.age-pill { left: 13px; }
.free-pill { right: 13px; background: var(--yellow); }
.story-card-body { padding: 20px 21px 18px; }
.story-meta { display: flex; align-items: center; gap: 13px; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.story-meta span + span::before { content: ""; width: 3px; height: 3px; margin-right: 13px; display: inline-block; vertical-align: middle; background: var(--coral); border-radius: 50%; }
.story-card h3 { margin: 11px 0 7px; color: var(--blue-dark); font-size: 21px; line-height: 1.15; letter-spacing: -.025em; }
.story-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.story-card-footer { margin-top: 18px; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--blue-dark); font-size: 13px; }
.story-card-footer a { width: 31px; height: 31px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 50%; }

.how-section { padding: 95px 0; position: relative; overflow: hidden; background: var(--blue-dark); color: #fff; }
.how-section::before { content: ""; width: 300px; height: 300px; position: absolute; right: -100px; top: -130px; border: 45px solid rgba(255,255,255,.04); border-radius: 50%; }
.how-section .section-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; align-items: center; }
.how-copy .eyebrow { color: var(--yellow); }
.how-copy h2 { color: #fff; }
.how-copy p { margin: 16px 0 24px; color: #b9cbda; font-size: 14px; line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { min-height: 230px; padding: 25px; position: relative; display: flex; flex-direction: column; justify-content: end; overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; }
.step b { position: absolute; right: 16px; top: 3px; color: rgba(255,255,255,.08); font-family: Georgia, serif; font-size: 78px; }
.step span { color: var(--yellow); font-size: 20px; font-weight: 900; }
.step p { margin: 8px 0 0; color: #b9cbda; font-size: 11px; line-height: 1.6; }
.parent-quote { padding: 100px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.quote-card, .newsletter { padding: 45px; border-radius: 24px; }
.quote-card { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: 0 15px 35px rgba(31, 71, 107, .06); }
.quote-mark { position: absolute; right: 30px; top: 4px; color: var(--yellow); font-family: Georgia, serif; font-size: 100px; line-height: 1; }
.quote-card blockquote { max-width: 650px; margin: 0 0 26px; color: var(--blue-dark); font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.quote-card div { display: grid; font-size: 12px; }
.quote-card div span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.newsletter { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--yellow-soft); }
.newsletter h2 { margin-bottom: 22px; font-size: 31px; }

.site-footer { padding: 60px max(20px, calc((100% - 1200px)/2)) 18px; background: #f0f7fb; border-top: 1px solid var(--line); }
.footer-shell { padding-bottom: 48px; display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 60px; }
.brand-footer { margin-bottom: 16px; }
.footer-shell > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.footer-shell > div:first-child p { max-width: 300px; }
.footer-shell strong { margin-bottom: 7px; color: var(--blue-dark); font-size: 12px; }
.footer-bottom { padding-top: 18px; border-top: 1px solid #dae7ef; color: var(--muted); font-size: 10px; text-align: center; }
.toast { position: fixed; z-index: 50; right: 24px; top: 120px; max-width: 360px; padding: 14px 18px; background: var(--blue-dark); color: #fff; border-left: 5px solid var(--yellow); border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(-8px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

.page-hero { padding: 95px 20px; text-align: center; background: var(--blue-soft); }
.page-hero.compact { padding: 75px 20px; }
.page-hero h1 { max-width: 750px; margin: 9px auto 12px; color: var(--blue-dark); font-size: clamp(38px, 5vw, 61px); line-height: 1; letter-spacing: -.055em; }
.page-hero p { max-width: 600px; margin: auto; color: var(--muted); font-size: 14px; line-height: 1.7; }
.catalog-shell { padding: 46px 0 100px; }
.filters { margin-bottom: 30px; padding: 13px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.filters label { position: relative; padding-left: 10px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.filters select { min-width: 160px; margin-left: 8px; padding: 9px 30px 9px 10px; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--blue-dark); font-size: 12px; font-weight: 700; outline: none; }
.filters > a { color: var(--coral); font-size: 11px; font-weight: 800; }
.result-count { margin-left: auto; padding-right: 10px; color: var(--muted); font-size: 11px; }
.catalog-grid { grid-template-columns: repeat(3, 1fr); }
.empty-state { padding: 50px; grid-column: 1 / -1; background: #fff; border: 1px dashed #b7cddd; border-radius: 20px; text-align: center; }
.empty-state strong { display: block; color: var(--blue-dark); font-size: 22px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state .button { margin-top: 15px; }

.detail-shell { width: min(1100px, calc(100% - 40px)); min-height: 720px; margin: auto; padding: 70px 0 100px; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 75px; }
.detail-cover { min-height: 560px; position: relative; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); border-radius: 40% 18% 35% 18%; }
.detail-cover img { width: 78%; height: 490px; object-fit: cover; border: 9px solid #fff; border-radius: 20px; box-shadow: 0 25px 50px rgba(27, 65, 98, .2); transform: rotate(-3deg); }
.spark { width: 18px; height: 18px; position: absolute; background: var(--yellow); transform: rotate(45deg); }
.spark-one { right: 10%; top: 13%; }
.spark-two { left: 8%; bottom: 17%; width: 11px; height: 11px; background: var(--coral); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 11px; font-weight: 700; }
.story-meta.large { gap: 14px; font-size: 10px; }
.detail-copy h1 { margin: 14px 0 16px; color: var(--blue-dark); font-size: clamp(42px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.detail-copy .lead { color: var(--muted); font-size: 14px; line-height: 1.75; }
.learning-box { margin: 25px 0; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.learning-box > strong { font-size: 12px; }
.learning-box ul { margin: 13px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.learning-box li { display: flex; gap: 9px; color: var(--muted); font-size: 11px; }
.learning-box li span { width: 17px; height: 17px; display: grid; place-items: center; background: #e6f7ef; color: #318765; border-radius: 50%; font-size: 8px; }
.purchase-box { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--yellow-soft); border-radius: 17px; }
.purchase-box > div { display: grid; gap: 4px; }
.purchase-box small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.purchase-box strong { color: var(--blue-dark); font-size: 20px; }
.secure-note { color: #768b9b; font-size: 9px; text-align: center; }

.auth-page { min-height: calc(100vh - 109px); display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-art { position: relative; overflow: hidden; background: var(--blue-dark); }
.auth-art img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.7); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,63,112,.92), rgba(18,63,112,.08)); }
.auth-art > div { position: absolute; z-index: 2; left: 10%; right: 10%; bottom: 9%; color: #fff; }
.auth-art .eyebrow { color: var(--yellow); }
.auth-art h2 { max-width: 520px; margin: 10px 0; font-size: 44px; line-height: 1.05; letter-spacing: -.045em; }
.auth-art p { max-width: 480px; color: #d0deea; font-size: 13px; line-height: 1.6; }
.register-art { background: #614d88; }
.auth-panel { padding: 60px; display: grid; place-items: center; }
.auth-card { width: min(410px, 100%); }
.auth-card h1 { margin: 9px 0 6px; color: var(--blue-dark); font-size: 42px; letter-spacing: -.045em; }
.auth-card > p { margin: 0 0 30px; color: var(--muted); font-size: 12px; }
.auth-card > p a { color: var(--blue); font-weight: 800; }
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: grid; gap: 7px; color: var(--blue-dark); font-size: 11px; font-weight: 800; }
.form-stack input:not([type="checkbox"]) { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fafdff; color: var(--ink); outline: 0; font-size: 12px; transition: .2s; }
.form-stack input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.check-label { display: flex !important; grid-template-columns: 18px 1fr; align-items: center; color: var(--muted) !important; }
.error { color: #d94e37; font-size: 9px; }
.demo-note { margin-top: 20px; padding: 13px 15px; display: grid; gap: 3px; background: var(--yellow-soft); border-radius: 11px; color: var(--muted); font-size: 10px; }
.demo-note strong { color: var(--blue-dark); }

.about-hero { min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--blue-dark); color: #fff; }
.about-hero > div { padding: 80px max(40px, calc((100vw - 1200px)/2)); padding-right: 70px; }
.about-hero .eyebrow { color: var(--yellow); }
.about-hero h1 { margin: 13px 0 19px; font-size: clamp(42px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.about-hero p { color: #c3d5e3; font-size: 14px; line-height: 1.8; }
.about-hero img { width: 100%; height: 600px; object-fit: cover; }
.mission-grid { padding: 90px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mission-card { min-height: 280px; padding: 33px; background: var(--blue-soft); border-radius: 24px; }
.mission-card.yellow { background: var(--yellow-soft); }
.mission-card.coral { background: #ffe9e4; }
.mission-card span { color: var(--blue); font-family: Georgia, serif; font-size: 36px; font-weight: 900; }
.mission-card h2 { margin: 40px 0 10px; color: var(--blue-dark); font-size: 24px; }
.mission-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.about-contact { padding: 90px 20px; background: #edf6fb; text-align: center; }
.about-contact h2 { margin-inline: auto; }
.about-contact p { margin-bottom: 25px; color: var(--muted); font-size: 13px; }

.reader-shell { min-height: calc(100vh - 109px); background: #f1f7fb; }
.reader-toolbar { min-height: 68px; padding: 10px max(20px, calc((100% - 1200px)/2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #fff; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; }
.reader-toolbar > div { display: grid; gap: 3px; text-align: center; }
.reader-toolbar > div span { color: var(--muted); font-size: 9px; font-weight: 500; }
.reader-toolbar > a:last-child { justify-self: end; color: var(--blue); }
.reader-stage { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 45px 0; }
.reader-page { min-height: 590px; display: none; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.reader-page.active { display: grid; }
.page-illustration { position: relative; overflow: hidden; background: var(--blue-soft); }
.page-illustration img { width: 100%; height: 100%; object-fit: cover; }
.page-illustration span { position: absolute; right: 25px; top: 18px; color: rgba(255,255,255,.8); font-family: Georgia, serif; font-size: 72px; font-weight: 900; }
.page-copy { padding: 65px; display: flex; flex-direction: column; justify-content: center; }
.page-copy h1 { margin: 12px 0 19px; color: var(--blue-dark); font-size: 49px; line-height: 1.05; letter-spacing: -.05em; }
.page-copy p { color: #536c81; font-family: Georgia, serif; font-size: 21px; line-height: 1.8; }
.reader-controls { padding: 25px 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.reader-controls button { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; }
.reader-controls button:last-child { justify-self: end; }
.reader-controls button:disabled { color: #aab9c4; cursor: default; }
.page-dots { display: flex; gap: 7px; }
.page-dots button { width: 7px; height: 7px; padding: 0; background: #b9ccd9; border-radius: 50%; }
.page-dots button.active { width: 22px; background: var(--blue); border-radius: 8px; }

.worksheet-hero { background: var(--yellow-soft); }
.worksheet-grid { padding: 60px 0 100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.worksheet-card { padding: 20px; display: grid; grid-template-columns: 170px 1fr; gap: 23px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.worksheet-cover { height: 210px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.worksheet-cover img { width: 100%; height: 100%; object-fit: cover; }
.worksheet-preview { height: 210px; padding: 20px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: #fbfdff; border: 1px solid #cbdbe5; color: var(--blue-dark); box-shadow: 5px 5px 0 var(--blue-soft); border-radius: 14px; }
.worksheet-preview span { color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.worksheet-preview strong { margin-top: 5px; font-size: 20px; }
.worksheet-preview i { height: 1px; margin-top: 30px; display: block; background: #bbccd7; }
.worksheet-preview i + i { margin-top: 35px; }
.worksheet-info h2 { margin: 11px 0 8px; color: var(--blue-dark); font-size: 20px; }
.worksheet-info p { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.admin-shell { padding: 60px 0 100px; }
.admin-stats { margin-bottom: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.admin-stats div { padding: 23px; display: grid; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.admin-stats span { color: var(--blue-dark); font-size: 32px; font-weight: 900; }
.admin-stats small { color: var(--muted); font-size: 10px; }
.admin-table { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.admin-row { min-width: 760px; padding: 13px 18px; display: grid; grid-template-columns: 2fr 1fr .7fr 1fr 1fr; align-items: center; gap: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.admin-head { border-top: 0; background: #f4f9fc; color: var(--blue-dark); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.admin-story { display: flex; align-items: center; gap: 10px; color: var(--blue-dark); }
.admin-story img { width: 42px; height: 50px; object-fit: cover; border-radius: 6px; }

@media (max-width: 980px) {
    .nav-shell { min-height: 68px; }
    .nav-toggle { display: block; }
    .nav-links { position: absolute; left: 20px; right: 20px; top: 105px; padding: 15px; display: none; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
    .nav-links.open { display: grid; gap: 0; }
    .nav-links a { padding: 12px; }
    .nav-links a::after { display: none; }
    .nav-actions .hello, .nav-actions .text-link { display: none; }
    .hero { min-height: auto; grid-template-columns: 1fr; padding: 40px 0 70px; }
    .hero-copy { padding: 40px 0 0; text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-art { min-height: 480px; }
    .hero-art > img { height: 430px; }
    .value-strip { grid-template-columns: repeat(2, 1fr); }
    .value-strip > div:nth-child(2) { border-right: 0; }
    .story-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .how-section .section-shell { grid-template-columns: 1fr; gap: 40px; }
    .parent-quote { grid-template-columns: 1fr; }
    .detail-shell { grid-template-columns: .85fr 1.15fr; gap: 35px; }
    .detail-cover { min-height: 470px; }
    .detail-cover img { height: 410px; }
    .auth-art { display: none; }
    .auth-page { grid-template-columns: 1fr; }
    .about-hero { grid-template-columns: 1fr; }
    .about-hero > div { padding: 80px 40px; }
    .about-hero img { height: 420px; }
    .worksheet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    body { overflow-x: hidden; }
    .announcement { font-size: 9px; }
    .nav-shell { width: calc(100vw - 28px); gap: 10px; }
    .brand > span:last-child { display: none; }
    .nav-actions .button { display: none; }
    .hero { width: calc(100vw - 28px); min-width: 0; padding-top: 12px; overflow: hidden; }
    .hero-copy, .hero-art { min-width: 0; }
    .hero-copy h1 { font-size: 42px; overflow-wrap: break-word; }
    .hero-copy > p { font-size: 14px; }
    .hero-actions { flex-direction: column; gap: 15px; }
    .hero-art { min-height: 350px; }
    .hero-art > img { width: 100%; height: 320px; }
    .hero-blob { inset: 30px 0 20px; }
    .floating-card { display: none; }
    .value-strip { padding-inline: 14px; grid-template-columns: 1fr; }
    .value-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .value-strip > div:last-child { border-bottom: 0; }
    .section-shell { width: min(100% - 28px, 1200px); }
    .featured-section { padding: 65px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .story-grid, .catalog-grid { grid-template-columns: 1fr; }
    .story-cover { height: 340px; }
    .steps { grid-template-columns: 1fr; }
    .step { min-height: 170px; }
    .quote-card, .newsletter { padding: 28px; }
    .footer-shell { grid-template-columns: 1fr; gap: 28px; }
    .page-hero.compact { padding: 60px 20px; }
    .filters { align-items: stretch; flex-direction: column; }
    .filters label { padding: 5px; display: grid; gap: 5px; }
    .filters select { margin: 0; border: 1px solid var(--line); border-radius: 8px; }
    .result-count { margin: 5px 0; padding: 0; }
    .detail-shell { grid-template-columns: 1fr; padding: 35px 0 70px; }
    .detail-cover { min-height: 430px; }
    .detail-cover img { height: 380px; }
    .purchase-box { align-items: stretch; flex-direction: column; }
    .purchase-box .button, .purchase-box form .button { width: 100%; }
    .auth-panel { padding: 45px 20px; }
    .auth-card h1 { font-size: 36px; }
    .mission-grid { padding: 50px 0; grid-template-columns: 1fr; }
    .reader-toolbar { grid-template-columns: 1fr auto; }
    .reader-toolbar > div { text-align: right; }
    .reader-toolbar > a:last-child { display: none; }
    .reader-stage { width: min(100% - 20px, 1120px); padding: 15px 0; }
    .reader-page.active { grid-template-columns: 1fr; }
    .page-illustration { height: 280px; }
    .page-copy { min-height: 340px; padding: 35px; }
    .page-copy h1 { font-size: 37px; }
    .page-copy p { font-size: 17px; }
    .worksheet-card { grid-template-columns: 120px 1fr; gap: 15px; }
    .worksheet-preview { height: 170px; padding: 13px; }
    .admin-table { overflow-x: auto; }
    .admin-stats { grid-template-columns: 1fr; }
}

/* ─── Subscription: nav badge ─────────────────────────────────── */
.sub-badge { padding: 5px 11px; background: #e6f7ef; color: #208050; border: 1px solid #b5e3cc; border-radius: 20px; font-size: 11px; font-weight: 800; }

/* ─── Subscription: index page ───────────────────────────────── */
.sub-page { padding: 70px 0 110px; }
.sub-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.sub-card { padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.sub-card-head { margin-bottom: 28px; }
.sub-price { margin: 10px 0 7px; display: flex; align-items: baseline; gap: 6px; }
.sub-price strong { color: var(--blue-dark); font-size: 46px; font-weight: 900; letter-spacing: -.04em; }
.sub-price span { color: var(--muted); font-size: 14px; }
.sub-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.sub-features { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 13px; }
.sub-features li { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 13px; }
.sub-features li span { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; background: #e6f7ef; color: #318765; border-radius: 50%; font-size: 11px; }
.check-icon { width: 22px; height: 22px; display: inline-grid; place-items: center; flex-shrink: 0; background: #e6f7ef; color: #318765; border-radius: 50%; vertical-align: middle; }
.sub-benefits { display: grid; gap: 24px; }
.sub-benefit-item { padding: 24px; display: flex; align-items: flex-start; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.sub-benefit-icon { font-size: 26px; flex-shrink: 0; }
.sub-benefit-item strong { display: block; margin-bottom: 5px; color: var(--blue-dark); font-size: 14px; }
.sub-benefit-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ─── Subscription: upsell on story page ─────────────────────── */
.sub-upsell { margin-top: 14px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--yellow-soft); border: 1px solid #f0d84a; border-radius: 14px; }
.sub-upsell strong { display: block; color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.sub-upsell p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

/* ─── Payment: QRIS page ──────────────────────────────────────── */
.pay-shell { padding: 70px 0 110px; display: grid; place-items: center; }
.pay-card { width: min(540px, 100%); padding: 44px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.pay-header { margin-bottom: 30px; text-align: center; }
.pay-header h1 { margin: 8px 0 10px; color: var(--blue-dark); font-size: 40px; letter-spacing: -.045em; }
.pay-header p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.pay-body { display: grid; gap: 24px; }
.qr-wrapper { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 20px; background: var(--blue-soft); border-radius: 18px; }
.qr-image { max-width: 220px; max-height: 220px; border-radius: 10px; }
.qr-fallback { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.qr-fallback span { font-size: 40px; }
.pay-meta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px; background: var(--yellow-soft); border-radius: 14px; }
.pay-amount { display: grid; gap: 3px; }
.pay-amount small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pay-amount strong { color: var(--blue-dark); font-size: 22px; font-weight: 900; }
.pay-status { padding: 8px 14px; border-radius: 20px; font-size: 11px; font-weight: 800; background: #f0f5f8; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pay-status--settled { background: #e6f7ef; color: #208050; }
.pay-status--failed { background: #fde8e4; color: #b83b24; }
.status-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }
.pay-instructions { padding: 18px; background: #f4f9fc; border-radius: 14px; }
.pay-instructions strong { display: block; margin-bottom: 10px; color: var(--blue-dark); font-size: 12px; }
.pay-instructions ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.pay-footer { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }

/* ─── Admin: action bar & row actions ────────────────────────── */
.admin-actions { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.admin-row { grid-template-columns: 2fr 1fr .7fr 1fr 1.4fr; }
.admin-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.danger-link { color: var(--coral) !important; border-color: var(--coral) !important; }

/* ─── Admin: CMS form styles ─────────────────────────────────── */
.cms-form-wrap { max-width: 880px; }
.cms-form { display: grid; gap: 28px; margin-top: 30px; }
.cms-section { padding: 28px; border: 1px solid var(--line); border-radius: 18px; }
.cms-section legend { padding: 0 10px; color: var(--blue-dark); font-size: 13px; font-weight: 900; }
.cms-section label { display: grid; gap: 7px; color: var(--blue-dark); font-size: 11px; font-weight: 800; margin-top: 16px; }
.cms-section label:first-of-type { margin-top: 0; }
.cms-section input[type="text"],
.cms-section input[type="number"],
.cms-section input[type="date"],
.cms-section select,
.cms-section textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafdff; color: var(--ink); font: inherit; font-size: 13px; outline: 0; transition: .2s; resize: vertical; }
.cms-section input:focus,
.cms-section select:focus,
.cms-section textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.cms-section input[type="file"] { padding: 9px; background: #f4f9fc; }
.code-area { font-family: "Consolas", "Courier New", monospace; font-size: 11px; }
.cms-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cms-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cms-hint { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.cms-hint code { padding: 1px 4px; background: #edf3f7; border-radius: 4px; }
.cms-current-image { margin-bottom: 12px; display: flex; align-items: center; gap: 14px; }
.cms-current-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.cms-current-image small { color: var(--muted); font-size: 10px; }
.cms-errors { padding: 16px 20px; background: #fde8e4; border: 1px solid #f5b0a0; border-radius: 12px; color: #8b2a1a; font-size: 12px; }
.cms-errors ul { margin: 8px 0 0; padding-left: 16px; }
.cms-submit { display: flex; align-items: center; gap: 16px; }

@media (max-width: 980px) {
    .sub-grid { grid-template-columns: 1fr; }
    .cms-grid-2, .cms-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .sub-upsell { flex-direction: column; align-items: flex-start; }
    .pay-meta { grid-template-columns: 1fr; }
    .pay-card { padding: 28px 20px; }
    .admin-row { grid-template-columns: 1fr; }
    .admin-row-actions { flex-wrap: wrap; }
}

/* ─── Admin: Per-page card editor ────────────────────────────── */
.page-card { padding: 20px; margin-bottom: 14px; background: #f7fbfe; border: 1px solid var(--line); border-radius: 14px; }
.page-card-header { display: flex; align-items: center; justify-content: space-between; }
.page-card-header strong { color: var(--blue-dark); font-size: 13px; }
.page-card label { display: grid; gap: 6px; color: var(--blue-dark); font-size: 11px; font-weight: 800; }
.page-card input[type="text"],
.page-card textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; outline: 0; resize: vertical; transition: .2s; }
.page-card input:focus, .page-card textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.page-card input[type="file"] { padding: 8px; background: #f0f7fb; border-radius: 10px; border: 1px dashed var(--line); }


