#before-books{color:#171923;background:#fff}#before-books *{box-sizing:border-box}.before-shell{max-width:1200px;margin:auto;padding-inline:36px}#before-books h1,#before-books h2,#before-books h3{font-family:'Noto Serif',Georgia,serif;font-stretch:condensed;letter-spacing:-.025em}#before-books h2{font-size:36px;line-height:1.2;margin:12px 0 22px}#before-books p{font-family:'IBM Plex Sans',Arial,sans-serif;line-height:1.65}.before-hero{background:#062b40 url('before-books-background.gif') center/cover;color:white;text-align:center;padding:72px 0 40px}.before-tagline{font-size:15px;letter-spacing:.07em;margin:0 0 30px}.before-kicker{font:500 11px/1.4 'IBM Plex Sans',sans-serif!important;letter-spacing:.13em;color:#4934bd}.before-hero .before-kicker{color:#d9d2ff}#before-books h1{font-size:clamp(38px,4.5vw,68px);line-height:1.12;margin:18px auto 24px;max-width:900px}.before-subtitle{font-size:19px;max-width:710px;margin:0 auto}.shelf-art{display:block;width:min(600px,100%);height:230px;margin:12px auto}.mushaf-glow{animation:mushaf-light 8s ease-in-out infinite;transform-origin:center}@keyframes mushaf-light{0%,100%{opacity:.18;transform:scale(.7)}50%{opacity:1;transform:scale(1)}}.before-explore{font:14px 'IBM Plex Sans',sans-serif;color:#ece8ff;text-underline-offset:5px}.before-collection{padding-top:64px;padding-bottom:64px;scroll-margin-top:110px}.before-section-heading{margin-bottom:30px}.before-feature{display:grid;grid-template-columns:1fr 1.5fr;gap:52px;align-items:center;padding:32px;background:#eeebfc;border:1px solid #d9d2ee;border-radius:18px;margin-bottom:28px;overflow:hidden}.featured-cover{min-height:260px;background:#073047 url('before-books-background.gif') center/cover;color:#fff;padding:26px 30px;border-radius:12px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:14px}.featured-cover>span{font:10px 'IBM Plex Sans',sans-serif;letter-spacing:.17em}.featured-book-icon{font-size:42px;color:#d3c3a1}.featured-cover h3{font-size:33px;margin:0;line-height:1.15}.featured-copy>p{font-size:21px;margin:12px 0}.featured-copy .featured-note{font-size:16px;max-width:420px;color:#5c5b68}.before-cta{display:inline-flex;align-items:center;gap:24px;padding:11px 18px;background:#4934bd;color:#fff!important;border-radius:9px;font:600 14px 'IBM Plex Sans',sans-serif;text-decoration:none!important;margin-top:12px;transition:transform .25s}.before-cta:hover{transform:scale(1.03)}.before-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.before-card{display:flex;flex-direction:column;border:1px solid #ddd7ef;border-radius:17px;overflow:hidden;background:#faf9fe}.book-art{height:215px;position:relative;background:var(--cover);padding:22px 26px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;color:#35304e}.cover-number{font:11px 'IBM Plex Sans',sans-serif;letter-spacing:.16em}.cover-title{font:600 28px/1.1 'Noto Serif',Georgia,serif;max-width:210px;position:relative;z-index:1}.cover-series{font:8px 'IBM Plex Sans',sans-serif;letter-spacing:.16em;position:relative}.cover-lines{position:absolute;right:-35px;top:0;width:190px;height:240px;transform:rotate(24deg);opacity:.32}.cover-lines i{display:block;position:absolute;inset:16px;border:1px solid #63577c;border-radius:80px}.cover-lines i:nth-child(2){inset:36px}.cover-lines i:nth-child(3){inset:56px}.art-1 .cover-lines{transform:rotate(-30deg)}.art-2 .cover-lines i{border-radius:0}.art-3 .cover-lines{top:45px;right:-15px;transform:rotate(45deg)}.before-card-body{padding:23px;display:flex;flex-direction:column;flex:1}.before-card h3{font-size:25px;line-height:1.25;margin:12px 0 16px}.modern-book{font-size:14px;margin:0 0 25px;color:#4c4959}.modern-book cite{font-style:normal;color:#222}.modern-book span{font-size:12px;color:#73707d}.before-card-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font:12px 'IBM Plex Sans',sans-serif}.before-soon{font-size:10px;color:#6b6480;border:1px solid #ddd6ef;background:#ffffff80;padding:5px 9px;border-radius:30px}.comparison-band{background:#f5f2ff;padding:42px 0}.comparison-band h2{text-align:center}.comparison-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.comparison-grid p{font-size:15px;display:flex;gap:13px;align-items:center}.comparison-grid span{font-size:29px;color:#726095}.before-quote{text-align:center;padding-block:70px}.before-quote>p:not(.before-kicker){font-size:25px;max-width:650px;margin:0 auto 18px}.before-quote>a{font-size:14px;color:#4934bd}.before-quote small{display:block;font:11px 'IBM Plex Sans',sans-serif;color:#888;margin-top:12px}.before-coming{padding-bottom:72px;border-top:1px solid #eee9f7;padding-top:36px}.coming-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.coming-grid article{padding:20px;border-radius:12px;border:1px solid #e5dff1;background:#faf9fe}.coming-grid h3{font-size:23px;margin:0 0 12px}.coming-grid p{font-size:14px}.coming-grid a{font:12px 'IBM Plex Sans',sans-serif;color:#4934bd;text-decoration:underline}.before-card .book-art{transition:filter .3s}.before-card:hover .book-art{filter:brightness(1.03)}@media(max-width:800px){.before-shell{padding-inline:24px}.before-feature{gap:28px;padding:24px}.before-grid{gap:16px}.before-card-body{padding:18px}.before-card h3{font-size:23px}}@media(max-width:600px){.before-shell{padding-inline:18px}.before-hero{padding-top:40px;padding-bottom:30px}.before-tagline{font-size:12px;margin-bottom:24px}.before-subtitle{font-size:16px;line-height:1.5!important}.shelf-art{height:170px;margin:16px auto}#before-books h1{font-size:39px}#before-books h2{font-size:29px}.before-collection{padding-block:38px}.before-feature{grid-template-columns:1fr;gap:24px;padding:20px}.featured-cover{min-height:240px}.featured-copy>p{font-size:20px}.before-grid,.comparison-grid,.coming-grid{grid-template-columns:1fr}.book-art{height:230px}.before-card-body{padding:23px}.before-card h3{font-size:27px}.comparison-grid{gap:4px}.comparison-band{padding:28px 0}.before-quote{padding-block:45px}.before-quote>p:not(.before-kicker){font-size:21px}.before-coming{padding-bottom:45px}}@media(prefers-reduced-motion:reduce){.mushaf-glow{animation:none;opacity:.7}.before-cta,.before-card .book-art{transition:none}html{scroll-behavior:auto!important}}

