/* BooksTurn experience layer: mesh gradients, glass, cinematic dark, kinetic type, tilt, magnetic CTAs,
   spotlight, tabs, scroll story. Built on lovable.css tokens (Ink, Lime, Canvas, Sage, Mint, Night). */
:root { --lav: #DCD3FF; --pink: #FFD6E4; }
.wrap { position: relative; z-index: 1; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.fine { font-size: .8125rem; color: var(--graphite-text); margin-top: 1.25rem; }
.fine.light { color: var(--on-dark-2); } .fine.center { text-align: center; }

/* ---------- Ambient: mesh, grain, dots, spotlight ---------- */
.mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; will-change: transform; }
.mesh .m1 { width: 62vw; height: 62vw; left: -14vw; top: -18vw; background: radial-gradient(closest-side, rgba(199,243,107,.9), rgba(199,243,107,0)); animation: drift1 22s ease-in-out infinite alternate; }
.mesh .m2 { width: 52vw; height: 52vw; right: -12vw; top: 6vw; background: radial-gradient(closest-side, rgba(142,191,145,.85), rgba(142,191,145,0)); animation: drift2 26s ease-in-out infinite alternate; }
.mesh .m3 { width: 46vw; height: 46vw; left: -10vw; bottom: -18vw; background: radial-gradient(closest-side, rgba(62,154,98,.75), rgba(62,154,98,0)); animation: drift3 24s ease-in-out infinite alternate; }
.mesh .m4 { width: 34vw; height: 34vw; right: 14vw; bottom: -10vw; background: radial-gradient(closest-side, rgba(220,211,255,.7), rgba(255,214,228,.35) 55%, rgba(255,214,228,0)); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-9vw, 8vw, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(10vw, -6vw, 0) scale(1.1); } }
/* Hero copy sits on white; the colour lives below, around the phone */
.hero { background: #fff; }
.hero .mesh { inset: 38% 0 0 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 32%); mask-image: linear-gradient(180deg, transparent 0, #000 32%); }
.hero .mesh::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(226,245,196,0) 0, #E2F5C4 100%); }
.hero .grain { opacity: .08; }
.dark-mesh .m1 { background: radial-gradient(closest-side, rgba(199,243,107,.30), rgba(199,243,107,0)); }
.dark-mesh .m2 { background: radial-gradient(closest-side, rgba(220,211,255,.20), rgba(255,214,228,.08) 60%, rgba(255,214,228,0)); }
.dark-mesh .m3 { background: radial-gradient(closest-side, rgba(142,191,145,.30), rgba(142,191,145,0)); }
.dark-mesh.strong .m1 { background: radial-gradient(closest-side, rgba(199,243,107,.55), rgba(199,243,107,0)); }
.dark-mesh.strong .m3 { background: radial-gradient(closest-side, rgba(62,154,98,.6), rgba(62,154,98,0)); }
.grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.dark .grain, .closing .grain { mix-blend-mode: screen; opacity: .1; }
.dots::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(17,17,17,.13) 1.2px, transparent 1.4px); background-size: 26px 26px; animation: dotdrift 40s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 85%); }
@keyframes dotdrift { to { background-position: 26px 26px; } }
.spot .spotlight { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(199,243,107,.16), transparent 60%); transition: opacity .3s; }
@media (hover: none) { .spot .spotlight { background: radial-gradient(520px circle at 50% 30%, rgba(199,243,107,.10), transparent 60%); } }

/* ---------- Kinetic type ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
[data-split] .wi { display: inline-block; transform: translateY(105%) rotate(4deg); opacity: 0; transition: transform .9s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-split].in .wi { transform: none; opacity: 1; }
.js [data-split] { opacity: 1; }
.giant { font-size: clamp(3rem, 9.5vw, 8rem); line-height: .96; letter-spacing: -.04em; }
.giant .ln { display: block; }
.giant .dim { color: rgba(245,245,245,.28); }
.giant .hot { color: #fff; }
.giant .dim .wi { transition: transform .9s var(--ease), opacity .6s var(--ease), color .6s; }
.giant .gt { font-style: normal; background: linear-gradient(95deg, #C7F36B 0%, #8EBF91 45%, #DCD3FF 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shine 8s ease-in-out infinite alternate; }
.giant .gt .w, .giant .gt .wi { -webkit-text-fill-color: transparent; }
@keyframes shine { to { background-position: 100% 0; } }
.gt .wi, .gt .w { background: inherit; -webkit-background-clip: text; background-clip: text; }

/* ---------- Magnetic + glow interactions ---------- */
.mag { transition: transform .25s var(--ease), box-shadow .25s; will-change: transform; }
.glowcard { position: relative; overflow: hidden; }
.glowcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(199,243,107,.28), transparent 65%); }
.glowcard:hover::after, .glowcard:focus-visible::after { opacity: 1; }
.dark .glowcard::after { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(199,243,107,.22), transparent 65%); }
.btn .arr, .store-badge .arr { transition: transform .25s var(--ease); }
.store-badge::after { content: ""; }
a.store-badge { position: relative; } a.store-badge:hover { box-shadow: 0 0 0 4px rgba(199,243,107,.45), 0 14px 30px -10px rgba(17,17,17,.5); }

