:root {
  --paper: #ffffff;
  --paper2: #f7f7f7;
  --card: #ffffff;
  --ink: #222222;
  --ink2: #484848;
  --ink3: #717171;
  --line: #ebebeb;
  /* brand red, sampled from the logo (2026-10-15) */
  --accent: #e73130;
  --accent2: #f25a52;
  --accent-ink: #ffffff;
  --deep: #10172a;
  --gold: #f4b740;
  --green: #12805c;
  --r: 20px;
  /* The store's only typeface (owner rule, 2026-10-15). Everything uses var(--sans);
     do not add another font family, a serif, or italics for display text. */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { display: block; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }

/* sale bar */
.salebar { background: var(--deep); color: #fff; font-size: 14px; overflow: hidden; }
.salebar b { color: var(--gold); }
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; align-items: center; width: max-content; padding: 9px 0; animation: ticker 40s linear infinite; }
.salebar:hover .ticker-track { animation-play-state: paused; }
.tick-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 0 22px; }
.tick-star { width: 12px; height: 12px; fill: var(--gold); flex: none; }
@keyframes ticker { to { transform: translateX(-25%); } }
.countdown { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; }
.countdown span { background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 1px 7px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sans); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
/* Footer lockup: "Powered by" over the foundation's name (the header shows the store brand). */
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; font-size: 16px; letter-spacing: .04em; }
.logo-txt small { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); margin-bottom: 3px; }
@media (max-width: 480px) { .logo-txt { font-size: 13.5px; } .logo-txt small { font-size: 9px; } }
.logo svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: var(--sans); transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-md { padding: 13px 22px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2620; }
.btn-accent { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(231, 49, 48, .7), inset 0 1px 0 rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.btn-accent::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.8s ease-in-out infinite; }
.btn-accent:hover { box-shadow: 0 16px 40px -12px rgba(231, 49, 48, .85), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-1px); }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* hero */
.hero { position: relative; padding: 56px 0 30px; overflow: hidden; }
.hero::before { content: none; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(21, 18, 15, .07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 75%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink2); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(231, 49, 48, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(231, 49, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 49, 48, 0); } }
.hero h1 { font-family: var(--sans); font-weight: 800; font-size: clamp(42px, 6.2vw, 78px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink2); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink2); font-size: 14px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-art { position: relative; min-height: 520px; }
.portrait { position: relative; width: min(440px, 88%); margin-left: auto; aspect-ratio: 1; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(21, 18, 15, .55); transform: rotate(1.5deg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 23, 42, .75)); }
.portrait-tag { position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff; display: flex; flex-direction: column; line-height: 1.25; }
.portrait-tag b { font-family: var(--sans); font-size: 26px; }
.portrait-tag span { font-size: 14px; opacity: .85; }
.hero-books { position: absolute; left: 0; bottom: -10px; display: flex; z-index: 3; }
.hero-books .book3d { width: 128px; margin-right: -34px; }
.hero-books .book3d:nth-child(1) { transform: rotate(-8deg) translateY(10px); }
.hero-books .book3d:nth-child(2) { transform: rotate(-1deg) translateY(-6px); z-index: 2; }
.hero-books .book3d:nth-child(3) { transform: rotate(7deg) translateY(12px); }
.float-card { position: absolute; left: 4%; top: 6%; z-index: 4; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 40px -18px rgba(21, 18, 15, .35); display: flex; gap: 12px; align-items: center; animation: bob 5s ease-in-out infinite; }
.float-card .big { font-family: var(--sans); font-weight: 800; font-size: 30px; color: var(--accent); line-height: 1; }
.float-card small { display: block; color: var(--ink3); font-size: 12.5px; line-height: 1.3; }
.float-card b { font-size: 14px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* 3d book */
.book3d { position: relative; aspect-ratio: 5 / 8; border-radius: 3px 8px 8px 3px; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .15), 0 18px 30px -12px rgba(21, 18, 15, .45), 0 30px 60px -30px rgba(21, 18, 15, .5); background: var(--deep); }
.book3d img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.book3d::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .18) 45%, rgba(0, 0, 0, .1)); z-index: 2; }
.book3d::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 35%); z-index: 2; pointer-events: none; }

/* stats */
.stats { position: relative; z-index: 1; margin-top: 54px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.stat { padding: 22px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--sans); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--ink3); font-size: 14px; }