.before-feature .featured-cover.featured-photo{padding:0;background:#04121e;min-height:0;overflow:hidden;aspect-ratio:3/2;display:block}.featured-photo img{display:block;width:100%;height:100%;object-fit:cover}

/* Keep the hero spacious after removing the decorative line art. */
.before-hero .before-explore{display:inline-block;margin-top:38px}.before-hero{padding-bottom:60px}
@media(max-width:600px){.before-hero .before-explore{margin-top:28px}.before-hero{padding-bottom:40px}}

/* Equal-sided collection cards, with the existing rounded corners. */
.before-grid{align-items:start}.before-grid .before-card{aspect-ratio:1/1;min-width:0;display:grid;grid-template-rows:38% minmax(0,1fr)}
.before-grid .book-art{height:auto;min-height:0;padding:14px 20px}.before-grid .cover-title{font-size:23px;max-width:230px}.before-grid .cover-number{font-size:10px}.before-grid .cover-series{font-size:7px}
.before-grid .before-card-body{min-height:0;padding:16px 20px;display:flex;flex-direction:column}.before-grid .before-card h3{font-size:23px;line-height:1.2;margin:7px 0 10px}.before-grid .modern-book{font-size:12px;line-height:1.35;margin:0 0 10px}.before-grid .modern-book span{font-size:10px}.before-grid .before-kicker{font-size:9px!important}.before-grid .before-card-foot{font-size:11px}.before-grid .before-soon{font-size:9px;padding:4px 8px}
@media(min-width:601px) and (max-width:800px){.before-grid .before-card h3{font-size:19px}.before-grid .before-card-body{padding:12px}.before-grid .book-art{padding:12px}.before-grid .cover-title{font-size:20px}.before-grid .modern-book{font-size:11px}.before-grid .modern-book span{font-size:9px}.before-grid .cover-series{font-size:6px}}
@media(max-width:360px){.before-grid .before-card h3{font-size:21px}.before-grid .before-card-body{padding:12px 16px}.before-grid .modern-book{font-size:11px}}
.before-grid .habits-cover-art{background:#e4eee3;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px}.habits-cover-art .sapling-art{width:65%;height:100%;position:relative;display:flex;flex-direction:column;justify-content:space-between}.habits-cover-art .cover-title{font-size:21px;line-height:1.1}.habits-cover-art .sapling-art svg{width:110px;max-width:100%;height:90px;align-self:center}.habits-cover-art .modern-cover{height:100%;width:auto;max-width:30%;object-fit:contain;filter:none}.habits-open{font:11px 'IBM Plex Sans',sans-serif;color:#4934bd;background:#fff9;border:1px solid #d8cff4;border-radius:9px;padding:5px 9px;text-decoration:none;transition:transform .25s}.habits-open:hover{transform:scale(1.04)}
.book-preview{width:min(440px,calc(100% - 32px));padding:24px;border:1px solid #e5def4;border-radius:18px;background:#fff;color:#171923;box-shadow:0 18px 70px #1b12362b}.book-preview::backdrop{background:#25233440;backdrop-filter:blur(10px)}.book-preview-head{display:flex;gap:10px;align-items:center;justify-content:space-between}.book-preview h2{font:600 28px/1.25 'Noto Serif',Georgia,serif;margin:22px 0 16px}.book-preview p{font:15px/1.6 'IBM Plex Sans',sans-serif}.book-preview-close{border:1px solid #ded6f0;border-radius:9px;background:#f7f4fd;padding:7px 13px;font:14px 'IBM Plex Sans',sans-serif;color:#4934bd;cursor:pointer}.book-preview-head .book-preview-close{font-size:22px;line-height:1;width:32px;height:32px;padding:0;border-radius:50%}
.before-feature{position:relative}.before-feature .before-cta:after{content:'';position:absolute;inset:0;border-radius:18px}.before-feature:has(.before-cta:focus-visible){outline:2px solid #8d76d1;outline-offset:3px}


/* Restore original art; only the first card receives the supplied book. */
.before-grid .before-card{position:relative;isolation:isolate;box-shadow:none!important;transition:background .3s,border-color .3s}
.before-grid .book-card-hit{position:absolute;inset:0;z-index:3;border:0;border-radius:inherit;background:transparent;padding:0;cursor:pointer;display:block;width:100%;height:100%;color:inherit;text-decoration:none}
.before-grid .book-card-hit:focus-visible{outline:2px solid #8d76d1;outline-offset:-4px}
.before-grid .outline-book-art .cover-lines{right:2%;top:-12%;width:42%;height:130%;transform:rotate(-8deg)}
.before-grid .outline-book-art .cover-title{max-width:55%}
.outline-book-cover{position:absolute;right:8%;top:50%;height:82%;width:24%;object-fit:contain;transform:translateY(-50%) rotate(-8deg);z-index:2;transition:transform .5s cubic-bezier(.2,.7,.3,1)}
.before-grid .outline-book-art .cover-lines{transition:transform .5s cubic-bezier(.2,.7,.3,1)}
@media(hover:hover) and (pointer:fine){.before-grid .before-card:hover{transform:none!important;border-color:rgba(126,112,167,.32);background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(249,247,255,.64));box-shadow:none!important}.before-card:hover .outline-book-cover{transform:translateY(-50%) rotate(-5deg) scale(1.045)}.before-card:hover .outline-book-art .cover-lines{transform:rotate(-8deg) scale(1.035)}}
@media(prefers-reduced-motion:reduce){.outline-book-cover,.before-grid .outline-book-art .cover-lines{transition:none!important}}


/* Shared book-card artwork system. One geometry for every card. */
.before-grid{--outline-gap:10px;--outline-radius:8px;--outline-height:112%;--outline-ratio:243/377;--outline-stroke:rgba(99,87,124,.25);--outline-motion:.5s cubic-bezier(.2,.7,.3,1)}
.before-grid .before-card{--outline-angle:-8deg;--outline-hover-angle:-5deg}
.before-grid .before-card:nth-child(2){--outline-angle:12deg;--outline-hover-angle:9deg}
.before-grid .before-card:nth-child(3){--outline-angle:-14deg;--outline-hover-angle:-11deg}
.before-grid .before-card:nth-child(4){--outline-angle:7deg;--outline-hover-angle:4deg}
.before-grid .before-card:nth-child(5){--outline-angle:-5deg;--outline-hover-angle:-2deg}
.before-grid .before-card:nth-child(6){--outline-angle:15deg;--outline-hover-angle:12deg}
.before-grid .before-card:nth-child(7){--outline-angle:-11deg;--outline-hover-angle:-8deg}
.before-grid .before-card:nth-child(8){--outline-angle:5deg;--outline-hover-angle:2deg}
.before-grid .before-card:nth-child(9){--outline-angle:-16deg;--outline-hover-angle:-13deg}
.before-grid .before-card:nth-child(10){--outline-angle:10deg;--outline-hover-angle:7deg}
.before-grid .before-card:nth-child(11){--outline-angle:-7deg;--outline-hover-angle:-4deg}
.before-grid .before-card:nth-child(12){--outline-angle:13deg;--outline-hover-angle:10deg}
.before-grid .before-card .cover-lines{right:0;top:50%;width:auto;height:var(--outline-height);aspect-ratio:var(--outline-ratio);transform:translateY(-44%) rotate(var(--outline-angle));opacity:1;transition:transform var(--outline-motion)}
.before-grid .before-card .cover-lines i{position:absolute;inset:0;width:auto;height:auto;transform:none;border:1px solid var(--outline-stroke);border-radius:var(--outline-radius);overflow:hidden}
.before-grid .before-card .cover-lines i:nth-child(2){inset:var(--outline-gap)}
.before-grid .before-card .cover-lines i:nth-child(3){inset:calc(var(--outline-gap)*2);pointer-events:none}
.before-grid .before-card .cover-filled-outline{display:flex;align-items:center;justify-content:center;background:#fffdf5}
.before-grid .before-card .cover-filled-outline .outline-book-cover{position:static;display:block;width:100%;height:100%;margin:0;object-fit:contain;object-position:center;transform:none;border-radius:calc(var(--outline-radius) - 1px);transition:none}
@media(hover:hover) and (pointer:fine){.before-grid .before-card:hover .cover-lines,.before-grid .before-card:focus-within .cover-lines{transform:translateY(-44%) rotate(var(--outline-hover-angle)) scale(1.035)}}
@media(prefers-reduced-motion:reduce){.before-grid .before-card .cover-lines{transition:none!important}.before-grid .before-card:hover .cover-lines,.before-grid .before-card:focus-within .cover-lines{transform:translateY(-44%) rotate(var(--outline-angle))}}

/* Portrait artwork proportions: 625 × 1000, scaled to each card. */
.before-grid{--outline-ratio:625/1000;--outline-height:112%}

/* First cover only: A4 portrait, with an intentionally enlarged crop. */
.before-grid{--outline-ratio:210/297}
.before-grid .before-card:first-child{--outline-height:128%}
.before-grid .book-art-placeholder{background:#f0edf7;color:#82798e}
.before-grid .book-art-placeholder .cover-title{color:#625c6e}
.before-grid .book-art-placeholder .cover-series{color:#928b9d}

/* Taller artwork within the same square card; paired upright book displays. */
.before-grid .before-card{grid-template-rows:52% minmax(0,1fr)}
.before-grid .before-card .cover-number{position:absolute;left:16px;top:12px;z-index:2;font:11px/1.2 'IBM Plex Sans',sans-serif;letter-spacing:.08em;color:#716a80}
.before-grid .book-art{position:relative}
.before-grid .book-art-placeholder{justify-content:flex-end;padding:18px}
.before-grid .before-card .book-pair-art{padding:28px 18px 12px;background:#f6f5ed;display:block}
.book-pair{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:12px;height:100%;max-width:250px;margin:auto;transition:transform .5s cubic-bezier(.2,.7,.3,1)}
.book-display{display:flex;align-items:center;justify-content:center;padding:13px 12px 8px;min-width:0;min-height:0;background:#eae9df;overflow:hidden}
.book-display-arch{border-radius:60px 60px 3px 3px}.book-display-soft{border-radius:3px 3px 44px 44px;background:#e7eae4}
.book-display img{display:block;max-width:100%;height:100%;max-height:100%;width:auto;object-fit:contain;transform:rotate(-3deg);transition:transform .5s cubic-bezier(.2,.7,.3,1)}
.book-display-soft img{transform:rotate(3deg)}
.before-grid .before-card-body{padding:14px 20px}
.before-grid .before-card h3{font-size:22px;margin:6px 0 8px}
.before-grid .modern-book{margin-bottom:8px}
@media(hover:hover) and (pointer:fine){.before-card:hover .book-pair{transform:scale(1.035)}.before-card:hover .book-display img{transform:rotate(-1deg) scale(1.025)}.before-card:hover .book-display-soft img{transform:rotate(1deg) scale(1.025)}}
@media(min-width:601px) and (max-width:800px){.before-grid .before-card h3{font-size:18px}.before-grid .before-card-body{padding:10px 12px}.before-grid .before-card .book-pair-art{padding:26px 12px 8px}.book-pair{gap:8px}.book-display{padding:8px 6px}.before-grid .modern-book{font-size:10px}.before-grid .modern-book span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.book-pair,.book-display img{transition:none!important}}

/* Roomier book frames and a quiet watering detail above the lesson link. */
.before-grid .before-card .book-pair-art{padding:24px 20px 10px;background:#eef3e8}
.book-pair{max-width:286px;gap:14px}
.book-display{padding:10px 8px 6px}
.book-display-arch{border-radius:66px 66px 4px 4px}
.book-display-soft{border-radius:4px 4px 48px 48px}
.before-grid .before-card:first-child .before-card-body{position:relative}
.habit-card-sapling{position:absolute;right:26px;bottom:37px;width:44px;height:40px;border-radius:10px;background:#edf4e8;pointer-events:none}
.habit-card-sapling svg{display:block;width:100%;height:100%}
.habit-card-growth{transform-origin:40px 66px;transform:scale(.84)}
@keyframes card-water-drop{0%{opacity:1;transform:translateY(0)}65%{opacity:1;transform:translateY(22px)}100%{opacity:0;transform:translateY(28px)}}
@keyframes card-sapling-grow{0%,35%{transform:scale(.84)}100%{transform:scale(1)}}
@media(hover:hover) and (pointer:fine){.before-card:hover .habit-card-drop,.before-card:focus-within .habit-card-drop{animation:card-water-drop .65s ease-in 1 forwards}.before-card:hover .habit-card-growth,.before-card:focus-within .habit-card-growth{animation:card-sapling-grow 1.3s ease-out 1 forwards}}
@media(min-width:601px) and (max-width:800px){.before-grid .before-card .book-pair-art{padding:24px 12px 8px}.book-pair{gap:10px}.habit-card-sapling{width:34px;height:31px;right:20px;bottom:33px}}
@media(prefers-reduced-motion:reduce){.habit-card-growth{transform:none}.before-card:hover .habit-card-drop,.before-card:hover .habit-card-growth,.before-card:focus-within .habit-card-drop,.before-card:focus-within .habit-card-growth{animation:none!important}}

/* Preserve the arch frames; give each book more surrounding space. */
.book-display img{height:82%;max-width:82%;object-fit:contain}
.habit-card-sapling{width:56px;height:50px;right:32px;bottom:44px;background:transparent;border-radius:0}
@media(min-width:601px) and (max-width:800px){.habit-card-sapling{width:42px;height:38px;right:20px;bottom:40px}}