/* ---------- Hero: tilt, screen overlay, switcher ---------- */
.photo { perspective: 1400px; transform: translate(9%, var(--py, 0px)); }
.photo .hero-photo { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease); transform-style: preserve-3d; }
.screen-overlay { position: absolute; left: 23.4%; top: 6.9%; width: 34.9%; height: 70.2%; border-radius: 5% / 3%; overflow: hidden; background: #fff; opacity: 0; transition: opacity .5s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition-property: opacity, transform; }
.screen-overlay.show { opacity: 1; }
.screen-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s var(--ease); }
.screen-overlay img.on { opacity: 1; }
.screen-tabs { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; }
.screen-tabs button { min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: 99px; background: transparent; font: 500 .875rem/1 var(--sans); color: var(--graphite-text); cursor: pointer; transition: background .25s, color .25s; }
.screen-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Discover ---------- */
.discover { background: var(--canvas); padding-bottom: 0; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }
.cat { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: var(--r-md); padding: 1.1rem 1.2rem; font: inherit; cursor: pointer; color: var(--ink); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.cat:hover { transform: translateY(-4px) scale(1.02); border-color: var(--ink); box-shadow: 0 18px 30px -20px rgba(17,17,17,.4); }
.cat b { display: block; font-size: 1.0625rem; } .cat small { color: var(--graphite-text); }
.cat.free { background: var(--ink); color: #fff; border-color: var(--ink); } .cat.free small { color: var(--on-dark-2); }
.radar { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; width: 100%; }
.radar .ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px solid rgba(142,191,145,.55); background: radial-gradient(closest-side, rgba(232,243,228,.7), rgba(232,243,228,0)); }
.radar .r1 { width: 36%; height: 36%; } .radar .r2 { width: 68%; height: 68%; } .radar .r3 { width: 100%; height: 100%; }
.radar .ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--sage); animation: ping 4s ease-out infinite; opacity: 0; }
.radar .r2::after { animation-delay: 1.3s; } .radar .r3::after { animation-delay: 2.6s; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1); opacity: 0; } }
.radar .you { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 8px rgba(17,17,17,.12); }
.radar .pin { position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .45rem; border-radius: 99px; background: #fff; border: 1.5px solid var(--ink); font-size: .75rem; box-shadow: 0 10px 20px -12px rgba(17,17,17,.5); animation: bob2 5s ease-in-out infinite; }
.radar .pin::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }
.radar .rp1 { left: 6%; top: 30%; } .radar .rp2 { right: 4%; top: 18%; animation-delay: -1.5s; } .radar .rp3 { left: 16%; bottom: 14%; animation-delay: -3s; } .radar .rp4 { right: 10%; bottom: 22%; animation-delay: -2s; }
@keyframes bob2 { 50% { translate: 0 -8px; } }
.shelf { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; margin-top: clamp(3rem, 6vw, 5rem); perspective: 1200px; }
.bookcard { position: relative; width: min(220px, 42vw); outline: none; transform: translateY(var(--py, 0px)); }
.bookcard .cv { width: 100%; border-radius: 6px 12px 12px 6px; box-shadow: -8px 0 0 -2px rgba(17,17,17,.18) inset, 0 28px 40px -22px rgba(17,17,17,.55); transform: rotateX(var(--rx, 0deg)) rotateY(calc(-12deg + var(--ry, 0deg))); transition: transform .35s var(--ease), box-shadow .35s; transform-style: preserve-3d; }
.bookcard:hover .cv, .bookcard:focus-visible .cv { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-10px) scale(1.04); box-shadow: 0 40px 50px -24px rgba(17,17,17,.6); }
.bookcard .info { margin-top: 1rem; opacity: .0; transform: translateY(-8px); transition: opacity .3s, transform .3s; text-align: center; }
.bookcard:hover .info, .bookcard:focus-visible .info, .bookcard:focus-within .info { opacity: 1; transform: none; }
.bookcard .info b { display: block; font-size: .9375rem; line-height: 1.3; } .bookcard .info span { display: block; font-weight: 700; margin-top: .15rem; } .bookcard .info small { color: var(--graphite-text); }
@media (hover: none) { .bookcard .info { opacity: 1; transform: none; } }
/* Cover crops cut from the app screenshots */
.cv { aspect-ratio: calc(var(--w) / var(--h)); background-image: var(--img); background-repeat: no-repeat; background-size: calc(var(--bw) / var(--w) * 100%) auto; background-position: calc(var(--x) / (var(--bw) - var(--w)) * 100%) calc(var(--y) / (var(--bh) - var(--h)) * 100%); background-color: #ddd; }
.cvm { display: inline-block; width: 64px; aspect-ratio: calc(var(--w) / var(--h)); border-radius: 4px 8px 8px 4px; vertical-align: middle; background-image: var(--img); background-repeat: no-repeat; background-size: calc(var(--bw) / var(--w) * 100%) auto; background-position: calc(var(--x) / (var(--bw) - var(--w)) * 100%) calc(var(--y) / (var(--bh) - var(--h)) * 100%); box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
.marquees { margin-top: clamp(3rem, 6vw, 5rem); padding: 1.25rem 0; }
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: rgba(255,255,255,.6); }
.dark .marquee { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.mtrack { display: flex; align-items: center; width: max-content; animation: slide 36s linear infinite; }
.marquee.rev .mtrack { animation-direction: reverse; animation-duration: 48s; }
.mtrack > span:not(.cvm) { padding: 1.1rem 2rem; font: 400 clamp(1.25rem, 2.4vw, 1.9rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.mtrack > span:not(.cvm)::after { content: "✦"; margin-left: 2rem; color: var(--sage); font-size: .8em; }
.marquee:hover .mtrack { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Tabs ---------- */
.tabsec { background: linear-gradient(180deg, var(--canvas), var(--mint) 70%, var(--canvas)); }
.tabs { margin-top: 2.5rem; }
.tablist { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 2.5rem; padding: 5px; border-radius: 99px; overflow-x: auto; scrollbar-width: none; }
.tablist button { position: relative; z-index: 1; min-height: 46px; padding: 0 1.4rem; border: 0; background: transparent; border-radius: 99px; font: 500 1rem/1 var(--sans); color: var(--graphite-text); cursor: pointer; white-space: nowrap; transition: color .3s; }
.tablist button[aria-selected="true"] { color: #fff; }
.tablist .thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: var(--ink); transition: transform .4s var(--ease), width .4s var(--ease); }
.tabpanel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.tabpanel[hidden] { display: none; }
.tabpanel.enter .ptext { animation: slidein .6s var(--ease) both; } .tabpanel.enter .pshot { animation: popin .7s var(--ease) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(-24px); } } @keyframes popin { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.ptext h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; } .ptext p { color: var(--graphite-text); max-width: 32rem; }
.ptext ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.ptext li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.ptext li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.500 4 4 8-9' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; border: 1.5px solid var(--ink); flex: none; }
.pshot { display: grid; justify-items: center; position: relative; }
.pshot::before { content: ""; position: absolute; inset: 6% 0 0; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(199,243,107,.6), rgba(142,191,145,.2) 65%, transparent); }
.pshot .phone { --w: min(270px, 66vw); }
.direct { margin: 3rem auto 0; max-width: 46rem; border-radius: var(--r-md); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; background: rgba(255,255,255,.7); border: 1px solid var(--border); font-size: .9375rem; }
.direct svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }

/* ---------- Philosophy ---------- */
.philo { padding: clamp(7rem, 14vw, 12rem) 0; background: #0d0d0d; }
.philo .lede { margin-top: 2rem; max-width: 36rem; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); max-width: 860px; }
.vcard { position: relative; border-radius: var(--r-lg); min-height: 260px; padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.vcard h3 { font: 700 1.4rem/1.2 var(--sans); letter-spacing: 0; margin-bottom: .3rem; } .vcard p { color: var(--on-dark-2); }
.feedfx { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; opacity: .9; mask-image: linear-gradient(transparent 0, #000 25%, transparent 80%); -webkit-mask-image: linear-gradient(transparent 0, #000 25%, transparent 80%); animation: feedscroll 6s linear infinite; }
.feedfx i { border-radius: 12px; background: #262626; min-height: 52px; } .feedfx i:nth-child(3n) { background: #2c2f27; } .feedfx i:nth-child(5n) { background: #31381f; }
@keyframes feedscroll { to { transform: translateY(-60px); } }
.vcard .bk { position: absolute; top: 14%; left: 50%; width: 120px; transform: translateX(-50%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateX(-50%) translateY(-8px) rotate(-2deg); } }
.vcard > h3, .vcard > p { position: relative; z-index: 1; }
.float-books { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.float-books .cv { position: absolute; width: clamp(90px, 12vw, 170px); border-radius: 5px 10px 10px 5px; box-shadow: 0 30px 40px -16px rgba(0,0,0,.8); transform: translateY(var(--py, 0px)) rotate(var(--rot, 0deg)); animation: bobr 8s ease-in-out infinite; }
.fb1 { right: 5%; top: 58%; --rot: 10deg; } .fb2 { right: 19%; bottom: 5%; --rot: -8deg; animation-delay: -2s; } .fb3 { right: 2%; bottom: 3%; --rot: 6deg; animation-delay: -4s; }
@keyframes bobr { 50% { translate: 0 -14px; } }
@media (max-width: 900px) { .float-books { opacity: .35; } }

/* ---------- Scroll-driven story ---------- */
.story { background: linear-gradient(180deg, var(--canvas), var(--lime-soft)); }
.story-track { height: 520vh; position: relative; }
.story-stage { position: sticky; top: 0; height: 100vh; min-height: 560px; display: grid; align-items: center; overflow: hidden; }
.sgrid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.dots-nav { list-style: none; display: flex; gap: .6rem; padding: 0; margin: 2rem 0 0; }
.dots-nav li { width: 34px; height: 6px; border-radius: 3px; background: rgba(17,17,17,.15); transition: background .4s, width .4s var(--ease); }
.dots-nav li.on { background: var(--ink); width: 56px; }
.scenes { position: relative; aspect-ratio: 4 / 3.4; max-height: 70vh; width: 100%; }
.scene { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1rem; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; text-align: center; }
.scene.on { opacity: 1; transform: none; }
.scene svg { width: min(100%, 520px); height: auto; }
.scene p { font: 400 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--serif); letter-spacing: -.02em; max-width: 24ch; }
.scene.on .tw { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 50% { transform: scale(1.35) rotate(20deg); opacity: .6; } }
.scene.on .hl-book { animation: lift 2.8s ease-in-out infinite; transform-box: fill-box; }
@keyframes lift { 50% { transform: translateY(-8px); } }
.scene.on .fly { animation: handover 3.2s var(--ease) infinite alternate; }
@keyframes handover { from { transform: translateX(-70px); } to { transform: translateX(70px) rotate(8deg); } }
.reduce .story-track, .no-sticky .story-track { height: auto; }
.reduce .story-stage, .no-sticky .story-stage { position: static; height: auto; padding: 4rem 0; }
.reduce .scenes, .no-sticky .scenes { aspect-ratio: auto; max-height: none; display: grid; gap: 2rem; }
.reduce .scene, .no-sticky .scene { position: static; opacity: 1; transform: none; }
.reduce .sgrid, .no-sticky .sgrid { grid-template-columns: 1fr; }
.reduce .dots-nav { display: none; }

/* ---------- How it works (3 steps) ---------- */
.how { background: var(--canvas); }
.how2 { display: grid; grid-template-columns: 1fr minmax(280px, 340px); gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-top: 3rem; }
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hstep { width: 100%; display: flex; gap: 1.25rem; align-items: flex-start; text-align: left; font: inherit; color: inherit; padding: 1.5rem; border-radius: var(--r-md); border: 1.5px solid var(--border); background: #fff; cursor: pointer; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s; }
.hstep:hover { transform: translateX(6px); }
.hstep .n { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 1.2rem/1 var(--serif); background: #fff; transition: background .3s, color .3s; }
.hstep b { display: block; font-size: 1.25rem; margin-bottom: .25rem; } .hstep small { display: block; font-size: .9375rem; color: var(--graphite-text); line-height: 1.5; }
.hstep[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 24px 40px -26px rgba(17,17,17,.45); }
.hstep[aria-pressed="true"] .n { background: var(--ink); color: #fff; }
.how-phone { position: relative; display: grid; justify-items: center; }
.how-phone::before { content: ""; position: absolute; inset: 6% -14% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(199,243,107,.55), rgba(142,191,145,.2) 60%, transparent); }
.how-phone .phone { --w: min(280px, 66vw); }

/* ---------- Community ---------- */
.community { background: #101010; }
.avatars { display: flex; justify-content: center; margin: 2.5rem 0 1rem; }
.av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 500 1.4rem/1 var(--serif); color: var(--ink); border: 3px solid #101010; margin-left: -14px; animation: bob2 6s ease-in-out infinite; }
.av:first-child { margin-left: 0; }
.a1 { background: var(--lime); } .a2 { background: var(--sage); animation-delay: -1s; } .a3 { background: var(--mint); animation-delay: -2s; } .a4 { background: var(--lav); animation-delay: -3s; } .a5 { background: var(--pink); animation-delay: -4s; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.quote { margin: 0; padding: 1.75rem; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); transition: transform .35s var(--ease), border-color .35s; display: flex; flex-direction: column; gap: 1rem; }
.quote:hover { transform: translateY(-6px) rotate(-.6deg); border-color: rgba(199,243,107,.6); }
.quote blockquote { margin: 0; font: 400 1.35rem/1.3 var(--serif); letter-spacing: -.015em; }
.quote figcaption { margin-top: auto; font-size: .875rem; color: var(--on-dark-2); }
.sample { align-self: flex-start; font: 700 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--on-dark-2); }
.stat { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 3rem; }
.stat strong { font: 400 clamp(4rem, 9vw, 7rem)/1 var(--serif); background: linear-gradient(95deg, #C7F36B, #8EBF91); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat span { color: var(--on-dark-2); line-height: 1.35; } .stat small { font-size: .8125rem; }
.community .marquees { margin-top: 3.5rem; padding-bottom: 0; }
.community .marquee { padding: .75rem 0; }
.community .mtrack > span:not(.cvm) { color: var(--on-dark); }

/* ---------- Reuse ---------- */
.reuse { background: linear-gradient(180deg, var(--canvas), var(--mint)); }
.loop { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin-inline: auto; }
.orbit { position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed rgba(142,191,145,.8); animation: spin 60s linear infinite; }
.orbit.o2 { inset: 26%; border-color: rgba(17,17,17,.2); animation-direction: reverse; animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
.loop .lb { position: absolute; width: 22%; height: auto; transform: translateY(var(--py, 0px)); }
.lb.b1 { left: 4%; top: 40%; } .lb.b2 { right: 6%; top: 18%; } .lb.b3 { left: 38%; bottom: 2%; }
.loop .trav { position: absolute; inset: 8%; animation: spin 14s linear infinite; }
.loop .trav svg { position: absolute; left: 50%; top: -9%; width: 18%; transform: translateX(-50%); animation: spin 14s linear infinite reverse; }

/* ---------- Closing ---------- */
.closing { background: #0e130c; padding-bottom: 0; text-align: center; }
.closing h2 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); margin-bottom: 1.25rem; max-width: 16ch; margin-inline: auto; }
.closing .gt { background: linear-gradient(95deg, #C7F36B, #8EBF91 60%, #DCD3FF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.closing .gt .wi, .closing .gt .w { -webkit-text-fill-color: transparent; }
.closing .duo { position: relative; }

@media (max-width: 1020px) {
  .split, .tabpanel, .sgrid, .how2 { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .scenes { max-height: 46vh; }
  .sgrid { gap: 1rem; } .scopy { text-align: center; } .dots-nav { justify-content: center; }
  .pshot { order: -1; }
  .how-phone { order: -1; }
}
@media (max-width: 640px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .vs { grid-template-columns: 1fr; }
  .screen-tabs { bottom: 10px; } .screen-tabs button { padding: 0 .85rem; }
  .stat { flex-direction: column; text-align: center; }
  .radar .pin { font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mesh i, .dots::before, .mtrack, .orbit, .trav, .trav svg, .radar .ring::after, .av, .feedfx, .giant .gt { animation: none !important; }
  [data-split] .wi { transform: none; opacity: 1; transition: none; }
  .tabpanel.enter .ptext, .tabpanel.enter .pshot { animation: none; }
}

/* Fixes */
.dark-stores .store-card, .closing .store-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); box-shadow: none; }
.closing .store-card small, .dark-stores .store-card small { color: #cfd3cb; }
.closing .store-card .or, .store-row.dark-stores .or { color: #cfd3cb; }
h2[data-split] + .lede, h2[data-split] + p { margin-top: 1.25rem; }
.discover h2 + .lede, .reuse h2 + .lede { margin-top: 1.25rem; }

/* ======================================================================
   Store buttons (shared by hero and final CTA)
   Chosen style: Gradient Glow. Ink button, animated lime-to-sage ring, lime glow, arrow indicator.
   Alternatives kept for comparison: data-style="solid" and data-style="outline" (see store-styles.html).
   ====================================================================== */
@property --ring { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.store-set { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.store-badges { display: flex; gap: .9rem; justify-content: center; flex-wrap: nowrap; }
.store-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .75rem; min-height: 62px; padding: 0 1.1rem 0 1.15rem; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s; box-shadow: 0 10px 24px -14px rgba(17,17,17,.7); }
.store-btn.is-placeholder { cursor: default; }
.store-btn .ic { width: 28px; height: 28px; flex: none; }
.store-btn .tx { display: block; line-height: 1.1; text-align: left; }
.store-btn .tx small { display: block; font-size: .625rem; letter-spacing: .09em; text-transform: uppercase; opacity: .8; font-weight: 500; }
.store-btn .tx b { display: block; font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; margin-top: 2px; }
.store-btn .go { width: 18px; height: 18px; flex: none; margin-left: .15rem; opacity: .55; transform: translateX(-4px); transition: transform .35s var(--ease), opacity .3s; }
.store-btn:hover .go, .store-btn:focus-visible .go { opacity: 1; transform: translateX(3px); animation: nudge 1.1s ease-in-out infinite .35s; }
@keyframes nudge { 50% { transform: translateX(7px); } }
a.store-btn:hover, a.store-btn:focus-visible { transform: translateY(-5px) scale(1.04); }
a.store-btn:active { transform: translateY(-1px) scale(.98); }

/* Gradient Glow (default) */
.style-glow .store-btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 20px;
  background: conic-gradient(from var(--ring), #C7F36B, #8EBF91 25%, #E8F3E4 50%, #8EBF91 75%, #C7F36B); animation: ring 7s linear infinite;
  box-shadow: 0 12px 30px -10px rgba(199,243,107,.55); transition: box-shadow .35s var(--ease); }
.style-glow .store-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: var(--ink); }
.style-glow a.store-btn:hover::before, .style-glow a.store-btn:focus-visible::before { box-shadow: 0 0 0 4px rgba(199,243,107,.28), 0 18px 44px -8px rgba(199,243,107,.85); }
.style-glow .store-btn.is-placeholder::before { animation-play-state: paused; opacity: .8; }
@keyframes ring { to { --ring: 360deg; } }

/* Solid Brand */
.style-solid .store-btn { background: var(--lime); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(17,17,17,.5); }
.style-solid a.store-btn:hover { box-shadow: 0 16px 40px -10px rgba(199,243,107,.9); }

/* Minimal Outline */
.style-outline .store-btn { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid currentColor; }
.style-outline a.store-btn:hover { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(17,17,17,.5); }
.dark-stores.style-outline .store-btn, .on-darkbg .style-outline .store-btn { color: #fff; }
.dark-stores.style-outline a.store-btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* On dark sections the glow is the star */
.dark-stores .store-btn { box-shadow: 0 10px 30px -12px rgba(199,243,107,.4); }
.dark-stores.style-solid .store-btn { background: var(--lime); color: var(--ink); }

/* Desktop QR panel */
.qr-panel { display: none; padding: 1rem 1.4rem 1.1rem; border-radius: 22px; text-align: center; }
.qr-title { font: 700 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-text); margin-bottom: .8rem; }
.qr-grid { display: flex; gap: 1.5rem; justify-content: center; }
.qr-item { display: grid; gap: .45rem; justify-items: center; }
.qr-item small { font-size: .75rem; color: var(--graphite-text); }
.qr-item .qr { width: 96px; height: 96px; border-radius: 14px; background: #fff; padding: 7px; display: block; box-shadow: 0 8px 18px -12px rgba(17,17,17,.5); transition: transform .3s var(--ease); }
.qr-item a.qr:hover { transform: scale(1.06); }
.qr-item .qr svg { width: 100%; height: 100%; }
.qr-item .qr.empty { border: 1.5px dashed var(--sage); display: grid; place-items: center; font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; color: var(--graphite-text); }
.qr-item .qr.empty::after { content: "QR"; }
.dark-stores .qr-panel, .closing .qr-panel { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); box-shadow: none; }
.dark-stores .qr-title, .dark-stores .qr-item small, .closing .qr-title, .closing .qr-item small { color: #cfd3cb; }
@media (min-width: 900px) and (hover: hover) { .qr-panel { display: block; } }

/* Tablet and mobile sizing: compact, thumb-friendly, always side by side */
@media (max-width: 899px) { .store-btn { min-height: 58px; } }
@media (max-width: 560px) {
  .store-badges { gap: .6rem; width: 100%; }
  .store-btn { flex: 1 1 0; min-width: 0; min-height: 56px; padding: 0 .8rem; gap: .5rem; justify-content: center; border-radius: 16px; }
  .style-glow .store-btn::before { border-radius: 18px; } .style-glow .store-btn::after { border-radius: 16px; }
  .store-btn .ic { width: 24px; height: 24px; }
  .store-btn .tx small { font-size: .5625rem; } .store-btn .tx b { font-size: 1rem; }
  .store-btn .go { display: none; }
}
@media (max-width: 360px) { .store-btn .tx b { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .style-glow .store-btn::before, .store-btn:hover .go { animation: none !important; } }

/* No underline strokes on headings */
.mark, .hl, .hl-dark { background: none !important; }

/* Chennai pins */
.radar .rp1 { left: 8%; top: 52%; } .radar .rp2 { right: 4%; top: 16%; } .radar .rp3 { left: 18%; top: 22%; animation-delay: -3s; } .radar .rp4 { right: 8%; bottom: 14%; animation-delay: -2s; } .radar .rp5 { left: 30%; bottom: 8%; animation-delay: -4s; }
.radar .rp3 { left: 14%; top: 24%; }

/* Popular titles */
.popular { margin-top: clamp(3rem, 6vw, 5rem); text-align: center; }
.popular h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 28ch; margin: 0 auto .5rem; }
.pop-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 1.5rem .5rem 1.75rem; margin-top: .5rem; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
.pop { flex: 0 0 150px; aspect-ratio: 2 / 3; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 1rem .9rem 1rem 1.2rem; border-radius: 6px 12px 12px 6px; background: var(--bg); color: var(--fg); box-shadow: inset 7px 0 0 rgba(0,0,0,.14), 0 22px 30px -20px rgba(17,17,17,.55); border: 1px solid rgba(17,17,17,.08); transition: transform .35s var(--ease), box-shadow .35s; }
.pop:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: inset 7px 0 0 rgba(0,0,0,.14), 0 30px 36px -18px rgba(17,17,17,.6); }
.pop b { font: 500 1.0625rem/1.15 var(--serif); letter-spacing: -.01em; }
.pop span { font-size: .6875rem; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.radar .rp3 { bottom: auto; top: 24%; left: 14%; }

/* Six-section cleanup */
.popular { text-align: center; margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border); }
.popular h2 { max-width: 20ch; margin: 0 auto .75rem; }
.pop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #eee; }
.pop.has-cover b, .pop.has-cover span { visibility: hidden; }
.pop.has-cover { box-shadow: inset 7px 0 0 rgba(0,0,0,.18), 0 22px 30px -20px rgba(17,17,17,.55); }
.tagline { display: inline-block; margin-top: 1.5rem; padding: .55rem 1rem; border-radius: 99px; border: 1px solid rgba(199,243,107,.5); color: var(--lime); font: 700 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 980px; }
.why .vcard { min-height: 0; justify-content: flex-start; }
.philo .giant { max-width: 12ch; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.hsteps { gap: .75rem; } .hstep { padding: 1.1rem 1.25rem; } .hstep b { font-size: 1.125rem; }
.philo .giant { font-size: clamp(2.5rem, 7vw, 6.2rem); max-width: 14ch; line-height: 1; }
.fb1 { right: 3%; top: 8%; bottom: auto; } .fb2 { right: 15%; top: 34%; bottom: auto; } .fb3 { right: 3%; top: 52%; bottom: auto; }

/* Cover images (Open Library) used everywhere */
.bookcard .cvimg { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px 12px 12px 6px; background: #e9e9e9;
  box-shadow: inset -8px 0 0 -2px rgba(17,17,17,.18), 0 28px 40px -22px rgba(17,17,17,.55); transform: rotateX(var(--rx, 0deg)) rotateY(calc(-12deg + var(--ry, 0deg))); transition: transform .35s var(--ease), box-shadow .35s; transform-style: preserve-3d; }
.bookcard:hover .cvimg, .bookcard:focus-visible .cvimg { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-10px) scale(1.04); box-shadow: 0 40px 50px -24px rgba(17,17,17,.6); }
.bookcard { width: min(190px, 40vw); }
.bookcard .info span { font-weight: 500; font-size: .8125rem; color: var(--graphite-text); margin-top: .1rem; }
.float-books .fbk { position: absolute; width: clamp(96px, 12vw, 168px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px 10px 10px 5px; box-shadow: 0 30px 40px -16px rgba(0,0,0,.8); transform: translateY(var(--py, 0px)) rotate(var(--rot, 0deg)); animation: bobr 8s ease-in-out infinite; background: #222; }
img.cvm { display: inline-block; width: 64px; height: 96px; object-fit: cover; border-radius: 4px 8px 8px 4px; vertical-align: middle; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); margin-left: 1.25rem; }
.community .mtrack > img.cvm { margin-left: 2rem; }

/* Reader names */
.avatars { list-style: none; padding: 0; gap: 1.1rem; flex-wrap: wrap; }
.avatars li { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1.1rem .35rem .35rem; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-weight: 500; color: #fff; }
.avatars .av { width: 44px; height: 44px; margin-left: 0; font-size: 1.1rem; border: 0; }

/* Cities radar */
.radar-wrap { display: grid; gap: 1.25rem; justify-items: center; }
.radar .clabel { position: absolute; inset: 0; margin: auto; width: 46%; height: 30%; display: grid; place-content: center; text-align: center; z-index: 2; pointer-events: none; }
.clabel small { font: 700 .625rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-text); }
.clabel b { display: block; margin-top: .35rem; font: 400 clamp(1.8rem, 4vw, 2.8rem)/1 var(--serif); letter-spacing: -.025em; transition: opacity .35s, transform .45s var(--ease); }
.clabel.swap b { opacity: 0; transform: translateY(8px); }
#pins .pin { transition: opacity .4s, transform .5s var(--ease); }
#pins.swap .pin { opacity: 0; transform: scale(.85); }
.citybar { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.citybtn { min-height: 40px; padding: 0 1rem; border-radius: 99px; border: 1.5px solid var(--border); background: #fff; font: 500 .875rem/1 var(--sans); cursor: pointer; color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.citybtn:hover { transform: translateY(-2px); border-color: var(--ink); }
.citybtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Philosophy copy */
.philo .strong { margin-top: 2rem; font: 400 clamp(1.5rem, 3vw, 2.25rem)/1.2 var(--serif); letter-spacing: -.02em; color: #fff; }
.philo .strong + .lede { margin-top: 1rem; }
.philo .lede + .lede { margin-top: 1rem; }

/* Reader names */
.people { list-style: none; margin: 2.5rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem .8rem; max-width: 960px; }
.people li { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1.1rem .35rem .35rem; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-weight: 500; color: #fff; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.people li:hover { transform: translateY(-3px); border-color: rgba(199,243,107,.6); background: rgba(255,255,255,.1); }
.people .av { width: 40px; height: 40px; margin: 0; font-size: 1rem; border: 0; animation: none; }
.av.c0 { background: var(--lime); } .av.c1 { background: var(--sage); } .av.c2 { background: var(--mint); } .av.c3 { background: var(--lav); } .av.c4 { background: var(--pink); }

/* ---- Polish pass ---- */
/* 1. Hero: tighter copy so the phone-in-hand sits higher on screen; smaller store buttons */
.hero { padding-top: clamp(6.25rem, 8.5vw, 7.25rem); }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); margin-bottom: .9rem; }
.hero .lede { margin-bottom: 1.1rem; font-size: clamp(1rem, 1.3vw, 1.125rem); }
.stage { --pw: min(660px, 94vw); margin-top: .75rem; }
.store-btn { min-height: 52px; padding: 0 .95rem 0 1rem; gap: .6rem; border-radius: 16px; }
.store-btn .ic { width: 24px; height: 24px; }
.store-btn .tx small { font-size: .5625rem; }
.store-btn .tx b { font-size: 1.0625rem; }
.store-btn .go { width: 16px; height: 16px; }
.store-badges { gap: .7rem; }
.style-glow .store-btn::before, .style-glow .store-btn::after { border-radius: inherit; }
.style-glow .store-btn::before { inset: -2px; border-radius: 18px; }
@media (max-width: 560px) { .store-btn { min-height: 50px; } .stage { --pw: min(480px, 100vw); } .hero { padding-top: 5.75rem; } }

/* 4. Store buttons: a bright comet travels round a faint outline, plus a soft pulse, so the buttons are easy to spot */
.style-glow .store-btn::before {
  background: conic-gradient(from var(--ring), rgba(199,243,107,.28) 0%, rgba(199,243,107,.28) 52%, #C7F36B 74%, #ffffff 86%, #C7F36B 92%, rgba(199,243,107,.28) 100%);
  animation: ring 3.6s linear infinite, pulse 3.6s ease-in-out infinite;
}
.style-glow .store-btn.is-placeholder::before { animation-play-state: running; opacity: 1; }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 22px -12px rgba(199,243,107,.35); } 50% { box-shadow: 0 10px 30px -8px rgba(199,243,107,.8); } }
.style-glow .store-btn:nth-child(2)::before { animation-delay: -1.8s, -1.8s; }

/* 2. Philosophy: no pill, headline sized for the new line */
.philo .giant { font-size: clamp(2.4rem, 6.6vw, 5.8rem); max-width: 15ch; }
.philo .lede:last-of-type { margin-bottom: 0; }

/* 3. Community: larger faces in a gentle wave */
.crew { list-style: none; margin: 3rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; max-width: 760px; }
.crew li { display: grid; justify-items: center; gap: .7rem; transition: transform .35s var(--ease); }
.crew li:nth-child(even) { transform: translateY(18px); }
.crew li:hover { transform: translateY(-6px); }
.crew li:nth-child(even):hover { transform: translateY(10px); }
.face { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 400 2rem/1 var(--serif); color: var(--ink); box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 18px 30px -14px rgba(0,0,0,.7); position: relative; }
.face::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
.fc0 { background: var(--lime); } .fc1 { background: var(--sage); } .fc2 { background: var(--mint); } .fc3 { background: var(--lav); }
.crew b { font-weight: 500; color: #fff; }
.community .stat { margin-top: 4.5rem; padding: 1.1rem 1.75rem; width: max-content; max-width: 100%; margin-inline: auto; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.community .stat strong { font-size: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 640px) { .crew { grid-template-columns: repeat(2, 1fr); } .face { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .style-glow .store-btn::before { animation: none !important; } }
/* crew wave via the translate property so it does not fight the reveal transform */
.crew { gap: 3rem 1rem; }
.crew li, .crew li:nth-child(even) { transform: none; }
.crew li { transition: translate .35s var(--ease); }
.crew li:nth-child(even) { translate: 0 22px; }
.crew li:hover { translate: 0 -6px; }
.crew li:nth-child(even):hover { translate: 0 14px; }

.alsoread { max-width: 760px; margin: 3.25rem auto 0; text-align: center; color: var(--on-dark-2); font-size: .9375rem; line-height: 1.9; }
.alsoread span { display: block; font: 700 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; color: #cfd3cb; }
.community .stat { margin-top: 3rem; }

/* Approved reader reviews */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 3rem auto 0; max-width: 1100px; }
.reviews[hidden], .crew[hidden] { display: none; }
.review { margin: 0; padding: 1.5rem; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 1.25rem; transition: transform .35s var(--ease), border-color .35s; }
.review:nth-child(even) { margin-top: 1.5rem; }
.review:hover { transform: translateY(-6px); border-color: rgba(199,243,107,.6); }
.review blockquote { margin: 0; font: 400 1.125rem/1.4 var(--serif); letter-spacing: -.01em; color: #fff; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: .65rem; }
.review .face { width: 40px; height: 40px; font-size: 1rem; box-shadow: none; } .review .face::after { display: none; }
.review b { font-weight: 500; color: #fff; }
@media (max-width: 1020px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } .review:nth-child(even) { margin-top: 0; } }

/* ---- 3D books (shelf + philosophy) ---- */
.book3d { --t: 26px; width: var(--bw, 190px); perspective: 1000px; position: relative; flex: none; }
.book3d .bk { position: relative; width: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, -26deg)); transition: transform .55s var(--ease); will-change: transform; }
.book3d .bk > * { position: absolute; backface-visibility: visible; }
.book3d .front { position: relative; display: block; width: 100%; height: auto; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 6px 6px 2px; background: #ddd; image-rendering: auto; box-shadow: inset 6px 0 8px -6px rgba(0,0,0,.35); }
.book3d .back { inset: 0; transform: translateZ(calc(var(--t) / -2)); background: var(--spine); filter: brightness(.7); border-radius: 6px 2px 2px 6px; }
.book3d .spine { top: 0; bottom: 0; left: calc(var(--t) / -2); width: var(--t); transform: rotateY(-90deg); background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.18) 40%, rgba(0,0,0,.2)), var(--spine); }
.book3d .pages { top: 2px; bottom: 2px; right: calc(var(--t) / -2); width: var(--t); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #fbf8ef 0 2px, #e4dcc7 2px 3px); }
.book3d .edge { left: 2px; right: 2px; height: var(--t); background: repeating-linear-gradient(0deg, #fbf8ef 0 2px, #e4dcc7 2px 3px); }
.book3d .edge.top { top: calc(var(--t) / -2); transform: rotateX(90deg); }
.book3d .edge.bottom { bottom: calc(var(--t) / -2); transform: rotateX(-90deg); }
.book3d::after { content: ""; position: absolute; left: 6%; right: 0; bottom: -22px; height: 22px; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); filter: none; transform: scaleX(1.1); z-index: -1; transition: opacity .4s; }
.book3d.hot .bk { transition-duration: .12s; }

.shelf { align-items: flex-end; gap: clamp(1.5rem, 4vw, 3.5rem); perspective: none; }
.bookcard { width: auto; text-align: center; }
.bookcard .book3d { margin: 0 auto; }
.bookcard .info { opacity: 1; transform: none; margin-top: 1.75rem; }
.bookcard:hover .book3d .bk, .bookcard:focus-visible .book3d .bk { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, -12deg)) translateY(-8px); }

/* Philosophy: copy left, books right, never overlapping */
.philo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.philo .float-books { display: none; }
.bookcluster { position: relative; height: clamp(420px, 44vw, 560px); }
.bookcluster .book3d { position: absolute; }
.bookcluster [data-pos="a"] { left: 2%; top: 0; --ry: -30deg; animation: bobr 7s ease-in-out infinite; }
.bookcluster [data-pos="b"] { left: 34%; top: 26%; z-index: 2; --ry: -22deg; animation: bobr 8s ease-in-out infinite -2s; }
.bookcluster [data-pos="c"] { left: 12%; top: 58%; --ry: -34deg; animation: bobr 9s ease-in-out infinite -4s; }
@media (max-width: 900px) { .philo-grid { grid-template-columns: 1fr; } .bookcluster { height: 340px; max-width: 420px; margin-inline: auto; width: 100%; } .bookcluster .book3d { --bw: 120px !important; } }

/* How it works: keep the phone clear of the note below */
.how-phone { position: relative !important; top: auto !important; align-self: center; }
.how2 { align-items: center; margin-bottom: 1rem; }
.direct { position: relative; z-index: 1; margin-top: 3.5rem; clear: both; }

/* Community (earlier layout) */
.stack { display: flex; justify-content: center; margin: 2.5rem 0 1rem; }
.stack .av { width: 64px; height: 64px; margin-left: -14px; border: 3px solid #101010; }
.stack .av:first-child { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { .book3d .bk { transition: none; } .bookcluster .book3d { animation: none !important; } }

/* ---- Alignment pass ---- */
/* Hero: colour comes from the section itself so no white strip can appear under the phone */
.hero { background: linear-gradient(180deg, #fff 0%, #fff 34%, #EEF9D8 70%, #DDF2B8 100%); }
.hero .mesh::before { display: none; }
.hero .mesh { inset: 30% 0 0 0; }
.stage { margin-bottom: 0; }
.stage::before { left: -40%; right: -40%; background: radial-gradient(ellipse 50% 66% at 50% 46%, #fff 0%, rgba(255,255,255,.92) 50%, rgba(255,255,255,0) 100%); }
.photo .hero-photo { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 92%, transparent 100%); }
/* Section edges: every section is centred on the same axis */
.section > .wrap, .site-footer .wrap { margin-inline: auto; }
.center, .center .lede { margin-inline: auto; }
.store-set { width: 100%; }

/* Footer without link list (until legal and contact pages exist) */
.foot { grid-template-columns: 1fr; }

/* ---- Smooth hero blend (all sizes) ---- */
.hero .grain { display: none; } /* grain only covered the text area, which made the photo box look lighter than its surroundings */
.photo .hero-photo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .hero { background: linear-gradient(180deg, #fff 0%, #fff 52%, #F6FCEA 100%); }
  .hero .mesh { opacity: .5; inset: 40% 0 0 0; }
  .stage { height: auto; aspect-ratio: 1199 / 1240; width: min(var(--pw), 100%); overflow: clip; }
  .stage::before { left: -10%; right: -10%; top: 0; background: radial-gradient(ellipse 58% 62% at 50% 48%, #fff 0%, rgba(255,255,255,.95) 60%, rgba(255,255,255,0) 100%); }
  .screen-tabs { bottom: 14px; }
  .photo { transform: translate(7%, 0); }
}
@media (max-width: 560px) { .photo { transform: translate(5%, 0); } .stage { margin-top: 0; } }

/* No top fade on the hero photo: it washed out the top of the phone */
.photo .hero-photo { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 92%, transparent 100%); -webkit-mask-composite: initial; mask-composite: add; }

/* ---- Transparent hero photo: no masks, spotlight or brightness hacks needed ---- */
.photo .hero-photo { -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 34px 38px rgba(20,50,10,.28)); mix-blend-mode: normal; }
.stage::before { display: none; }
.hero { background: linear-gradient(180deg, #fff 0%, #fff 30%, #EAF8CF 60%, #C7EC8A 100%); }
.hero .mesh { opacity: 1; inset: 28% 0 0 0; }
@media (max-width: 900px) {
  .hero { background: linear-gradient(180deg, #fff 0%, #fff 40%, #EAF8CF 68%, #C7EC8A 100%); }
  .hero .mesh { opacity: .9; inset: 32% 0 0 0; }
  .stage::before { display: none; }
}

/* Interactive tilt, drawn as a pre-rasterised layer so the app screen stays sharp while it moves */
.photo .hero-photo, .screen-overlay { will-change: transform; transform-origin: 50% 55%; }
.photo.tilt-on .hero-photo, .photo.tilt-on .screen-overlay { transition: transform .18s linear; }
.float { transition: translate .35s var(--ease); }

/* ---- Keep the hero photo pixel-sharp ----
   Resting state has no 3D transform, no preserve-3d and no fractional offsets, so the browser draws the bitmap 1:1.
   The tilt only exists while the pointer is over the hero. */
.photo { perspective: none; transform: none; left: 9%; width: 100%; translate: 0 var(--py, 0px); }
.photo .hero-photo { transform: none; transform-style: flat; transition: transform .25s var(--ease); image-rendering: auto; backface-visibility: hidden; }
.photo.tilt-on .hero-photo { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.screen-overlay { transform: none; }
.photo.tilt-on .screen-overlay { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (max-width: 900px) { .photo { left: 7%; transform: none; } }
@media (max-width: 560px) { .photo { left: 5%; transform: none; } }

/* ---- Interactive bubbles around the phone: three, evenly spaced, never over the phone ---- */
.bubble { font: inherit; color: inherit; text-align: left; cursor: pointer; border: 1px solid rgba(255,255,255,.7); max-width: 270px; transition: translate .35s var(--ease), background .3s, box-shadow .3s, border-color .3s; }
.bubble span { display: block; }
.bubble small { display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s, margin .3s; margin-top: 0; }
.bubble:hover, .bubble:focus-visible, .bubble[aria-pressed="true"] { background: rgba(255,255,255,.92); border-color: var(--ink); box-shadow: 0 18px 36px -16px rgba(17,17,17,.45); }
.bubble:hover small, .bubble:focus-visible small, .bubble[aria-pressed="true"] small { max-height: 4.5em; opacity: 1; margin-top: 2px; }
.bubble i { transition: background .3s, transform .3s var(--ease); }
.bubble:hover i, .bubble[aria-pressed="true"] i { background: var(--lime); transform: scale(1.08); }
.bubble:active { transform: scale(.98); }
.float.f1 { left: -12%; top: 18%; } .float.f2 { right: -14%; top: 40%; left: auto; } .float.f3 { left: -10%; bottom: 14%; top: auto; right: auto; }
@media (max-width: 1100px) { .float.f1 { left: -2%; } .float.f2 { right: -2%; } .float.f3 { left: 0; } }

/* ---- Seven bubbles, one style: two lines always visible; the three clickable ones also switch the phone screen ---- */
.bubble small { max-height: none; opacity: 1; margin-top: 0; overflow: visible; }
.bubble { max-width: none; width: max-content; }
.float { width: max-content; max-width: 260px; }
.float.bp1, .float.bp2, .float.bp3, .float.bp4, .float.bp5, .float.bp6, .float.bp7 { bottom: auto; }
.float.bp1 { left: -13%; right: auto; top: 5%; }
.float.bp2 { left: -17%; right: auto; top: 27%; }
.float.bp3 { left: -11%; right: auto; top: 49%; }
.float.bp4 { left: -15%; right: auto; top: 71%; }
.float.bp5 { right: -15%; left: auto; top: 14%; }
.float.bp6 { right: -11%; left: auto; top: 39%; }
.float.bp7 { right: -14%; left: auto; top: 64%; }
.bubble:hover, .bubble:focus-visible, .bubble[aria-pressed="true"] { background: rgba(255,255,255,.92); border-color: var(--ink); }
@media (max-width: 1180px) {
  .float.bp1 { left: -4%; } .float.bp2 { left: -6%; } .float.bp3 { left: -3%; } .float.bp4 { left: -5%; }
  .float.bp5 { right: -5%; } .float.bp6 { right: -3%; } .float.bp7 { right: -4%; }
}

/* Bubble titles and descriptions always stay on one line */
.float b, .float small, .bubble b, .bubble small { white-space: nowrap; }
.float { max-width: none; }

/* ---- Sharp interaction: the hero photo only ever moves by whole pixels (never rotated or scaled) ---- */
.photo { translate: var(--tx, 0px) calc(var(--py, 0px) + var(--ty, 0px)); transition: translate .22s ease-out; }
.photo .hero-photo, .screen-overlay, .photo.tilt-on .hero-photo, .photo.tilt-on .screen-overlay { transform: none !important; will-change: auto; }
.photo .hero-photo { transition: none; }
.screen-tabs { display: none; }

/* ---- Reverted: the phone-in-hand tilts in 3D toward the pointer again ---- */
.photo { translate: 0 var(--py, 0px); transition: none; }
.photo .hero-photo, .screen-overlay { will-change: transform; transform-origin: 50% 55%; }
.photo .hero-photo { transform: none !important; transition: transform .18s linear; }
.screen-overlay { transform: none !important; }
.photo.tilt-on .hero-photo, .photo.tilt-on .screen-overlay { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) !important; transition: transform .18s linear; }
