/* Lore — lorereader.app
   The site wears the app's own clothes: washes made from book covers, New York serif titles with one
   italic word, tracked-caps eyebrows, clear glass, a paper pill for the one thing to do.
   Nothing pins or hijacks the scroll: each section plays itself, like a short film, while it's on screen. */

:root {
  --night: #0c0b0a;
  --ink: #1d1611;
  --paper: #f4efe4;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.42);
  --hair: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --accent: #ff9f0a;
  --green: #30d158;
  --serif: "New York", ui-serif, "Newsreader", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.65, 0, .25, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: #fff; font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- type ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -.5px; font-size: clamp(46px, 6.4vw, 92px); line-height: .98; margin: 0; }
.title { font-family: var(--serif); font-weight: 700; letter-spacing: -.3px; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.04; margin: 0; }
.display em, .title em { font-style: italic; font-weight: 500; }
.lede { font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); margin: 0; max-width: 30em; }
.small { font-size: 12.5px; color: var(--faint); }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 25px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; border: 1px solid var(--glass-edge); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); transition: transform .25s var(--spring), background .2s; }
.pill:hover { transform: translateY(-1px) scale(1.02); background: rgba(255,255,255,.18); }
.pill.paper { background: var(--paper); color: var(--ink); border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 #fff; }
.pill.paper:hover { background: #fff; }
.pill.sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(12,11,10,.55); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); border-color: var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; } .nav-links a:hover { color: #fff; }
@media (max-width: 960px) { .nav-links { display: none; } }


/* ======================================================================
   DEVICES
   ====================================================================== */
.device { --w: 402px; --h: 874px; --bz: 11px; --bzy: var(--bz); --rl: 56px; --rr: 56px; position: relative; width: calc(var(--w) + var(--bz) * 2); height: calc(var(--h) + var(--bzy) * 2); padding: var(--bzy) var(--bz); border-radius: calc(var(--rl) + var(--bz)) calc(var(--rr) + var(--bz)) calc(var(--rr) + var(--bz)) calc(var(--rl) + var(--bz)); background: linear-gradient(145deg, #45444a, #151517 38%, #2a292e 70%, #18181a); box-shadow: 0 0 0 1px rgba(255,255,255,.07), inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 3px rgba(0,0,0,.6), 0 70px 120px -40px rgba(0,0,0,.9), 0 24px 50px -20px rgba(0,0,0,.6); transition: width 1.1s var(--ease), height 1.1s var(--ease), border-radius 1.1s var(--ease), padding 1.1s var(--ease), opacity .3s; }
.device .screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0b0908; border-radius: var(--rl) var(--rr) var(--rr) var(--rl); container-type: size; container-name: screen; isolation: isolate; transition: border-radius 1.1s var(--ease), filter .7s ease, transform .9s var(--ease); }
.device .island { position: absolute; z-index: 60; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; transition: opacity .4s; }
.device .sensor { position: absolute; z-index: 60; top: 12px; right: 14px; width: 128px; height: 34px; border-radius: 17px; background: #000; opacity: 0; transition: opacity .4s; }
.device .sensor::after { content: ""; position: absolute; right: 9px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #1d2a44, #05070c 70%); }
.device .hinge { position: absolute; z-index: 61; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.12) 12%, rgba(0,0,0,.35) 50%, rgba(255,255,255,.12) 88%, transparent); opacity: 0; transition: opacity .6s; pointer-events: none; }

/* ======================================================================
   APP SCREENS (HTML redrawings of Lore's own views; sizes in points)
   ====================================================================== */
.app { position: absolute; inset: 0; color: #fff; font-family: var(--sans); overflow: hidden; isolation: isolate; z-index: 1; transition: transform .75s var(--ease), opacity .75s, filter .75s; }
.app.under { transform: translateX(-28%); filter: brightness(.5); }
.app.away { transform: translateX(100%); }
.app.page { z-index: 2; box-shadow: -20px 0 40px rgba(0,0,0,.5); }
.statusbar { position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px; font-size: 17px; font-weight: 600; pointer-events: none; }
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.batt { width: 27px; height: 13px; border-radius: 4px; background: #fff; position: relative; }
.batt::after { content: ""; position: absolute; right: -3px; top: 4px; width: 2px; height: 5px; border-radius: 1px; background: rgba(255,255,255,.5); }
.homebar { position: absolute; z-index: 50; bottom: 8px; left: 50%; width: 140px; margin-left: -70px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.75); }

/* the cover's own colours behind everything: one blurred copy, so left and right melt together */
.coverwash { position: absolute; inset: -10%; background: var(--art) center / cover; filter: blur(50px) brightness(.42) saturate(1.25); transform: scale(1.1); z-index: -2; }
.coverwash + .dim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,8,6,.15), rgba(10,8,6,.55)); }

/* Home */
.home .poster { position: absolute; left: 0; right: 0; top: 0; height: 60%; background: var(--art) 50% 0% / 100% auto no-repeat; }
.home .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, var(--base) 97%); }
.home .words { position: absolute; z-index: 3; left: 0; right: 0; top: 47%; padding: 0 22px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.home .words h4 { margin: 0; font-family: var(--serif); font-size: 31px; line-height: 1.08; font-weight: 700; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.home .words .by { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); position: relative; }
.home .words .chap { font-size: 12.5px; color: rgba(255,255,255,.6); }
.gpill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 17px; border-radius: 19px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); font-size: 14.5px; font-weight: 600; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.home .chips { position: absolute; z-index: 5; top: 58px; right: 16px; display: flex; align-items: center; height: 40px; padding: 0 4px; border-radius: 20px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.15); font-weight: 600; font-size: 15px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.home .chips span { display: flex; align-items: center; gap: 4px; padding: 0 9px; height: 100%; }
.home .feed { position: absolute; z-index: 3; left: 18px; right: 18px; top: 69%; display: flex; flex-direction: column; gap: 14px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; }
.sec-h b { font-family: var(--serif); font-size: 21px; }
.sec-h span { font-size: 12.5px; color: var(--muted); }
.today { display: flex; gap: 14px; align-items: center; }
.home .extra { display: none; }

