:root{--blue:#2357d9;--darkblue:#162b66;--yellow:#ffe265;--coral:#ff745d;--sky:#a6e9ed;--ink:#17284f;--muted:#71809d;--paper:#f6f8ff;--line:#e0e7f6;--radius:18px;font-family:ui-rounded,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--coral);outline-offset:3px}
.demo-ribbon{background:#152451;color:white;display:flex;align-items:center;gap:14px;padding:8px max(15px,calc((100vw - 1150px)/2));font-size:11px}.demo-ribbon strong{color:var(--yellow);white-space:nowrap}.demo-ribbon>span{opacity:.8}.demo-switch{display:flex;gap:4px;margin-left:auto;padding:3px;background:#ffffff22;border-radius:8px}.demo-switch button{padding:7px 10px;border:0;color:#e8edff;background:transparent;border-radius:5px;font-weight:700;font-size:11px;white-space:nowrap}.demo-switch button.on{background:var(--yellow);color:var(--ink)}
.site-header{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1150px)/2));gap:20px}.logo{text-decoration:none;color:var(--blue);font-size:27px;font-weight:900;letter-spacing:-2px;line-height:.82}.logo span{color:var(--coral)}.logo small{display:block;font-size:10px;letter-spacing:2.9px;margin-top:9px;color:var(--ink)}nav{display:flex;gap:4px}nav button{border:0;background:transparent;padding:13px 18px;border-radius:10px;color:#66758e;font-size:13px;font-weight:800}nav button.active{background:#e8efff;color:var(--blue)}
.site-main{max-width:1170px;margin:0 auto;padding:30px 18px 65px}.hero{min-height:320px;background:var(--yellow);border-radius:22px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);overflow:hidden;padding:38px 45px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:900;color:var(--blue);margin:0 0 12px}.hero h1{font-size:clamp(38px,4.7vw,68px);line-height:1.04;letter-spacing:-3px;margin:0 0 16px;font-weight:900}.hero h1 em{font-style:normal;color:var(--blue)}.hero-copy>p:not(.eyebrow){max-width:440px;line-height:1.65;color:#41506d;font-size:14px}.primary{border:0;border-radius:11px;background:var(--blue);color:white;font-weight:850;padding:13px 19px;margin-top:12px}.primary span{margin-left:12px}.hero-covers{min-height:260px;display:flex;align-items:center;justify-content:center;gap:0}.hero-covers img{height:245px;width:165px;object-fit:contain;filter:drop-shadow(9px 12px 8px #57493151);transform:rotate(-11deg);margin-right:-15px}.hero-covers img:nth-child(2){transform:translateY(20px) rotate(9deg)}.hero-covers img:nth-child(3){transform:translateY(-12px) rotate(-7deg)}
.section-title{margin:45px 0 20px;display:flex;align-items:flex-end;justify-content:space-between;gap:25px}.section-title h2,.simple-head h1{font-weight:900;letter-spacing:-1.8px;font-size:clamp(29px,3vw,39px);margin:0}.muted,.simple-head p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.65}.find-bar input{width:min(360px,100%);background:white;border:1px solid var(--line);border-radius:11px;padding:14px 16px;color:var(--ink)}.pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.pills button{padding:9px 14px;background:white;border:1px solid var(--line);border-radius:40px;font-size:12px;font-weight:800;color:#60708c}.pills button.active{background:var(--blue);color:white;border-color:var(--blue)}.books-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.book-card{min-width:0;background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 8px 24px #1c3f7b0a}.book-cover{height:240px;display:flex;align-items:center;justify-content:center;position:relative;padding:16px;background:#ccecf4}.book-card:nth-child(4n+2) .book-cover{background:#ffdebd}.book-card:nth-child(4n+3) .book-cover{background:#d9dafa}.book-card:nth-child(4n+4) .book-cover{background:#ffe7a7}.book-cover img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(5px 7px 7px #24354b44)}.book-badge{position:absolute;left:12px;top:12px;padding:7px 9px;border-radius:7px;font-size:10px;font-weight:900;background:white;color:var(--blue);box-shadow:0 2px 8px #0002}.book-favorite{position:absolute;right:12px;top:12px;border:0;background:white;width:35px;height:35px;border-radius:9px;font-size:22px;color:var(--coral)}.book-info{padding:17px}.book-info small{font-size:10px;color:var(--blue);font-weight:900}.book-info h3{font-size:17px;letter-spacing:-.5px;line-height:1.27;min-height:63px;margin:10px 0 9px}.book-tags{font-size:10px;color:#647590;min-height:16px}.book-info button{background:var(--blue);border:0;color:white;width:100%;min-height:42px;font-weight:900;border-radius:10px;margin-top:16px;font-size:12px}.empty{text-align:center;padding:50px;color:var(--muted)}.simple-head{margin:25px 0}.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.account-card{background:white;padding:25px;border:1px solid var(--line);border-radius:17px}.account-card h2{font-size:14px}.account-card p{font-size:12px;color:var(--muted);line-height:1.65}.account-card .account-value{font-size:23px;color:var(--blue);font-weight:900}
/* Independent reader. Exactly one source owns layout. */
body.reader-open{overflow:hidden}.reader{position:fixed;inset:0;z-index:100;background:#e6edfb;color:var(--ink);height:100dvh;overflow:hidden}.reader.dark{background:#101725}.reader-shell{display:flex;flex-direction:column;height:100%;max-width:1200px;margin:auto;min-height:0}.reader-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 58px;height:58px;gap:10px;padding:0 15px;background:#fff;border-bottom:1px solid var(--line)}.icon-button{width:43px;height:43px;display:grid;place-items:center;background:#eef3ff;border:0;border-radius:10px;color:var(--blue);font-size:23px}.reader-book-title{min-width:0;display:grid;gap:2px;text-align:center}.reader-book-title strong{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:55vw}.reader-book-title span{color:var(--blue);font-weight:800;font-size:9px;letter-spacing:1px}.head-buttons{display:flex;gap:5px}.reader-progress{flex:0 0 3px;background:#cdd9f0}.reader-progress>div{background:var(--blue);height:100%;width:0;transition:width .2s}.reading-stage{flex:1 1 auto;min-height:0;display:grid;place-items:center;padding:12px 16px;perspective:1600px;overflow:hidden}.book-depth{width:min(100%,1040px);height:100%;min-height:0;max-height:700px;border-radius:9px;box-shadow:15px 17px 28px #1c274d2b;background:#d6dee7;position:relative}.book-depth:before{content:'';position:absolute;left:50%;top:0;bottom:0;width:12px;z-index:5;pointer-events:none;background:linear-gradient(90deg,transparent,#22334a1b,transparent)}.leaf{display:grid;grid-template-columns:54% 46%;height:100%;min-height:0;background:#fffef9;border-radius:9px;overflow:hidden;position:relative;transform-origin:left center;backface-visibility:hidden}.leaf.turn-next{animation:turn-page-next .58s cubic-bezier(.16,.77,.26,1)}.leaf.turn-prev{animation:turn-page-prev .58s cubic-bezier(.16,.77,.26,1)}@keyframes turn-page-next{0%{transform:rotateY(0);filter:brightness(1)}50%{transform:rotateY(-13deg);filter:brightness(.91)}100%{transform:rotateY(0);filter:brightness(1)}}@keyframes turn-page-prev{0%{transform:rotateY(0)}50%{transform:rotateY(13deg)}100%{transform:rotateY(0)}}.page-visual{background:#e7efea;display:grid;place-items:center;min-height:0;overflow:hidden}.page-visual img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.page-copy{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:22px 30px;min-width:0;min-height:0;overflow-y:auto;background:#fffcf5;text-align:center}.page-copy p{font-family:Georgia,'Times New Roman',serif;font-size:clamp(17px,1.65vw,23px);line-height:1.58;color:#273649;margin:0;max-width:420px;white-space:pre-line}.page-copy small{font-size:10px;font-weight:900;letter-spacing:1px;color:#a88655}.reader-toolbar{flex-shrink:0;display:grid;justify-items:center;gap:5px;padding:5px 10px max(8px,env(safe-area-inset-bottom))}.reader-controls{display:flex;align-items:center;justify-content:center;gap:8px}.reader-controls button{min-width:44px;height:44px;background:white;color:var(--blue);border:1px solid #cdd9ec;border-radius:10px;font-size:21px}.reader-controls button.play{min-width:130px;background:var(--blue);color:white;border:0;font-size:12px;font-weight:900;padding:9px 15px;display:flex;justify-content:center;gap:9px;align-items:center}.reader-bottom{display:flex;align-items:center;gap:15px}.reading-modes{display:flex;background:#d9e3f9;border-radius:10px;padding:3px;gap:2px}.reading-modes button{min-height:42px;background:transparent;color:#476091;border:0;border-radius:7px;padding:8px 13px;font-size:11px;font-weight:800}.reading-modes button.active{background:white;color:var(--blue);box-shadow:0 2px 6px #243b6322}.page-counter{font-weight:900;color:#637ca5;font-size:11px}.reader-toolbar p{font-size:10px;color:#607695;margin:1px 0;min-height:15px}.reader.dark .reader-toolbar{color:#d6e4ff}.reader.dark .reader-toolbar p,.reader.dark .page-counter{color:#c5d2ee}
@media(max-width:850px){.books-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-covers img{width:130px;height:210px}.account-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.demo-ribbon{flex-wrap:wrap;gap:6px;padding:7px 12px}.demo-ribbon>span{flex:1 1 auto}.demo-switch{width:100%;margin-left:0;justify-content:center}.site-header{height:64px;padding:0 12px}.logo{font-size:23px}.logo small{font-size:8px}nav button{font-size:11px;padding:9px}.site-main{padding:14px 12px 45px}.hero{grid-template-columns:1fr;padding:26px 22px 18px;border-radius:14px;min-height:0}.hero h1{font-size:37px;letter-spacing:-1.8px}.hero-copy>p:not(.eyebrow){font-size:12px}.hero-covers{min-height:145px;height:145px}.hero-covers img{height:145px;width:103px}.section-title{display:block;margin:29px 0 16px}.section-title h2{font-size:29px}.find-bar input{margin-top:14px;width:100%}.books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.book-cover{height:175px;padding:9px}.book-badge{font-size:8px;top:8px;left:7px}.book-favorite{right:7px;top:7px;width:31px;height:31px}.book-info{padding:11px}.book-info h3{font-size:13px;min-height:51px}.book-info small{font-size:9px}.book-info button{margin-top:12px}.account-grid{grid-template-columns:1fr}.reader-head{flex-basis:51px;height:51px;padding:0 7px}.reader-book-title strong{font-size:11px;max-width:calc(100vw - 167px)}.reading-stage{padding:6px 8px}.book-depth{max-height:100%}.book-depth:before{display:none}.leaf{grid-template-columns:1fr;grid-template-rows:minmax(0,68%) minmax(0,32%)}.page-copy{gap:4px;padding:8px 13px 13px}.page-copy p{font-size:clamp(14px,3.65vw,19px);line-height:1.43}.page-copy small{font-size:8px}.reader-controls{gap:4px}.reader-controls button{min-width:42px;width:42px;height:42px}.reader-controls button.play{min-width:112px;font-size:10px;padding:8px}.reader-bottom{gap:6px}.reading-modes button{font-size:9px;padding:7px 9px;min-height:39px}.reader-toolbar{gap:3px;padding-top:5px}}
@media(max-width:350px){.reader-controls button{min-width:38px;width:38px}.reader-controls button.play{min-width:104px}.reading-modes button{padding:7px 6px;font-size:8.5px}.page-copy p{font-size:14px}}
@media(max-height:610px) and (max-width:640px){.reader-controls button{height:39px}.reading-modes button{min-height:36px}.page-copy p{font-size:14px;line-height:1.38}.reader-toolbar p{font-size:9px}}
@media(prefers-reduced-motion:reduce){.leaf.turn-next,.leaf.turn-prev{animation:none}}

.leaf.cover-page .page-copy p{font-size:clamp(21px,2.2vw,31px);font-weight:700;line-height:1.38;max-width:390px}.leaf.cover-page .page-copy{background:#fff9ee}.leaf.cover-page .page-copy small{color:#af7943}
@media(max-width:640px){.leaf.cover-page{grid-template-rows:minmax(0,74%) minmax(0,26%)}.leaf.cover-page .page-copy p{font-size:clamp(19px,5.4vw,24px);line-height:1.26}}
/* Production V2 navigation and account */
.account-pill{min-height:44px;padding:10px 17px;color:#fff;background:var(--blue);font-size:12px;font-weight:900;border:0;border-radius:10px;white-space:nowrap}
.secondary-action{background:#e9efff;border:1px solid #cdd9f8;border-radius:9px;min-height:43px;padding:10px 16px;color:var(--blue);font-weight:800}
.device-list{display:grid;gap:8px;margin-bottom:14px}.device-row{padding:10px;border:1px solid var(--line);border-radius:9px;display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:12px}.device-row button{border:0;color:var(--blue);background:#ebf1ff;border-radius:7px;padding:9px 10px;font-weight:800}
.login-dialog{border:0;border-radius:20px;width:min(92vw,430px);max-height:90dvh;overflow:auto;padding:0;box-shadow:0 25px 65px #0b24644b}.login-dialog::backdrop{background:#071638b8}.login-form{padding:30px;display:grid;gap:14px}.login-form h2{font-size:29px;line-height:1.1;margin:0;letter-spacing:-1px}.login-form>p{color:#667894;line-height:1.55;font-size:12px;margin:0}.login-form label{font-weight:850;font-size:12px;display:grid;gap:6px}.login-form input{border:1px solid var(--line);padding:13px;border-radius:9px;min-height:44px}.login-close{position:absolute;right:11px;top:10px;border:0;background:#edf2ff;color:var(--blue);width:35px;height:35px;border-radius:10px;font-size:25px}.login-form .primary{margin:3px 0 0;min-height:46px}.login-form #loginStatus{color:#a0324e;font-size:12px}
/* One isolated StPageFlip stage. Old leaf only serves as offline/error fallback. */
.flip-mount{position:absolute;inset:0;display:grid;place-items:center;min-width:0;min-height:0;max-height:100%;overflow:visible;touch-action:pan-y}
.flip-mount .stf__parent{max-height:100%;max-width:100%;margin:auto}
.book-depth:has(.flip-mount:not([hidden])){background:transparent;box-shadow:none}.book-depth:has(.flip-mount:not([hidden]))::before{display:none}
.book-depth:has(.flip-mount:not([hidden]))>.leaf{display:none}
.flip-leaf{width:100%;height:100%;min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,67%) minmax(0,33%);background:#fff;color:#29364a;overflow:hidden;box-shadow:inset -5px 0 18px #1b2e540e}
.flip-leaf .flip-art{min-width:0;min-height:0;display:grid;place-items:center;background:#e8f0ec;overflow:hidden}
.flip-art img{width:100%;height:100%;max-height:100%;object-fit:contain;display:block}
.flip-copy{min-width:0;min-height:0;padding:12px 15px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;text-align:center;overflow-y:auto;background:#fffdf8}
.flip-cover .flip-copy{background:#fff6e4}
.flip-copy small{font-size:9px;color:#a08055;letter-spacing:1px;font-weight:900}.flip-copy p{margin:0;font:500 clamp(12px,1.25vw,16px)/1.48 Georgia,'Times New Roman',serif;color:#28364a;overflow-wrap:break-word}.flip-copy h2{font:700 clamp(16px,1.8vw,23px)/1.3 Georgia,'Times New Roman',serif;margin:0;color:#28364a}
.flip-copy .flip-num{align-self:flex-end;font-size:9px}
@media(max-width:640px){.account-pill{padding:9px;font-size:10px}.flip-leaf{grid-template-rows:minmax(0,66%) minmax(0,34%)}.flip-copy{padding:7px 9px;gap:3px}.flip-copy p{font-size:clamp(12px,3.4vw,15px);line-height:1.38}.flip-copy h2{font-size:clamp(16px,4vw,20px)}.site-header nav button{padding:9px 5px;font-size:10px}.site-header{gap:4px}}
/* V2 release lock: a single portrait page on every viewport.
   Avoid untested two-page narration skipping and oversize desktop spreads. */
.flip-mount{width:min(100%,520px);margin-inline:auto}
@media(max-width:640px){.flip-mount{width:100%}}

/* Recovery: actual StPageFlip single-page portrait geometry. Restrict the
   host width to less than 2 * minWidth (2 * 230px) at all breakpoints. */
.book-depth{width:min(100%,440px);height:min(100%,630px);max-width:440px;max-height:630px;aspect-ratio:5 / 7;box-shadow:0 12px 35px #17284324}
.flip-mount{width:100%;height:100%;max-width:100%;overflow:hidden;touch-action:pan-y}
.flip-mount .stf__parent{max-width:100%;max-height:100%;margin-inline:auto}
.flip-leaf{height:100%;}
.flip-copy{justify-content:flex-start;align-items:stretch;text-align:center;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.flip-copy p{flex-shrink:0;white-space:pre-line}
.flip-copy .flip-num{margin-top:auto;text-align:right}
.reader.dark .reading-stage{background:#101725}
.reader.dark .reader-head{background:#1b273b;border-color:#30415c;color:#f0f5ff}
.reader.dark .reader-book-title strong{color:#f0f5ff}
.reader.dark .reader-toolbar{background:#101725}
@media(max-width:640px){
 .book-depth{width:min(100%,440px);height:min(100%,630px);max-height:100%}
 .reading-stage{padding:6px 6px;}
 .flip-copy{padding:10px 12px}
 .reader-toolbar{padding-bottom:max(8px,env(safe-area-inset-bottom));}
 .reader-controls,.reader-bottom{max-width:100%}
}

/* Actual StPageFlip uses inline display:block on every page. The nested grid
   keeps story illustrations and narrative together within the page bounds. */
.reading-stage{display:flex;align-items:center;justify-content:center;min-width:0}
.book-depth{flex:0 1 auto;min-width:0;width:min(calc(100vw - 16px),440px);max-width:440px;max-height:100%;height:min(100%,630px)}
.flip-mount .stf__wrapper{width:100%!important}
.flip-mount .stf__block{left:0!important}
.flip-inner{width:100%;height:100%;min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,66%) minmax(0,34%);overflow:hidden}
.flip-inner .flip-art,.flip-inner .flip-copy{min-height:0;min-width:0}
.flip-inner .flip-copy{overflow-y:auto;justify-content:flex-start;align-items:stretch;overflow-wrap:anywhere}
.flip-inner .flip-copy p,.flip-inner .flip-copy h2{flex-shrink:0}
@media(min-width:641px){.flip-inner{grid-template-rows:minmax(0,67%) minmax(0,33%)}}

/* Reader experience v2.1 — one logical scene, two presentations.
   Mobile: art-first portrait. Desktop: a single wide turning leaf containing
   illustration on the left and narrative on the right. No separate page indexes. */
.reader:not(.reader-wide) .flip-inner{
 grid-template-columns:minmax(0,1fr);
 grid-template-rows:minmax(0,66%) minmax(0,34%);
}
.reader:not(.reader-wide) .flip-inner .flip-copy{
 padding:7px 11px 8px;gap:4px;
}
.reader:not(.reader-wide) .flip-inner .flip-copy p{
 font-size:clamp(13px,3.7vw,16px);line-height:1.38;
}
.reader:not(.reader-wide) .flip-inner .flip-copy h2{
 font-size:clamp(16px,4.5vw,22px);line-height:1.3;
}
.reader:not(.reader-wide) .flip-inner .flip-copy small{font-size:9px}
.reader:not(.reader-wide) .flip-inner .flip-num{margin-top:2px}
.reader.reader-wide .book-depth{
 flex:0 1 auto;width:min(100%,900px);max-width:900px;
 height:min(100%,600px);max-height:600px;aspect-ratio:3/2;
}
.reader.reader-wide .flip-inner{
 grid-template-columns:minmax(0,60%) minmax(0,40%);
 grid-template-rows:minmax(0,1fr);
}
.reader.reader-wide .flip-inner .flip-art{background:#dfeff0}
.reader.reader-wide .flip-inner .flip-copy{
 justify-content:center;align-items:stretch;
 gap:clamp(10px,1.7vw,20px);
 padding:clamp(18px,2.5vw,36px);
 background:#fffdf7;
 border-left:1px solid #e9e2d7;
}
.reader.reader-wide .flip-inner .flip-copy p{
 font-size:clamp(16px,1.5vw,21px);line-height:1.58;
 text-align:center;
}
.reader.reader-wide .flip-inner .flip-copy h2{
 font-size:clamp(22px,2.2vw,29px);line-height:1.35;
}
.reader.reader-wide .flip-inner .flip-copy small{font-size:11px}
.reader.reader-wide .flip-inner .flip-num{margin-top:18px}
.reader.reader-wide .flip-cover .flip-copy{background:#fff6e4}

/* Reader v2.3: browser top-layer modal, never a click-through overlay. */
.reader{
 position:fixed;inset:0;width:100vw;max-width:none;
 height:100dvh;max-height:none;margin:0;padding:0;
 border:0;box-sizing:border-box;overscroll-behavior:contain;
 background:#e6edfb;isolation:isolate
}
.reader:not([open]){display:none!important}
.reader::backdrop{background:#101725}
.reader-shell{height:100%;max-height:100%;overscroll-behavior:contain}
.reader.immersive{background:#091221}
.reader.immersive .reader-head{flex-basis:44px;height:44px}
.reader.immersive .reader-book-title{opacity:0;pointer-events:none}
.reader.immersive .reading-stage{padding:4px}
.reader:fullscreen{width:100vw;height:100dvh;max-width:none;max-height:none}

/* MIRALA Family Pass conversion — inside the existing Storybook design system */
.book-badge-free{background:#ffe38a!important;color:#694c00!important;border:1px solid #f5cd4e!important}
.book-badge-family{background:#285be2!important;color:#fff!important;border:1px solid #285be2!important}
.family-offer{position:fixed;inset:0;margin:auto;width:min(92vw,460px);max-width:460px;max-height:92dvh;overflow:auto;padding:30px 26px 23px;border:none;border-radius:24px;background:#fff;color:#203452;box-shadow:0 24px 90px #0c20404d;text-align:center;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.family-offer:not([open]){display:none}
.family-offer::backdrop{background:#071a36b9;backdrop-filter:blur(3px)}
.family-offer-close{position:absolute;right:12px;top:12px;border:0;border-radius:10px;background:#e8efff;color:#275fe2;width:38px;height:38px;font-size:25px}
.offer-symbol{display:grid;place-items:center;width:57px;height:57px;margin:0 auto 10px;background:#ffedab;border-radius:17px;color:#a47713;font-size:30px}
.offer-eyebrow{font-size:11px;letter-spacing:2px;font-weight:900;color:#3768da;margin:4px 0 9px}
.family-offer h2{font-size:clamp(23px,5.5vw,28px);line-height:1.19;letter-spacing:-.7px;margin:0 0 12px}
.family-offer>p:not(.offer-eyebrow){line-height:1.55;font-size:14px;color:#60718e}
.offer-plans{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.offer-plans>div{background:#f6f9ff;border:1px solid #dbe6ff;border-radius:13px;padding:15px 8px}
.offer-plans strong{display:block;font-size:19px;color:#2054d1}
.offer-plans span{display:block;font-size:11px;color:#60718e;margin-top:4px}
.offer-checkout,.offer-login,.offer-back{display:block;text-align:center;width:100%;border:0;border-radius:11px;font:800 13px system-ui;padding:13px 10px;margin-top:8px;cursor:pointer;text-decoration:none}
.offer-checkout{background:#235ae5;color:#fff}
.offer-login{background:#ffdf76;color:#3f3b27}
.offer-back{background:transparent;color:#4c6897}
.family-offer .offer-pending{background:#fff8de;border:1px solid #f8e4aa;border-radius:10px;padding:10px;font-size:12px!important}
@media(max-width:390px){.family-offer{padding:26px 18px 17px}.offer-plans{gap:6px}.offer-plans>div{padding:12px 5px}}

/* MIRALA visual balance v2.5 | catalog and member areas only.
   Do NOT restyle .reader, StPageFlip geometry, audio or premium offer logic. */
.site-header,.site-main{
 --ui-ink:#23344b;--ui-muted:#687789;--ui-line:#e4e8e7;
 --ui-sage:#e1eee6;--ui-sage-text:#346750;
 --ui-ochre:#f8e7b9;--ui-terracotta:#c67c68;--ui-paper:#faf9f6;
}
body{background:#f8f9f6}
.site-header{background:#fffefb;border-bottom:1px solid #e6e8e2;box-shadow:0 1px 0 #ffffffad}
.site-header .logo{color:#274767}
.site-header .logo span{color:#c6796c}
.site-header .logo small{color:#74828b}
.site-header nav button{color:#65747e;transition:background .16s,color .16s}
.site-header nav button:hover:not(.active){background:#f0f3ee;color:#334f4d}
.site-header nav button.active{background:#e3efe7;color:#356650}
.site-header .account-pill{background:#2c4c49;color:#fff;box-shadow:none}
.site-header .account-pill:hover{background:#24403d}
.site-main .hero{background:#f5ebd8;box-shadow:inset 0 0 0 1px #e8dcc5}
.site-main .hero .eyebrow{color:#966d4d}
.site-main .hero h1{color:#21384d}
.site-main .hero h1 em{color:#527d69}
.site-main .hero-copy>p:not(.eyebrow){color:#606e73}
.site-main .primary{background:#305b4b;box-shadow:none}
.site-main .primary:hover{background:#234736}
.site-main .eyebrow{color:#7b796c}
.site-main .section-title h2,.site-main .simple-head h1{color:#26384c}
.site-main .muted,.site-main .simple-head p:not(.eyebrow){color:#71808b}
.site-main .find-bar input{border-color:#dce5df;background:#fffefb;box-shadow:0 3px 14px #24382705}
.site-main .find-bar input:focus{border-color:#7fa992;outline:3px solid #d4e8dc}
.site-main .pills button{border-color:#dfe5e2;background:#fffefb;color:#5b6d76;transition:background .16s,color .16s,border-color .16s}
.site-main .pills button:not(.active):hover{background:#f0f5ef;border-color:#cbdcd1;color:#345d4a}
.site-main .pills button.active{background:#3c6655;color:#fff;border-color:#3c6655;box-shadow:0 3px 9px #3d715024}
.site-main .book-card{border:1px solid #e2e7e4;background:#fff;box-shadow:0 7px 25px #27394a0a;transition:border-color .2s,box-shadow .2s,transform .2s}
.site-main .book-card:hover{transform:translateY(-2px);border-color:#d1ddd6;box-shadow:0 13px 28px #253b3f12}
.site-main .book-card:nth-child(4n+1) .book-cover{background:#dcece6}
.site-main .book-card:nth-child(4n+2) .book-cover{background:#f4e4d7}
.site-main .book-card:nth-child(4n+3) .book-cover{background:#ede7f2}
.site-main .book-card:nth-child(4n+4) .book-cover{background:#f0e8d6}
.site-main .book-info small{color:#5d8276}
.site-main .book-info h3{color:#26354b}
.site-main .book-tags{color:#75828d}
.site-main .book-info button{background:#2e4655;color:#fff;transition:background .16s,transform .16s}
.site-main .book-info button:hover{background:#3a6557;transform:translateY(-1px)}
.site-main .book-badge{font-weight:850;letter-spacing:.02em;box-shadow:0 2px 8px #293b3b13}
.site-main .book-badge-free{background:#f8e3a4!important;color:#71521c!important;border:1px solid #edce79!important}
.site-main .book-badge-family{background:#eeeaf3!important;color:#60556c!important;border:1px solid #dcd4e4!important}
.site-main .book-badge-unlocked{background:#e3f1e7!important;color:#286248!important;border:1px solid #bcdcc9!important;box-shadow:0 2px 8px #21553c12}
.site-main .book-favorite{background:#fffdfa;color:#d17165;box-shadow:0 2px 7px #26353d12}
.site-main .book-favorite:hover{background:#ffede9}
.site-main .account-card{border:1px solid #e0e8e4;box-shadow:0 7px 22px #223c2b09}
.site-main .account-card .account-value{color:#365d4f}
.site-main .device-row{border-color:#e0e9e3}
.site-main .device-row button{background:#e5f0e9;color:#36604b}
.site-main .secondary-action{background:#e6efe9;border-color:#ceded3;color:#3e6856}
.site-main .secondary-action:hover{background:#d9e9df}
@media(hover:none){.site-main .book-card:hover{transform:none}}

/* Account sign-in and offer use the same calm palette as the library. */
.login-dialog{border:1px solid #dce5df;box-shadow:0 24px 66px #1d38292b}
.login-dialog .login-form .eyebrow{color:#6e806d}
.login-dialog .login-form .primary{background:#315b4f;color:#fff}
.login-dialog .login-form .primary:hover{background:#244b3e}
.login-dialog .login-close{background:#e9f0e9;color:#416d59}
.login-dialog .login-form input:focus{border-color:#8ebca4;outline:3px solid #dcefe2}
.family-offer .offer-checkout{background:#315b4f}
.family-offer .offer-checkout:hover{background:#244b3e}
.family-offer .offer-eyebrow{color:#547664}
.family-offer .offer-plans strong{color:#365e4d}
.family-offer .offer-login{background:#f4e1ad;color:#4d452f}

/* MIRALA Storybook v2.6 — shared library + reader visual system.
   Color, surface, borders, hover, focus and type ONLY. Do not modify
   flip/page geometry, animations, audio controls, modal or accessibility. */
.reader{
 --r-ink:#293d4a;
 --r-muted:#6b7e7b;
 --r-forest:#315b4f;
 --r-forest-hover:#23483d;
 --r-sage:#e3efe7;
 --r-sage-border:#cbded1;
 --r-border:#dae4de;
 --r-paper:#fffdf6;
 --r-surface:#f8f9f6;
 --r-stage:#e6eae3;
 --r-icon:#eef4ee;
 --r-slate:#2e4655;
 background:var(--r-stage);
 color:var(--r-ink);
}
.reader::backdrop{background:#26352cba}
.reader .reader-shell{background:var(--r-stage)}
.reader .reader-head{
 background:var(--r-paper);
 color:var(--r-ink);
 border-bottom:1px solid var(--r-border);
}
.reader .reader-book-title strong{color:var(--r-ink)}
.reader .reader-book-title span{color:#547e6a}
.reader .icon-button{
 background:var(--r-icon);
 color:var(--r-forest);
 border:1px solid var(--r-sage-border);
 transition:background .16s,color .16s,border-color .16s;
}
.reader .icon-button:hover:not(:disabled){
 background:#dcebe0;
 color:var(--r-forest-hover);
 border-color:#b5d2bf;
}
.reader .reader-progress{background:#d5e2d7}
.reader .reader-progress>div{background:#5a896e}
.reader .reading-stage{background:var(--r-stage)}
.reader .reader-toolbar{
 background:var(--r-surface);
 color:var(--r-ink);
 border-top:1px solid #dce5dc;
}
.reader .reader-controls button{
 background:#fffdf9;
 color:var(--r-forest);
 border-color:#cdded2;
 transition:background .16s,color .16s,border-color .16s;
}
.reader .reader-controls button:hover:not(:disabled){
 background:#e8f2ea;
 border-color:#accbb7;
 color:#254b3b;
}
.reader .reader-controls button.play{
 background:var(--r-forest);
 color:#fff;
 border-color:var(--r-forest);
}
.reader .reader-controls button.play:hover:not(:disabled){
 background:var(--r-forest-hover);
 color:#fff;
 border-color:var(--r-forest-hover);
}
.reader .reading-modes{
 background:#e5ede5;
 border:1px solid #d5e4d8;
}
.reader .reading-modes button{color:#596d67}
.reader .reading-modes button:hover:not(:disabled):not(.active){
 background:#d8e7db;
 color:#294e3e;
}
.reader .reading-modes button.active{
 background:#fffdf7;
 color:var(--r-forest);
 box-shadow:0 2px 8px #284a3221;
}
.reader .page-counter{color:#507261}
.reader .reader-toolbar p{color:#647872}
.reader .flip-leaf{background:var(--r-paper);color:var(--r-ink)}
.reader .flip-leaf .flip-art{background:#e8eee6}
.reader.reader-wide .flip-inner .flip-art{background:#e8eee6}
.reader .flip-copy,
.reader.reader-wide .flip-inner .flip-copy{
 background:var(--r-paper);
 color:var(--r-ink);
 border-left-color:#e1e7df;
}
.reader .flip-cover .flip-copy,
.reader.reader-wide .flip-cover .flip-copy{background:#fbf3e5}
.reader .flip-copy p,
.reader .flip-copy h2{color:#293b47}
.reader .flip-copy small{color:#9e8059}
.reader .page-visual{background:#e8eee6}
.reader .page-copy{background:var(--r-paper)}
.reader .page-copy p{color:#293b47}
.reader .page-copy small{color:#9e8059}
.reader .reader-controls button:focus-visible,
.reader .reading-modes button:focus-visible,
.reader .icon-button:focus-visible{
 outline:3px solid #8ab79b;outline-offset:2px;
}
.reader.immersive{background:#25302c}
.reader.immersive .reader-shell,
.reader.immersive .reading-stage{background:#25302c}
/* Dark mode dims the space OUTSIDE the illustrated book; paper stays warm. */
.reader.dark{background:#202a27;color:#f0f3ed}
.reader.dark .reader-shell,
.reader.dark .reading-stage{background:#202a27}
.reader.dark .reader-head{background:#293732;border-color:#45574e;color:#f2f4ed}
.reader.dark .reader-book-title strong{color:#f2f4ed}
.reader.dark .reader-book-title span{color:#b8d6c2}
.reader.dark .icon-button{background:#3c5146;color:#f0f5eb;border-color:#5d7666}
.reader.dark .icon-button:hover:not(:disabled){background:#4d6456;color:#fff}
.reader.dark .reader-progress{background:#34473e}
.reader.dark .reader-progress>div{background:#8dbb97}
.reader.dark .reader-toolbar{background:#293732;border-color:#45574e;color:#f2f4ed}
.reader.dark .reader-controls button:not(.play){background:#40544a;color:#edf4ec;border-color:#5e7666}
.reader.dark .reader-controls button:not(.play):hover:not(:disabled){background:#53705e;color:#fff}
.reader.dark .reader-controls button.play{background:#8dbb97;color:#213a2a;border-color:#8dbb97}
.reader.dark .reader-controls button.play:hover:not(:disabled){background:#a9d0b0;color:#213a2a}
.reader.dark .reading-modes{background:#3b4f44;border-color:#526f5b}
.reader.dark .reading-modes button{color:#d1e2d6}
.reader.dark .reading-modes button:hover:not(:disabled):not(.active){background:#4c6855;color:#fff}
.reader.dark .reading-modes button.active{background:#e5f1e5;color:#28513c}
.reader.dark .page-counter,
.reader.dark .reader-toolbar p{color:#d4e3d7}
.reader.dark .flip-copy,.reader.dark .flip-leaf,
.reader.dark .reader-wide .flip-copy{color:#293b47}

/* MIRALA Storybook 3.0 — Home + Explore. Scoped to site, not reader.
   The established reader/audio/modal CSS stays strictly unchanged. */
.site-main{max-width:1250px;padding:26px 28px 82px}
.site-header{max-width:100%;padding-inline:max(22px,calc((100vw - 1220px)/2))}
.site-header nav{align-items:center}
.site-header nav button{white-space:nowrap}
.site-header nav button[aria-current=page]{font-weight:900}
.page{min-width:0}
.hero-editorial{
 display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);
 min-height:474px;align-items:center;position:relative;
 padding:54px clamp(28px,4.5vw,68px);gap:20px;
 border-radius:30px;background:#e9f0e9!important;
 box-shadow:inset 0 0 0 1px #d9e5da;overflow:hidden
}
.site-main .hero-editorial{background:radial-gradient(circle at 81% 24%,#f4e8d8 0 8%,transparent 31%),linear-gradient(115deg,#eef4eb,#e4ece3 69%,#f1e9d9)!important}
.hero-editorial .hero-copy{position:relative;z-index:2}
.hero-editorial .hero-copy .eyebrow{color:#527262;font-size:10px;letter-spacing:2.3px}
.eyebrow-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#d59d72;margin-right:7px}
.hero-editorial h1{font-size:clamp(42px,5.4vw,70px);line-height:1.07;letter-spacing:-.065em;max-width:675px;margin:14px 0 24px}
.hero-editorial h1 em{color:#477861;font-style:normal}
.hero-editorial .hero-copy>p:not(.eyebrow){max-width:470px;font-size:15px;line-height:1.74;color:#5e706b}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:25px}
.hero-actions .primary,.parent-invitation .primary{margin-top:0;padding:15px 20px;border-radius:13px;font-size:13px}
.soft-action{border:1px solid #bfd5c5;background:#fafcf6;color:#315b4f;padding:14px 18px;border-radius:13px;font-size:13px;font-weight:850}
.soft-action:hover{background:#e2eee5}
.hero-actions .soft-action span{margin-left:6px}
.hero-editorial .hero-note{font-size:11px!important;color:#7a8e82!important;margin-top:22px;letter-spacing:.03em}
.hero-art{position:relative;min-height:380px;display:grid;place-items:center}
.hero-art:before{content:'';position:absolute;width:min(390px,96%);aspect-ratio:1;border-radius:50%;background:#f9f7ec8c;border:1px solid #f7f9edb9}
.hero-editorial .hero-covers{height:310px;min-height:310px;display:flex;align-items:center;justify-content:center;z-index:1;gap:0}
.hero-editorial .hero-covers img{height:295px;width:190px;margin-right:-40px;object-fit:contain;filter:drop-shadow(8px 18px 12px #38504043);transform:rotate(-11deg);transition:transform .25s}
.hero-editorial .hero-covers img:nth-child(2){transform:translateY(22px) rotate(8deg);z-index:2}
.hero-editorial .hero-covers img:nth-child(3){transform:translateY(-9px) rotate(-7deg)}
.hero-art-note{position:absolute;z-index:3;bottom:1px;right:0;transform:rotate(3deg);background:#fffdf5;color:#6c775d;padding:12px 15px;border-radius:12px;box-shadow:0 5px 24px #40543f19;font:700 13px Georgia,serif}
.hero-orbit{position:absolute;color:#d3b47d;font-size:35px;z-index:1}.hero-orbit-one{top:14%;left:12%}.hero-orbit-two{right:8%;top:9%;font-size:22px}
.value-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:23px 0 70px}
.value-trio article{min-width:0;display:flex;gap:13px;align-items:flex-start;padding:22px 20px;background:#fffefa;border:1px solid #e5e9e2;border-radius:18px}
.value-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;font-size:23px}
.value-icon-peach{background:#f8e6df;color:#b16d5c}.value-icon-sage{background:#e1eee5;color:#4b8161}.value-icon-lilac{background:#ece8f3;color:#80618b}
.value-trio h3{font-size:14px;line-height:1.3;letter-spacing:-.02em;margin:2px 0 8px;color:#2d4352}
.value-trio p{margin:0;line-height:1.6;color:#75817e;font-size:12px}
.book-shelf{margin:0 0 78px}
.shelf-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 22px}
.shelf-heading h2{font-weight:900;color:#293f4d;font-size:clamp(27px,3.2vw,40px);letter-spacing:-.052em;line-height:1.16;max-width:620px;margin:0}
.shelf-heading p:not(.eyebrow){color:#7a8986;font-size:13px;margin:11px 0 0;line-height:1.6}
.shelf-heading .eyebrow{font-size:10px;color:#ad8461;letter-spacing:1.9px}
.text-link{background:transparent;border:0;color:#3a6c58;font-weight:850;font-size:13px;white-space:nowrap;padding:10px 0;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#afcbb9}
.text-link:hover{color:#224632}
.shelf-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.shelf-grid:has(>.book-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:730px}
.shelf-empty{padding:20px;color:#798a86;font-size:13px}
.founder-story{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:clamp(20px,5vw,75px);align-items:center;background:#fff8ed;border:1px solid #f0e5d3;border-radius:25px;overflow:hidden;margin:12px 0 85px;min-height:420px}
.founder-visual{min-height:420px;height:100%;position:relative;background:radial-gradient(circle at 35% 30%,#f7e2c9,transparent 48%),linear-gradient(135deg,#e7eee4,#dfe8d9);display:grid;place-items:center;overflow:hidden}
.founder-moon{position:absolute;right:14%;top:13%;font-size:75px;color:#fcf9e7;transform:rotate(-25deg)}
.founder-book{position:relative;width:205px;height:258px;border-radius:6px 23px 17px 6px;background:#fffaf1;border-left:13px solid #c58b68;box-shadow:18px 22px 0 #8eac94,25px 30px 35px #445a4660;transform:rotate(-10deg);display:flex;justify-content:center;align-items:center}
.founder-book:before{content:'';position:absolute;inset:18px;border:1px solid #e2d5c4;border-radius:11px}
.founder-book span{text-align:center;z-index:1;font:800 27px/1.35 Georgia,serif;color:#3d6957}
.founder-book i{position:absolute;right:29px;top:25px;color:#e7bd79;font-size:32px;font-style:normal}
.founder-stars{position:absolute;left:18%;bottom:15%;font-size:27px;letter-spacing:15px;color:#f6efb9}
.founder-copy{padding:45px clamp(25px,4vw,55px) 42px 0}
.founder-copy .eyebrow{color:#a27b5b;font-size:10px}
.founder-copy h2{font:850 clamp(26px,3.2vw,40px)/1.21 system-ui,sans-serif;letter-spacing:-.055em;color:#2e4a47;margin:14px 0 20px}
.founder-copy h2 em{font:italic 550 .93em Georgia,serif;color:#a97652}
.founder-copy>p:not(.eyebrow){color:#6c7975;font-size:13px;line-height:1.85;margin:0 0 15px}
.founder-signoff{display:block;color:#478263;font:italic 600 14px Georgia,serif;margin-top:22px}
.parent-invitation{background:#e2ece4;border-radius:24px;padding:38px clamp(25px,5vw,65px);display:flex;justify-content:space-between;align-items:center;gap:30px;overflow:hidden}
.parent-invitation>div{max-width:620px;z-index:1}
.parent-invitation h2{font-size:clamp(27px,3.4vw,40px);line-height:1.16;color:#2c4e42;letter-spacing:-.055em;margin:13px 0}
.parent-invitation p:not(.eyebrow){font-size:14px;line-height:1.7;color:#678274;margin:0 0 21px}
.parent-invitation-illustration{font-size:170px;line-height:1;color:#b8d2bc;transform:rotate(-17deg);margin:0 16px}
.explore-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 0 18px}
.explore-intro h1{font-size:clamp(36px,4.2vw,54px);letter-spacing:-.06em;margin:0 0 9px;color:#2e4552}
.explore-intro .eyebrow{color:#a17b60;font-size:10px}
.explore-intro .muted{margin:0;color:#6d807c;font-size:14px}
.explore-decoration{color:#cda675;font-size:78px;line-height:1}
.explore-toolbar{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);gap:26px;background:#fffefa;border:1px solid #e3e9e2;border-radius:18px;padding:19px 20px 20px;margin:20px 0 20px}
.field-label{margin:0 0 10px;color:#5e746d;font-weight:850;font-size:11px;letter-spacing:.025em}
.explore-toolbar .find-bar input{margin:0;width:100%;background:#fff;border:1px solid #d9e5de}
.explore-toolbar .find-bar{width:100%}
.age-pills{display:flex;flex-wrap:wrap;gap:8px}
.age-pills button{border:1px solid #dce8df;background:#f8faf7;color:#596f64;border-radius:12px;padding:12px 13px;font-size:12px;font-weight:800}
.age-pills button.active{background:#3b6653;color:#fff;border-color:#3b6653}
.age-pills button:not(.active):hover{background:#e8f3e9;color:#315b45}
.category-line{display:flex;align-items:flex-start;gap:20px;margin:20px 0 19px}
.category-line .field-label{margin:12px 0 0;flex:0 0 100px}
.category-line .pills{margin:0}
.explore-results-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #e3e8e3;padding:17px 0 19px}
.explore-results-bar p{margin:0;font-size:13px;color:#405d52;font-weight:850}
.explore-results-bar span{font-size:11px;color:#92a098}
.explore-bottom{text-align:center;padding:22px 0 30px}
.load-more{border:1px solid #bbd5c4;background:#e5f0e7;border-radius:12px;color:#335f49;font-weight:850;padding:14px 25px}
.load-more:hover{background:#d7e9dc}
.catalog-progress{font-size:11px;color:#98a6a0;margin:12px 0 0}
.age-chip{display:inline-flex;align-items:center;color:#688674;border:1px solid #e1e9df;background:#f4f8f3;border-radius:20px;padding:4px 9px;margin-top:7px;font-size:10px;font-weight:750}
.book-card .book-info{display:flex;flex-direction:column;align-items:stretch}
.book-card .book-info .age-chip{align-self:flex-start}
.book-card .book-info button{margin-top:auto;padding-top:11px;padding-bottom:11px;position:relative;top:11px}
.book-card .book-info .book-tags{margin-bottom:3px}
.book-card .book-info h3{min-height:58px}
.books-grid .book-card{height:100%}
.favorite-guest{max-width:570px;text-align:center;margin:45px auto 75px;background:#fffefa;border:1px solid #e1e8df;border-radius:24px;padding:38px 32px}
.favorite-guest-icon{display:grid;place-items:center;background:#e9f1e7;color:#50785e;font-size:48px;width:75px;height:75px;margin:0 auto 17px;border-radius:24px}
.favorite-guest h2{color:#2c4550;font-size:25px;letter-spacing:-.04em;margin:0 0 10px}
.favorite-guest p{line-height:1.7;color:#7c8984;font-size:13px}
.favorite-guest button{margin-top:12px}
@media(max-width:980px){
 .site-main{padding:22px 20px 62px}
 .hero-editorial{grid-template-columns:minmax(0,1fr) minmax(250px,.8fr);padding:36px;min-height:420px}
 .hero-editorial h1{font-size:48px}
 .hero-editorial .hero-covers img{width:152px;height:252px;margin-right:-28px}
 .hero-art-note{font-size:11px}
 .value-trio{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .value-trio article{padding:15px 13px;gap:8px}
 .value-icon{width:34px;height:34px;flex-basis:34px;font-size:20px}
 .shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .shelf-grid:has(>.book-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:730px}
 .founder-story{grid-template-columns:minmax(225px,.8fr) minmax(0,1.2fr)}
 .founder-copy{padding:28px 26px 28px 0}
}
@media(max-width:700px){
 .site-header{height:auto;min-height:105px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'logo account' 'nav nav';gap:0;padding:11px 14px 0}
 .site-header .logo{grid-area:logo;font-size:24px}
 .site-header .account-pill{grid-area:account;justify-self:end}
 .site-header nav{grid-area:nav;justify-content:flex-start;gap:4px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;width:100%;padding:8px 0 9px}
 .site-header nav::-webkit-scrollbar{display:none}
 .site-header nav button{flex:0 0 auto;padding:10px 13px;font-size:11px}
 .site-main{padding:15px 13px 56px}
 .hero-editorial{display:block;padding:32px 24px 22px;min-height:0;border-radius:19px}
 .hero-editorial h1{font-size:clamp(39px,10vw,57px);letter-spacing:-.06em;margin-bottom:18px}
 .hero-editorial .hero-copy>p:not(.eyebrow){font-size:13px;line-height:1.7}
 .hero-actions{gap:8px;margin-top:18px}
 .hero-actions .primary,.hero-actions .soft-action{font-size:11px;padding:13px 12px}
 .hero-editorial .hero-note{font-size:10px!important;margin-top:13px}
 .hero-art{min-height:205px;height:220px;margin:6px -5px 0}
 .hero-art:before{width:220px}
 .hero-editorial .hero-covers{min-height:210px;height:210px}
 .hero-editorial .hero-covers img{width:135px;height:200px;margin-right:-30px}
 .hero-art-note{font-size:10px;bottom:0;right:0;padding:9px}
 .hero-orbit-one{font-size:22px;left:18%}
 .value-trio{grid-template-columns:1fr;gap:8px;margin:13px 0 54px}
 .value-trio article{padding:13px 14px;border-radius:13px;align-items:center}
 .value-trio h3{font-size:13px;margin:0 0 4px}
 .value-trio p{font-size:11px}
 .shelf-heading{align-items:flex-start;gap:9px}
 .shelf-heading h2{font-size:clamp(27px,7vw,36px)}
 .shelf-heading p:not(.eyebrow){font-size:12px}
 .text-link{font-size:11px;min-width:88px;white-space:normal;text-align:right;line-height:1.4}
 .shelf-grid,.shelf-grid:has(>.book-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
 .book-shelf{margin-bottom:55px}
 .founder-story{display:flex;flex-direction:column;gap:0;margin:6px 0 60px}
 .founder-visual{min-height:215px;width:100%}
 .founder-moon{font-size:44px}
 .founder-book{height:155px;width:126px;border-left-width:8px;border-radius:6px 14px 14px 5px}
 .founder-book span{font-size:17px}
 .founder-copy{padding:27px 23px 33px}
 .founder-copy h2{font-size:clamp(25px,7vw,34px)}
 .founder-copy>p:not(.eyebrow){font-size:12px}
 .parent-invitation{padding:27px 23px}
 .parent-invitation-illustration{display:none}
 .parent-invitation h2{font-size:29px}
 .parent-invitation p:not(.eyebrow){font-size:12px}
 .explore-intro{padding:22px 0 12px}
 .explore-intro h1{font-size:36px}
 .explore-decoration{font-size:45px}
 .explore-toolbar{grid-template-columns:1fr;gap:18px;padding:15px}
 .age-pills button{font-size:11px;padding:11px 9px}
 .category-line{display:block}
 .category-line .field-label{margin:0 0 10px}
 .explore-results-bar{display:block}
 .explore-results-bar span{display:block;margin-top:5px}
 .favorite-guest{margin:23px auto 55px;padding:25px 20px}
}
@media(max-width:370px){
 .site-header nav button{padding:9px 10px}
 .hero-actions .primary,.hero-actions .soft-action{font-size:10.5px;padding:12px 10px}
 .shelf-heading{display:block}
 .text-link{margin-top:5px;text-align:left}
 .age-pills button{font-size:10px}
}

/* MIRALA V3.1 Family navigation and conversion. Reader geometry/audio unaffected. */
body.modal-scroll-lock{position:fixed!important;width:100%;max-width:100%;inset-inline:0;overflow:hidden!important;overscroll-behavior:none}
body.modal-scroll-lock .site-main,
body.modal-scroll-lock .site-header{overscroll-behavior:none}
.site-header #familyNav{color:#3f6a54}
.site-header #familyNav:not(.active):hover{background:#edf2e8;color:#305941}
.site-header #familyNav.active{color:#315b4f;background:#e1eee5}
.family-page{color:#293e45}
.family-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(245px,.7fr);gap:20px;align-items:center;padding:55px clamp(28px,5vw,66px);border-radius:29px;background:linear-gradient(125deg,#e8f0e7 15%,#f7f2e4 98%);border:1px solid #dae5dc;margin:0 0 23px;min-height:370px;overflow:hidden}
.family-hero .eyebrow{color:#9c7b5d;font-size:11px}
.family-hero h1{font-size:clamp(38px,4.6vw,60px);letter-spacing:-.06em;line-height:1.1;color:#2c4743;margin:0 0 20px}
.family-hero h1 em{font-style:normal;color:#477960}
.family-hero p:not(.eyebrow){font-size:14px;color:#667d70;line-height:1.72;max-width:590px;margin:0 0 19px}
.family-hero .soft-action{display:inline-flex;align-items:center;gap:7px}
.family-hero-art{height:260px;position:relative;display:grid;place-items:center}
.family-hero-art>span{font-size:230px;color:#cedfcb;position:absolute;right:15px;top:-40px;line-height:1}
.family-hero-book{width:155px;height:210px;background:#fff9eb;border:1px solid #d6cfbd;border-left:13px solid #ce9f82;border-radius:5px 16px 15px 5px;box-shadow:17px 18px 0 #9abb9f,23px 26px 29px #345b3d28;transform:rotate(-10deg);display:grid;place-items:center;position:relative}
.family-hero-book b{text-align:center;font:700 24px/1.35 Georgia,serif;color:#4e7961;z-index:1}
.family-hero-book i{position:absolute;right:16px;top:12px;color:#cbaa69;font-size:29px;font-style:normal}
.family-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 67px}
.family-benefits article{padding:23px 20px;background:#fffefa;border:1px solid #dfe8dd;border-radius:18px}
.family-benefits article>span{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#e9f0e6;color:#416e54;font-size:25px;margin-bottom:17px}
.family-benefits article:nth-child(2)>span{background:#f7e9db;color:#a56b53}
.family-benefits article:nth-child(3)>span{background:#eee7f2;color:#7d6484}
.family-benefits article:nth-child(4)>span{background:#f8eecf;color:#96764c}
.family-benefits h2{font-size:15px;letter-spacing:-.03em;margin:0 0 8px;color:#2b484a}
.family-benefits p{font-size:12px;line-height:1.7;color:#70827c;margin:0}
.family-pricing{background:#fffefa;border-radius:25px;border:1px solid #e5e7dd;max-width:870px;margin:0 auto 50px;padding:40px clamp(21px,4vw,55px);box-shadow:0 8px 27px #37483c0a}
.family-pricing-head{text-align:center;margin:0 auto 23px;max-width:680px}
.family-pricing-head .eyebrow{color:#b48560}
.family-pricing-head h2{font-size:clamp(28px,3.4vw,42px);letter-spacing:-.053em;line-height:1.14;color:#2d4c40;margin:0 0 12px}
.family-pricing-head p:not(.eyebrow){color:#75847f;font-size:13px;line-height:1.65}
.family-plan-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.family-plan{border:1px solid #dbe5dc;background:#f6f9f4;border-radius:16px;padding:22px}
.family-plan:nth-child(2){background:#f8f4eb;border-color:#e9dec8}
.family-plan span{display:block;color:#7c8d81;letter-spacing:.12em;font-size:9px;font-weight:900;margin-bottom:11px}
.family-plan strong{font-size:31px;letter-spacing:-.05em;color:#305c48}
.family-plan p{font-size:12px;line-height:1.55;color:#72837d;margin:7px 0 0}
.family-checkout{display:block;text-align:center;padding:16px 18px;background:#315b4f;color:white;border-radius:12px;font-weight:850;font-size:14px;text-decoration:none;margin:14px 0}
.family-checkout:hover{background:#264a3f}
.family-checkout-pending{padding:17px 19px;background:#fff8e6;color:#786b4c;border:1px solid #e9dbaa;text-align:center;border-radius:12px;font-size:12px;line-height:1.6}
.family-fine-print{text-align:center;color:#88948a;font-size:11px;line-height:1.6;margin:17px 0 0}
.family-final-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 35px;background:#e4ede4;border-radius:19px}
.family-final-cta h2{font-size:23px;color:#2f5946;margin:0 0 7px}
.family-final-cta p{font-size:12px;color:#70857a;margin:0;line-height:1.65}
.family-final-cta .soft-action{flex:0 0 auto}
/* Reduce upsell to the two clear decisions rather than two durations on the modal. */
.family-offer{width:min(92vw,420px);padding:29px 25px 19px;overscroll-behavior:contain}
.family-offer .offer-symbol{width:55px;height:55px}
.family-offer h2{font-size:clamp(22px,5vw,27px)}
.family-offer>p:not(.offer-eyebrow){font-size:13px;line-height:1.6}
.offer-actions{display:grid;grid-template-columns:1fr;gap:4px;margin:19px 0 7px}
.offer-actions .offer-checkout{width:100%;background:#315b4f;color:#fff;min-height:49px;border:0;border-radius:11px;font-weight:850;font-size:13px}
.offer-actions .offer-checkout:hover{background:#254c3f}
.offer-actions .offer-login{width:100%;min-height:47px;background:#e4efe7;color:#315b4f;border:1px solid #cce1d2;margin:4px 0 0}
.offer-actions .offer-login:hover{background:#d7eadc}
.family-offer .offer-back{color:#73847a;min-height:38px}
.family-offer .family-offer-close{color:#345f4d;background:#e9f2eb;border-radius:12px}
.login-dialog{overscroll-behavior:contain}
@media(max-width:1020px){.family-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .family-hero{display:flex;flex-direction:column;align-items:stretch;padding:31px 24px 12px;border-radius:20px;gap:0}
 .family-hero h1{font-size:clamp(36px,9vw,48px)}
 .family-hero p:not(.eyebrow){font-size:12.5px}
 .family-hero-art{height:160px}
 .family-hero-art>span{font-size:145px;top:-30px;right:30px}
 .family-hero-book{width:89px;height:121px;border-left-width:7px;border-radius:6px 12px 11px 5px;box-shadow:10px 10px 0 #9abb9f,14px 16px 25px #345b3d26}
 .family-hero-book b{font-size:14px}
 .family-hero-book i{font-size:18px}
 .family-benefits{gap:9px;margin-bottom:35px}
 .family-benefits article{padding:15px 13px;border-radius:13px}
 .family-benefits article>span{width:35px;height:35px;font-size:20px;margin-bottom:9px}
 .family-benefits h2{font-size:12px}
 .family-benefits p{font-size:10.5px}
 .family-pricing{padding:25px 18px;margin-bottom:32px}
 .family-pricing-head h2{font-size:29px}
 .family-plan-row{gap:9px}
 .family-plan{padding:16px 12px}
 .family-plan strong{font-size:25px}
 .family-plan p{font-size:10.5px}
 .family-final-cta{padding:24px 22px;display:block}
 .family-final-cta h2{font-size:21px}
 .family-final-cta .soft-action{margin-top:17px}
 .family-offer{max-height:min(90dvh,720px);padding:27px 20px 15px}
}
@media(max-width:365px){
 .site-header nav button{padding:9px 7px;font-size:10px}
 .family-plan-row{grid-template-columns:1fr}
 .family-benefits{grid-template-columns:1fr 1fr}
}

/* MIRALA Storybook V3.2 — FINAL LOCK: A living, warm landing, restrained brand footer.
   Only compositing-friendly movement (transform/opacity); no reader geometry changes. */
.hero-editorial{
 isolation:isolate;
 background:
  radial-gradient(ellipse 58% 69% at 85% 27%,#fff3d6aa 0%,transparent 100%),
  radial-gradient(ellipse 35% 53% at 12% 96%,#d9e8d9 0%,transparent 100%),
  linear-gradient(116deg,#edf5eb 0%,#e7f0e7 56%,#f5eddf 100%)!important;
 box-shadow:inset 0 0 0 1px #d7e5d5,0 18px 55px #4b635019;
}
.hero-editorial::after{
 content:'';position:absolute;pointer-events:none;right:-110px;bottom:-155px;width:390px;height:390px;
 border:1px solid #ffffff9c;border-radius:50%;z-index:0;
 box-shadow:0 0 0 43px #fffef22d,0 0 0 96px #ffffff16;
}
.hero-editorial .hero-copy{z-index:3;position:relative}
.hero-editorial h1{font-weight:900;letter-spacing:-.068em;line-height:1.1}
.hero-heading-first{display:inline-block;animation:mirala-rise .8s cubic-bezier(.2,.7,.25,1) both}
.hero-editorial h1 .hero-highlight{
 position:relative;display:inline;
 color:#3d7459!important;
 font-style:normal;
 box-decoration-break:clone;-webkit-box-decoration-break:clone;
 background-image:linear-gradient(transparent 47%,#f1d18a 47%,#f1d18a 82%,transparent 82%);
 background-repeat:no-repeat;background-position:0 96%;background-size:0% 100%;
 animation:mirala-marker 1.3s .42s ease-out forwards;
}
.hero-editorial .hero-copy>p:not(.eyebrow){color:#536c62;max-width:505px}
.hero-editorial .hero-copy>p:not(.eyebrow) strong{font-weight:800;color:#345d4f}
.hero-editorial .hero-note{background:#ffffff91;display:inline-flex;gap:7px;padding:9px 13px;border:1px solid #ffffffba;border-radius:99px;letter-spacing:.01em}
.hero-art{isolation:isolate;z-index:2}
.hero-art-halo{
 position:absolute;z-index:0;inset:auto;width:84%;max-width:376px;aspect-ratio:1;
 border-radius:50%;background:radial-gradient(circle,#fff9eac4 0%,#f8ebd763 44%,transparent 72%);
 filter:blur(3px);animation:mirala-halo 6s ease-in-out infinite alternate;
}
.hero-editorial .hero-covers{position:relative;z-index:2}
.hero-editorial .hero-covers img{
 animation:mirala-book-left 6s ease-in-out infinite;
 will-change:transform;
}
.hero-editorial .hero-covers img:nth-child(2){
 animation:mirala-book-middle 5.4s ease-in-out -1.5s infinite;
}
.hero-editorial .hero-covers img:nth-child(3){
 animation:mirala-book-right 6.6s ease-in-out -2s infinite;
}
.hero-art-note{
 color:#486657;background:#fffdf4;
 border:1px solid #e9e5d5;
 font:italic 650 14px/1.3 Georgia,serif;
 box-shadow:0 10px 23px #586b5429;
 animation:mirala-note 5s ease-in-out infinite;
}
.hero-art-note>span{color:#c47e6b;font-size:16px}
.hero-art-sticker{
 position:absolute;z-index:4;top:12%;right:0;
 background:#ffedbd;color:#8f7145;
 text-align:center;line-height:1.4;letter-spacing:.08em;font-size:9px;font-weight:900;
 padding:12px 14px;border:1px solid #e8d69d;border-radius:9px;
 box-shadow:0 8px 16px #80673517;
 transform:rotate(9deg);
}
.hero-orbit{animation:mirala-star 5s ease-in-out infinite;will-change:transform}
.hero-orbit-two{animation-delay:-2s}
.hero-orbit-three{left:13%;bottom:18%;top:auto!important;right:auto;font-size:29px;color:#d5a28b;animation-delay:-4s}
.hero-heartline{
 margin:-13px 0 24px;position:relative;z-index:2;
 background:#fffef9;border:1px solid #e7eade;
 border-radius:17px;box-shadow:0 9px 23px #455a4310;
 display:flex;align-items:center;justify-content:center;gap:18px;
 padding:17px 27px;
}
.hero-heartline p{margin:0;line-height:1.6;max-width:780px;color:#697d72;font:italic 500 clamp(13px,1.25vw,16px)/1.6 Georgia,serif;text-align:center}
.hero-heartline strong{font-weight:750;color:#2e6650}
.heartline-doodle{font-size:34px;line-height:1;color:#c98473;transform:rotate(-12deg)}
.heartline-spark{font-size:29px;color:#cfb07b}
.hero-editorial .primary,.hero-editorial .soft-action{transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
@media(hover:hover) and (pointer:fine){
 .hero-editorial .primary:hover,.hero-editorial .soft-action:hover{transform:translateY(-3px);box-shadow:0 8px 16px #40614b25}
 .hero-editorial:hover .hero-covers img:nth-child(2){filter:drop-shadow(9px 20px 15px #37544165)}
 .hero-editorial .hero-covers img:hover{animation-play-state:paused}
}
@keyframes mirala-marker{from{background-size:0% 100%}to{background-size:100% 100%}}
@keyframes mirala-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes mirala-book-left{0%,100%{transform:translateY(0) rotate(-11deg)}50%{transform:translateY(-10px) rotate(-9deg)}}
@keyframes mirala-book-middle{0%,100%{transform:translateY(22px) rotate(8deg)}50%{transform:translateY(8px) rotate(6deg)}}
@keyframes mirala-book-right{0%,100%{transform:translateY(-9px) rotate(-7deg)}50%{transform:translateY(-19px) rotate(-5deg)}}
@keyframes mirala-halo{from{opacity:.7;transform:scale(.95)}to{opacity:1;transform:scale(1.06)}}
@keyframes mirala-note{0%,100%{transform:rotate(3deg) translateY(0)}50%{transform:rotate(1deg) translateY(-7px)}}
@keyframes mirala-star{0%,100%{opacity:.7;transform:rotate(-8deg) scale(1)}50%{opacity:1;transform:rotate(7deg) scale(1.13)}}
/* Footer signature replaces the duplicate page number but never competes with narration. */
.reader .flip-copy .flip-num,.reader .page-copy #pageNumber{
 font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
 text-transform:none;letter-spacing:.015em;font-size:9px;
 color:#988a79;opacity:.72;font-weight:600;
}
.reader.reader-wide .flip-inner .flip-copy .flip-num{font-size:10px}
.reader:not(.reader-wide) .flip-inner .flip-copy .flip-num{font-size:8px}
/* Stabilize everything on older or motion-reduced devices. */
@media(max-width:700px){
 .hero-art-sticker{top:13%;right:3%;font-size:7px;padding:8px 10px}
 .hero-art-note{font-size:11px;right:0;bottom:3px}
 .hero-heartline{margin:9px 0 16px;padding:11px 14px;gap:10px;border-radius:12px}
 .hero-heartline p{font-size:12px}
 .heartline-doodle,.heartline-spark{font-size:20px}
 .hero-editorial h1{line-height:1.12}
}
@media(prefers-reduced-motion:reduce){
 .hero-heading-first,.hero-editorial h1 .hero-highlight,.hero-art-halo,
 .hero-editorial .hero-covers img,.hero-art-note,.hero-orbit{
  animation:none!important;will-change:auto!important;
 }
 .hero-editorial h1 .hero-highlight{background-size:100% 100%}
 .hero-editorial .hero-covers img:nth-child(1){transform:rotate(-11deg)}
 .hero-editorial .hero-covers img:nth-child(2){transform:translateY(22px) rotate(8deg)}
 .hero-editorial .hero-covers img:nth-child(3){transform:translateY(-9px) rotate(-7deg)}
 .hero-art-note{transform:rotate(3deg)}
}

/* Cross-browser highlight: ink is always visible; animation is optional flourish.
   Safari/WebKit doesn't consistently animate background-size on an inline <em>. */
.hero-editorial h1 .hero-highlight{
 background-size:100% 100%;
 animation:none;
}
.hero-editorial h1 .hero-highlight::after{
 content:'';position:absolute;left:3%;right:3%;bottom:-.12em;
 height:.075em;border-radius:40% 55% 45% 30%;
 background:#c99f60;opacity:.75;pointer-events:none;
 transform-origin:0 50%;transform:scaleX(0) rotate(-1deg);
 animation:mirala-marker-stroke 1.05s .4s cubic-bezier(.16,.75,.3,1) forwards;
}
@keyframes mirala-marker-stroke{
 to{transform:scaleX(1) rotate(-1deg)}
}
@media(prefers-reduced-motion:reduce){
 .hero-editorial h1 .hero-highlight::after{animation:none;transform:scaleX(1) rotate(-1deg)}
}

/* Reader stability patch: iPhone's first viewport can be shorter than fullscreen.
   Reserve actual narrative room from the first render, keeping art prominent. */
.reader{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.reader:not(.reader-wide) .flip-inner .flip-copy{
 scrollbar-width:thin;overscroll-behavior:contain;
}
@media(max-width:899px) and (max-height:700px){
 .reader:not(.reader-wide) .flip-inner{grid-template-rows:minmax(0,60%) minmax(0,40%)}
 .reader:not(.reader-wide) .flip-inner .flip-copy{padding:6px 10px;gap:3px}
 .reader:not(.reader-wide) .flip-inner .flip-copy p{font-size:clamp(12px,3.5vw,15px);line-height:1.34}
}
.reader .flip-art{position:relative}
.reader .image-loading-note{
 position:absolute;inset:auto 13px 14px;z-index:1;
 display:block;padding:7px 12px;margin:auto;
 border:1px solid #e2e9db;border-radius:10px;
 text-align:center;font:700 11px/1.4 system-ui,sans-serif;
 color:#436653;background:#fffdf8ed;
 pointer-events:none;
}
.reader .image-retry{
 position:absolute;z-index:2;left:50%;bottom:46px;transform:translateX(-50%);
 border:1px solid #abcbb5;border-radius:10px;
 background:#f8fff9;color:#315b4f;white-space:nowrap;
 padding:9px 13px;font:800 11px system-ui,sans-serif;
}
.reader .image-retry:not([hidden]):hover{background:#e6f1e7}
/* Decorative homepage movement should consume no frames behind the book modal. */
body.reader-open .hero-editorial *,
body.reader-open .hero-editorial *::before,
body.reader-open .hero-editorial *::after{
 animation-play-state:paused!important;
}

/* V3.4 — fit the actual page to available phone height instead of shrinking art.
   Increase page height; keep the copy fully readable, not cropped or overlaid. */
.reader:not(.reader-wide) .flip-inner{
 grid-template-rows:minmax(0,75%) minmax(0,25%);
}
.reader:not(.reader-wide) .flip-leaf.copy-dense .flip-inner{
 grid-template-rows:minmax(0,69%) minmax(0,31%);
}
@media(max-width:899px) and (max-height:700px){
 .reader:not(.reader-wide) .flip-inner{
  grid-template-rows:minmax(0,72%) minmax(0,28%);
 }
 .reader:not(.reader-wide) .flip-leaf.copy-dense .flip-inner{
  grid-template-rows:minmax(0,64%) minmax(0,36%);
 }
}
/* Reader V3.5: a single full-bleed printed page, not a floating picture
   surrounded by empty color. Mild cropping is intentional and accepted.
   Keep the existing art/text ratios, page geometry and audio engine. */
.reader .flip-art{position:relative;min-width:0;min-height:0;overflow:hidden}
.reader .flip-art img{
 position:absolute;inset:0;
 display:block;width:100%;height:100%;
 min-width:0;min-height:0;max-width:100%;max-height:100%;
 object-fit:cover;
 object-position:50% 50%;
}
.reader.reader-wide .flip-inner .flip-art{
 border-right:0;
 background:#fffdf7;
}
.reader.reader-wide .flip-inner .flip-copy{
 border-left:0;
 box-shadow:inset 5px 0 10px -10px #786e6459;
}
/* The actual hero cards should be visible while images fetch on 4G.
   Covers below the fold remain lazy loaded. */
.hero-editorial .hero-covers img{
 background:linear-gradient(145deg,#dce8d9,#f5ead2);
 border-radius:5px;
}

/* MIRALA V3.6 — physical miniature books, using the real published cover images.
   Paper edges, rounded binding and a spine are CSS only: no extra network assets. */
.hero-editorial .hero-covers .hero-volume{
 position:relative;isolation:isolate;
 width:190px;height:295px;flex:0 0 190px;margin-right:-40px;
 border-radius:5px 13px 13px 4px;
 transform-style:preserve-3d;
 filter:drop-shadow(9px 15px 9px #36504437);
 animation:mirala-book-left 6s ease-in-out infinite;
 will-change:transform;
}
.hero-editorial .hero-covers .hero-volume:nth-child(2){
 z-index:3;animation:mirala-book-middle 5.4s ease-in-out -1.5s infinite;
}
.hero-editorial .hero-covers .hero-volume:nth-child(3){
 z-index:2;animation:mirala-book-right 6.6s ease-in-out -2s infinite;
}
.hero-editorial .hero-covers .hero-volume::before{
 content:'';position:absolute;z-index:2;pointer-events:none;
 top:0;bottom:0;left:0;width:11px;
 border-radius:5px 0 0 4px;
 background:linear-gradient(90deg,#1a332d68 0%,#ffffff25 27%,#101f1d24 76%,transparent 100%);
 box-shadow:3px 0 5px #1b28251e;
}
.hero-editorial .hero-covers .hero-volume::after{
 content:'';position:absolute;z-index:-1;pointer-events:none;
 inset:4px -6px 3px 5px;border-radius:3px 13px 12px 3px;
 background:repeating-linear-gradient(90deg,#fdfbf3 0px,#fdfbf3 2px,#dedbd3 3px,#f8f5ed 5px);
 box-shadow:3px 0 0 #e7e3d7,6px 0 0 #faf7ee,9px 2px 0 #bfc4bb;
 transform:translateX(4px) rotateY(-7deg);
}
.hero-editorial .hero-covers .hero-volume img{
 width:100%!important;height:100%!important;min-width:0;
 margin:0!important;object-fit:cover!important;
 border-radius:5px 11px 11px 4px;display:block;
 border:1px solid #fefdf6b8;
 box-shadow:inset 0 0 2px #0002,2px 4px 9px #38513c26;
 transform:none!important;animation:none!important;
 will-change:auto!important;filter:none!important;
}
/* A smaller real book scene on phones; avoid extra width/overflow. */
@media(max-width:700px){
 .hero-editorial .hero-covers .hero-volume{
  width:135px;height:200px;flex-basis:135px;margin-right:-30px;
 }
 .hero-editorial .hero-covers .hero-volume::before{width:8px}
 .hero-editorial .hero-covers .hero-volume::after{box-shadow:2px 0 0 #e7e3d7,4px 0 0 #faf7ee,6px 1px 0 #bfc4bb}
}
/* Focus is not merely a dark theme: reclaim app chrome and expand book stage. */
.reader.immersive .reader-shell{max-width:none;width:100%}
.reader.immersive .reader-head{
 position:absolute;z-index:25;inset:0 0 auto 0;
 flex:0 0 0;height:0;min-height:0;padding:0;border:0;background:transparent;
 overflow:visible;pointer-events:none;
}
.reader.immersive .reader-head>#closeReader,
.reader.immersive .reader-head .reader-book-title,
.reader.immersive #themeToggle{display:none!important}
.reader.immersive .reader-head .head-buttons{
 position:absolute;top:calc(env(safe-area-inset-top) + 10px);right:12px;
 display:flex;pointer-events:auto;z-index:26;
}
.reader.immersive #fullscreen{
 display:grid!important;place-items:center;
 width:43px;height:43px;min-width:43px;
 border:1px solid #cdded3;border-radius:12px;
 background:#fffef4ed;color:#2b5b45;box-shadow:0 4px 14px #213a3340;
}
.reader.immersive .reader-progress{flex:0 0 2px;height:2px}
.reader.immersive .reading-stage{flex:1 1 auto;min-height:0;padding:3px}
.reader.immersive .reader-toolbar{
 flex:0 0 auto;padding:4px 6px max(7px,env(safe-area-inset-bottom));
 gap:0;min-height:0;
}
.reader.immersive .reader-toolbar .reader-bottom,
.reader.immersive .reader-toolbar #audioStatus{display:none!important}
.reader.immersive .reader-controls{margin:auto;gap:6px}
.reader.immersive .reader-controls button{
 height:43px;min-height:43px;max-height:43px;
}
.reader.immersive:not(.reader-wide) .book-depth{
 width:min(calc(100vw - 8px),440px);height:100%;
 max-height:100%;max-width:440px;
}
.reader.immersive.reader-wide .book-depth{
 flex:0 1 auto;
 width:min(calc(100vw - 16px),1100px);max-width:1100px;
 height:min(100%,740px);max-height:740px;
 aspect-ratio:980 / 630;
}
/* Physical book movement should never block reading or reduced-motion preference. */
@media(prefers-reduced-motion:reduce){
 .hero-editorial .hero-covers .hero-volume{
  animation:none!important;will-change:auto!important;
 }
 .hero-editorial .hero-covers .hero-volume:nth-child(1){transform:rotate(-11deg)}
 .hero-editorial .hero-covers .hero-volume:nth-child(2){transform:translateY(22px) rotate(8deg)}
 .hero-editorial .hero-covers .hero-volume:nth-child(3){transform:translateY(-9px) rotate(-7deg)}
}

/* MIRALA V3.7 — actual mini-book covers only in Jelajah Buku.
   All edges and depth are CSS: reuse existing published cover images and requests. */
:is(#bookGrid,#freeGrid,#latestGrid) .book-cover{perspective:850px}
:is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume{
 position:relative;isolation:isolate;flex:none;
 height:100%;width:auto;aspect-ratio:3 / 4;
 max-width:calc(100% - 18px);
 border-radius:5px 11px 11px 4px;
 filter:drop-shadow(6px 10px 9px #31443931);
 transform:translateY(-1px) rotate(-.5deg);
 transition:transform .22s ease,filter .22s ease;
}
:is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume::before{
 content:'';position:absolute;z-index:2;pointer-events:none;
 top:0;bottom:0;left:0;width:9px;
 border-radius:5px 0 0 4px;
 background:linear-gradient(90deg,#1e383458,#ffffff34 29%,#1b292521 74%,transparent);
 box-shadow:2px 0 3px #1b292519;
}
:is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume::after{
 content:'';position:absolute;z-index:-1;pointer-events:none;
 inset:3px -7px 3px 7px;
 border-radius:4px 11px 10px 3px;
 background:repeating-linear-gradient(90deg,#fdfbf3 0px,#fdfbf3 2px,#dedbd3 3px,#f8f5ed 5px);
 box-shadow:2px 0 0 #e7e3d7,4px 0 0 #faf7ee,6px 1px 0 #c8cec2;
 transform:translateX(3px) rotateY(-5deg);
}
:is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume img{
 display:block;width:100%;height:100%;max-width:none;
 object-fit:contain;filter:none;
 border-radius:5px 10px 10px 4px;
 box-shadow:0 3px 8px #172d2624;
}
@media(hover:hover) and (pointer:fine){
 :is(#bookGrid,#freeGrid,#latestGrid) .book-card:hover .catalog-book-volume{
  transform:translateY(-4px) rotate(-1deg);
  filter:drop-shadow(7px 13px 11px #31443938);
 }
}
@media(max-width:640px){
 :is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume{max-width:calc(100% - 12px)}
 :is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume::before{width:6px}
 :is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume::after{
  inset:3px -5px 3px 5px;
  box-shadow:2px 0 0 #e7e3d7,3px 0 0 #faf7ee,4px 1px 0 #c8cec2;
 }
}
@media(prefers-reduced-motion:reduce){
 :is(#bookGrid,#freeGrid,#latestGrid) .catalog-book-volume{transition:none}
}

/* MIRALA V3.9 — Home card spacing only. Do not change Explore / reader.
   The age pill and compact CTA share one row; no auto margin pushing CTA down. */
:is(#freeGrid,#latestGrid) .book-card.home-compact .book-info{
 display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:7px;align-content:start;
}
:is(#freeGrid,#latestGrid) .home-compact .book-info >small,
:is(#freeGrid,#latestGrid) .home-compact .book-info h3,
:is(#freeGrid,#latestGrid) .home-compact .book-info .book-tags{grid-column:1 / -1}
:is(#freeGrid,#latestGrid) .home-compact .book-info h3{
 min-height:0;margin:7px 0 0;line-height:1.28;
}
:is(#freeGrid,#latestGrid) .home-compact .book-info .book-tags{
 min-height:0;margin:8px 0 0;line-height:1.4;
}
:is(#freeGrid,#latestGrid) .home-compact .book-info .age-chip{
 grid-column:1;align-self:center;min-width:0;max-width:100%;
 white-space:nowrap;margin:10px 0 0;padding:5px 8px;font-size:10px;
}
:is(#freeGrid,#latestGrid) .home-compact .book-info button{
 grid-column:2;align-self:center;justify-self:stretch;
 width:auto;min-width:0;min-height:36px;
 margin:10px 0 0;padding:8px 6px;
 position:static;top:auto;font-size:11px;white-space:nowrap;
}
@media(max-width:370px){
 :is(#freeGrid,#latestGrid) .home-compact .book-info{column-gap:5px}
 :is(#freeGrid,#latestGrid) .home-compact .book-info .age-chip{padding:5px 6px;font-size:9px}
 :is(#freeGrid,#latestGrid) .home-compact .book-info button{padding:7px 4px;font-size:10px}
}

/* MIRALA V4.3 — Jelajah compact cards, matching the approved Home rhythm.
   Only #bookGrid changes; book covers, badges, reader and Home remain untouched. */
#bookGrid .book-card.explore-compact .book-info{
 display:grid;grid-template-columns:max-content minmax(0,1fr);
 column-gap:7px;align-content:start;padding-bottom:14px;
}
#bookGrid .explore-compact .book-info >small,
#bookGrid .explore-compact .book-info h3,
#bookGrid .explore-compact .book-info .book-tags{grid-column:1 / -1}
#bookGrid .explore-compact .book-info h3{
 min-height:0;margin:7px 0 0;line-height:1.28;
}
#bookGrid .explore-compact .book-info .book-tags{
 min-height:0;margin:8px 0 0;line-height:1.4;
}
#bookGrid .explore-compact .book-info .age-chip{
 grid-column:1;align-self:center;min-width:0;max-width:100%;
 white-space:nowrap;margin:10px 0 0;padding:5px 8px;font-size:10px;
}
#bookGrid .explore-compact .book-info button{
 grid-column:2;align-self:center;justify-self:stretch;
 width:auto;min-width:0;min-height:36px;
 margin:10px 0 0;padding:8px 6px;
 position:static;top:auto;font-size:11px;white-space:nowrap;
}
@media(max-width:370px){
 #bookGrid .explore-compact .book-info{column-gap:5px}
 #bookGrid .explore-compact .book-info .age-chip{padding:5px 6px;font-size:9px}
 #bookGrid .explore-compact .book-info button{padding:7px 4px;font-size:10px}
}

/* MIRALA Storybook V4.4 — Discovery, library growth and access filter.
   This patch only styles Home statistics and Explore access chips. Reader is locked. */
#home .value-trio{margin-bottom:24px}
.story-metrics{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
 gap:clamp(18px,3.2vw,42px);align-items:center;
 border:1px solid #dce9df;border-radius:23px;
 background:linear-gradient(115deg,#f3f8f0 0%,#eaf2e9 64%,#f6f2e8 100%);
 padding:clamp(22px,3.2vw,35px);margin:0 0 62px;
}
.story-metrics-copy .eyebrow{font-size:10px;letter-spacing:2px;color:#678b74;margin:0 0 10px}
.story-metrics-copy h2{
 margin:0;color:#2c4c43;letter-spacing:-.04em;
 font-size:clamp(23px,2.45vw,32px);line-height:1.18;font-weight:850;
}
.story-metrics-copy>p:not(.eyebrow){color:#657f73;font-size:12.5px;line-height:1.65;margin:12px 0 0;max-width:465px}
.story-metrics-copy strong{color:#386451;font-weight:800}
.story-metrics-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.story-metric{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 text-align:center;min-height:118px;min-width:0;gap:6px;
 background:#fffefa;border:1px solid #e1e8df;border-radius:16px;
 padding:12px 8px;
}
.story-metric strong{font-size:clamp(30px,3.8vw,49px);font-weight:850;letter-spacing:-.055em;color:#315b4f;line-height:1.15;font-variant-numeric:tabular-nums}
.story-metric span{color:#648075;font-weight:750;font-size:11px;line-height:1.35}
.access-line{display:flex;align-items:flex-start;gap:20px;margin:0 0 17px}
.access-line .field-label{margin:12px 0 0;flex:0 0 100px}
.access-pills{display:flex;gap:8px;flex-wrap:wrap}
.access-pills button{
 border:1px solid #dce8df;background:#f8faf7;color:#4c6b5b;
 border-radius:11px;padding:10px 15px;font-size:12px;font-weight:800;
 transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.access-pills button.active{background:#315b4f;color:white;border-color:#315b4f}
.access-pills button:not(.active):hover{background:#e8f3e9;border-color:#a7c5af}
.access-pills button:focus-visible{outline:3px solid #c18f60;outline-offset:2px}
@media(max-width:800px){
 .story-metrics{grid-template-columns:1fr;gap:17px;padding:23px 20px;margin-bottom:48px}
 .story-metrics-numbers{gap:7px}
 .story-metric{min-height:94px;padding:11px 6px}
 .story-metric strong{font-size:32px}
 .story-metric span{font-size:10px}
}
@media(max-width:640px){
 #home .value-trio{margin-bottom:15px}
 .story-metrics{border-radius:17px;padding:20px 16px;gap:16px;margin-bottom:45px}
 .story-metrics-copy h2{font-size:25px}
 .story-metrics-copy>p:not(.eyebrow){font-size:12px}
 .story-metric{border-radius:12px;min-height:91px}
 .story-metric strong{font-size:31px}
 .access-line{display:block;margin-bottom:18px}
 .access-line .field-label{margin:0 0 9px}
 .access-pills{gap:6px}
 .access-pills button{font-size:11px;padding:10px 12px}
}
@media(max-width:360px){
 .story-metric strong{font-size:28px}
 .story-metric span{font-size:9px}
 .access-pills button{padding:9px 10px}
}
@media(prefers-reduced-motion:reduce){
 .access-pills button{transition:none}
}

/* MIRALA V4.5 — compact Explore disclosure.
   Reader, autoplay, Home, age chips and existing access/category controls unchanged. */
#explorePage .advanced-filters{
 margin:4px 0 20px;
 border:1px solid #dce6de;
 border-radius:15px;
 background:#fffefa;
 overflow:hidden;
}
#explorePage .advanced-filters-toggle{
 display:flex;align-items:center;gap:10px;
 padding:13px 17px;
 color:#345e4f;font-size:13px;font-weight:850;line-height:1.4;
 cursor:pointer;list-style:none;user-select:none;
}
#explorePage .advanced-filters-toggle::-webkit-details-marker{display:none}
#explorePage .advanced-filters-toggle::marker{content:''}
#explorePage .advanced-filters-toggle:hover{background:#f1f7f0}
#explorePage .advanced-filters-toggle:focus-visible{outline:3px solid #b48760;outline-offset:-4px;border-radius:13px}
#explorePage .advanced-filters-icon{
 width:28px;height:28px;border-radius:9px;
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;
 background:#e9f1e9;color:#4e7563;font-size:17px;line-height:1;
}
#explorePage .advanced-filter-count{
 color:#35604e;background:#e4f1e6;border:1px solid #cce2d1;
 padding:3px 8px;border-radius:99px;font-size:11px;font-weight:850;
}
#explorePage .advanced-filters-chevron{
 margin-left:auto;flex:0 0 9px;width:9px;height:9px;
 border-right:2px solid #55796b;border-bottom:2px solid #55796b;
 transform:rotate(45deg) translateY(-2px);
 transition:transform .18s ease;
}
#explorePage .advanced-filters[open] .advanced-filters-chevron{
 transform:rotate(225deg) translateY(-1px);
}
#explorePage .advanced-filters-body{
 padding:18px 17px 16px;
 border-top:1px solid #e3ebe4;background:#fbfcf8;
}
#explorePage .advanced-filters-body .access-line{
 margin:0 0 18px;
}
#explorePage .advanced-filters-body .category-line{
 margin:0;
}
#explorePage .advanced-filters-body .field-label{
 color:#60796c;
}
#explorePage .advanced-filters-body .category-line .pills{
 margin:0;
}
@media(max-width:640px){
 #explorePage .advanced-filters{margin:0 0 17px;border-radius:13px}
 #explorePage .advanced-filters-toggle{min-height:49px;padding:10px 13px;font-size:12px;gap:9px}
 #explorePage .advanced-filters-icon{width:27px;height:27px;flex-basis:27px}
 #explorePage .advanced-filters-body{padding:16px 13px 15px}
 #explorePage .advanced-filters-body .access-line{margin-bottom:20px}
}
@media(prefers-reduced-motion:reduce){
 #explorePage .advanced-filters-chevron{transition:none}
}

/* MIRALA Family Pass V4.6 — clear pricing and separate Lynk checkout per plan.
   Scoped to the pricing section; reader, Home, Explore and Family login unchanged. */
#familyPage .family-pricing{
 max-width:980px;padding:clamp(25px,4.2vw,49px);
 background:#fffefb;border:1px solid #e5e9e0;border-radius:27px;
}
#familyPage .family-pricing-head{max-width:710px;margin-bottom:22px}
#familyPage .family-pricing-head h2{font-size:clamp(30px,3.75vw,46px)}
#familyPage .family-pricing-head p:not(.eyebrow){font-size:13px;max-width:630px;margin:13px auto 0}
#familyPage .family-plan-row{gap:15px;align-items:stretch;margin:26px 0 23px}
#familyPage .family-plan{
 display:flex;flex-direction:column;align-items:stretch;position:relative;
 min-width:0;min-height:380px;padding:clamp(20px,2.6vw,28px);
 border:1px solid #d8e5da;border-radius:19px;background:linear-gradient(155deg,#f7faf6,#f1f6ef);
 box-shadow:0 8px 18px #284d3d08;
}
#familyPage .family-plan-featured{
 background:linear-gradient(150deg,#fff9eb 0%,#f7f3e9 70%,#f0f6ec 100%);
 border:2px solid #d4bc8b;
 box-shadow:0 8px 24px #88683112;
}
#familyPage .family-plan .family-plan-eyebrow{
 display:block;font-size:10px;font-weight:850;line-height:1.4;
 letter-spacing:.13em;color:#6a8877;margin:0 0 13px;
}
#familyPage .family-plan-featured .family-plan-eyebrow{color:#9f7742}
#familyPage .family-plan h3{
 color:#2b5244;margin:0;font-size:clamp(28px,3vw,36px);line-height:1.18;letter-spacing:-.04em;
}
#familyPage .family-plan .family-plan-price{
 color:#1f4839;font-size:clamp(30px,3.8vw,43px);
 line-height:1.18;letter-spacing:-.055em;font-weight:900;
 margin:12px 0 1px;font-variant-numeric:tabular-nums;
}
#familyPage .family-plan .family-plan-period{
 margin:2px 0 17px;font-size:11px;font-weight:750;color:#7c887d;
}
#familyPage .family-plan .family-plan-desc{
 margin:0 0 15px;color:#576f65;font-size:13px;line-height:1.55;
 min-height:39px;
}
#familyPage .family-plan-features{
 list-style:none;padding:15px 0 12px;margin:0 0 6px;
 border-top:1px solid #dce6d9;display:grid;gap:9px;
}
#familyPage .family-plan-features li{
 position:relative;padding-left:23px;font-size:12px;color:#4f6e5c;line-height:1.4;
}
#familyPage .family-plan-features li::before{
 content:'✓';position:absolute;left:0;top:-1px;
 color:#4c8866;font-size:15px;font-weight:900;
}
#familyPage .family-plan .family-plan-equivalent{
 color:#827350;background:#f5ecd6;border-radius:8px;
 font-size:11px;font-weight:800;padding:8px 10px;margin:0 0 10px;
}
#familyPage .family-plan .family-checkout{
 margin:auto 0 0;display:block;padding:15px 13px;
 text-align:center;border-radius:12px;background:#295445;
 color:#fff;font-size:13px;font-weight:850;text-decoration:none;
 transition:background .18s ease,transform .18s ease;
}
#familyPage .family-plan .family-checkout:hover{background:#194233;transform:translateY(-1px)}
#familyPage .family-plan .family-checkout:focus-visible{outline:3px solid #c18f60;outline-offset:3px}
#familyPage .family-plan .family-plan-pending{
 margin:auto 0 0;padding:14px 12px;text-align:center;
 background:#e9eee8;color:#6a8074;border-radius:12px;
 font-size:11px;font-weight:750;line-height:1.45;
}
#familyPage .family-checkout-pending{
 background:#f8f6ee;color:#68766f;border-color:#e4e7da;
 font-size:12px;line-height:1.65;margin:18px 0;
}
#familyPage .family-fine-print{font-size:11px;line-height:1.65;margin:14px auto 0;max-width:770px}
@media(max-width:700px){
 #familyPage .family-pricing{padding:25px 18px;margin-bottom:32px;border-radius:21px}
 #familyPage .family-pricing-head h2{font-size:clamp(28px,7.5vw,36px)}
 #familyPage .family-plan-row{grid-template-columns:minmax(0,1fr);gap:13px;margin:20px 0}
 #familyPage .family-plan{min-height:auto;padding:22px 20px;border-radius:17px}
 #familyPage .family-plan .family-plan-price{font-size:38px}
 #familyPage .family-plan .family-plan-desc{min-height:0}
 #familyPage .family-plan-features{margin:0 0 13px}
 #familyPage .family-plan .family-checkout{margin-top:13px}
 #familyPage .family-plan .family-plan-pending{margin-top:13px}
}
@media(prefers-reduced-motion:reduce){
 #familyPage .family-plan .family-checkout{transition:none}
 #familyPage .family-plan .family-checkout:hover{transform:none}
}