.trust-row { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 4px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(180, 120, 0, .25)); }
.trust-score { font-size: 16px; font-weight: 800; color: var(--ink); }
.trust-sep { width: 1px; height: 20px; background: var(--line); }
.trust-readers { font-size: 15px; font-weight: 600; color: #2563eb; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.trust-readers b { color: inherit; }
@media (max-width: 680px) { .trust-row { gap: 8px; padding: 0 2px; flex-wrap: wrap; } .stars svg { width: 17px; height: 17px; } .trust-readers { font-size: 13.5px; } }

/* marquee */
.marquee { padding: 54px 0 10px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: scroll 60s linear infinite; padding: 16px 0 30px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .book3d { width: 150px; flex: none; }
.marquee a:hover .book3d { transform: translateY(-8px) rotate(-2deg); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* best sellers banner */
.bs { padding: 84px 0 40px; overflow: hidden; }
.bs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.bs-head h2 { max-width: 720px; }
.bs-rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bs-track { display: flex; gap: 22px; width: max-content; padding: 18px 0 34px; animation: scroll 55s linear infinite; }
.bs-rail:hover .bs-track { animation-play-state: paused; }
.bs-card { position: relative; flex: none; width: 230px; text-decoration: none; background: #fff; border-radius: 22px; padding: 18px 18px 16px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.bs-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -26px rgba(21, 18, 15, .45), inset 0 0 0 1px var(--line); }
.bs-card .book3d { width: 74%; margin: 4px auto 16px; }
.bs-card:hover .book3d { transform: perspective(900px) rotateY(-14deg); }
.bs-rank { position: absolute; left: 14px; top: 12px; z-index: 3; font-family: var(--sans); font-weight: 800; font-size: 30px; color: var(--accent); }
.bs-meta b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.3; min-height: 39px; }
.bs-meta span { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.bs-meta .price { font-size: 18px; }
.bs-meta em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent); background: #fdecec; padding: 3px 8px; border-radius: 999px; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--paper2); }
.head { margin-bottom: 42px; max-width: 760px; }
.head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.03em; margin: 0; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.card { background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(21, 18, 15, .35), inset 0 0 0 1px var(--line); }
.card p { color: var(--ink2); margin: 0; font-size: 15.5px; }
.b-big { grid-row: span 2; background: radial-gradient(120% 80% at 100% 0%, rgba(242, 90, 82, .35), transparent 60%), var(--deep); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.b-big p { color: rgba(255, 255, 255, .78); }
.b-big .num { font-family: var(--sans); font-weight: 800; font-size: clamp(80px, 10vw, 128px); line-height: .9; letter-spacing: -.05em; margin-bottom: 16px; background: linear-gradient(180deg, #fff, #ffb0ac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; position: relative;
  box-shadow: 0 10px 22px -10px var(--ico-glow, rgba(0,0,0,.3)), inset 0 1px 0 rgba(255,255,255,.35); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ico-pink   { background: linear-gradient(135deg, #f472b6, #db2777); --ico-glow: rgba(219, 39, 119, .55); }
.ico-blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); --ico-glow: rgba(37, 99, 235, .55); }
.ico-yellow { background: linear-gradient(135deg, #fcd34d, #f59e0b); --ico-glow: rgba(245, 158, 11, .55); }
.ico-green  { background: linear-gradient(135deg, #4ade80, #16a34a); --ico-glow: rgba(22, 163, 74, .55); }
.card:hover .ico { transform: translateY(-2px) rotate(-3deg); transition: transform .3s; }
/* 150+ card: real library photo behind a dark fade so the text stays readable;
   the big number sits top left, the copy stays at the bottom */
.b-big.b-photo { justify-content: flex-start; }
.b-big.b-photo .num { margin-bottom: auto; text-shadow: 0 6px 30px rgba(16, 23, 42, .55); }
.b-big.b-photo h3 { margin-top: 24px; }
.b-big.b-photo { background: linear-gradient(180deg, rgba(16, 23, 42, .62) 0%, rgba(16, 23, 42, .18) 30%, rgba(16, 23, 42, .5) 55%, rgba(16, 23, 42, .94) 82%), url('/assets/library.jpg?v=2') 42% 40% / cover; }

/* catalog */
.filters { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.filters button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font: 600 14px var(--sans); color: var(--ink2); cursor: pointer; }
.filters button.on { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.prod { text-decoration: none; display: flex; flex-direction: column; }
.prod .book3d { margin: 0 8% 18px; }
.prod:hover .book3d { transform: perspective(900px) rotateY(-12deg) translateY(-6px); }
.prod .ribbon { position: absolute; top: 12px; right: -8px; z-index: 3; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 6px 6px 0 6px; box-shadow: 0 6px 14px -6px rgba(231, 49, 48, .8); }
.prod .ribbon::after { content: ''; position: absolute; right: 0; bottom: -6px; border: 3px solid #9c1d1b; border-right-color: transparent; border-bottom-color: transparent; }
.meta-row { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink3); font-weight: 600; margin-bottom: 6px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.chip.e { color: #6d28d9; } .chip.g { color: var(--accent); }
.prod h3 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod p { margin: 0 0 12px; color: var(--ink2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.price s { font-weight: 500; color: var(--ink3); font-size: 14px; margin-left: 6px; }
.buy-mini { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; transition: background .2s; }
.prod:hover .buy-mini { background: var(--accent); }
.empty-lib { text-align: center; padding: 40px 20px; color: var(--ink2); }

/* library: full width, 6 per row, paged */
.wrap.wide { width: min(1680px, 100% - 48px); }
.lib-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 22px; }
.lib-grid .prod .book3d { margin: 0 6% 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pager button { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 700 15px var(--sans); color: var(--ink2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.pager button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.pager button.on { background: var(--ink); color: #fff; box-shadow: none; }
.pager button:disabled { opacity: .4; cursor: default; }
.coming { margin-top: 64px; }
.coming h3 { font-family: var(--sans); font-size: 26px; margin-bottom: 6px; }
.coming > p { color: var(--ink2); margin: 0 0 22px; }
.press { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.press-item { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.press-item b { display: block; font-size: 15px; line-height: 1.35; margin: 6px 0 12px; }
.bar { height: 6px; border-radius: 6px; background: var(--paper2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.press-item small { display: block; color: var(--ink3); margin-top: 8px; font-size: 12.5px; }

/* founder */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.founder-img { border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -36px rgba(21, 18, 15, .5); transform: rotate(-1.5deg); }
.founder-img { max-width: 440px; aspect-ratio: 1 / 1; justify-self: center; width: 100%; }
.founder-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.founder-copy p { font-size: 18px; color: var(--ink2); margin: 0 0 16px; }
.founder-copy h2 { margin-bottom: 24px; }
.sig { margin-top: 26px; display: flex; flex-direction: column; }
.sig-name { font-family: var(--sans); font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1; }
.sig span:last-child { color: var(--ink3); font-size: 14px; margin-top: 6px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 18px; }
.steps p { margin: 0; color: var(--ink2); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink2); }

.final { padding: 30px 0 96px; }
.final-in { text-align: center; padding: 72px 28px; border-radius: 32px; color: #fff; position: relative; overflow: hidden;
  /* A field of pink flowers at golden hour (CC0, rawpixel via Openverse), under
     a dusk wash so the white type keeps its contrast. */
  background:
    radial-gradient(70% 110% at 50% 45%, rgba(20, 12, 34, .30), transparent 75%),
    linear-gradient(180deg, rgba(28, 16, 44, .52) 0%, rgba(28, 16, 44, .64) 100%),
    url(/assets/flowers.jpg) center 62% / cover no-repeat,
    var(--deep);
  box-shadow: 0 24px 60px -28px rgba(40, 20, 60, .55); }
.final-in h2, .final-in p { text-shadow: 0 2px 18px rgba(20, 10, 30, .45); }
.final-in p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 560px; margin: 16px auto 30px; }

.foot { border-top: 1px solid var(--line); padding: 34px 0 50px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--ink3); font-size: 14px; }
.foot-in p { margin: 0; }

.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; }
.sticky-cta .btn { width: 100%; }

/* product page */
.pp { padding: 46px 0 80px; }
.crumbs { font-size: 14px; color: var(--ink3); margin-bottom: 26px; }
.crumbs a { color: var(--ink3); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.pp-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.pp-cover { position: sticky; top: 96px; }
.pp-cover .book3d { width: min(380px, 100%); margin: 0 auto; transform: perspective(1200px) rotateY(-10deg); }
.pp h1 { font-family: var(--sans); font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -.03em; margin: 10px 0 12px; }
.pp .sub { font-size: 19px; color: var(--ink2); margin: 0 0 22px; }
.buybox { background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); margin: 6px 0 30px; }
.buybox .p-now { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.buybox .p-was { font-size: 18px; color: var(--ink3); text-decoration: line-through; margin-left: 8px; }
.buybox .save { display: inline-block; margin-left: 10px; background: #fdecec; color: var(--accent); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; vertical-align: 6px; }
.buybox .ends { color: var(--ink2); font-size: 14px; margin: 6px 0 18px; }
.buybox .btn { width: 100%; }
.buybox ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 14px; color: var(--ink2); }
.buybox li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 2px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 30px; }
.fact { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.fact b { display: block; font-size: 22px; font-family: var(--sans); }
.fact span { font-size: 13px; color: var(--ink3); }
.desc { font-size: 17px; color: var(--ink2); }
.desc h2, .desc h3 { font-family: var(--sans); color: var(--ink); font-size: 26px; margin: 30px 0 10px; letter-spacing: -.02em; }
.desc strong { color: var(--ink); }
.toc { counter-reset: c; list-style: none; padding: 0; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.toc li { counter-increment: c; padding: 13px 18px; border-top: 1px solid var(--line); display: flex; gap: 14px; font-weight: 600; }
.toc li:first-child { border-top: 0; }
.toc li::before { content: counter(c, decimal-leading-zero); color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 800; }
.preview { position: relative; background: #fff; border-radius: 18px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--sans); font-size: 17px; line-height: 1.75; color: #2b2622; max-height: 520px; overflow: hidden; }
.preview::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, #fff); }
.preview h4 { font-family: var(--sans); margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.block { margin-top: 44px; }
.block > h2 { font-size: 30px; margin-bottom: 16px; }
.thanks { text-align: center; padding: 80px 0; }
.thanks .book3d { width: 180px; margin: 0 auto 30px; }
.thanks h1 { font-family: var(--sans); font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; margin: 0 0 12px; }
.thanks p { color: var(--ink2); font-size: 18px; max-width: 560px; margin: 0 auto 26px; }
.note { font-size: 14px !important; color: var(--ink3) !important; }

/* checkout step */
.co { padding: 40px 0 90px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.co-h { font-family: var(--sans); font-size: clamp(32px, 4vw, 46px); letter-spacing: -.03em; margin: 0 0 22px; }
.co-item { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: #fff; border-radius: 20px; padding: 18px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; position: relative; }
.co-item .book3d { width: 96px; }
.co-item h3 { font-size: 17px; margin: 6px 0 4px; line-height: 1.3; }
.co-item p { margin: 0; color: var(--ink2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-price { margin-top: 8px; font-weight: 800; font-size: 19px; }
.co-price s { color: var(--ink3); font-weight: 500; font-size: 14px; }
.co-price em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent); background: #fdecec; padding: 3px 8px; border-radius: 999px; vertical-align: 2px; }
.co-up-head { margin: 34px 0 16px; }
.co-up-head h2 { font-size: clamp(26px, 3vw, 34px); }
.co-up-head p { color: var(--ink2); margin: 8px 0 0; }
.co-item.up { grid-template-columns: 30px 96px 1fr; cursor: pointer; border: 2px dashed #f3b0ae; box-shadow: none; background: #fff7f7; transition: border-color .2s, background .2s, transform .2s; }
.co-item.up:hover { transform: translateY(-2px); }
.co-item.up.on { border: 2px solid var(--accent); background: #fdeeee; }
.co-item.up input { position: absolute; opacity: 0; pointer-events: none; }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--accent); background: #fff; display: grid; place-items: center; }
.co-item.up.on .tick { background: var(--accent); }
.co-item.up.on .tick::after { content: ''; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.co-sum { position: sticky; top: 96px; }
.co-sum .card { padding: 26px; }
.co-sum h3 { font-family: var(--sans); font-size: 22px; margin-bottom: 14px; }
.co-line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink2); }
.co-line b { color: var(--ink); white-space: nowrap; }
.co-line.add span::before { content: '+ '; color: var(--accent); font-weight: 800; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; font-weight: 700; }
.co-total b { font-size: 30px; letter-spacing: -.02em; }
.co-sum .btn { width: 100%; }
.co-trust { list-style: none; padding: 0; margin: 16px 0 0; color: var(--ink2); font-size: 13.5px; display: grid; gap: 6px; }
.co-trust li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 2px; }
.dl-list { display: flex; flex-direction: column; gap: 12px; align-items: center; }

@media (max-width: 1240px) { .lib-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; }
  .hero-in, .founder, .pp-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 0; }
  .portrait { margin: 0 auto; width: min(420px, 100%); }
  .hero-books { left: 2%; bottom: -26px; }
  .hero-books .book3d { width: 92px; }
  .float-card { left: 0; top: -10px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-big { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .press { grid-template-columns: 1fr 1fr; }
  .pp-cover { position: static; }
  .founder-img { max-width: 420px; }
}
@media (max-width: 680px) {
  .nav-links, .nav .btn { display: none; }
  .hero { padding-top: 34px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 16px 18px; } .stat b { font-size: 26px; }
  .grid, .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .wrap.wide { width: min(1680px, 100% - 32px); }
  .pager .pg-step { padding: 0 12px; }
  .prod .book3d { margin: 0 4% 14px; }
  .bento, .steps, .press, .facts { grid-template-columns: 1fr; }
  .b-big { grid-column: auto; }
  .section { padding: 68px 0; }
  .buy-mini { display: none; }
  .buybox ul { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .co-item, .co-item.up { grid-template-columns: 70px 1fr; } .co-item.up { grid-template-columns: 26px 70px 1fr; } .co-item .book3d { width: 70px; }
  .foot { padding-bottom: 100px; }
  .marquee .book3d { width: 110px; }
  .bs { padding-top: 60px; }
  .bs-card { width: 180px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Library search and topic chips (2026-10-15) */
.lib-tools { display: grid; gap: 14px; margin: -18px 0 34px; }
.lib-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lib-search { position: relative; display: block; flex: 1 1 260px; max-width: 420px; }
.lib-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.lib-search input { width: 100%; height: 44px; padding: 0 18px 0 44px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 15px var(--sans); color: var(--ink); outline: none; transition: box-shadow .2s; -webkit-appearance: none; appearance: none; }
.lib-search input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
/* Shelf filters beside the search, same pill as the search box (2026-10-15) */
.lib-filter { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 15px var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.lib-filter span { font-weight: 700; font-size: 12px; color: var(--ink3, #717171); }
.lib-filter:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.lib-filter.on { background: var(--ink); color: #fff; box-shadow: none; }
.lib-filter.on span { color: rgba(255,255,255,.7); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 14px var(--sans); color: var(--ink2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.topic span { font-weight: 700; font-size: 12px; opacity: .55; }
.topic:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.topic.on { background: var(--ink); color: #fff; box-shadow: none; }
.topic.on span { opacity: .75; }
.topic[hidden] { display: none; }
.lib-empty { text-align: center; padding: 40px 0 10px; color: var(--ink2); font: 500 16px var(--sans); }
.lib-empty button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
@media (max-width: 720px) {
  .lib-tools { margin-top: -10px; }
  .lib-search { flex-basis: 100%; max-width: none; }
  .lib-filter { flex: 1 1 0; justify-content: center; }
  .topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .topics::-webkit-scrollbar { display: none; }
}

/* Hero note from Max, in place of the subtitle (2026-10-15) */
.hero-note { margin: 26px 0 32px; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); max-width: 540px; }
.hero-note blockquote { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink2); }
.hero-note figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.hero-note-name { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; font-size: 28px; line-height: 1; color: var(--accent); }
.hero-note figcaption span:last-child { font-size: 14px; color: var(--ink3); }
@media (max-width: 720px) {
  .hero-note { margin: 20px 0 26px; padding-left: 16px; }
  .hero-note blockquote { font-size: 17px; }
  .hero-note-name { font-size: 24px; }
}

/* "Better together" bundle on product pages (2026-10-15) */
.bt { background: #fff; border-radius: 24px; padding: 30px 32px; box-shadow: inset 0 0 0 1px var(--line); }
.bt > h2 { margin-bottom: 6px; }
.bt-sub { margin: 0 0 22px; color: var(--ink2); }
.bt-in { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.bt-covers { display: flex; align-items: center; gap: 14px; }
.bt-cover { display: block; width: 120px; transition: opacity .2s, filter .2s; }
.bt-cover .book3d { width: 120px; margin: 0; }
.bt-cover.off { opacity: .35; filter: grayscale(1); }
.bt-plus { font: 700 26px var(--sans); color: var(--ink3); }
.bt-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bt-list label { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; line-height: 1.4; }
.bt-list label.main { cursor: default; }
.bt-list input { position: absolute; opacity: 0; pointer-events: none; }
.bt-box { width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--line); background: #fff; position: relative; transition: background .15s, box-shadow .15s; }
.bt-box.on, .bt-list input:checked + .bt-box { background: var(--accent); box-shadow: none; }
.bt-box.on::after, .bt-list input:checked + .bt-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bt-list input:focus-visible + .bt-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.bt-t { color: var(--ink); }
.bt-p { font-weight: 700; white-space: nowrap; }
.bt-p s { font-weight: 500; color: var(--ink3); margin-left: 4px; }
.bt-total { font-size: 17px; margin-bottom: 14px; }
.bt-total b { font-size: 24px; }
@media (max-width: 900px) {
  .bt { padding: 22px 18px; }
  .bt-in { grid-template-columns: 1fr; gap: 22px; }
  .bt-covers { justify-content: center; gap: 8px; }
  .bt-cover, .bt-cover .book3d { width: 86px; }
  .bt-plus { font-size: 20px; }
  .bt .btn { width: 100%; justify-content: center; }
}

/* Hero flipbook: the middle book, open and turning its pages (2026-10-15) */
.flipbook { --pw: 116px; --ph: 178px; --paper: #fffdf8; position: relative; flex: none; width: calc(var(--pw) * 2 + 14px); height: calc(var(--ph) + 12px); margin: 0 -40px 0 -26px; z-index: 2; perspective: 1500px; transform: translateY(-14px) rotate(-1.5deg); }
.fb-book { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(16deg); }
.fb-book::before { content: ''; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, #1b2232, #2a3347 48%, #151b28 50%, #2a3347 52%, #1b2232); box-shadow: 0 34px 50px -22px rgba(16, 14, 12, .7), 0 6px 14px -6px rgba(16, 14, 12, .35); }
.fb-page, .fb-leaf { position: absolute; top: 6px; width: var(--pw); height: var(--ph); }
.fb-page { background: var(--paper); overflow: hidden; }
.fb-l { left: 7px; border-radius: 3px 0 0 3px; box-shadow: -1px 1px 0 #ece5d8, -2px 2px 0 #fbf8f1, -3px 3px 0 #e7dfd1; }
.fb-r { left: calc(7px + var(--pw)); border-radius: 0 3px 3px 0; box-shadow: 1px 1px 0 #ece5d8, 2px 2px 0 #fbf8f1, 3px 3px 0 #e7dfd1; }
/* the gutter: pages darken and curve into the spine */
.fb-l::before, .fb-back::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(40, 30, 20, .22), rgba(40, 30, 20, .06) 12%, transparent 32%); pointer-events: none; z-index: 1; }
.fb-r::before, .fb-front::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(40, 30, 20, .22), rgba(40, 30, 20, .06) 12%, transparent 32%); pointer-events: none; z-index: 1; }
/* shadows the turning leaf casts on the pages beneath it */
.fb-l::after, .fb-r::after { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 2; }
.fb-r::after { background: linear-gradient(to right, rgba(20, 14, 8, .34), rgba(20, 14, 8, .12) 40%, transparent 75%); }
.fb-l::after { background: linear-gradient(to left, rgba(20, 14, 8, .3), rgba(20, 14, 8, .1) 40%, transparent 75%); }
.fb-leaf { left: calc(7px + var(--pw)); transform-origin: left center; transform-style: preserve-3d; z-index: 3; }
.fb-face { position: absolute; inset: 0; background: var(--paper); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fb-front { border-radius: 0 3px 3px 0; }
.fb-back { border-radius: 3px 0 0 3px; transform: rotateY(180deg); }
/* light across the curling paper: the front darkens as it rises, the back brightens as it lands */
.fb-face::after { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 2; }
.fb-front::after { background: linear-gradient(to left, rgba(20, 14, 8, .32), rgba(20, 14, 8, .08) 55%, rgba(255, 255, 255, .25)); }
.fb-back::after { background: linear-gradient(to right, rgba(20, 14, 8, .28), rgba(255, 255, 255, .35) 60%, rgba(20, 14, 8, .06)); }
.flipbook.turning .fb-leaf { animation: fbTurn 1.4s cubic-bezier(.45, .05, .3, 1) forwards; }
.flipbook.turning .fb-front::after { animation: fbShadeFront 1.4s ease-in forwards; }
.flipbook.turning .fb-back::after { animation: fbShadeBack 1.4s ease-out forwards; }
.flipbook.turning .fb-r::after { animation: fbCastRight 1.4s ease-in-out forwards; }
.flipbook.turning .fb-l::after { animation: fbCastLeft 1.4s ease-in-out forwards; }
@keyframes fbTurn {
  0% { transform: rotateY(0); }
  14% { transform: rotateY(-16deg) skewY(-1.5deg); }
  52% { transform: rotateY(-92deg) skewY(-4deg) scaleX(1.02); }
  86% { transform: rotateY(-172deg) skewY(-.6deg); }
  100% { transform: rotateY(-180deg); }
}
@keyframes fbShadeFront { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes fbShadeBack { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fbCastRight { 0% { opacity: 0; } 30% { opacity: .9; } 55% { opacity: .4; } 70%, 100% { opacity: 0; } }
@keyframes fbCastLeft { 0%, 50% { opacity: 0; } 82% { opacity: .85; } 100% { opacity: 0; } }
.fb-c { position: absolute; inset: 13% 12% 9%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--sans); z-index: 0; }
.fb-c small { font-size: calc(var(--pw) * .062); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); margin-bottom: 8%; }
.fb-c b { font-size: calc(var(--pw) * .148); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; color: var(--ink); }
.fb-r .fb-c b, .fb-front .fb-c b { color: var(--accent); }
.fb-lines { display: block; width: 86%; height: calc(var(--pw) * .24); margin-top: 12%; background: repeating-linear-gradient(to bottom, #ebe5da 0 2px, transparent 2px calc(var(--pw) * .06)); -webkit-mask: linear-gradient(to right, #000 70%, transparent); mask: linear-gradient(to right, #000 70%, transparent); }
.fb-c em { position: absolute; bottom: -4%; font-style: normal; font-size: calc(var(--pw) * .06); color: var(--ink3); }
@media (max-width: 900px) {
  .flipbook { --pw: 84px; --ph: 130px; margin: 0 -28px 0 -20px; transform: translateY(-8px) rotate(-1.5deg); }
}

/* Stats: one card with square corners on a soft-focus lavender field photo; the
   four numbers sit centred and count up (store.js). Owner request, 2026-10-15. */
.stats-in { position: relative; overflow: hidden; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 0; box-shadow: 0 18px 40px -22px rgba(30, 20, 50, .45); background: #6d5a86; isolation: isolate; }
.stats-in::before { content: ''; position: absolute; inset: -6%; z-index: -2; background: url(/assets/flowers.jpg) center 70% / cover no-repeat; animation: statsDrift 30s ease-in-out infinite alternate; }
.stats-in::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 20, 44, .30), rgba(28, 20, 44, .48)); }
@keyframes statsDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, -1%); } }
.stats-in .stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 190px; padding: 26px 18px; border: 0; border-left: 1px solid rgba(255, 255, 255, .28); background: none; }
.stats-in .stat:first-child { border-left: 0; }
.stats-in .stat b { font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(20, 10, 40, .35); }
.stats-in .stat span { margin-top: 10px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 10px rgba(20, 10, 40, .4); }
@media (max-width: 900px) {
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-in .stat { min-height: 150px; padding: 20px 12px; }
  .stats-in .stat:nth-child(3) { border-left: 0; }
  .stats-in .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .28); }
  .stats-in .stat b { font-size: clamp(34px, 10vw, 46px); }
  .stats-in .stat span { font-size: 13.5px; margin-top: 8px; }
}

/* Feedback / What's next: nav button and flower popup (2026-10-15) */
.nav-fb { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; font: 500 15px var(--sans); color: var(--ink2); cursor: pointer; }
.nav-fb:hover { color: var(--ink); }
.nav-fb svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-fb .sm { display: none; }
@media (max-width: 900px) {
  .nav-fb { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
  .nav-fb .lg { display: none; }
  .nav-fb .sm { display: inline; }
}
.fb-dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 26px; background: transparent; overflow: visible; }
.fb-dlg::backdrop { background: rgba(46, 32, 70, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fb-dlg[open] { animation: fbIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes fbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fb-card { background: #fff; border-radius: 26px; overflow: auto; max-height: calc(100dvh - 32px); box-shadow: 0 40px 80px -30px rgba(40, 20, 70, .55); font-family: var(--sans); }
.fb-hero { position: relative; min-height: 150px; padding: 26px 26px 22px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: linear-gradient(180deg, rgba(40, 24, 64, .05), rgba(40, 24, 64, .62)), url(/assets/flowers.jpg) center 70% / cover no-repeat; }
.fb-hero h2 { margin: 4px 0 0; font-size: clamp(24px, 4.2vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; text-shadow: 0 2px 14px rgba(20, 10, 40, .35); }
.fb-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.fb-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer; }
.fb-form { padding: 22px 26px 26px; display: grid; gap: 14px; }
.fb-intro { margin: 0; color: var(--ink2); font-size: 15px; }
.fb-field { display: grid; gap: 6px; }
.fb-field span { font-size: 14px; font-weight: 600; color: var(--ink); }
.fb-field em { font-style: normal; font-weight: 500; color: var(--ink3); }
.fb-field textarea, .fb-field input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 0; border-radius: 14px; background: #faf8fd; box-shadow: inset 0 0 0 1px #e6e0f0; font: 400 15px/1.5 var(--sans); color: var(--ink); resize: vertical; outline: none; transition: box-shadow .2s, background .2s; }
.fb-field textarea:focus, .fb-field input:focus { background: #fff; box-shadow: inset 0 0 0 2px #8b6fb5; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-err { margin: 0; color: #b42318; font-size: 14px; font-weight: 500; }
.fb-send { width: 100%; justify-content: center; }
.fb-done { padding: 34px 28px 32px; text-align: center; }
.fb-bloom { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #8b6fb5; background: #f3eefa; }
.fb-done h3 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.fb-done p { margin: 0 0 20px; color: var(--ink2); }
.fb-form[hidden], .fb-done[hidden], .fb-err[hidden] { display: none; }

/* Brand logo (owner's heart mark, 2026-10-15) */
.logo-img { width: auto; height: 32px; display: block; flex: none; }
.foot-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-brand .logo-txt { padding-left: 18px; border-left: 1px solid var(--line); color: var(--ink2); }
/* Hero call to action: squared, solid, with a little lift (2026-10-15) */
.btn-go { border-radius: 6px; padding-left: 30px; padding-right: 26px; letter-spacing: -.005em; background: linear-gradient(180deg, #ee3e3c, #d42826); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(212, 40, 38, .65); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 30px -12px rgba(212, 40, 38, .7); filter: saturate(1.08); }
.btn-go span { display: inline-block; transition: transform .2s; }
.btn-go:hover span { transform: translateX(4px); }

/* Library cards, Amazon-style (2026-10-15). Overrides the older .prod rules above. */
.lib-grid, .block .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.prod { display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.prod:hover { box-shadow: inset 0 0 0 1px #d6d6d6, 0 10px 26px -14px rgba(0, 0, 0, .28); transform: translateY(-2px); }
.prod-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.05; padding: 22px 0; background: #f7f7f7; }
.prod-img .book3d { width: 52%; margin: 0; transform: none; box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .45); }
.prod:hover .prod-img .book3d { transform: translateY(-3px) rotate(-1deg); }
.prod-info { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; gap: 5px; }
.prod-title { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(15px * 1.35 * 2); }
.prod-title:hover { color: var(--accent); }
.prod-fmt { font-size: 13px; color: var(--ink3); }
.prod-deal { align-self: flex-start; margin-top: 4px; padding: 3px 8px; border-radius: 4px; background: #cc0c39; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.prod-price { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; line-height: 1; }
.prod-off { font-size: 22px; font-weight: 500; color: #cc0c39; padding-top: 2px; }
.prod-amt { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.prod-amt sup { font-size: 13px; font-weight: 600; position: relative; top: -.55em; vertical-align: baseline; margin: 0 1px; }
.prod-list { font-size: 13px; color: var(--ink3); }
.prod-list s { color: var(--ink3); }
.prod-ship { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #067d62; font-weight: 600; }
.prod-ship svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.prod-buy { margin-top: auto; padding-top: 12px; }
.prod-buy { display: block; margin-top: auto; text-align: center; padding: 11px 12px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; transition: background .2s; }
.prod-info .prod-buy { margin-top: 12px; }
.prod-buy:hover { background: #c9221f; }
@media (max-width: 1100px) { .lib-grid, .block .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* phones: an Amazon-app style list, cover left and details right */
@media (max-width: 640px) {
  .lib-grid, .block .grid { grid-template-columns: 1fr; gap: 12px; }
  .prod { flex-direction: row; }
  .prod-img { flex: none; width: 38%; aspect-ratio: auto; padding: 16px 0; }
  .prod-img .book3d { width: 70%; }
  .prod-info { padding: 12px 14px 14px; }
  .prod-amt { font-size: 24px; }
  .prod-off { font-size: 19px; }
}
/* the library sits on white so the grey cover tiles read as part of each card */
#library.section.alt { background: #fff; }
.prod-img { background: #f5f5f5; }

/* Product page, Amazon-style (2026-10-15) */
.pp2 { padding: 22px 0 70px; }
.pp2 .crumbs { font-size: 13px; color: var(--ink3); margin-bottom: 18px; }
.pp2 .crumbs a { color: var(--ink2); }
.pp2-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr) 300px; grid-template-areas: "img head buy" "img info buy"; grid-template-rows: auto 1fr; gap: 0 40px; align-items: start; }
.pp2-img { grid-area: img; position: sticky; top: 90px; text-align: center; padding: 26px; background: #f7f7f7; border-radius: 10px; }
.pp2-img .book3d { width: 78%; margin: 0 auto; transform: none; box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .5); }
.pp2-look { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: #007185; text-decoration: none; }
.pp2-look::before { content: ''; width: 16px; height: 16px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007185' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E"); }
.pp2-look:hover { text-decoration: underline; }
.pp2-head { grid-area: head; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pp2-store { font-size: 14px; color: #007185; text-decoration: none; }
.pp2-store:hover { text-decoration: underline; }
.pp2-head h1 { margin: 6px 0 6px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.pp2-by { font-size: 14px; color: var(--ink2); }
.pp2-by span { color: var(--ink3); }
.pp2-info { grid-area: info; padding-top: 14px; }
.pp2-deal { display: inline-block; padding: 4px 9px; border-radius: 4px; background: #cc0c39; color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.pp2-price { display: flex; align-items: flex-start; gap: 10px; line-height: 1; }
.pp2-off { font-size: 28px; font-weight: 400; color: #cc0c39; padding-top: 3px; }
.pp2-amt { font-size: 34px; font-weight: 500; color: var(--ink); }
.pp2-amt sup { font-size: 15px; font-weight: 500; position: relative; top: -.75em; vertical-align: baseline; margin: 0 1px; }
.pp2-list { margin-top: 6px; font-size: 14px; color: var(--ink3); }
.pp2-fmt { display: flex; gap: 10px; margin: 18px 0 16px; }
.pp2-sw { display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 10px 14px; border-radius: 8px; border: 2px solid #007185; background: #f0f9fa; font-size: 14px; }
.pp2-sw span { color: #b12704; font-weight: 600; }
.pp2-sub { font-size: 16px; color: var(--ink2); margin: 0 0 14px; }
.pp2-info h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 700; }
.pp2-points { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15px; color: var(--ink); line-height: 1.5; }
.pp2-buy { grid-area: buy; position: sticky; top: 90px; }
.pp2-buy-in { border: 1px solid #d5d9d9; border-radius: 10px; padding: 18px; background: #fff; }
.pp2-price.sm .pp2-amt { font-size: 28px; }
.pp2-save { margin-top: 6px; font-size: 14px; color: #cc0c39; font-weight: 600; }
.pp2-ends { margin-top: 4px; font-size: 13px; color: var(--ink2); }
.pp2-stock { margin-top: 12px; font-size: 18px; color: #067d62; font-weight: 600; }
.pp2-deliv { font-size: 14px; color: var(--ink2); margin: 2px 0 14px; }
.pp2-btn { display: block; text-align: center; padding: 12px 14px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 2px 5px rgba(213, 217, 217, .5); transition: background .2s; }
.pp2-btn:hover { background: #c9221f; }
.pp2-btn.inline { display: inline-block; margin-top: 16px; padding: 11px 22px; }
.pp2-bundle { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: #007185; text-decoration: none; }
.pp2-bundle:hover { text-decoration: underline; }
.pp2-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.pp2-meta dt { color: var(--ink3); }
.pp2-meta dd { margin: 0; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.pp2-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pp2-sec { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.pp2-sec > h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px; }
.pp2-details { border-collapse: collapse; font-size: 14px; }
.pp2-details th { text-align: left; font-weight: 700; color: var(--ink); padding: 6px 28px 6px 0; vertical-align: top; white-space: nowrap; }
.pp2-details td { color: var(--ink2); padding: 6px 0; }
.pp2-clamp { max-height: 340px; overflow: hidden; position: relative; }
.pp2-clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.pp2-clamp.open { max-height: none; }
.pp2-clamp.open::after { display: none; }
.pp2-more { margin-top: 10px; border: 0; background: none; padding: 0; color: #007185; font: 600 14px var(--sans); cursor: pointer; }
.pp2-more:hover { text-decoration: underline; }
.pp2 .bt { margin-top: 40px; }
@media (max-width: 1100px) {
  .pp2-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-areas: "img head" "img info" "img buy"; gap: 0 32px; }
  .pp2-buy { position: static; margin-top: 18px; }
}
@media (max-width: 720px) {
  .pp2-grid { grid-template-columns: 1fr; grid-template-areas: "head" "img" "info" "buy"; gap: 0; }
  .pp2-head { border-bottom: 0; padding-bottom: 12px; }
  .pp2-img { position: static; padding: 22px; }
  .pp2-img .book3d { width: 58%; }
  .pp2-info { padding-top: 18px; }
  .pp2-buy { margin-top: 20px; }
  .pp2-details th { padding-right: 16px; }
}

/* Library cards: the cover sits on a clear tile with a soft grey border (2026-10-15) */
.prod-img { background: transparent; margin: 10px 10px 0; border: 1px solid #e3e3e3; border-radius: 8px; }
@media (max-width: 640px) { .prod-img { margin: 10px 0 10px 10px; } }
/* Buy now buttons (library cards, product page buy box and sample): green and
   square-cornered (owner request, 2026-10-15) */
.prod-buy, .pp2-btn { background: #15803d; border-radius: 4px; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 4px 10px -4px rgba(21, 128, 61, .55); }
.prod-buy:hover, .pp2-btn:hover { background: #116d33; }

/* Library back to full width with more per row (owner request, 2026-10-15) */
.lib-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1350px) { .lib-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lib-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Hero trust row: payment acceptance marks in place of "Read on any device" (2026-10-15) */
.trust li.pay-marks { gap: 6px; }
.pay { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 40px; padding: 0 7px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px #dcdcdc; }
.pay svg { display: block; width: auto; height: 11px; fill: initial; stroke: none; }
.pay-mc svg { height: 16px; }
.pay-apple svg { height: 15px; }
/* Library: 8 per row on wide screens with a compact card whose text fits the
   narrower width; titles get three lines instead of being cut at two (2026-10-15) */
.lib-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1350px) { .lib-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 641px) {
  .lib-grid .prod-img { margin: 8px 8px 0; padding: 14px 0; aspect-ratio: 1 / 1.08; }
  .lib-grid .prod-img .book3d { width: 60%; }
  .lib-grid .prod-info { padding: 10px 10px 12px; gap: 4px; }
  .lib-grid .prod-title { font-size: 13.5px; line-height: 1.32; -webkit-line-clamp: 3; min-height: calc(13.5px * 1.32 * 3); }
  .lib-grid .prod-fmt { font-size: 11.5px; }
  .lib-grid .prod-deal { font-size: 10.5px; padding: 2px 6px; margin-top: 2px; }
  .lib-grid .prod-price { gap: 6px; margin-top: 2px; }
  .lib-grid .prod-off { font-size: 16px; padding-top: 1px; }
  .lib-grid .prod-amt { font-size: 21px; }
  .lib-grid .prod-amt sup { font-size: 10.5px; }
  .lib-grid .prod-list, .lib-grid .prod-ship { font-size: 11.5px; }
  .lib-grid .prod-ship svg { width: 13px; height: 13px; }
  .lib-grid .prod-info .prod-buy { margin-top: 8px; padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 640px) { .lib-grid { grid-template-columns: 1fr; gap: 12px; } }
/* hero payment marks, larger */
.pay { height: 36px; min-width: 56px; padding: 0 10px; border-radius: 6px; }
.pay svg { height: 15px; }
.pay-mc svg { height: 23px; }
.pay-apple svg { height: 21px; }
.trust li.pay-marks { gap: 8px; }

/* card: short name, then a two-line grey description (2026-10-15) */
.prod-title { -webkit-line-clamp: 2; min-height: 0; }
.prod-desc { margin: 0; font-size: 13px; line-height: 1.38; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(13px * 1.38 * 2); }
@media (min-width: 641px) {
  .lib-grid .prod-title { font-size: 14px; line-height: 1.3; -webkit-line-clamp: 2; min-height: calc(14px * 1.3 * 2); }
  .lib-grid .prod-desc { font-size: 12px; line-height: 1.38; min-height: calc(12px * 1.38 * 2); }
}