/* Home wide: the book's cover is the left half, the day fills the right */
@container screen (min-aspect-ratio: 1.15) {
  .home .poster { right: auto; width: 46%; height: 100%; background-size: cover; background-position: 50% 12%; }
  .home .poster::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, var(--base) 96%), linear-gradient(90deg, rgba(0,0,0,0) 55%, var(--base) 100%); }
  .home .words { right: auto; width: 46%; top: auto; bottom: 8%; }
  .home .words h4 { font-size: clamp(26px, 3.4cqw, 40px); }
  .home .feed { left: 49%; right: 3.5%; top: 74px; gap: 12px; }
  .home .extra { display: flex; flex-direction: column; gap: 12px; }
  .home .chips { top: 14px; }
}
.strips { display: flex; gap: 10px; }
.strip { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; line-height: 1.3; }
.strip .ic { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.row { display: flex; gap: 12px; }
.bk { position: relative; flex: none; width: 64px; }
.bk img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.bk .t { font-size: 10.5px; font-weight: 600; margin-top: 5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk .s { font-size: 10px; color: var(--muted); }
.ring-badge { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; }
.ring-badge.hi { bottom: 34px; }

/* the goals lens: three glass tubes */
.lens { position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle at 50% 28%, rgba(255,255,255,.16), rgba(255,255,255,.05) 62%); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18), inset 0 -10px 24px rgba(0,0,0,.25), 0 16px 32px -14px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.lens svg.arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lens .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity .4s; }
.lens svg.mark { position: absolute; left: 50%; top: 50%; width: 22%; height: auto; transform: translate(-50%, -110%); opacity: 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.lens.fused .num { opacity: 0; }
.lens.fused svg.mark { animation: dropmark .9s .25s var(--spring) forwards; }
@keyframes dropmark { to { opacity: 1; transform: translate(-50%, -50%); } }
.arc-fill { transition: stroke-dasharray 1.3s var(--ease), opacity .6s; }
.fused-ring { transition: opacity .9s; transform-origin: 50% 50%; }

.wordstack { flex: 1; min-width: 0; height: 112px; position: relative; }
.wordstack .c { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 16px 30px -14px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.wordstack .c.b1 { transform: translateY(-7px) scale(.94); opacity: .5; background: none; }
.wordstack .c.b2 { transform: translateY(-13px) scale(.88); opacity: .25; background: none; }
.wordstack i { font-family: var(--serif); font-size: 29px; font-weight: 500; transition: opacity .4s, transform .4s; }
.wordstack .due { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(50,42,36,.92); border: 1px solid rgba(255,255,255,.14); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.wordstack .due b { color: var(--accent); }

/* tabs: a floating bar (iPhone), a top bar (iPad), a column under the clock (Duo) */
.tabbar { position: absolute; z-index: 40; left: 16px; right: 16px; bottom: 22px; height: 64px; border-radius: 32px; background: rgba(38,32,28,.5); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); display: flex; align-items: center; justify-content: space-around; padding: 0 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.tab { flex: 1; height: 54px; border-radius: 27px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.tab svg { width: 25px; height: 25px; }
.tab.on { color: var(--accent); background: rgba(255,255,255,.09); }
.app.ipad .tabbar { left: 50%; right: auto; top: 14px; bottom: auto; width: 420px; height: 44px; transform: translateX(-50%); }
.app.ipad .tab { flex-direction: row; height: 34px; font-size: 13px; }
.app.ipad .tab svg { display: none; }
.app.ipad .statusbar { padding: 4px 22px 0 26px; height: 30px; font-size: 13px; }
.app.ipad .homebar { width: 220px; margin-left: -110px; }
.app.ipad .home .chips { top: 40px; right: 14px; height: 36px; font-size: 13px; }
.app.ipad .home .feed { top: 92px; }
.app.duo .tabbar { left: auto; right: 10px; top: auto; bottom: 20px; width: 56px; height: auto; flex-direction: column; padding: 5px 0; transform: none; }
.app.duo .tab { width: 46px; height: 46px; flex: none; font-size: 0; gap: 0; }
.app.duo .tab svg { width: 23px; height: 23px; }
.app.duo .statusbar { left: auto; right: 0; width: 76px; height: auto; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 56px 0 0; font-size: 15px; }
.app.duo .statusbar .icons { flex-direction: column; gap: 6px; }
.app.duo .homebar { display: none; }
.app.duo .home .chips { right: 84px; top: 14px; }
.app.duo .home .feed { right: 84px; }
.app.duo .home .words { padding-right: 76px; }
@container screen (min-aspect-ratio: 1.15) {
  .app.duo .home .words { padding-right: 22px; }
  .app.duo .home .feed { right: 82px; top: 68px; }
}

/* Author page (wide) */
.author { --base: #17130f; background: var(--base); }
.author .portrait { position: absolute; left: 0; top: 0; bottom: 0; width: 47%; background: url(assets/art/christie.jpg) 50% 12% / cover; filter: sepia(.25) contrast(1.05); }
.author .portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,19,15,0) 28%, rgba(23,19,15,.8) 62%, var(--base) 86%), linear-gradient(90deg, rgba(23,19,15,0) 62%, var(--base)); }
.author .who { position: absolute; z-index: 2; left: 0; width: 47%; bottom: 5%; padding: 0 26px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.author .who h4 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.4cqw, 38px); }
.sig { width: 210px; height: 50px; background: url(assets/art/christie-signature.svg) center / contain no-repeat; -webkit-mask: linear-gradient(90deg, #000 var(--pen, 0%), transparent calc(var(--pen, 0%) + 3%)); mask: linear-gradient(90deg, #000 var(--pen, 0%), transparent calc(var(--pen, 0%) + 3%)); filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.author .facts { font-size: 12px; color: var(--muted); }
.author .bio { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.78); text-align: left; margin-top: 4px; }
.author .stats { font-size: 12px; color: rgba(255,255,255,.8); display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.author .stats b { color: #fff; }
.author .shelves-clip { position: absolute; left: 49%; right: 84px; top: 0; bottom: 0; overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
.author .shelves { position: absolute; left: 0; right: 0; top: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform 1s var(--ease); }
.shelf-h { margin: 8px 0 0; font-family: var(--serif); font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.shelf-h .count { font-family: var(--sans); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: rgba(255,255,255,.14); }
.author .row .bk { width: 66px; }
.chip-tl { position: absolute; top: 4px; left: 4px; height: 18px; padding: 0 6px; border-radius: 9px; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.3); font-size: 9.5px; font-weight: 700; display: flex; align-items: center; }
.minifan { position: relative; width: 120px; height: 100px; }
.minifan img { position: absolute; left: 34px; top: 8px; width: 52px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 8px 16px rgba(0,0,0,.5); }
.minifan img:nth-child(1) { transform: rotate(-12deg) translateX(-28px); }
.minifan img:nth-child(3) { transform: rotate(12deg) translateX(28px); }
.fanrow { display: flex; gap: 10px; }
.fanrow .lab { width: 120px; text-align: center; font-size: 11.5px; font-weight: 600; }
.fanrow .lab span { display: block; font-weight: 400; color: var(--muted); }
.award { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--hair); font-size: 12px; }
.award .medal { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, #f7d36b, #b8862b); color: #3b2a08; font-weight: 800; font-size: 13px; flex: none; }
.faces { display: flex; gap: 14px; }
.face { width: 70px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; text-align: center; line-height: 1.2; }
.face .av { width: 54px; height: 54px; border-radius: 50%; background-size: cover; background-position: 50% 20%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; background-color: #3d3128; border: 1px solid rgba(255,255,255,.16); }


/* the lyre */
.lyre { overflow: visible; }
.lyre .arm { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s .2s cubic-bezier(.6,0,.2,1) forwards; }
.lyre .bar { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1s .9s ease forwards; }
.lyre .string { transform-box: fill-box; transform-origin: 50% 0%; opacity: 0; animation: appear .4s forwards; }
.lyre .string:nth-of-type(1) { animation-delay: 1.3s; } .lyre .string:nth-of-type(2) { animation-delay: 1.4s; } .lyre .string:nth-of-type(3) { animation-delay: 1.5s; }
.lyre .book { opacity: 0; transform: translateY(30px); animation: settle .9s .5s var(--spring) forwards; }
.lyre.pluck .string { animation: appear 0s forwards, pluck .9s ease-out; }
.lyre.pluck .string:nth-of-type(2) { animation-delay: 0s, .07s; } .lyre.pluck .string:nth-of-type(3) { animation-delay: 0s, .14s; }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes appear { to { opacity: 1; } } @keyframes settle { to { opacity: 1; transform: none; } }
@keyframes pluck { 0% { transform: skewX(0); } 10% { transform: skewX(3deg); } 25% { transform: skewX(-2.4deg); } 40% { transform: skewX(1.6deg); } 58% { transform: skewX(-1deg); } 76% { transform: skewX(.5deg); } 100% { transform: skewX(0); } }

/* ======================================================================
   READ BETTER
   ====================================================================== */
.sheet { position: relative; border-radius: 26px; background: #f6f0e3; color: #2a221b; padding: clamp(22px, 3vw, 44px) clamp(22px, 3.4vw, 52px) 92px; box-shadow: 0 60px 120px -40px rgba(0,0,0,.85); overflow: hidden; width: min(640px, 100%); margin: 0 auto; transition: transform .9s var(--ease), opacity .7s; }
.sheet .chap { font-family: var(--serif); text-align: center; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: #8b7d6b; margin-bottom: 14px; }
.sheet .text { position: relative; font-family: var(--serif); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.58; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.sheet .text p { margin: 0 0 .7em; text-indent: 1.4em; } .sheet .text p:first-child { text-indent: 0; }
.sheet .num { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 12px; color: #9a8c79; }
.band { position: absolute; z-index: 1; left: -8px; right: -8px; height: 0; border-radius: 8px; background: rgba(255,196,60,.26); box-shadow: 0 0 0 9999px rgba(30,24,18,.36); transition: top .32s var(--ease), height .32s, opacity .4s; pointer-events: none; opacity: 0; }
.band.on { opacity: 1; }
.band .sweep { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: rgba(255,160,20,.32); }
.pacer-ctl { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; transition: opacity .4s; }
.pacer-ctl .g { height: 48px; min-width: 48px; padding: 0 16px; border-radius: 24px; background: rgba(40,32,26,.75); color: #fff; border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; font-family: var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pacer-ctl .g.go { background: var(--accent); border-color: transparent; color: #1d1611; }
.held { background: rgba(255,159,10,.38); border-radius: 4px; box-shadow: 0 0 0 3px rgba(255,159,10,.38); }
.sheet.dimmed .text { opacity: .35; transition: opacity .5s; }
.sheet.dimmed .held-wrap { opacity: 1; }
.defcard { position: absolute; z-index: 5; width: 320px; padding: 16px 18px; border-radius: 24px; background: rgba(30,26,22,.9); color: #fff; border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 30px 60px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(12px) scale(.94); transition: opacity .35s, transform .5s var(--spring); pointer-events: none; font-family: var(--sans); }
.defcard.on { opacity: 1; transform: none; }
.defcard .tabs { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.08); margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.defcard .tabs span { flex: 1; text-align: center; padding: 4px 0; border-radius: 11px; }
.defcard .tabs span.on { background: rgba(255,255,255,.18); }
.defcard .w { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.1; }
.defcard .pos { font-size: 12px; color: var(--muted); font-style: italic; }
.defcard .d { font-size: 14.5px; margin-top: 6px; line-height: 1.4; }
.defcard .save { margin-top: 12px; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13.5px; transition: transform .3s var(--spring), background .3s, color .3s; }
.defcard .save.saved { background: var(--green); color: #fff; transform: scale(1.06); }
.flyword { position: absolute; z-index: 20; font-family: var(--serif); font-style: italic; font-size: 22px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); pointer-events: none; opacity: 0; }

.rtop { display: flex; align-items: center; gap: 10px; }
.cnt { width: 34px; height: 30px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.cnt.again { background: rgba(255,159,10,.22); color: #ffb340; } .cnt.knew { background: rgba(48,209,88,.22); color: #4be37a; }
.rbar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.rbar i { display: block; height: 100%; width: 0; background: #fff; transition: width .5s; }
.deck { position: relative; height: 300px; }
.fcard { position: absolute; inset: 0 6px; border-radius: 26px; background: linear-gradient(160deg, rgba(74,76,72,.97), rgba(46,47,45,.97)); border: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px; text-align: center; transition: transform .6s cubic-bezier(.3,.9,.3,1), opacity .5s, background .3s, border-color .3s; box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.fcard > * { transition: opacity .3s; }
.fcard:not(.top) > * { opacity: 0; }
.fcard.behind { transform: translateY(14px) scale(.95); opacity: .55; } .fcard.behind2 { transform: translateY(28px) scale(.9); opacity: .28; }
.fcard:not(.top):not(.behind):not(.behind2):not(.knew):not(.again) { opacity: 0; }
.fcard.knew { background: rgba(48,209,88,.35); border-color: rgba(48,209,88,.9); transform: translateX(130%) rotate(14deg); opacity: 0; }
.fcard.again { background: rgba(255,159,10,.35); border-color: rgba(255,159,10,.9); transform: translateX(-130%) rotate(-14deg); opacity: 0; }
.fcard .w { font-family: var(--serif); font-size: 36px; font-weight: 600; font-style: italic; }
.fcard .from { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.fcard .from img { width: 20px; border-radius: 1px 3px 3px 1px; }
.fcard .ctx { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.86); }
.stagebar { display: flex; gap: 4px; height: 8px; border-radius: 4px; overflow: hidden; } .stagebar i { transition: flex .8s; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); } .legend b { color: #fff; }

/* ======================================================================
   THE MUSE
   ====================================================================== */
.ask-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ask-head .lyre { width: 28px; height: 28px; }
.bubble { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: rgba(255,255,255,.16); font-size: 15px; min-height: 42px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.answer { font-family: var(--serif); font-size: 18px; line-height: 1.55; min-height: 150px; }
.answer q { font-style: italic; quotes: "“" "”"; }
.answer .w { opacity: 0; transition: opacity .25s; } .answer .w.on { opacity: 1; }
.shield { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(48,209,88,.16); border: 1px solid rgba(48,209,88,.4); color: #7ff0a0; font-size: 13px; font-weight: 600; width: fit-content; opacity: 0; transform: translateY(6px); transition: all .5s var(--spring); }
.shield.on { opacity: 1; transform: none; }
.recap .h { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.recap p { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.45; }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid var(--glass-edge); font-size: 13.5px; font-weight: 600; width: fit-content; }
.ai-badge span { background: linear-gradient(90deg, #ffb340, #ff5f8f, #a77bff, #4fc3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ======================================================================
   HABITS
   ====================================================================== */

/* ======================================================================
   HARDCOVER
   ====================================================================== */

/* ======================================================================
   LIBRARY → SERIES
   ====================================================================== */
.lib { --base: #191510; background: var(--base); }
.lib .title-l { position: absolute; left: 20px; top: 62px; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.lib .filters { position: absolute; left: 20px; top: 106px; display: flex; gap: 6px; }
.lib .filters span { height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255,255,255,.1); border: 1px solid var(--hair); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; }
.lib .filters span.on { background: #fff; color: #191510; }
.grid { position: absolute; left: 20px; right: 20px; top: 156px; height: 560px; }
.gbook { position: absolute; width: 104px; transition: left .9s var(--ease), top .9s var(--ease), transform .9s var(--ease), opacity .6s; }
.gbook img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 22px rgba(0,0,0,.55); }
.gbook .glow { position: absolute; inset: -4px; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255,159,10,.9), 0 0 22px rgba(255,159,10,.6); opacity: 0; transition: opacity .4s; }
.gbook.lit .glow { opacity: 1; }
.gbook .lbl { font-size: 11px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.stacklabel { position: absolute; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .5s; line-height: 1.25; }
.stacklabel span { display: block; color: var(--muted); font-weight: 400; }
.findbanner { position: absolute; left: 16px; right: 16px; bottom: 100px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 22px; background: rgba(40,34,30,.82); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(14px); transition: all .5s var(--spring); }
.findbanner.on { opacity: 1; transform: none; }
.findbanner .lyre { width: 26px; height: 26px; }
.findbanner .bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); flex: 1; overflow: hidden; }
.findbanner .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.4s var(--ease); }
.epub { position: absolute; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 14px; font-weight: 600; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); transition: all 1s var(--ease); white-space: nowrap; }
.epub .doc { width: 34px; height: 44px; border-radius: 4px 10px 4px 4px; background: linear-gradient(160deg, #fff, #dfe3ee); color: #4F63B8; font-size: 8px; font-weight: 800; display: grid; place-items: end center; padding-bottom: 5px; }

.series { --base: #1a1511; background: var(--base); }
.series .fan { position: absolute; left: 0; right: 0; top: 70px; height: 300px; perspective: 900px; }
.series .fan .bkf { position: absolute; left: 50%; top: 10px; width: 150px; height: 225px; margin-left: -75px; border-radius: 3px 7px 7px 3px; background-size: cover; background-position: center; box-shadow: 0 20px 40px rgba(0,0,0,.6); transition: transform 1s var(--ease), opacity 1s, filter .6s; }
.series .fan .bkf.miss { filter: grayscale(1) brightness(.7); outline: 1.5px dashed rgba(255,255,255,.55); outline-offset: 3px; }
.series .fan .bkf.front { box-shadow: 0 0 0 2px rgba(255,255,255,.8), 0 24px 50px rgba(0,0,0,.6); }
.series .fan .bkf .n { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.3); font-family: var(--serif); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.series .meta { position: absolute; left: 0; right: 0; top: 352px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 0 22px; }
.series .meta .t { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; width: 100%; max-width: 330px; margin-top: 10px; }
.seg i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.16); }
.seg i.done { background: var(--green); } .seg i.part { background: linear-gradient(90deg, var(--accent) 42%, rgba(255,255,255,.16) 42%); }
.series .list { position: absolute; left: 20px; right: 20px; top: 520px; display: flex; flex-direction: column; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.lrow img { width: 36px; border-radius: 2px 4px 4px 2px; }
.lrow.miss img { filter: grayscale(1) brightness(.7); }
.lrow .n { font-family: var(--serif); font-weight: 700; width: 18px; color: var(--muted); }
.lrow b { display: block; font-size: 14px; }
.lrow span { color: var(--muted); font-size: 12px; }
.state { margin-left: auto; width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.state.done { background: var(--green); } .state.want { border: 1.5px solid rgba(255,255,255,.5); }
.state.own { background: rgba(48,209,88,.2); }

.bookpage { --base: #1a1612; background: var(--base); }
.bookpage .poster { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: var(--art) 50% 0 / 100% auto no-repeat; }
.bookpage .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, var(--base) 98%); }
.bookpage .words { position: absolute; left: 0; right: 0; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 22px; }
.bookpage .words h4 { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.bookpage .words .m { font-size: 12.5px; color: var(--muted); }
.bookpage .btns { display: flex; gap: 8px; margin-top: 8px; }
.bookpage .btns .gpill.free { background: var(--paper); color: var(--ink); }
.bookpage .blurb { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.45; text-align: left; margin-top: 10px; }
.bookpage .backbtn, .series .backbtn { position: absolute; z-index: 10; top: 58px; left: 16px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.14); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; place-items: center; }

/* floating callouts beside a device */
.float { position: absolute; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); font-size: 14px; font-weight: 600; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); opacity: 0; transform: translateY(14px) scale(.96); transition: all .7s var(--spring); white-space: nowrap; pointer-events: none; }
.float.on { opacity: 1; transform: none; }
.float span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.float img { width: 30px; border-radius: 2px 4px 4px 2px; }

/* ======================================================================
   SEARCH (in the author scene)
   ====================================================================== */
.search { --base: #14120f; background: var(--base); }
.search .cols { position: absolute; left: 26px; right: 84px; top: 22px; bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.search .col { display: flex; flex-direction: column; gap: 10px; }
.search .field { height: 40px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid var(--hair); display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); font-size: 14px; }
.soon .bk { width: 92px; }
.search .bk { width: 84px; }
.search .minifan { transform: scale(1.15); transform-origin: top center; margin-bottom: 16px; }
.soon .chip-tl { font-size: 9px; }
.plus { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 11px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .3s; }
.plus.on { background: var(--green); border-color: transparent; }
.art-cover { width: 100%; aspect-ratio: 2/3; border-radius: 2px 5px 5px 2px; background-size: cover; background-position: center; position: relative; box-shadow: 0 8px 18px rgba(0,0,0,.5); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.art-cover b { font-family: var(--serif); font-size: 11px; line-height: 1.15; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.75)); text-align: center; }
.prize { display: flex; gap: 10px; align-items: flex-end; }
.prize .bk { width: 62px; }

/* ======================================================================
   FRIENDS
   ====================================================================== */
.friends-app { --base: #12160f; background: var(--base); }
.facesbar { position: absolute; left: 18px; right: 18px; top: 104px; display: flex; gap: 14px; }
.fav { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.fav .av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 21px; position: relative; }
.fav .av.now { box-shadow: 0 0 0 2.5px var(--base), 0 0 0 5px var(--green); }
.fav .av.inv { border: 1.5px dashed rgba(255,255,255,.4); font-family: var(--sans); font-weight: 400; }
.nowhero { position: absolute; left: 18px; right: 18px; top: 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.nowhero .cov { position: relative; width: 150px; }
.nowhero .cov img { width: 100%; border-radius: 3px 7px 7px 3px; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.nowhero .cov .av { position: absolute; left: -10px; bottom: -10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; box-shadow: 0 0 0 2.5px var(--base), 0 0 0 5px var(--green); }
.sharedline { position: relative; width: 100%; height: 34px; margin-top: 6px; }
.sharedline .rail { position: absolute; left: 6px; right: 6px; top: 16px; height: 2px; background: rgba(255,255,255,.2); border-radius: 1px; }
.sharedline .who { position: absolute; top: 3px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-family: var(--serif); border: 2px solid var(--base); transition: left 1.4s var(--ease); }
.sharedline .who.me { background: var(--accent); color: #1d1611; z-index: 2; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 170px; width: 100%; }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 30%; }
.podium .blk { width: 100%; border-radius: 14px 14px 6px 6px; background: rgba(255,255,255,.1); border: 1px solid var(--glass-edge); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 24px; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--spring); }
.podium.on .blk { transform: scaleY(1); }
.podium .me .blk { background: rgba(255,159,10,.25); border-color: rgba(255,159,10,.6); }
.podium small { font-size: 11.5px; color: var(--muted); }
.podium .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 15px; }
.notif { position: absolute; z-index: 30; width: 340px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 24px; background: rgba(60,56,52,.7); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translateY(-16px) scale(.96); transition: all .7s var(--spring); pointer-events: none; }
.notif.on { opacity: 1; transform: none; }
.notif img.app-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.notif b { display: block; font-size: 13.5px; }
.notif .when { margin-left: auto; align-self: flex-start; font-size: 11.5px; color: var(--muted); }
.burst { position: absolute; z-index: 40; pointer-events: none; font-size: 22px; animation: fly 1.2s ease-out forwards; }
@keyframes fly { from { transform: translate(-50%, -50%) scale(.5); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.25); opacity: 0; } }
@media (max-width: 900px) { .notif { width: 290px; } }

/* ======================================================================
   CTA + footer
   ====================================================================== */
footer { border-top: 1px solid var(--hair); padding: 30px var(--gutter) 46px; font-size: 12.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; max-width: 1360px; margin: 0 auto; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ======================================================================
   v3 — one background for the whole page, sections that play themselves
   ====================================================================== */
#mesh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
body { background: transparent; }
html { background: var(--night); }
section, header { position: relative; }

/* no hard edges anywhere: pictures fade into the cover's wash instead of meeting a colour */
.device .hinge { width: 46px; margin-left: -23px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.16) 45%, rgba(255,255,255,.05) 50%, rgba(0,0,0,.16) 55%, transparent); }
.home .poster::after, .bookpage .poster::after { display: none; }
.home .poster, .bookpage .poster { -webkit-mask: linear-gradient(180deg, #000 38%, transparent 96%); mask: linear-gradient(180deg, #000 38%, transparent 96%); }
@container screen (min-aspect-ratio: 1.15) {
  .home .poster { -webkit-mask: linear-gradient(90deg, #000 52%, transparent 99%), linear-gradient(180deg, #000 55%, transparent 99%); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, #000 52%, transparent 99%) intersect, linear-gradient(180deg, #000 55%, transparent 99%); }
}
.author .portrait::after { display: none; }
.author .portrait { -webkit-mask: linear-gradient(90deg, #000 50%, transparent 99%), linear-gradient(180deg, #000 30%, transparent 88%); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, #000 50%, transparent 99%) intersect, linear-gradient(180deg, #000 30%, transparent 88%); }
.author, .lib, .series, .bookpage, .search, .friends-app { background: transparent; }
.lrow { border-bottom: 0; }
.coverwash { inset: -20%; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; max-width: 1440px; margin: 0 auto; padding: 84px var(--gutter) 28px; display: grid; grid-template-columns: minmax(300px, .52fr) 1.48fr; gap: clamp(16px, 3vw, 48px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero-copy .lyre { width: 72px; height: 72px; }
.hero-copy .lede { max-width: 26em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; }
.beta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.beta .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--green); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(48,209,88,0); } }

.tour { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.devname { position: relative; height: 34px; min-width: 120px; padding: 0 16px; border-radius: 17px; background: rgba(255,255,255,.08); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: grid; place-items: center; font-size: 13.5px; font-weight: 600; letter-spacing: .2px; transition: min-width .5s var(--ease); overflow: hidden; }
.devname span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .4s, transform .5s var(--ease); }
.devname span.out { opacity: 0; transform: translateY(-14px); }
.devname span.in { opacity: 0; transform: translateY(14px); }
.devname i { font-style: normal; color: var(--muted); font-weight: 500; }
.tour-stage { position: relative; width: 100%; height: clamp(380px, calc(100svh - 230px), 780px); }
.tour-stage .rig { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: scale(var(--k, .5)); perspective: 2600px; }
.tour-stage .device { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.chapters button { all: unset; cursor: pointer; position: relative; height: 32px; padding: 0 13px; border-radius: 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid var(--hair); overflow: hidden; transition: color .3s, background .3s; }
.chapters button:hover { color: #fff; }
.chapters button.on { color: #fff; background: rgba(255,255,255,.12); }
.chapters button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; opacity: .8; }
.chapters button.pause { width: 32px; padding: 0; display: grid; place-items: center; }
.chapters button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the finger: a soft blue dot that glides between taps */
.touch { position: absolute; z-index: 300; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle, rgba(120,180,255,.75), rgba(40,120,255,.45) 60%, rgba(40,120,255,.25)); border: 2.5px solid rgba(255,255,255,.85); box-shadow: 0 8px 26px rgba(10,60,160,.45); opacity: 0; pointer-events: none; transform: scale(1.3); transition: left .7s var(--ease), top .7s var(--ease), opacity .3s, transform .25s var(--spring); }
.touch.show { opacity: 1; transform: scale(1); }
.touch.down { transform: scale(.78); }
.touch.down::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(140,190,255,.7); animation: ripple .6s ease-out forwards; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* screens inside the tour fade/slide like the app */
#devScreen > .app { transition: transform .7s var(--ease), opacity .5s, filter .7s; }
#devScreen > .app.fadein { opacity: 0; }
.app.dim { filter: brightness(.25); transition: filter 2.5s ease; }
.scrollable { transition: transform 1.6s var(--ease); }

/* iPhone Search */
.search.narrow .body { position: absolute; left: 18px; right: 18px; top: 62px; display: flex; flex-direction: column; gap: 10px; }
.search.narrow .body > .t { font-family: var(--serif); font-size: 32px; font-weight: 700; }
.search .chiprow { display: flex; gap: 6px; }
.search .chiprow span { height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255,255,255,.1); border: 1px solid var(--glass-edge); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; }
.trendring { position: relative; height: 250px; perspective: 900px; margin: 4px -18px 0; }
.trendring .bkf { position: absolute; left: 50%; top: 6px; width: 132px; height: 198px; margin-left: -66px; border-radius: 3px 7px 7px 3px; background-size: cover; background-position: center; box-shadow: 0 20px 40px rgba(0,0,0,.6); transition: transform .9s var(--ease), opacity .9s; }
.trendring .bkf .n { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.3); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.trendcap { text-align: center; margin-top: -6px; }
.trendcap b { font-family: var(--serif); font-size: 19px; display: block; }
.trendcap span { font-size: 12px; color: var(--muted); }

/* reading on the open Duo: a spread, typeset in columns like the reader */
.reading { background: #f6f0e3; color: #2a221b; }
.reading.dusk { background: #1f1b17; color: #e9dfcf; }
.reading .pg { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; background: inherit; }
.reading .pg.l { left: 0; } .reading .pg.r { left: 50%; }
.reading .flow { position: absolute; top: 54px; left: 46px; width: 383px; height: 566px; column-width: 383px; column-gap: 92px; column-fill: auto; font-family: var(--serif); font-size: 17.5px; line-height: 1.55; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.reading .flow p { margin: 0; text-indent: 1.3em; } .reading .flow p.first { text-indent: 0; }
.reading .flow h5 { margin: 30px 0 22px; font-size: 26px; text-align: center; font-weight: 600; font-style: italic; }
.reading .hd { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 11.5px; color: #9a8c79; }
.reading .ft { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 11.5px; color: #9a8c79; }
.reading .gutter { position: absolute; top: 0; bottom: 0; left: 50%; width: 80px; margin-left: -40px; background: linear-gradient(90deg, transparent, rgba(80,60,30,.07) 46%, rgba(80,60,30,.12) 50%, rgba(80,60,30,.07) 54%, transparent); pointer-events: none; z-index: 5; }
.reading .leafturn { position: absolute; z-index: 10; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: 0 50%; transform-style: preserve-3d; }
.reading .leafturn .side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #f6f0e3; }
.reading .leafturn .side .pg { left: 0; width: 100%; }
.reading .leafturn .side.back { transform: rotateY(180deg); }
.reading .leafturn .shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.reading .leafturn .front .shade { background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(255,255,255,.18) 80%, rgba(0,0,0,.08)); }
.reading .leafturn .back .shade { background: linear-gradient(270deg, rgba(0,0,0,.3), rgba(0,0,0,0) 40%); }
.reading .castshadow { position: absolute; z-index: 9; top: 0; bottom: 0; left: 50%; width: 50%; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 60%); opacity: 0; pointer-events: none; }
.reading .readctl { position: absolute; z-index: 20; display: flex; gap: 10px; }
.reading .readctl .g { width: 40px; height: 40px; border-radius: 20px; background: rgba(40,32,26,.08); border: 1px solid rgba(40,32,26,.1); display: grid; place-items: center; font-family: var(--sans); color: #5a4c3c; font-size: 15px; }

/* the closed Duo's outer screen: the book's own cover, edge to edge */
.foldcover { background: #000; }
.foldcover .cov { position: absolute; inset: 0; background-size: cover; background-position: center; transition: filter 1.6s ease; }
.foldcover .cov.dim { filter: brightness(.3); }
.foldcover .clock { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; opacity: .85; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ---------- the 3D iPhone Duo (only while it opens or closes) ---------- */
.duo3d { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; display: none; --HW: 485.5px; --H: 698px; --T: 24px; }
.duo3d.on { display: block; }
.duo3d .half { position: absolute; top: calc(var(--H) / -2); width: var(--HW); height: var(--H); transform-style: preserve-3d; }
.duo3d .half.base { left: 0; }
.duo3d .half.flap { left: calc(var(--HW) * -1); transform-origin: 100% 50%; }
.duo3d .dface { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(145deg, #45444a, #151517 38%, #2a292e 70%, #18181a); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 3px rgba(0,0,0,.6); overflow: hidden; }
.duo3d .flap .front { border-radius: 56px 0 0 56px; }
.duo3d .base .front { border-radius: 0 56px 56px 0; }
.duo3d .dface .scr { position: absolute; overflow: hidden; background: #0b0908; }
.duo3d .flap .front .scr { left: 10px; right: 0; top: 14.5px; bottom: 14.5px; border-radius: 46px 0 0 46px; }
.duo3d .base .front .scr { left: 0; right: 10px; top: 14.5px; bottom: 14.5px; border-radius: 0 46px 46px 0; }
.duo3d .dface .scr > .wide { position: absolute; top: 0; width: 951px; height: 669px; }
.duo3d .base .front .scr > .wide { left: -475.5px; }
.duo3d .back { transform: translateZ(calc(var(--T) * -1)) rotateY(180deg); }
.duo3d .base .back { border-radius: 56px 0 0 56px; background: linear-gradient(160deg, #3a3a40, #1c1c20 55%, #2c2c31); }
.duo3d .flap .back { border-radius: 0 56px 56px 0; }
.duo3d .flap .back .scr { left: 9.75px; right: 9.75px; top: 10px; bottom: 10px; border-radius: 10px 46px 46px 10px; }
.duo3d .flap .back .scr > * { position: absolute; inset: 0; }
.duo3d .back .cam { position: absolute; top: 22px; right: 24px; width: 128px; height: 34px; border-radius: 17px; background: #000; z-index: 3; }
.duo3d .back .cam::after { content: ""; position: absolute; right: 9px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #1d2a44, #05070c 70%); }
.duo3d .base .back .lens3 { position: absolute; top: 34px; left: 34px; width: 120px; height: 120px; border-radius: 34px; background: linear-gradient(145deg, #2d2d33, #141417); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); }
.duo3d .edge { position: absolute; background: linear-gradient(90deg, #2b2a2f, #6a6970 45%, #3a393e 60%, #1d1d21); }
.duo3d .edge.o { top: 40px; bottom: 40px; width: var(--T); }
.duo3d .base .edge.o { left: calc(var(--HW) - var(--T) / 2); transform: translateZ(calc(var(--T) / -2)) rotateY(90deg); }
.duo3d .flap .edge.o { left: calc(var(--T) / -2); transform: translateZ(calc(var(--T) / -2)) rotateY(-90deg); }
.duo3d .edge.t, .duo3d .edge.b { height: var(--T); left: 0; right: 0; background: linear-gradient(180deg, #2b2a2f, #66656c 45%, #3a393e 60%, #1d1d21); }
.duo3d .base .edge.t, .duo3d .base .edge.b { right: 40px; } .duo3d .flap .edge.t, .duo3d .flap .edge.b { left: 40px; }
.duo3d .edge.t { top: calc(var(--T) / -2); transform: translateZ(calc(var(--T) / -2)) rotateX(90deg); }
.duo3d .edge.b { top: calc(var(--H) - var(--T) / 2); transform: translateZ(calc(var(--T) / -2)) rotateX(-90deg); }
.duo3d .spine { position: absolute; top: 30px; bottom: 30px; left: calc(var(--T) * -1); width: calc(var(--T) * 2); border-radius: var(--T); background: linear-gradient(90deg, #1b1b1f, #77767d 40%, #4a494f 55%, #18181b); transform: rotateY(-90deg); }
.duo3d .glare { position: absolute; inset: 0; pointer-events: none; z-index: 4; border-radius: inherit; }

/* ---------- feature sections ---------- */
.feat { max-width: 1360px; margin: 0 auto; padding: clamp(56px, 9svh, 110px) var(--gutter); display: grid; grid-template-columns: minmax(300px, .62fr) 1.38fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.feat.rev { grid-template-columns: 1.38fr minmax(300px, .62fr); }
.feat.rev .feat-copy { order: 2; }
.feat-copy { display: flex; flex-direction: column; gap: 16px; }
.feat-stage { position: relative; width: 100%; height: clamp(360px, 68svh, 680px); }
.feat-stage .design { position: absolute; left: 50%; top: 50%; width: calc(var(--dw) * 1px); height: calc(var(--dh) * 1px); transform: translate(-50%, -50%) scale(var(--k, .6)); }
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: s; }
.steps li { position: relative; padding: 10px 0 10px 18px; font-size: 15px; line-height: 1.45; color: var(--faint); transition: color .5s; }
.steps li b { color: rgba(255,255,255,.6); font-weight: 600; transition: color .5s; }
.steps li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: rgba(255,255,255,.12); }
.steps li::after { content: ""; position: absolute; left: 0; top: 12px; width: 3px; height: 0; border-radius: 2px; background: #fff; }
.steps li.on { color: var(--muted); } .steps li.on b { color: #fff; }
.steps li.on::after { height: calc(100% - 24px); transition: height var(--dur, 4s) linear; }
.steps li.done::after { height: calc(100% - 24px); opacity: .35; }
@media (max-width: 960px) {
  .hero, .feat, .feat.rev { grid-template-columns: 1fr; }
  .feat.rev .feat-copy { order: 0; }
  .hero { padding-top: 76px; gap: 8px; }
  .hero-copy { align-items: flex-start; gap: 12px; }
  .hero-copy .lyre { display: none; }
  .hero .display { font-size: 48px; }
  .tour-stage { height: min(64svh, 600px); }
  .steps li { padding: 7px 0 7px 16px; font-size: 14px; }
  .feat-stage { height: auto; aspect-ratio: var(--mdw, var(--dw)) / var(--mdh, var(--dh)); }
  .feat-stage .design { width: calc(var(--mdw, var(--dw)) * 1px); height: calc(var(--mdh, var(--dh)) * 1px); }
}

/* read better */
#betterStage .sheet { position: absolute; left: 0; top: 0; width: 570px; height: 640px; margin: 0; padding: 40px 46px 92px; }
#betterStage .sheet .text { font-size: 20px; }
.todaycard, .review { position: absolute; border-radius: 30px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); padding: 20px 22px; }
.todaycard { left: 600px; top: 0; width: 380px; height: 300px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; gap: 8px 18px; align-items: center; }
.todaycard > .eyebrow { grid-column: 1 / -1; }
.midlens { width: 150px; height: 150px; }
.midlens .num { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-size: 34px; }
.midlens .num small { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.legend3 { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.legend3 span { display: flex; align-items: center; gap: 9px; transition: opacity .4s; }
.legend3 i { width: 8px; height: 22px; border-radius: 4px; }
.week { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.week svg { width: 22px; height: 27px; }
.week .d.lit svg { animation: lightup .7s var(--spring); }
@keyframes lightup { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: none; } }
.week .cnt7 { font-weight: 700; color: #fff; font-size: 15px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.week .cnt7 small { font-weight: 400; font-size: 10.5px; color: var(--muted); }
.review { left: 600px; top: 324px; width: 380px; height: 316px; display: flex; flex-direction: column; gap: 12px; }
.rhead { display: flex; justify-content: space-between; align-items: center; }
.saved-chip { height: 24px; padding: 0 10px; border-radius: 12px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .5s var(--spring); }
.saved-chip.on { opacity: 1; transform: none; }
.review .deck { height: 220px; }
.review .fcard .w { font-size: 32px; }
.flyword { transition: left .9s var(--ease), top .9s var(--ease), opacity .4s, transform .9s var(--ease); }
#betterStage .banner { position: absolute; left: 285px; top: -26px; transform: translate(-50%, -16px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 26px; background: rgba(40,34,30,.85); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transition: all .7s var(--spring); white-space: nowrap; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); font-weight: 600; font-size: 15px; z-index: 30; }
#betterStage .banner.on { transform: translate(-50%, 0); opacity: 1; }
#betterStage .banner .ring { width: 32px; height: 32px; }
@media (max-width: 960px) {
  #betterStage { --mdw: 570; --mdh: 1000; }
  #betterStage .todaycard { left: 0; top: 664px; width: 278px; height: 336px; grid-template-columns: 1fr; justify-items: center; padding: 16px; gap: 8px; }
  #betterStage .legend3 { flex-direction: row; gap: 10px; font-size: 11px; }
  #betterStage .week { width: 100%; }
  #betterStage .review { left: 292px; top: 664px; width: 278px; height: 336px; padding: 16px; }
  #betterStage .review .deck { height: 230px; }
  #betterStage .banner { top: 600px; }
}

/* friends */
#frStage .device.phone { position: absolute; left: 288px; top: 2px; --w: 402px; --h: 874px; }
.notif { width: 330px; }
.podcard { flex-direction: column; align-items: stretch; width: 300px; white-space: normal; }
.togcard { flex-direction: column; align-items: stretch; width: 320px; white-space: normal; gap: 8px; }
.tog { display: flex; gap: 12px; align-items: center; }
.tog img { width: 48px; border-radius: 2px 4px 4px 2px; }
.tog b { font-family: var(--serif); font-size: 15px; display: block; }
.tog .dots { position: relative; height: 14px; margin: 6px 0 2px; }
.tog .dots::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.18); }
.tog .dots i { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 5px; transition: left 1.4s var(--ease); }
@media (max-width: 960px) {
  #frStage { --mdw: 424; --mdh: 896; }
  #frStage .device.phone { left: 0; top: 0; }
  #frStage .float { display: none; }
  #frStage .notif { left: 12px !important; top: 58px !important; width: 400px; transform: translateY(-30px) scale(.96); }
  #frStage .notif.on { transform: none; }
}

/* the Muse */
.sheet.small { position: absolute; left: 0; top: 70px; width: 460px; height: 440px; margin: 0; padding: 34px 38px; }
.sheet.small .text { font-size: 19px; }
.sel { border-radius: 3px; transition: background .4s, box-shadow .4s; }
.sel.on { background: rgba(10,132,255,.25); box-shadow: 0 0 0 2px rgba(10,132,255,.25); }
.selmenu { position: absolute; left: 70px; top: 32px; display: flex; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(30,26,22,.92); box-shadow: 0 14px 30px rgba(0,0,0,.35); font-size: 13.5px; font-weight: 600; color: #fff; opacity: 0; transform: translateY(8px) scale(.95); transition: all .4s var(--spring); }
.selmenu.on { opacity: 1; transform: none; }
.selmenu span { padding: 7px 11px; border-radius: 12px; display: flex; align-items: center; gap: 6px; }
.selmenu span.on { background: rgba(255,255,255,.16); }
.lyre.mini { width: 16px; height: 16px; }
#museStage .ask { position: absolute; left: 400px; top: 30px; width: 540px; transform: translateY(20px); opacity: 0; transition: all .7s var(--spring); }
#museStage .ask.on { transform: none; opacity: 1; }
#museStage .ask.away { transform: translateY(-20px) scale(.96); opacity: 0; }
#museStage .recap { position: absolute; left: 430px; top: 60px; width: 500px; padding: 20px 22px; border-radius: 28px; background: rgba(40,34,30,.78); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); opacity: 0; transform: translateY(24px) scale(.96); transition: all .7s var(--spring); display: flex; flex-direction: column; gap: 12px; }
#museStage .recap.on { opacity: 1; transform: none; }
.recap .h { display: flex; align-items: center; gap: 8px; margin: 0; }
.recap .rc { padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.06); opacity: 0; transform: translateY(10px); transition: all .6s var(--spring); }
.recap .rc.on { opacity: 1; transform: none; }
.recap .rc b { font-size: 13.5px; } .recap .rc p { margin: 3px 0 0; font-family: var(--serif); font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.85); }
.recap .rc.now { border: 1px solid rgba(255,159,10,.4); }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-edge); font-size: 13px; font-weight: 600; width: fit-content; color: var(--muted); }
.ai-badge span { background: linear-gradient(90deg, #ffb340, #ff5f8f, #a77bff, #4fc3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 960px) {
  #museStage { --mdw: 560; --mdh: 900; }
  #museStage .sheet.small { left: 0; top: 0; width: 560px; height: 360px; }
  #museStage .ask { left: 10px; top: 300px; width: 540px; }
  #museStage .recap { left: 10px; top: 330px; width: 540px; }
}

/* Hardcover */
.hc-eyebrow { display: flex; align-items: center; gap: 8px; }
.hc-eyebrow img { width: 26px; height: 26px; }
.hc-lore { position: absolute; left: 0; top: 70px; width: 340px; display: flex; flex-direction: column; gap: 12px; }
.hc-logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 24px; margin-bottom: 4px; }
.hc-logo img { width: 40px; height: 40px; border-radius: 10px; }
.shelfcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid var(--hair); font-size: 13.5px; transition: background .4s, border-color .4s, transform .4s var(--spring); }
.shelfcard img { width: 38px; border-radius: 2px 4px 4px 2px; flex: none; }
.shelfcard b { display: block; font-size: 14px; }
.shelfcard span { color: var(--muted); font-size: 12.5px; } .shelfcard em { font-style: normal; color: #fff; font-weight: 700; }
.shelfcard.lit { background: rgba(99,102,241,.2); border-color: rgba(129,132,255,.6); transform: scale(1.02); }
.stars { display: inline-flex; gap: 4px; font-size: 18px; }
.stars i { font-style: normal; color: rgba(255,255,255,.2); transition: color .25s, transform .3s var(--spring); position: relative; }
.stars i.on { color: #ffcc33; transform: scale(1.12); }
.stars i.half.on { background: linear-gradient(90deg, #ffcc33 50%, rgba(255,255,255,.2) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-wire { position: absolute; left: 340px; top: 110px; width: 130px; height: 400px; overflow: visible; }
.packet { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 6px; background: #a5a8ff; box-shadow: 0 0 14px #8b8eff, 0 0 4px #fff; opacity: 0; }
.hc-profile { position: absolute; left: 470px; top: 0; width: 510px; padding: 20px; border-radius: 30px; background: linear-gradient(160deg, rgba(79,70,229,.22), rgba(30,27,75,.35)); border: 1px solid rgba(165,168,255,.28); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 50px 100px -40px rgba(0,0,0,.85); display: flex; flex-direction: column; gap: 14px; }
.hcp-head { display: flex; align-items: center; gap: 12px; }
.hcp-head .hcm { width: 44px; height: 44px; }
.hcp-head b { font-size: 18px; display: block; } .hcp-head span { font-size: 12.5px; color: var(--muted); }
.hcp-head .imp { margin-left: auto; font-size: 12px; padding: 6px 11px; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--muted); opacity: 0; transition: opacity .5s; }
.hcp-head .imp.on { opacity: 1; } .hcp-head .imp b { display: inline; font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.hcp-shelves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hcp-shelves .sh { padding: 10px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 11.5px; color: var(--muted); transition: background .4s; }
.hcp-shelves .sh b { display: block; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.hcp-shelves .sh.lit { background: rgba(129,132,255,.3); }
.hcp-now, .hcp-review { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.06); transition: background .4s; }
.hcp-now.lit, .hcp-review.lit { background: rgba(129,132,255,.25); }
.hcp-now img, .hcp-review img { width: 40px; border-radius: 2px 4px 4px 2px; }
.hcp-now > div { flex: 1; } .hcp-now b { font-size: 14px; }
.prog { height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); margin: 6px 0 3px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 31%; background: #a5a8ff; transition: width 1s var(--ease); }
.hcp-now span { font-size: 12px; color: var(--muted); }
.hcp-review { opacity: .45; } .hcp-review.lit { opacity: 1; }
.hcp-review p { margin: 2px 0 0; font-family: var(--serif); font-size: 14px; }
.hcp-trend .row { gap: 10px; margin-top: 8px; } .hcp-trend .bk { width: 74px; }
#hcStage .why { position: absolute; left: 0; top: 470px; width: 400px; padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid var(--hair); display: flex; gap: 14px; align-items: center; opacity: 0; transform: translateY(14px); transition: all .7s var(--spring); }
#hcStage .why.on { opacity: 1; transform: none; }
.why img { width: 54px; border-radius: 2px 4px 4px 2px; box-shadow: 0 8px 16px rgba(0,0,0,.5); flex: none; }
.why .k { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #a5a8ff; }
.why b { font-family: var(--serif); font-size: 17px; display: block; }
.why span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 960px) {
  #hcStage { --mdw: 520; --mdh: 1010; }
  #hcStage .hc-lore { left: 0; top: 0; width: 520px; }
  #hcStage .hc-wire { display: none; }
  #hcStage .hc-profile { left: 0; top: 300px; width: 520px; }
  #hcStage .why { left: 0; top: 900px; width: 520px; }
}

/* more: a bento of smaller things */
.more { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 9svh, 110px) var(--gutter); }
.more-head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 36px; }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tile { position: relative; border-radius: 30px; background: rgba(255,255,255,.055); border: 1px solid var(--hair); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; min-height: 260px; }
.tile.big { grid-row: span 2; }
.tile-copy h3 { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.tile-copy p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); max-width: 30em; }
.tile-art { position: relative; flex: 1; min-height: 150px; }
#tPrivate { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; min-height: 180px; }
#tPrivate .tile-art { flex: none; width: 300px; min-height: 130px; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile.big { grid-row: auto; } #tPrivate { flex-direction: column; align-items: stretch; } #tPrivate .tile-art { width: 100%; } }
.series-mini { min-height: 360px; perspective: 900px; }
.series-mini img { position: absolute; left: 50%; top: 40%; width: 130px; aspect-ratio: 2/3; margin: -98px 0 0 -65px; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: 0 20px 40px rgba(0,0,0,.55); transition: transform 1.1s var(--ease), opacity .9s, filter .9s; }
.series-mini img.miss { filter: grayscale(1) brightness(.65); outline: 1.5px dashed rgba(255,255,255,.5); outline-offset: 3px; }
.series-mini .smeta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; opacity: 0; transition: opacity .6s; }
.series-mini .smeta.on { opacity: 1; }
.series-mini .smeta b { font-family: var(--serif); font-size: 22px; } .series-mini .smeta span { font-size: 12.5px; color: var(--muted); }
.series-mini .seg { max-width: 300px; margin-top: 8px; }
.seg i.own { background: rgba(48,209,88,.45); }
.soonrow { position: absolute; inset: 0; display: flex; gap: 14px; justify-content: center; align-items: center; }
.soonrow .sc { width: 104px; }
.soonrow .sc:nth-child(2) { transform: translateY(-12px) scale(1.08); }
.freerow { position: absolute; inset: 0 0 40px; display: flex; justify-content: center; align-items: center; }
.freerow img { width: 92px; border-radius: 2px 5px 5px 2px; box-shadow: 0 16px 30px rgba(0,0,0,.55); margin: 0 -14px; transition: transform .6s var(--spring); }
.freerow img:nth-child(1) { transform: rotate(-8deg) translateY(8px); } .freerow img:nth-child(2) { transform: rotate(-3deg); z-index: 1; } .freerow img:nth-child(3) { transform: rotate(3deg); z-index: 1; } .freerow img:nth-child(4) { transform: rotate(8deg) translateY(8px); }
.freerow img.pop { transform: translateY(-16px) scale(1.08) !important; z-index: 2; }
.getpill { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 36px; padding: 0 16px; border-radius: 18px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14px; display: flex; align-items: center; transition: background .3s, color .3s; white-space: nowrap; }
.getpill.done { background: var(--green); color: #fff; }
.files { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 10px; }
.files .doc { width: 64px; height: 84px; border-radius: 8px 18px 8px 8px; background: linear-gradient(160deg, #fff, #dfe3ee); color: #4F63B8; font-size: 12px; font-weight: 800; display: grid; place-items: end center; padding-bottom: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.files .doc.pdf { color: #c0392b; transform: rotate(6deg) translateY(6px); }
.devs { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 10px; align-items: flex-end; }
.devs i { display: block; border-radius: 10px; border: 3px solid #3a393f; background: linear-gradient(160deg, rgba(255,159,10,.35), rgba(79,70,229,.3)); }
.devs .d-pad { width: 98px; height: 70px; } .devs .d-phone { width: 34px; height: 70px; border-radius: 9px; } .devs .d-duo { width: 66px; height: 48px; border-radius: 8px; }
.devs i.ping { animation: devping 1.2s ease; }
@keyframes devping { 0% { box-shadow: 0 0 0 0 rgba(255,159,10,.7); } 100% { box-shadow: 0 0 0 16px rgba(255,159,10,0); } }

/* CTA */
.cta { min-height: 80svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px var(--gutter) 60px; }
.cta .lyre { width: 110px; height: 110px; margin: 0 auto 22px; }
.ask { padding: 22px; border-radius: 30px; background: rgba(28,24,30,.78); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 14px; z-index: 3; }
/* bento spacing: each picture keeps its own room above its words */
.tile-art { margin-bottom: 18px; }
.series-mini { min-height: 400px; }
.series-mini img { top: 38%; }
.series-mini .smeta { bottom: -6px; }
#tSoon .tile-art, #tFree .tile-art { min-height: 200px; }
.soonrow .sc { width: 88px; }
.freerow { inset: 0 0 46px; } .freerow img { width: 84px; }
#tPrivate .tile-art { width: 360px; min-height: 120px; }
.files { left: 10px; } .devs { right: 10px; }

@media (max-width: 960px) { .tour-stage { transition: height .9s var(--ease); } }

.hero, .feat, .more { overflow-x: clip; }
@media (max-width: 960px) {
  #hcStage { --mdh: 1090; }
  #hcStage .hc-profile { top: 380px; }
  #hcStage .why { top: 990px; }
}

/* ======================================================================
   v4 — a broader headline, Goodreads coming over, friends on the Duo, a bento that fits one screen
   ====================================================================== */
.rot { position: relative; display: inline-grid; vertical-align: top; }
.rot em { grid-area: 1 / 1; font-style: italic; font-weight: 500; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .6s, transform .7s var(--ease), filter .6s; white-space: nowrap; }
.rot em.on { opacity: 1; transform: none; filter: none; }
.rot em.out { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.pillars { display: flex; flex-wrap: wrap; gap: 8px; }
.pillars a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 10px; border-radius: 17px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-edge); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .2s; }
.pillars a:hover { background: rgba(255,255,255,.14); }
.pillars svg, .pillars img { width: 18px; height: 18px; flex: none; }
.importer { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 10px 16px 10px 14px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid var(--hair); text-decoration: none; }
.importer:hover { background: rgba(255,255,255,.1); }
.importer .gr { font-family: Georgia, serif; font-size: 15px; font-weight: 700; color: #e9dcc6; letter-spacing: -.2px; }
.importer img { width: 26px; height: 26px; flex: none; } .importer img.lore { border-radius: 7px; }
.importer .pipe { position: relative; width: 26px; height: 6px; flex: none; }
.importer .pipe i { position: absolute; top: 1px; width: 4px; height: 4px; border-radius: 2px; background: #a5a8ff; opacity: 0; animation: pipe 1.4s linear infinite; }
.importer .pipe i:nth-child(2) { animation-delay: .45s; } .importer .pipe i:nth-child(3) { animation-delay: .9s; }
@keyframes pipe { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 22px; opacity: 0; } }
.importer .imp-t { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.25; margin-left: 4px; }
.importer .imp-t b { display: inline; font-variant-numeric: tabular-nums; }
.importer .imp-t small { font-size: 12px; color: var(--muted); }
.hero-copy { gap: 16px; }

/* friends, on the Duo (two columns) or an iPhone (one) */
#frDev { position: absolute; left: 4px; top: 1px; }
.fr2 .fcols { position: absolute; left: 18px; right: 18px; top: 58px; display: flex; flex-direction: column; gap: 22px; transition: transform .9s var(--ease); }
.fr2.duo .fcols { flex-direction: row; top: 22px; right: 92px; left: 26px; gap: 44px; }
.fr2 .fcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fr2.duo .fcol { flex: 1; }
.fr2 .ftitle { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.facesbar2 { display: flex; gap: 14px; }
.facesbar2 .fav .av, .fr2 .av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; flex: none; }
.avw { border-radius: 50%; }
.avw.now { box-shadow: 0 0 0 2.5px #1a1512, 0 0 0 5px var(--green); }
.avw.pulse { animation: frpulse 1.4s ease 2; }
@keyframes frpulse { 50% { box-shadow: 0 0 0 2.5px #1a1512, 0 0 0 9px rgba(48,209,88,.5); } }
.nowcard { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 26px; background: rgba(255,255,255,.07); border: 1px solid var(--hair); }
.nowcard .cov { position: relative; width: 112px; flex: none; }
.nowcard .cov img { width: 100%; border-radius: 3px 7px 7px 3px; box-shadow: 0 16px 30px rgba(0,0,0,.6); }
.nowcard .cov .onc { position: absolute; left: -10px; bottom: -10px; width: 40px; height: 40px; font-size: 15px; box-shadow: 0 0 0 2.5px #1a1512, 0 0 0 5px var(--green); }
.nowcard .nowtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nowcard b { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.fr2 .sharedline .who { border-color: #241c16; }
.bchips { display: flex; gap: 6px; }
.bchips span { height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255,255,255,.08); border: 1px solid var(--hair); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; transition: background .3s, color .3s; white-space: nowrap; }
.bchips span.on { background: #fff; color: #1d1611; }
.podium2 { display: flex; align-items: flex-end; justify-content: center; gap: 12px; height: 210px; padding-top: 6px; }
.podium2 .pp { width: 30%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.podium2 .pp small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.podium2 .blk { width: 100%; height: 0; border-radius: 16px 16px 6px 6px; background: rgba(255,255,255,.1); border: 1px solid var(--glass-edge); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 24px; transition: height .8s var(--spring); overflow: hidden; }
.podium2 .pp.up .blk { height: var(--h); }
.podium2 .pp.me .blk { background: rgba(255,159,10,.28); border-color: rgba(255,159,10,.65); }
.youline { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: rgba(255,159,10,.14); border: 1px solid rgba(255,159,10,.4); font-size: 13.5px; font-weight: 600; }
.youline .pos { width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: #1d1611; display: grid; place-items: center; font-size: 12px; }
.youline em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.acts { display: flex; flex-direction: column; gap: 8px; }
.act { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid var(--hair); font-size: 13px; line-height: 1.3; }
.act .av { width: 36px; height: 36px; font-size: 14px; }
.act b { display: block; font-size: 13.5px; } .act span { color: var(--muted); font-size: 12px; }
.act .clap { position: relative; margin-left: auto; width: 38px; height: 38px; flex: none; border-radius: 19px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid var(--glass-edge); transition: background .3s, transform .3s var(--spring); }
.act .clap.sent { background: rgba(255,159,10,.35); transform: scale(1.12); }
.banner2 { position: absolute; z-index: 60; top: 10px; left: 50%; width: 360px; margin-left: -180px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 22px; background: rgba(60,56,52,.82); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: 0 20px 40px -14px rgba(0,0,0,.8); font-size: 12.5px; line-height: 1.3; opacity: 0; transform: translateY(-40px) scale(.96); transition: all .6s var(--spring); }
.banner2.on { opacity: 1; transform: none; }
.banner2 img { width: 34px; height: 34px; border-radius: 9px; } .banner2 b { display: block; font-size: 13px; } .banner2 > span { margin-left: auto; align-self: flex-start; font-size: 11px; color: var(--muted); }
.fr2:not(.duo) .banner2 { top: 54px; }
.fr2.duo .banner2 { left: 25%; }
.fr2.duo .fr2tabs .tabbar { left: auto; right: 10px; top: auto; bottom: 20px; width: 56px; height: auto; flex-direction: column; padding: 5px 0; }
.fr2.duo .fr2tabs .tab { width: 46px; height: 46px; flex: none; font-size: 0; gap: 0; }

/* bento: the whole grid fits one screen on a computer */
.more { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; padding-bottom: 32px; max-width: 1360px; }
.more-head { margin-bottom: 22px; gap: 8px; }
.bento { grid-template-columns: 1.25fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; grid-auto-rows: auto; height: clamp(520px, calc(100svh - 230px), 700px); gap: 14px; }
.tile { min-height: 0; padding: 18px; border-radius: 26px; }
.tile.big { grid-row: 1 / 3; }
#tPrivate { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
#tPrivate .tile-art { width: auto; }
.tile-art { min-height: 0; margin-bottom: 12px; overflow: visible; }
.tile-copy h3 { font-size: 18px; }
.tile-copy p { font-size: 13px; margin-top: 4px; }
.series-mini { min-height: 0; }
.series-mini img { width: 112px; margin: -84px 0 0 -56px; top: 42%; }
.series-mini .smeta { bottom: 0; }
.soonrow .sc { width: 70px; } .soonrow .sc:nth-child(2) { transform: translateY(-6px) scale(1.08); }
.freerow { inset: 0 0 40px; } .freerow img { width: 66px; margin: 0 -10px; }
.files .doc { width: 50px; height: 66px; font-size: 10px; } .devs .d-pad { width: 74px; height: 52px; } .devs .d-phone { width: 26px; height: 52px; } .devs .d-duo { width: 50px; height: 36px; }
.queue-mini { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.queue-mini .q { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: 12.5px; }
.queue-mini .q span { width: 18px; font-family: var(--serif); font-weight: 700; color: var(--muted); }
.queue-mini .q img { width: 24px; border-radius: 1px 3px 3px 1px; }
.queue-mini .q em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--accent); font-weight: 600; }
.queue-mini .q img.hc { width: 18px; margin-left: auto; border-radius: 0; }
.queue-mini .q.new { opacity: 0; transform: translateY(10px); transition: all .6s var(--spring); }
.queue-mini .q.new.in { opacity: 1; transform: none; background: rgba(129,132,255,.22); }
.picks-mini { display: flex; align-items: center; justify-content: center; gap: 10px; }
.picks-mini .because { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: #ffcc33; }
.picks-mini .because img { width: 54px; border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.picks-mini .arrow { color: var(--muted); font-size: 18px; }
.picks-mini .pickrow { display: flex; }
.picks-mini .pickrow img { width: 50px; margin-left: -12px; border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 20px rgba(0,0,0,.55); opacity: 0; transform: translateX(-10px); transition: all .6s var(--spring); }
.picks-mini .pickrow img.in { opacity: 1; transform: none; }
.trend-mini { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding-bottom: 22px; }
.trend-mini .tr { position: relative; }
.trend-mini .tr img { width: 60px; border-radius: 2px 4px 4px 2px; box-shadow: 0 12px 24px rgba(0,0,0,.55); }
.trend-mini .tr:nth-child(1) img { width: 74px; }
.trend-mini .tr span { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.3); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.trend-mini .readers { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) and (min-width: 861px) { .bento { grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: repeat(3, 1fr); height: auto; } .tile { min-height: 230px; } .tile.big { grid-row: 1 / 3; } }
@media (max-width: 860px) {
  .more { min-height: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; gap: 10px; }
  .tile { min-height: 210px; padding: 14px; border-radius: 22px; }
  .tile.big { grid-column: 1 / -1; grid-row: auto; min-height: 330px; }
  .tile-copy h3 { font-size: 15px; } .tile-copy p { font-size: 12px; }
  .series-mini img { width: 96px; margin: -72px 0 0 -48px; }
}

/* phones: everything a size smaller, and only the live step says more than its name */
@media (max-width: 960px) {
  .feat { padding-top: 44px; padding-bottom: 44px; gap: 14px; }
  .feat-copy { gap: 10px; }
  .title { font-size: 30px; }
  .feat-copy .lede { font-size: 14.5px; }
  .steps { gap: 0; }
  .steps li { font-size: 13.5px; padding: 6px 0 6px 14px; }
  .steps li:not(.on) { color: transparent; height: 32px; overflow: hidden; }
  .steps li:not(.on) b { color: rgba(255,255,255,.55); }
  .steps li { transition: color .4s, height .4s; }
  .feat-stage { max-height: 62svh; }
  .hero .display { font-size: 42px; }
  .hero-copy .lede { font-size: 14.5px; }
  .pillars a { height: 30px; font-size: 12px; padding: 0 10px 0 8px; }
  .importer .imp-t small { display: none; }
  #hcStage { --mdw: 520; --mdh: 760; }
  #hcStage .hc-lore { gap: 8px; }
  #hcStage .hc-lore .hc-logo { display: none; }
  #hcStage .hc-profile { top: 250px; }
  #hcStage .hcp-trend, #hcStage .why { display: none; }
}
#tSoon .tile-art, #tFree .tile-art { min-height: 0; }
#tPrivate .tile-art { min-height: 0; }

/* hero copy: wider, no second lyre (the nav has one), so it all fits above the fold */
.hero { grid-template-columns: minmax(380px, .6fr) 1.4fr; }
.hero-copy .lyre#heroLyre { display: none; }
.hero .display { font-size: clamp(48px, 5.6vw, 84px); }
.pillars svg.lyre { width: 18px; height: 18px; }
.importer .imp-t { white-space: nowrap; }
#tPrivate .tile-art { flex: 1; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  #hcStage { --mdh: 840; }
  #hcStage .hc-profile { top: 310px; }
  .fr2:not(.duo) .statusbar { background: linear-gradient(180deg, #0b0908 62%, rgba(11,9,8,0)); height: 64px; }
}
.queue-mini .q b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 520px) {
  .queue-mini .q { font-size: 11.5px; gap: 6px; padding: 5px 7px; }
  .queue-mini .q em { display: none; }
  .picks-mini .because span, .picks-mini .arrow { display: none; }
  .picks-mini .pickrow img { width: 40px; }
}

@media (max-width: 960px) {
  .hero-copy { min-width: 0; }
  .importer { width: 100%; }
  .importer .imp-t { white-space: normal; }
  #hcStage { --mdh: 670; }
}

/* ======================================================================
   v5 — curl, no crease, saga tile, friends on the book's colours
   ====================================================================== */
.device .hinge { display: none; }
.reading .gutter { display: none; }

/* the page curl's layers, each the size of the spread */
.curl { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.curl .pg { background: #f6f0e3; }
.curl.flap { transform-origin: 0 0; }
.curl.flap .pg { background: #efe7d6; }
.curl.wrap { z-index: 9; filter: drop-shadow(-4px 2px 10px rgba(40,25,10,.28)); }
.curl.over { z-index: 10; overflow: hidden; }
.curl .strip { position: absolute; left: 0; top: 0; width: 2400px; height: 150px; transform-origin: 0 0; }
.curl .strip.sheen { background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.12) 14%, rgba(80,60,30,.05) 40%, rgba(80,60,30,.16)); }
.curl .strip.under { height: 90px; background: linear-gradient(180deg, rgba(40,25,10,.38), rgba(40,25,10,.08) 40%, rgba(40,25,10,0)); }

/* the EPUB you add, big enough to read, then into the shelf */
.lib .epub.big { left: 50%; top: 300px; transform: translate(-50%, -50%) scale(.7); opacity: 0; padding: 14px 18px 14px 14px; border-radius: 22px; gap: 14px; background: rgba(60,52,46,.78); transition: all .7s var(--spring); }
.lib .epub.big .doc { width: 48px; height: 62px; font-size: 10px; }
.lib .epub.big b { display: block; font-size: 15px; } .lib .epub.big span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lib .epub.big.in { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
.lib .epub.big.done span { color: #7ff0a0; }
.lib .epub.big.shrink { transform: translate(-50%, -50%) scale(.25); opacity: 0; transition: all .6s var(--ease); }
.newchip { position: absolute; top: -7px; right: -7px; z-index: 3; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--accent); color: #1d1611; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: all .5s var(--spring); }
.gbook.new .newchip, .sb-book.new .newchip { opacity: 1; transform: none; }
.gbook.new .glow { opacity: 1; }

/* hero teaser: words stay inside */
.importer { flex-wrap: nowrap; }
.importer .imp-t { white-space: normal; min-width: 0; flex: 1; }
.importer .imp-t > span { font-weight: 500; white-space: nowrap; }
.importer .imp-t small { display: block; }
.hero-copy { min-width: 0; }

/* friends on the book's own colours: no cards, words straight on the wash */
.fr2 .coverwash { z-index: 0; } .fr2 .coverwash + .dim { z-index: 0; }
.fr2 .fcols, .fr2 .banner2, .fr2 .statusbar, .fr2 .fr2tabs { z-index: 2; }
.fr2 .nowcard { background: none; border: 0; padding: 0; }
.fr2 .act { background: none; border: 0; border-radius: 0; padding: 6px 0; }
.fr2:not(.duo) .statusbar { background: linear-gradient(180deg, rgba(20,22,18,.9) 60%, rgba(20,22,18,0)); }
.together-h { margin-top: 4px; }
.together { display: flex; gap: 16px; }
.tg { width: 104px; display: flex; flex-direction: column; gap: 6px; transition: transform .5s var(--spring); }
.tg.lit { transform: translateY(-4px); }
.tg .tcov { position: relative; }
.tg .tcov img { width: 100%; border-radius: 2px 5px 5px 2px; box-shadow: 0 12px 24px rgba(0,0,0,.5); }
.tg .tcov .ring-badge { right: 4px; bottom: 4px; }
.tfaces { position: absolute; left: 4px; bottom: 4px; display: flex; }
.tfaces .av.mini { width: 24px !important; height: 24px !important; font-size: 10px !important; margin-right: -6px; box-shadow: 0 0 0 2px #1a1512; }
.tdots { position: relative; height: 12px; }
.tdots::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.2); }
.tdots i { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; border-radius: 5px; transition: left 1.2s var(--ease); box-shadow: 0 0 0 1.5px #1a1512; }
.tg small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.fr2.duo .fcol.a { gap: 14px; }
.fr2.duo .nowcard .cov { width: 96px; }

/* Hardcover: the Goodreads export comes in first */
.hc-gr, .hc-lore { transition: opacity .6s, transform .7s var(--ease); }
.hc-gr { position: absolute; left: 0; top: 70px; width: 340px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateX(-16px); pointer-events: none; }
.hc-gr.on { opacity: 1; transform: none; }
.hc-lore { opacity: 0; transform: translateX(-16px); }
.hc-lore.on { opacity: 1; transform: none; }
.hc-gr .grword { font-family: Georgia, serif; font-size: 26px; font-weight: 700; color: #e9dcc6; letter-spacing: -.3px; }
.hc-gr .grtag { margin-left: 8px; font-family: var(--sans); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--muted); }
.grrow { padding: 12px 14px; border-radius: 18px; background: rgba(233,220,198,.08); border: 1px solid rgba(233,220,198,.18); transition: all .5s; }
.grrow b { display: block; font-size: 14px; } .grrow span { font-size: 12.5px; color: var(--muted); }
.grrow.sent { background: rgba(129,132,255,.16); border-color: rgba(129,132,255,.45); }
.grnote { font-size: 12px; color: var(--faint); padding-left: 4px; }
.hcp-shelves { border-radius: 18px; transition: box-shadow .5s; }
.hcp-shelves.lit { box-shadow: 0 0 0 2px rgba(165,168,255,.6), 0 0 30px rgba(129,132,255,.35); }
@media (max-width: 960px) {
  #hcStage .hc-gr { left: 0; top: 0; width: 520px; gap: 8px; }
  #hcStage .hc-gr .grnote { display: none; }
}

/* bento: tiles that say AI, and friends' shelves */
.ai-mini { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ai-mini span { background: linear-gradient(90deg, #ffb340, #ff5f8f, #a77bff, #4fc3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fr-mini { display: flex; align-items: center; justify-content: center; gap: 12px; }
.frb { position: relative; }
.frb img { width: 62px; border-radius: 2px 4px 4px 2px; box-shadow: 0 12px 24px rgba(0,0,0,.5); }
.frb:nth-child(2) img { width: 74px; }
.fr-on { position: absolute; left: -7px; bottom: -7px; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 12px; box-shadow: 0 0 0 2px #1e1a16, 0 0 0 4px var(--green); }
.fr-on.pulse { animation: frpulse2 1.2s ease; }
@keyframes frpulse2 { 50% { box-shadow: 0 0 0 2px #1e1a16, 0 0 0 9px rgba(48,209,88,.45); } }
.shelves-mini { display: flex; align-items: center; justify-content: center; }
.fshelf { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fshelf .who { position: absolute; left: -12px; top: -10px; width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 12px; }
.fshelf b { font-size: 12.5px; padding-left: 20px; }
.fshelf .row3 { display: flex; gap: 8px; }
.fshelf img { width: 56px; border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.fshelf .bw { position: relative; }
.fshelf .plus { top: 4px; right: 4px; }

/* the saga tile: a library grows, and the series appears around it */
#sagaStage { height: auto; flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; }
#sagaStage .design > * { position: absolute; transition: opacity .7s, transform .8s var(--ease); }
.sb-shelf { left: 0; top: 0; width: 520px; height: 380px; }
.sb-h { position: absolute; left: 20px; top: 10px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.sb-book { position: absolute; left: calc(20px + var(--x) * 124px); top: calc(62px + var(--y) * 162px); width: 98px; transition: opacity .6s, filter .6s, transform .6s var(--spring); }
.sb-book img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 12px 24px rgba(0,0,0,.55); }
.sb-book.new { opacity: 0; transform: scale(.6); }
.s1 .sb-book.new { opacity: 1; transform: none; }
.sb-book.lit img { box-shadow: 0 0 0 2.5px rgba(255,159,10,.95), 0 0 26px rgba(255,159,10,.55); }
.s2 .sb-book:not(.sh) { opacity: .35; filter: grayscale(.6); }
.sb-file { left: 50%; top: 180px; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 22px; background: rgba(60,52,46,.82); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); white-space: nowrap; opacity: 0; transform: translate(-50%, -40px) scale(.9); }
.sb-file .doc { width: 46px; height: 60px; border-radius: 6px 14px 6px 6px; background: linear-gradient(160deg, #fff, #dfe3ee); color: #4F63B8; font-size: 10px; font-weight: 800; display: grid; place-items: end center; padding-bottom: 6px; }
.sb-file b { display: block; font-size: 16px; } .sb-file span { font-size: 13px; color: #7ff0a0; }
.sb-file.in { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
.sb-file.shelve { opacity: 0; transform: translate(-130%, 120px) scale(.3); }
.sb-found { left: 20px; right: 20px; top: 400px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(129,132,255,.18); border: 1px solid rgba(165,168,255,.45); opacity: 0; transform: translateY(16px); }
.sb-found img { width: 34px; height: 34px; } .sb-found b { display: block; font-size: 15px; } .sb-found span { font-size: 12.5px; color: var(--muted); }
.s2 .sb-found { opacity: 1; transform: none; }
.s3 .sb-found { transform: translateY(-392px); }
.s3 .sb-shelf { opacity: 0; transform: translateY(-30px) scale(.96); }
.sb-saga { left: 20px; right: 20px; top: 92px; opacity: 0; transform: translateY(20px); }
.s3 .sb-saga { opacity: 1; transform: none; }
.sb-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 12px; }
.sk { position: relative; }
.sk img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.sk.miss img { filter: grayscale(1) brightness(.6); outline: 1.5px dashed rgba(255,255,255,.5); outline-offset: 2px; }
.sk span { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.3); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.sk i { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 11px; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.4); }
.sk i.ok { background: var(--green); border-color: transparent; color: #fff; }
.s4 .sk.next img { filter: none; outline: 2.5px solid var(--accent); }
.sb-where { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); opacity: 0; transition: opacity .6s; }
.sb-where b { color: #fff; }
.s4 .sb-where { opacity: 1; }
.sb-where .seg { max-width: none; margin: 0; }
.sb-seq { left: 20px; right: 20px; top: 384px; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 24px; background: rgba(46,40,36,.92); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); opacity: 0; transform: translateY(24px) scale(.96); }
.sb-seq.on { opacity: 1; transform: none; }
.sb-seq img { width: 76px; border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.sb-seq b { display: block; font-family: var(--serif); font-size: 21px; } .sb-seq span { font-size: 12.5px; color: var(--muted); }
.sbtns { display: flex; gap: 8px; margin-top: 8px; }
.sbtns em { font-style: normal; height: 32px; padding: 0 13px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid var(--glass-edge); font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.sbtns em.g { background: var(--paper); color: var(--ink); border-color: transparent; }
@media (max-width: 860px) { .tile.big { min-height: 460px; } #sagaStage { min-height: 360px; } }

.importer { width: 100%; max-width: 470px; }

.fr2 .coverwash { filter: blur(50px) brightness(.62) saturate(1.35); }
.fr2 .coverwash + .dim { background: linear-gradient(180deg, rgba(10,8,6,.05), rgba(10,8,6,.4)); }
/* the saga tile's stage takes the tile's height, and the design fills it */
#tSeries .tile-art { position: relative; }
@media (min-width: 1101px) { .bento { grid-template-columns: 1.8fr 1fr 1fr 1fr; } }
@media (max-width: 960px) { .importer { flex-wrap: wrap; row-gap: 6px; } .importer .imp-t { flex-basis: 100%; margin-left: 0; } .importer .imp-t small { display: block; } }
.queue-mini .q em { white-space: nowrap; }

/* v6 — calmer: one line under the headline, a one-line teaser, titles-only tiles */
.importer { width: fit-content; max-width: 100%; padding: 8px 16px 8px 12px; border-radius: 20px; gap: 9px; flex-wrap: nowrap; }
.importer .imp-t { flex: none; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.importer .imp-t b { color: #fff; font-weight: 700; }
.importer .gr { font-size: 14px; }
.importer img { width: 22px; height: 22px; }
.importer .pipe { width: 18px; }
@keyframes pipe { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 14px; opacity: 0; } }
.tile:not(.big) .tile-copy h3 { font-size: 17px; line-height: 1.2; }
.tile:not(.big) .tile-art { margin-bottom: 10px; }
.queue-mini { gap: 5px; }
.picks-mini .because span { font-size: 11px; }
@media (max-width: 960px) {
  .hero-copy { gap: 12px; }
  .hero .display { font-size: 44px; }
  .hero-copy .lede { font-size: 15px; }
  .pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .pillars a { justify-content: flex-start; height: 34px; font-size: 12.5px; }
  .hero-ctas { gap: 10px; }
  .importer { flex-wrap: nowrap; width: 100%; justify-content: center; }
  .importer .imp-t { flex: none; font-size: 12.5px; }
  .importer .imp-t small { display: none; }
}
@media (max-width: 400px) { .importer .gr { display: none; } .importer .pipe:first-of-type { display: none; } }
@media (max-width: 860px) {
  .bento { gap: 10px; }
  .tile { min-height: 170px; padding: 12px; }
  .tile:not(.big) .tile-copy h3 { font-size: 14.5px; }
  .tile.big .tile-copy p { font-size: 12.5px; }
  .tile.big { min-height: 440px; }
  .queue-mini .q { padding: 4px 6px; }
  .queue-mini .q b { font-size: 11px; }
  .soonrow .sc { width: 54px; }
  .trend-mini .tr img { width: 46px; } .trend-mini .tr:nth-child(1) img { width: 56px; }
  .trend-mini .readers { display: none; } .trend-mini { padding-bottom: 0; }
  .frb img { width: 46px; } .frb:nth-child(2) img { width: 54px; } .fr-on { width: 22px; height: 22px; font-size: 10px; }
  .fshelf img { width: 42px; } .fshelf b { font-size: 11px; }
  .picks-mini .because img { width: 42px; } .picks-mini .pickrow img { width: 36px; }
  .ai-mini { font-size: 10.5px; }
}
.importer .imp-t b { display: inline-block; min-width: 2.9em; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .importer .pipe { display: none; }
  .importer .gr { display: inline; font-size: 13px; }
  .importer .imp-t { flex: none; white-space: nowrap; flex-basis: auto; margin-left: 2px; }
  .importer .imp-t b { min-width: 0; }
}
@media (max-width: 860px) {
  .soonrow .chip-tl { font-size: 8.5px; white-space: nowrap; padding: 0 5px; height: 16px; }
  .queue-mini .q:nth-child(2) { display: none; }
}

/* the Goodreads teaser: one line, sized by the column it sits in (not the window), so it can't spill */
.hero-copy { container-type: inline-size; }
.grt { display: inline-flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; padding: 9px 18px 9px 14px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid var(--hair); text-decoration: none; transition: background .2s; }
.grt:hover { background: rgba(255,255,255,.1); }
.grt-logos { display: flex; align-items: center; gap: 7px; flex: none; }
.grt .gr { font-family: Georgia, serif; font-size: 15px; font-weight: 700; color: #e9dcc6; letter-spacing: -.2px; }
.grt img { width: 22px; height: 22px; display: block; } .grt img.lore { border-radius: 6px; }
.grt .pipe { position: relative; width: 18px; height: 6px; flex: none; }
.grt .pipe i { position: absolute; top: 1px; width: 4px; height: 4px; border-radius: 2px; background: #a5a8ff; opacity: 0; animation: grpipe 1.4s linear infinite; }
.grt .pipe i:nth-child(2) { animation-delay: .45s; } .grt .pipe i:nth-child(3) { animation-delay: .9s; }
@keyframes grpipe { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 14px; opacity: 0; } }
.grt-t { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--muted); }
.grt-t b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; min-width: 3.4ch; text-align: right; }
@container (max-width: 420px) { .grt .pipe { display: none; } .grt { gap: 10px; padding: 8px 14px 8px 12px; } .grt-t { font-size: 13px; } }
@container (max-width: 300px) { .grt .gr { display: none; } }
@container (max-width: 380px) { .grt .gr { display: none; } }

/* v7 — the device's name is plain text over the stage; phones centre the hero */
.devname { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; height: 24px; min-width: 0; font-size: 14px; letter-spacing: .3px; color: rgba(255,255,255,.88); }
@media (max-width: 960px) {
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .lede { max-width: 24em; }
  .hero .display { width: 100%; }
  .pillars { width: 100%; max-width: 360px; }
  .pillars a { justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 8px; width: 100%; }
  .hero-ctas .pill.paper { width: 100%; max-width: 360px; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 1px 0 #fff; }
  .grt { margin: 0 auto; }
  .tour { margin-top: 10px; }
}

/* the Pacer and a held word inside the tour's reading scene */
.reading .tp-band { position: absolute; z-index: 6; border-radius: 7px; background: rgba(255,196,60,.24); box-shadow: 0 0 0 2000px rgba(30,24,18,.0); opacity: 0; transition: top .28s var(--ease), left .28s, width .28s, opacity .3s, box-shadow .4s; pointer-events: none; }
.reading .tp-band.on { opacity: 1; box-shadow: 0 0 0 2000px rgba(30,24,18,.22); }
.reading .tp-band i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px; background: rgba(255,160,20,.3); }
.reading .tp-ctl { position: absolute; z-index: 7; left: 237px; bottom: 22px; transform: translate(-50%, 12px); display: flex; gap: 8px; opacity: 0; transition: opacity .35s, transform .45s var(--spring); }
.reading .tp-ctl.on { opacity: 1; transform: translate(-50%, 0); }
.reading .tp-ctl span { height: 40px; min-width: 40px; padding: 0 13px; border-radius: 20px; background: rgba(40,32,26,.82); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reading .tp-ctl span.go { background: var(--accent); color: #1d1611; }
.reading .tp-word { position: absolute; z-index: 6; border-radius: 4px; background: rgba(255,159,10,.0); transition: background .3s, box-shadow .3s; pointer-events: none; }
.reading .tp-word.on { background: rgba(255,159,10,.38); box-shadow: 0 0 0 3px rgba(255,159,10,.38); }
.reading .tp-def { z-index: 8; width: 300px; }
.reading .tp-toast { position: absolute; z-index: 9; left: 50%; top: 14px; transform: translate(-50%, -30px); opacity: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: rgba(40,34,30,.9); color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); transition: all .5s var(--spring); }
.reading .tp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.reading .tp-toast svg { color: #7ff0a0; }

/* Read better: what each step gives you, in a strip under the page */
#betterStage .sheet { height: 500px; padding-bottom: 76px; }
#betterStage .sheet .pacer-ctl { bottom: 14px; }
.outcome { position: absolute; left: 0; top: 516px; width: 570px; height: 124px; padding: 14px 20px; border-radius: 26px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow: hidden; }
.oc-k { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.oc { position: absolute; left: 20px; right: 20px; top: 38px; bottom: 14px; display: flex; align-items: center; gap: 20px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--spring); }
.oc.on { opacity: 1; transform: none; }
.oc-n { flex: none; width: 250px; }
.oc-n b { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; }
.oc-n em { font-style: normal; font-size: 16px; font-weight: 600; margin-left: 6px; color: rgba(255,255,255,.9); }
.oc-n span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.spark { flex: 1; height: 64px; overflow: visible; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.6s var(--ease); filter: drop-shadow(0 0 6px rgba(255,159,10,.5)); }
.spark circle { fill: #fff; opacity: 0; transition: opacity .3s; }
.ocwords { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.ocwords i { font-family: var(--serif); font-style: italic; font-size: 15px; padding: 4px 11px; border-radius: 14px; background: rgba(255,255,255,.09); }
.ocwords i.new { background: rgba(48,209,88,.25); opacity: 0; transform: scale(.6); transition: all .5s var(--spring); }
.ocwords i.new.in { opacity: 1; transform: none; }
.stage3 { flex: 1; display: flex; gap: 4px; height: 12px; border-radius: 6px; overflow: hidden; }
.stage3 i { transition: flex .7s var(--ease); }
.spines { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 50px; }
.spines i { width: 8px; border-radius: 2px; opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .45s var(--spring); }
.spines i.in { opacity: 1; transform: none; }
@media (max-width: 960px) {
  #betterStage { --mdh: 1010; }
  #betterStage .sheet { height: 510px; }
  #betterStage .outcome { top: 526px; }
  #betterStage .todaycard, #betterStage .review { top: 666px; height: 344px; }
  #betterStage .banner { top: 470px; }
}

/* saga tile, told in order: shelf → stack → collection page */
#sagaStage .sb-book { transition: left .8s var(--ease), top .8s var(--ease), transform .8s var(--ease), opacity .6s, filter .6s; }
#sagaStage .s2:not(.s3) .sb-book:not(.sh) { opacity: .35; filter: grayscale(.6); }
#sagaStage .s3 .sb-book { opacity: 1; filter: none; }
.sb-stacklabel { position: absolute; left: 20px; top: 216px; width: 110px; font-size: 12.5px; line-height: 1.3; color: var(--muted); opacity: 0; transition: opacity .5s .5s; }
.sb-stacklabel b { display: block; color: #fff; font-size: 13px; }
.s3 .sb-stacklabel { opacity: 1; }
.s3 .sb-book:not(.sh) .newchip, .s3 .sb-book.new .newchip { opacity: 0; }
/* the old states, re-timed: the shelf stays until the stack is opened */
#sagaStage .s3:not(.s4) .sb-shelf { opacity: 1; transform: none; }
#sagaStage .s3:not(.s4) .sb-saga { opacity: 0; }
#sagaStage .s3 .sb-found { transform: translateY(0); }
#sagaStage .s3:not(.s4) .sb-found { opacity: 0; transform: translateY(16px); }
/* opening it pushes the series page in from the right, the shelf slides under */
#sagaStage .sb-saga { transform: translateX(110%); opacity: 1; top: 20px; transition: transform .75s var(--ease), opacity .5s; }
#sagaStage .s4 .sb-saga { transform: none; }
#sagaStage .s4 .sb-shelf { opacity: .0; transform: translateX(-28%); transition: opacity .7s, transform .75s var(--ease); }
#sagaStage .s4 .sb-found { opacity: 0; }
.sb-sh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sb-sh .back { width: 34px; height: 34px; border-radius: 17px; background: rgba(255,255,255,.12); border: 1px solid var(--glass-edge); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.sb-sh b { font-family: var(--serif); font-size: 26px; display: block; line-height: 1.1; }
#sagaStage .s4 .sk.next img { filter: grayscale(1) brightness(.6); outline: 1.5px dashed rgba(255,255,255,.5); }
#sagaStage .s5 .sk.next img { filter: none; outline: 2.5px solid var(--accent); }
#sagaStage .sb-where { opacity: 0; }
#sagaStage .s5 .sb-where { opacity: 1; }
#sagaStage .sb-seq { top: 400px; }
@media (max-width: 960px) { .hero .display .rot { display: grid; justify-items: center; } }
.hero-copy .pillars svg.lyre { display: block; }

/* the teaser: the flow is the message, at every size; on narrow columns the words go under the logos */
.grt .pipe { width: 30px; height: 8px; display: block; }
.grt .pipe i { width: 6px; height: 6px; top: 1px; border-radius: 3px; background: #b9bbff; box-shadow: 0 0 6px rgba(165,168,255,.9); animation: grflow 1.5s linear infinite; }
.grt .pipe i:nth-child(2) { animation-delay: .5s; } .grt .pipe i:nth-child(3) { animation-delay: 1s; }
.grt .pipe + img + .pipe i { animation-delay: .75s; } .grt .pipe + img + .pipe i:nth-child(2) { animation-delay: 1.25s; } .grt .pipe + img + .pipe i:nth-child(3) { animation-delay: 1.75s; }
@keyframes grflow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 24px; opacity: 0; } }
.grt-t { color: rgba(255,255,255,.88); font-weight: 600; }
@container (max-width: 420px) {
  .grt { flex-direction: column; gap: 6px; padding: 10px 20px; border-radius: 20px; }
  .grt .pipe { display: block; }
  .grt .gr { display: inline; }
  .grt-t { font-size: 13px; }
}

/* the lyre, live: the nav's mark is drawn, not a picture, so it can play */
.brand-ic { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(160deg, #222a42, #0f1424); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); display: grid; place-items: center; overflow: visible; }
.brand-ic .lyre { width: 26px; height: 26px; }
.lyre .wind, .lyre .leaves { pointer-events: none; }
@media (min-width: 961px) and (min-height: 760px) { .hero-copy .lyre#heroLyre { display: block; width: 88px; height: 88px; margin-bottom: -4px; } }

/* the app icon leads the hero, then lives in the top bar */
.hero-icon, .icon-flyer { border-radius: 23%; background: linear-gradient(160deg, #26304d, #0f1424 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 26px 50px -18px rgba(0,0,0,.8), 0 0 70px -12px rgba(110,130,230,.38); display: grid; place-items: center; overflow: visible; }
.hero-icon { width: 108px; height: 108px; flex: none; transition: opacity .2s; }
.hero-icon.away { opacity: 0; }
.hero-copy .hero-icon .lyre#heroLyre { display: block; width: 78%; height: 78%; margin: 0; }
.icon-flyer { position: fixed; z-index: 200; left: 0; top: 0; opacity: 0; pointer-events: none; transform-origin: 0 0; }
.icon-flyer .lyre { width: 78%; height: 78%; }
.icon-flyer .lyre * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; }
.brand-ic { opacity: 0; transition: opacity .15s; }
.brand-ic.on { opacity: 1; }
.brand-word { transition: opacity .5s, transform .5s var(--ease); }
body:not(.icon-docked) .brand-word { opacity: 0; transform: translateX(-6px); }
@media (max-height: 760px) and (min-width: 961px) { .hero-icon { width: 84px; height: 84px; } }
@media (max-width: 960px) { .hero-icon { width: 84px; height: 84px; margin-bottom: 2px; } }

/* the lyre draws as the app's does: book, arms, crossbar, then each string falls from the bar, then it plays */
.lyre path.string { opacity: 1; stroke-dasharray: 380; stroke-dashoffset: 380; animation: stringfall .3s cubic-bezier(.5,0,.3,1) forwards; transform: none; }
.lyre path.string:nth-of-type(1) { animation-delay: 1.75s; }
.lyre path.string:nth-of-type(2) { animation-delay: 1.88s; }
.lyre path.string:nth-of-type(3) { animation-delay: 2.01s; }
@keyframes stringfall { to { stroke-dashoffset: 0; } }
.brand-ic { opacity: 1 !important; }
body .brand-word { opacity: 1 !important; transform: none !important; }
