/* Storywell store.css: tokens, base, components, pages. Cream paper, ink navy, one tomato accent. */
:root {
  --paper: #FBF6EC; --paper-2: #F4ECDC; --card: #FFFFFF; --ink: #1F2A44; --ink-2: #47506A; --ink-3: #636B82;
  --line: #E8DFCD; --line-2: #D9CEB8; --accent: #F0563D; --accent-2: #D8432B; --accent-soft: #FDE6E0;
  --sun: #F6C445; --grass: #3E9E5A; --sky: #4C9BE8; --plum: #7A4BA8; --ok: #2F8A4E;
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --pill: 999px;
  --sh-1: 0 1px 2px rgba(31,42,68,.06), 0 4px 14px rgba(31,42,68,.06);
  --sh-2: 0 2px 6px rgba(31,42,68,.06), 0 14px 36px rgba(31,42,68,.12);
  --sh-3: 0 20px 60px rgba(31,42,68,.24);
  --font: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1280px; --gut: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); z-index: 999; }
.skip:focus { left: 12px; color: #fff; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; display: inline-flex; gap: 8px; align-items: center; }
.display { font-size: clamp(42px, 6.2vw, 88px); letter-spacing: -0.045em; line-height: .96; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.04em; }
.h3 { font-size: 22px; letter-spacing: -0.025em; }
.lead { font-size: 19px; color: var(--ink-2); line-height: 1.5; max-width: 540px; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 18px; height: 18px; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--pill); border: 1.5px solid transparent; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(240,86,61,.28); }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2C3A5C; color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--pill); border: 0; background: transparent; display: inline-grid; place-items: center; position: relative; color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.badge-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.badge-count[data-zero] { display: none; }
.link { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.link:hover { color: var(--accent-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--pill); background: var(--paper-2); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.age { background: var(--paper-2); color: var(--ink); }
.chip.new { background: var(--accent-soft); color: #B33822; }
.chip.best { background: var(--ink); color: #fff; }
.chip.accent { background: var(--accent-soft); color: #B33822; }
.chip-x { height: 36px; padding: 0 8px 0 14px; background: var(--card); border: 1px solid var(--line-2); }
.chip-x button { border: 0; background: var(--paper-2); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 9px 16px; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,246,236,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 25px; letter-spacing: -0.045em; color: var(--ink); flex: none; }
.logo svg { width: 38px; height: 38px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav > a, .nav .nav-dd > button { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: var(--pill); font-weight: 650; font-size: 15.5px; border: 0; background: transparent; }
.nav > a:hover, .nav .nav-dd > button:hover, .nav a[aria-current] { background: var(--paper-2); color: var(--ink); }
.nav-dd { position: relative; }
.nav-dd .dd { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 8px; display: none; }
.nav-dd:hover .dd, .nav-dd:focus-within .dd { display: block; }
.dd a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.dd a:hover { background: var(--paper-2); color: var(--ink); }
.dd a span { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.hdr-search { flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--card); color: var(--ink-3); font-size: 15px; text-align: left; }
.hdr-search:hover { border-color: var(--ink-3); }
.hdr-search kbd { margin-left: auto; font: 600 12px var(--font); background: var(--paper-2); border-radius: 6px; padding: 2px 7px; color: var(--ink-3); }
.hdr-actions { display: flex; align-items: center; gap: 2px; }
.only-m { display: none !important; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 520px; }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- book frame ---------- */
.book { position: relative; display: block; border-radius: 3px 10px 10px 3px; overflow: visible; aspect-ratio: 3 / 4; background: var(--paper-2);
  box-shadow: 1px 1px 0 #fff, 2px 2px 0 #E2D7C1, 3px 3px 0 #fff, 4px 4px 0 #DCCFB6, 0 10px 22px rgba(31,42,68,.18), 0 2px 4px rgba(31,42,68,.12); }
.book > svg { width: 100%; height: 100%; border-radius: 3px 10px 10px 3px; }
.book::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(31,42,68,.18); box-shadow: 1px 0 0 rgba(255,255,255,.35); z-index: 1; pointer-events: none; }
.book::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(31,42,68,.12); border-radius: 3px 0 0 3px; z-index: 1; pointer-events: none; }

/* ---------- product card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); border: 1px solid rgba(31,42,68,.04); transition: box-shadow .2s ease, transform .2s ease; min-width: 0; }
.pcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.pcard-media { position: relative; display: block; padding: 26px 30px 24px; background: var(--paper-2); border-radius: var(--r) var(--r) 0 0; }
.pcard-media .book { transition: transform .25s ease; }
.pcard:hover .pcard-media .book { transform: rotate(-1.5deg) translateY(-3px); }
.pcard-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.wish { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: var(--sh-1); color: var(--ink); }
.wish:hover { color: var(--accent); }
.wish[aria-pressed="true"] { color: var(--accent); }
.wish[aria-pressed="true"] svg { fill: currentColor; }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-title { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.pcard-title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pcard-sub { font-size: 14px; color: var(--ink-3); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 2px; }
.pcard-meta .fmt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.price s { font-weight: 500; font-size: 15px; color: var(--ink-3); margin-left: 6px; }
.add { min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.add:hover { background: var(--accent); }
.add.done { background: var(--ok); }
.lowstock { font-size: 13px; color: #B33822; font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 36px; font-size: 14.5px; color: var(--ink-2); }
.hero-proof .faces { display: flex; }
.hero-proof .faces span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -8px; overflow: hidden; background: var(--paper-2); }
.hero-proof .faces span:first-child { margin-left: 0; }
.scene { position: relative; height: 560px; }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .book { position: absolute; }
.scene .b1 { width: 270px; left: 50%; margin-left: -120px; bottom: 96px; transform: rotate(-3deg); z-index: 4; }
.scene .b2 { width: 200px; left: 4%; bottom: 128px; transform: rotate(-11deg); z-index: 3; }
.scene .b3 { width: 196px; right: 2%; bottom: 140px; transform: rotate(9deg); z-index: 3; }
.scene .stack { position: absolute; left: 18%; right: 14%; bottom: 40px; z-index: 5; display: grid; gap: 3px; }
.scene .stack svg { width: 100%; height: auto; filter: drop-shadow(0 3px 4px rgba(31,42,68,.2)); border-radius: 3px; }
.scene .stack svg:nth-child(1) { width: 88%; margin-left: 7%; transform: rotate(-1deg); }
.scene .stack svg:nth-child(2) { width: 94%; margin-left: 2%; transform: rotate(.6deg); }
.scene .tag { position: absolute; z-index: 6; background: var(--card); border-radius: 14px; box-shadow: var(--sh-2); padding: 10px 14px; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.scene .tag.t1 { right: 0; top: 40px; transform: rotate(3deg); }
.scene .tag.t2 { left: 0; top: 96px; transform: rotate(-4deg); }
.scene .tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- trust row ---------- */
.trust { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 22px 20px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .ti { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.trust-item b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.trust-item span { font-size: 14px; color: var(--ink-3); }

/* ---------- age tiles ---------- */
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.age-tile { position: relative; display: block; height: 300px; border-radius: var(--r-lg); overflow: hidden; padding: 24px; color: var(--ink); box-shadow: var(--sh-1); isolation: isolate; }
.age-tile:hover { color: var(--ink); box-shadow: var(--sh-2); }
.age-tile .paper { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.age-tile .num { font-size: 76px; font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.age-tile .lbl { font-weight: 700; font-size: 16px; margin-top: 8px; }
.age-tile .cnt { display: inline-flex; margin-top: 10px; background: rgba(255,255,255,.85); border-radius: var(--pill); padding: 4px 11px; font-size: 13px; font-weight: 700; }
.age-tile .peek { position: absolute; width: 150px; right: -14px; bottom: -48px; transform: rotate(12deg); transition: transform .3s ease; z-index: -1; }
.age-tile .peek2 { position: absolute; width: 120px; right: 96px; bottom: -70px; transform: rotate(-8deg); z-index: -1; transition: transform .3s ease; }
.age-tile:hover .peek { transform: rotate(6deg) translateY(-14px); }
.age-tile:hover .peek2 { transform: rotate(-4deg) translateY(-10px); }
.age-tile .go { position: absolute; left: 24px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }

/* ---------- bands ---------- */
.band { border-radius: 28px; overflow: hidden; position: relative; }
.band-personal { background: var(--card); box-shadow: var(--sh-1); display: grid; grid-template-columns: 1fr 1fr; }
.band-personal .copy { padding: 56px; }
.band-personal .stage { background: var(--paper-2); position: relative; display: grid; place-items: center; padding: 48px; min-height: 460px; }
.band-personal .stage .book { width: 280px; transform: rotate(-3deg); }
.name-field { display: flex; gap: 10px; margin: 24px 0 14px; max-width: 440px; }
.name-field input { flex: 1; min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks li svg { color: var(--accent); margin-top: 2px; }
.band-club { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.band-club .copy { padding: 56px; }
.band-club .copy .lead { color: var(--ink-2); }
.band-club .eyebrow { color: var(--accent-2); }
.band-club .stage { position: relative; height: 440px; }
.club-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 26px; }
.club-price b { font-size: 40px; letter-spacing: -0.04em; }
.boxscene { position: absolute; inset: 0; }
.boxscene .book { position: absolute; width: 150px; }
.gift-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: var(--card); border-radius: 28px; box-shadow: var(--sh-1); padding: 48px 56px; }
.gcards { position: relative; height: 300px; }
.gcard { position: absolute; width: 300px; aspect-ratio: 1.6; border-radius: 18px; box-shadow: var(--sh-2); overflow: hidden; }
.gcard svg { width: 100%; height: 100%; }

/* ---------- reviews strip ---------- */
.reviews-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rcard { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 10px; }
.rcard p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.rcard .who { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.rcard .who .book { width: 34px; flex: none; box-shadow: 0 2px 6px rgba(31,42,68,.2); }
.rcard .who b { font-size: 14px; display: block; }
.rcard .who span { font-size: 13px; color: var(--ink-3); }
.score { display: flex; align-items: center; gap: 16px; }
.score b { font-size: 44px; letter-spacing: -0.04em; }

/* ---------- newsletter ---------- */
.news { background: var(--accent); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.news .lead { color: rgba(255,255,255,.92); }
.news form { display: flex; gap: 10px; background: #fff; border-radius: var(--pill); padding: 6px; }
.news input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 16px; outline: none; color: var(--ink); }
.news .fine { font-size: 13px; color: rgba(255,255,255,.88); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; background: var(--card); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 800; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-grid ul a { font-size: 15px; color: var(--ink-2); display: inline-block; padding: 5px 0; }
.foot-grid ul a:hover { color: var(--accent-2); }
.foot-about p { color: var(--ink-2); font-size: 15px; max-width: 320px; margin: 14px 0 18px; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.social a:hover { border-color: var(--ink); color: var(--ink); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges svg { height: 30px; width: auto; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input, .select, .textarea { width: 100%; min-height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); padding: 0 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,42,68,.14); }
.field.err .input, .field.err .select, .field.err .textarea { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,86,61,.14); }
.field .msg { font-size: 13px; color: #B33822; font-weight: 600; display: none; }
.field.err .msg { display: block; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.toggle { position: relative; width: 48px; height: 28px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 20px; background: var(--line-2); transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked + span { background: var(--ink); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:disabled + span { opacity: .6; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: var(--pill); padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: var(--pill); font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--card); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: var(--paper-2); }
.qty output, .qty span { min-width: 26px; text-align: center; font-weight: 700; }
.qty.sm button { width: 36px; height: 36px; }

/* ---------- drawers, modals, overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(31,42,68,.42); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); z-index: 90; transform: translateX(104%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: var(--sh-3); }
.drawer.left { right: auto; left: 0; transform: translateX(-104%); }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--card); }
.ship-bar { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--sh-1); font-size: 14px; font-weight: 600; }
.ship-bar .track { height: 8px; background: var(--paper-2); border-radius: 8px; margin-top: 10px; overflow: hidden; }
.ship-bar .fill { height: 100%; background: var(--accent); border-radius: 8px; transition: width .4s ease; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item .book { width: 64px; }
.line-item .thumb { width: 64px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.line-item h4 { font-size: 15.5px; letter-spacing: -0.015em; line-height: 1.25; }
.line-item .opt { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.line-item .ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.line-item .rm { border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: underline; min-height: 36px; padding: 0 4px; }
.line-item .rm:hover { color: var(--accent-2); }
.line-item .lp { font-weight: 800; font-size: 16px; }
.upsell { display: flex; align-items: center; gap: 14px; margin-top: 18px; background: var(--card); border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 12px 14px; }
.upsell .bm { width: 30px; height: 56px; flex: none; }
.upsell div { flex: 1; font-size: 14px; }
.upsell b { display: block; font-size: 15px; }
.totals { display: grid; gap: 8px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 19px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.empty { text-align: center; padding: 40px 12px; }
.empty .art { width: 180px; margin: 0 auto 18px; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--ink-3); }
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border-radius: 22px; box-shadow: var(--sh-3); transform: translateY(16px) scale(.98); opacity: 0; transition: all .25s ease; pointer-events: none; position: relative; }
.modal.on .modal-card { transform: none; opacity: 1; pointer-events: auto; }
.modal-top { background: var(--sky); height: 120px; position: relative; overflow: hidden; border-radius: 22px 22px 0 0; }
.modal-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.92); }
.modal-body { padding: 24px 28px 28px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 4px; margin-bottom: 20px; }
.tabs button { border: 0; background: none; min-height: 46px; padding: 0 14px; font-weight: 700; font-size: 15.5px; color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.form-stack { display: grid; gap: 14px; }
.search-ov { position: fixed; inset: 0; z-index: 96; display: flex; justify-content: center; align-items: flex-start; padding: 80px 16px 16px; pointer-events: none; }
.search-card { width: min(720px, 100%); background: var(--card); border-radius: 22px; box-shadow: var(--sh-3); overflow: hidden; opacity: 0; transform: translateY(-10px); transition: all .2s ease; }
.search-ov.on { pointer-events: auto; }
.search-ov.on .search-card { opacity: 1; transform: none; }
.search-in { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 22px; border-bottom: 1px solid var(--line); }
.search-in input { flex: 1; min-width: 0; height: 66px; border: 0; outline: none; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; background: transparent; }
.search-res { max-height: min(60vh, 520px); overflow-y: auto; padding: 10px; }
.sres { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.sres:hover, .sres.on { background: var(--paper); color: var(--ink); }
.sres .book { width: 44px; box-shadow: 0 2px 6px rgba(31,42,68,.18); }
.sres b { display: block; font-size: 15.5px; }
.sres span { font-size: 13.5px; color: var(--ink-3); }
.search-hint { padding: 14px 22px 18px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-hint button { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--pill); min-height: 36px; padding: 0 12px; font-size: 13.5px; font-weight: 600; }
mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* toasts */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-3); font-size: 15px; font-weight: 600; animation: tin .3s ease; }
.toast .book { width: 32px; flex: none; box-shadow: none; }
.toast .ok { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; flex: none; }
.toast button { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: var(--pill); min-height: 36px; padding: 0 14px; font-weight: 700; font-size: 14px; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* cookie card */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 110; width: min(400px, calc(100vw - 32px)); background: var(--card); border-radius: 20px; box-shadow: var(--sh-3); padding: 22px; border: 1px solid var(--line); }
.cookie .ck-art { position: absolute; right: 18px; top: -26px; width: 64px; height: 64px; }
.cookie h3 { font-size: 19px; margin-bottom: 6px; }
.cookie p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.cookie .ck-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .ck-btns .btn { flex: 1; min-height: 44px; padding: 0 14px; font-size: 14.5px; }
.cookie .ck-set { display: grid; gap: 10px; margin: 4px 0 14px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--paper); border-radius: 12px; }
.ck-row b { font-size: 14.5px; display: block; }
.ck-row span { font-size: 13px; color: var(--ink-3); }

/* mobile nav */
.mnav a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.mnav .sub a { font-size: 16px; font-weight: 600; min-height: 46px; padding-left: 14px; color: var(--ink-2); }

/* ---------- page shells ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent-2); }
.page-hero { padding: 40px 0 36px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.045em; }
.page-hero .lead { margin-top: 14px; }
.inshort { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; border-left: 5px solid var(--accent); margin: 0 0 28px; }
.inshort b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); white-space: nowrap; padding-top: 2px; }
.inshort p { margin: 0; color: var(--ink-2); }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 18px; }
.toc b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.toc ol { margin: 10px 0 0; padding-left: 20px; font-size: 14.5px; }
.toc li { padding: 3px 0; }
.toc a:hover { color: var(--accent-2); }
.facts { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 20px 22px; margin: 0 0 28px; }
.facts h3 { font-size: 16px; margin: 0 0 10px; }
.facts dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.acc { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 17px; letter-spacing: -0.015em; min-height: 56px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 26px; font-weight: 500; color: var(--accent); line-height: 1; }
.acc details[open] summary::after { content: "\2212"; }
.acc .ans { padding: 0 22px 20px; color: var(--ink-2); }
.acc .ans p:last-child { margin: 0; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 6px 20px 20px; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup h3 { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 10px; }
.fgroup .check { min-height: 36px; align-items: center; }
.fgroup .check input { margin: 0; }
.fgroup .check span.n { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.price-range { display: flex; gap: 8px; flex-wrap: wrap; }
.price-range button { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--pill); min-height: 38px; padding: 0 12px; font-size: 14px; font-weight: 600; }
.price-range button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.shop-bar .count { font-weight: 700; }
.shop-bar select { min-height: 44px; border-radius: var(--pill); border: 1px solid var(--line-2); padding: 0 14px; background: var(--card); font-weight: 600; font-size: 15px; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; min-height: 0; }
.clear-all { border: 0; background: none; font-weight: 700; text-decoration: underline; min-height: 36px; font-size: 14px; }
.filter-toggle { display: none; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 24px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.g-main { background: var(--paper-2); border-radius: 26px; padding: 48px; display: grid; place-items: center; min-height: 560px; position: relative; overflow: hidden; }
.g-main .book { width: min(360px, 76%); transform: rotate(-2deg); }
.g-main .spread-view { width: 100%; border-radius: 6px; overflow: hidden; box-shadow: var(--sh-2); }
.g-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.g-thumbs button { border: 2px solid transparent; background: var(--card); border-radius: 14px; padding: 8px; box-shadow: var(--sh-1); height: 92px; display: grid; place-items: center; overflow: hidden; }
.g-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.g-thumbs button svg { width: 100%; height: 100%; object-fit: contain; }
.g-thumbs .book { height: 72px; width: auto; }
.pdp-info h1 { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.045em; margin: 10px 0 10px; }
.byline { color: var(--ink-2); font-size: 16px; }
.byline a { font-weight: 700; color: var(--ink); }
.pdp-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.pdp-price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.fmt-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.fmt-switch button { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 14px; padding: 12px 14px; text-align: left; min-height: 64px; }
.fmt-switch button b { display: block; font-size: 15px; }
.fmt-switch button span { font-size: 14px; color: var(--ink-3); }
.fmt-switch button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.buy-row { display: flex; gap: 12px; margin: 18px 0; }
.buy-row .btn-primary { flex: 1; }
.perks { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 4px 18px; margin: 18px 0; }
.perks > div { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.perks > div:last-child { border-bottom: 0; }
.perks .grow { flex: 1; }
.ptabs { margin-top: 72px; }
.ptabs .tabs { overflow-x: auto; scrollbar-width: none; }
.ptabs .tabs button { white-space: nowrap; }
.tabpanel { padding: 12px 0; }
.spreads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.spreads figure { margin: 0; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--sh-1); }
.spreads figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--ink-3); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.spec-table th { width: 220px; color: var(--ink-3); font-weight: 600; }
.rv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rv-sum { display: flex; gap: 32px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.bars { display: grid; gap: 4px; font-size: 13.5px; min-width: 240px; }
.bars div { display: grid; grid-template-columns: 34px 1fr 30px; gap: 8px; align-items: center; }
.bars i { height: 8px; border-radius: 8px; background: var(--paper-2); overflow: hidden; display: block; }
.bars i b { display: block; height: 100%; background: #E7A400; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tip { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); }
.tip .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 12px; }

/* ---------- personalise ---------- */
.pers { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding-top: 24px; }
.pers-stage { position: sticky; top: 96px; background: var(--paper-2); border-radius: 26px; padding: 40px; display: grid; gap: 24px; }
.pers-stage .duo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: center; }
.pers-stage .page1 { background: var(--paper); border-radius: 6px 12px 12px 6px; box-shadow: var(--sh-2); aspect-ratio: 3/4; padding: 22px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.pers-stage .page1 .ded { font-size: 15px; color: var(--ink-2); font-style: italic; }
.pers-stage .page1 .for { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 8px; }
.pers-stage .page1 .nm { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 12px; word-break: break-word; }
.title-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.title-pick button { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line-2); background: var(--card); border-radius: 14px; padding: 10px; text-align: left; min-height: 72px; }
.title-pick button .book { width: 40px; flex: none; }
.title-pick button b { font-size: 14.5px; line-height: 1.2; display: block; }
.title-pick button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.av-grid button { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 14px; padding: 8px; aspect-ratio: 1; }
.av-grid button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FFF8E4; }
.step-lbl { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; margin: 28px 0 12px; }
.step-lbl i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ---------- club ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--card); border-radius: 22px; box-shadow: var(--sh-1); padding: 28px; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; position: relative; }
.plan.feat { border-color: var(--accent); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; border-radius: var(--pill); padding: 4px 12px; font-size: 13px; font-weight: 700; }
.plan .pp { font-size: 46px; font-weight: 800; letter-spacing: -0.05em; }
.plan .pp small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.inbox { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.inbox .card { text-align: left; }
.inbox .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.age-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.age-picker button { min-height: 48px; padding: 0 20px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; }
.age-picker button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- checkout ---------- */
.co { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; padding-top: 24px; }
.co-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.co-steps li { list-style: none; flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border-radius: 14px; box-shadow: var(--sh-1); font-weight: 700; font-size: 15px; color: var(--ink-3); }
.co-steps li i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 13px; flex: none; }
.co-steps li.on { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.co-steps li.on i { background: var(--accent); color: #fff; }
.co-steps li.done i { background: var(--ink); color: #fff; }
.co-steps { padding: 0; margin-top: 0; }
.co-panel { background: var(--card); border-radius: 22px; box-shadow: var(--sh-1); padding: 28px; }
.co-panel h2 { font-size: 24px; margin-bottom: 18px; }
.co-panel h3 { font-size: 17px; margin: 26px 0 12px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; cursor: pointer; min-height: 60px; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt .grow { flex: 1; }
.opt b { display: block; font-size: 15.5px; }
.opt span { font-size: 13.5px; color: var(--ink-3); }
.co-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.paytabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.paytabs button { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 14px; min-height: 64px; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.paytabs button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.applepay { width: 100%; min-height: 54px; border-radius: 12px; background: #000; color: #fff; border: 0; font-weight: 600; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.co-sum { position: sticky; top: 96px; background: var(--card); border-radius: 22px; box-shadow: var(--sh-1); padding: 24px; }
.co-sum h2 { font-size: 20px; margin-bottom: 8px; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon .input { min-height: 44px; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
.review-block { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; }
.review-block .edit { font-weight: 700; font-size: 14px; border: 0; background: none; text-decoration: underline; min-height: 36px; }
.review-block p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- thank you ---------- */
.ty-hero { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); border-radius: 28px; padding: 48px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.ty-hero .lead { color: var(--ink-2); }
.ty-hero .ordno { display: inline-flex; gap: 10px; align-items: center; background: var(--paper-2); border-radius: var(--pill); padding: 8px 16px; font-weight: 700; margin-top: 18px; }
.next-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.next-steps .card { position: relative; }
.next-steps .card::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }

/* ---------- account ---------- */
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.acct-nav { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 8px; position: sticky; top: 96px; }
.acct-nav button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; min-height: 46px; padding: 0 14px; border-radius: 10px; font-weight: 650; font-size: 15.5px; text-align: left; }
.acct-nav button[aria-selected="true"] { background: var(--paper-2); }
.order-card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 20px 22px; margin-bottom: 14px; }
.order-card .oh { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.order-card .covers { display: flex; gap: 10px; }
.order-card .covers .book { width: 54px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); background: #E6F4EA; color: #23703F; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.post .pm { height: 220px; display: grid; place-items: center; position: relative; overflow: hidden; }
.post .pm .book { width: 110px; position: absolute; }
.post .pb { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post h3 { font-size: 21px; }
.post p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.post .meta { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: auto; padding-top: 8px; }

/* 404 */
.nf { min-height: 60vh; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px 0; }
.nf .big { font-size: clamp(110px, 16vw, 220px); font-weight: 800; letter-spacing: -0.07em; line-height: .85; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav > a, .nav .nav-dd > button { padding: 0 9px; }
  .hdr { gap: 16px; }
  .hdr-search { max-width: 220px; }
  .hdr-search kbd { display: none; }
}
@media (max-width: 1024px) {
  :root { --gut: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { display: none; }
  .only-m { display: inline-grid !important; }
  .hdr-search { max-width: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .scene { height: 500px; max-width: 620px; width: 100%; margin: 0 auto; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .ages { grid-template-columns: repeat(2, 1fr); }
  .band-personal, .band-club, .gift-band, .news { grid-template-columns: 1fr; }
  .reviews-strip { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-about { grid-column: 1 / -1; }
  .shop-layout, .pdp, .pers, .co, .acct, .legal-layout { grid-template-columns: 1fr; }
  .filters, .gallery, .pers-stage, .co-sum, .acct-nav, .toc { position: static; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .plans, .posts { grid-template-columns: 1fr 1fr; }
  .inbox, .next-steps { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: 1fr; }
  .split, .nf, .ty-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid, .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .section { padding: 56px 0; }
  .rv-list, .spreads { grid-template-columns: 1fr; }
  .plans, .posts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .announce { font-size: 13px; padding: 8px 12px; }
  .hdr { height: 64px; gap: 4px; }
  .logo { font-size: 22px; gap: 8px; }
  .logo svg { width: 32px; height: 32px; }
  .hdr-search { display: none; }
  .hdr-actions { margin-left: auto; }
  .hide-m { display: none !important; }
  .lead { font-size: 17px; }
  .hero { padding: 28px 0 40px; }
  .hero-ctas .btn { flex: 1; padding: 0 14px; }
  .scene { height: 400px; }
  .scene .b1 { width: 180px; margin-left: -84px; bottom: 76px; }
  .scene .b2 { width: 132px; left: 0; bottom: 104px; }
  .scene .b3 { width: 128px; right: 0; bottom: 112px; }
  .scene .stack { left: 8%; right: 8%; bottom: 26px; }
  .scene .tag { font-size: 13px; padding: 8px 10px; }
  .scene .tag.t1 { top: 6px; }
  .scene .tag.t2 { top: 52px; }
  .trust-row { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .trust-item { padding: 14px 0; gap: 10px; align-items: flex-start; }
  .trust-item .ti { width: 38px; height: 38px; border-radius: 11px; }
  .trust-item b { font-size: 14px; }
  .trust-item span { font-size: 13px; }
  .ages { grid-template-columns: 1fr 1fr; gap: 12px; }
  .age-tile { height: 230px; padding: 16px; border-radius: 18px; }
  .age-tile .num { font-size: 50px; }
  .age-tile .lbl { font-size: 14px; }
  .age-tile .peek { width: 104px; right: -18px; bottom: -36px; }
  .age-tile .peek2 { display: none; }
  .age-tile .go { left: 16px; bottom: 16px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .pcard-media { padding: 18px 18px 16px; }
  .pcard-body { padding: 12px 12px 14px; gap: 4px; }
  .pcard-title { font-size: 15.5px; }
  .pcard-sub { font-size: 13px; }
  .pcard-meta .fmt { display: none; }
  .pcard-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .price { font-size: 18px; }
  .add { justify-content: center; }
  .wish { width: 40px; height: 40px; top: 6px; right: 6px; }
  .pcard-flags { top: 8px; left: 8px; }
  .pcard-flags .chip:nth-child(n+2) { display: none; }
  .band { border-radius: 22px; }
  .band-personal .copy, .band-club .copy { padding: 28px 22px; }
  .band-personal .stage { min-height: 360px; padding: 28px; }
  .band-personal .stage .book { width: 210px; }
  .band-club .stage { height: 320px; }
  .gift-band { padding: 28px 22px; gap: 24px; border-radius: 22px; }
  .gcards { height: 220px; }
  .gcard { width: 220px; }
  .reviews-strip { grid-template-columns: 1fr; }
  .news { padding: 32px 22px; border-radius: 22px; gap: 20px; }
  .news form { flex-direction: column; border-radius: 18px; }
  .news input { min-height: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer { margin-top: 64px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .g-main { min-height: 380px; padding: 28px; border-radius: 20px; }
  .g-thumbs button { height: 76px; }
  .fmt-switch { grid-template-columns: 1fr; }
  .buy-row { flex-wrap: wrap; }
  .co-steps li { padding: 10px; font-size: 13px; gap: 6px; flex-direction: column; text-align: center; }
  .co-panel { padding: 20px 16px; border-radius: 18px; }
  .paytabs button { font-size: 13.5px; min-height: 60px; }
  .inbox, .next-steps { grid-template-columns: 1fr; }
  .ty-hero { padding: 32px 22px; }
  .facts dl { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .cookie { left: 16px; bottom: 16px; padding: 18px; }
  .pers-stage { padding: 20px; border-radius: 20px; }
  .pers-stage .page1 .nm { font-size: 22px; }
  .pers-stage .page1 { padding: 12px; }
  .pers-stage .page1 .ded { font-size: 13px; }
  .title-pick { grid-template-columns: 1fr; }
  .nf .big { font-size: 120px; }
  .spec-table th { width: 40%; }
  .spec-table th, .spec-table td { padding: 12px; font-size: 14.5px; }
  .modal-body { padding: 20px; }
  .search-ov { padding: 12px; }
  .search-in input { height: 58px; font-size: 18px; }
}

/* ---------- grid overflow guards ---------- */
.hero-grid > *, .split > *, .pdp > *, .co > *, .shop-layout > *, .pers > *, .acct > *, .band > *, .gift-band > *, .news > *, .legal-layout > *, .nf > *, .ty-hero > * { min-width: 0; }
@media (max-width: 1024px) {
  .hero-grid, .split, .nf, .ty-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .scene .tag { white-space: normal; max-width: 72%; }
}
/* ---------- fixes after shot review ---------- */
.drawer:not(.on) { box-shadow: none; visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
.drawer.on { visibility: visible; }
.display { font-size: clamp(42px, 5.3vw, 78px); }
.pcard-media { padding-top: 50px; }
.scene .b3 { right: -2%; }
@media (max-width: 560px) { .pcard-media { padding-top: 44px; } }
.scene .b1 { margin-left: -160px; width: 260px; }
.scene .b3 { right: 0; width: 200px; }
@media (max-width: 560px) { .scene .b1 { width: 180px; margin-left: -96px; } .scene .b3 { width: 128px; right: 0; } }
/* review fixes: line-item option text is plain text, 404 keeps the page gutter */
.line-item .opt { display: block; border: 0; border-radius: 0; padding: 0; min-height: 0; cursor: auto; }
.wrap.nf { padding-top: 48px; padding-bottom: 48px; padding-left: var(--gut, 24px); padding-right: var(--gut, 24px); }
@media (max-width: 640px) { .scene .tag.t2 { top: 84px; } }
@media (max-width: 640px) { .scene .tag.t2 { display: none; } }
/* fix pass 1 */
.badge-count { font-size: 13px; min-width: 20px; height: 20px; }
.co-nav { flex-wrap: wrap; }
.co-nav > * { flex: 1 1 auto; }
.co-nav .btn { white-space: normal; text-align: center; }
body.drawer-open .cookie { display: none; }
.age-tile .lbl { min-height: 2.5em; max-width: 92%; }
@media (max-width: 640px) {
  .ptabs .tabs { flex-wrap: wrap; overflow: visible; gap: 0 2px; }
  .ptabs .tabs button { padding: 0 10px; font-size: 14.5px; }
  .scene .b1 { width: 140px; margin-left: -70px; z-index: 4; }
  .scene .b2 { width: 116px; left: 2%; transform: rotate(-6deg); z-index: 3; }
  .scene .b3 { width: 116px; right: 2%; transform: rotate(6deg); z-index: 5; }
}
.age-tile .cnt { background: var(--paper-2); }

/* ================= Round 2: Story Studio ================= */
.coin { width: 20px; height: 20px; flex: none; }
.nav-new { position: relative; }
.new-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; transform: translateY(-7px); }
.token-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; margin: 0 4px; border-radius: var(--pill); background: #FFF2CC; font-weight: 800; font-size: 14px; letter-spacing: -.01em; }
.token-chip:hover { background: #FFE9A8; color: var(--ink); }
.thumb.tok { position: relative; display: grid; place-items: center; background: #FFF2CC; border-radius: 8px; aspect-ratio: 3 / 4; }
.thumb.tok .coin { width: 60%; height: auto; }
.thumb.tok b { position: absolute; bottom: 4px; right: 6px; font-size: 13px; }
.line-item .thumb .coin { width: 30px; height: 30px; }

/* home band */
.band-studio { background: #FCE3A2; color: var(--ink); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; }
.band-studio .band-copy { padding: 60px 56px; }
.band-studio .eyebrow { color: var(--accent-2); }
.band-studio .eyebrow .new-dot { transform: none; margin: 0; }
.band-studio h2 { color: var(--ink); font-size: clamp(34px, 4vw, 54px); max-width: 12ch; }
.band-steps { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.band-steps li { display: flex; gap: 14px; align-items: flex-start; }
.band-steps i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #FCE3A2; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.band-steps span { color: var(--ink-2); font-size: 15.5px; }
.band-steps b { display: block; color: var(--ink); font-size: 18px; letter-spacing: -.015em; }
.band-cta { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.band-price { display: block; font-size: 14.5px; color: var(--ink-2); max-width: 270px; line-height: 1.45; }
.band-price b { color: var(--ink); }
.band-price [data-coin] { display: inline; }
.band-price .coin { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
.band-price b { margin-right: 4px; }
.band-studio { overflow: hidden; }
.band-art { position: relative; height: 460px; align-self: stretch; min-height: 460px; height: auto; }
.band-art .book { position: absolute; width: 32%; box-shadow: 0 18px 36px rgba(31,42,68,.22); }

/* studio */
.studio-hero h1 { max-width: 16ch; }
.guest-note { display: flex; gap: 14px; align-items: center; background: #FFF2CC; border-radius: var(--r); padding: 14px 18px; margin-bottom: 22px; }
.guest-note .coin { width: 30px; height: 30px; }
.guest-note p { margin: 0; flex: 1; font-size: 15px; color: var(--ink-2); }
.guest-note b { color: var(--ink); }
.edit-note { background: var(--accent-soft); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.studio-form { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 8px 32px; }
.studio-form fieldset { border: 0; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.studio-form fieldset:last-child { border-bottom: 0; }
.studio-form legend { display: flex; gap: 12px; align-items: center; font-size: 22px; font-weight: 800; letter-spacing: -.025em; padding: 0; margin-bottom: 18px; float: left; width: 100%; }
.studio-form legend + * { clear: both; }
.studio-form legend i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 14px; display: grid; place-items: center; flex: none; }
.studio-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; clear: both; }
.studio-form .field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.studio-form .field + .field { margin-top: 0; }
.studio-form > fieldset > .field { margin-bottom: 16px; clear: both; }
.sseg { display: flex; flex-wrap: wrap; gap: 6px; }
.sseg button { flex: 1 1 0; min-height: 48px; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; }
.sseg button span { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.sseg button:hover { border-color: var(--ink-3); }
.sseg button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sseg button[aria-checked="true"] span { color: #C9CEDB; }
.worlds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; clear: both; }
.world { position: relative; padding: 0; border: 0; background: transparent; text-align: left; border-radius: 14px; }
.world .wart { display: block; aspect-ratio: 300 / 280; border-radius: 14px; overflow: hidden; outline: 3px solid transparent; outline-offset: 2px; transition: transform .15s ease, outline-color .15s; }
.world .wart svg { width: 100%; height: 100%; }
.world b { display: block; font-size: 14.5px; margin-top: 8px; letter-spacing: -.01em; }
.world:hover .wart { transform: translateY(-2px); }
.world[aria-checked="true"] .wart { outline-color: var(--ink); }
.world[aria-checked="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.chips-pick button { min-height: 42px; padding: 0 16px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 14.5px; }
.chips-pick button:hover { border-color: var(--ink-3); }
.chips-pick button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; clear: both; }
.lengths button { text-align: left; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.lengths button b { font-size: 17px; letter-spacing: -.015em; }
.lengths button span { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }
.lengths button em { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-style: normal; font-weight: 800; font-size: 14px; background: #FFF2CC; border-radius: var(--pill); padding: 4px 10px 4px 5px; align-self: flex-start; }
.lengths button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.studio-prev { position: sticky; top: 92px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 24px; }
.sp-cover { background: var(--paper-2); border-radius: 16px; padding: 28px 0; display: grid; place-items: center; margin-bottom: 16px; }
.sp-cover .book { width: 210px; transform: rotate(-2deg); box-shadow: var(--sh-2); transition: opacity .2s; }
.sp-cover .book.ghost { opacity: .45; filter: saturate(.3); }
.sp-sum { margin: 0 0 18px; }
.sp-sum > div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sp-sum dt { color: var(--ink-3); font-weight: 600; }
.sp-sum dd { margin: 0; font-weight: 700; }
.sp-hint { margin: 10px 0 0; text-align: center; }
.sp-hint .warn, .warn { color: #B33822; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.wallet-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.wallet-row .link { margin-left: auto; border: 0; background: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.writing { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 8px; }
.writing > b { font-size: 20px; letter-spacing: -.02em; margin-top: 10px; }
.writing > span { color: var(--ink-3); font-size: 14.5px; min-height: 1.4em; }
.flip { position: relative; width: 150px; height: 110px; perspective: 600px; }
.flip i { position: absolute; top: 0; left: 50%; width: 72px; height: 104px; background: var(--card); border: 2px solid var(--ink); border-radius: 2px 10px 10px 2px; transform-origin: left center; animation: flip 1.2s ease-in-out infinite; }
.flip i:nth-child(1) { background: var(--accent-soft); animation-delay: 0s; }
.flip i:nth-child(2) { background: #FFF2CC; animation-delay: .4s; }
.flip i:nth-child(3) { background: #DCEBFA; animation-delay: .8s; }
.flip::before { content: ""; position: absolute; left: calc(50% - 72px); top: 0; width: 72px; height: 104px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 10px 2px 2px 10px; }
@keyframes flip { 0% { transform: rotateY(0); } 50%, 100% { transform: rotateY(-180deg); } }
.wbar { width: 80%; height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin-top: 8px; }
.wbar div { height: 100%; width: 0; background: var(--accent); border-radius: 6px; animation: wbar 2.6s linear forwards; }
@keyframes wbar { to { width: 100%; } }
.sk { width: 80%; display: grid; gap: 8px; margin-top: 12px; }
.sk i { height: 10px; border-radius: 6px; background: var(--line); animation: skp 1.1s ease-in-out infinite alternate; }
@keyframes skp { from { background-color: var(--paper-2); } to { background-color: var(--line-2); } }

/* packs */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pack { position: relative; border: 1.5px solid var(--line-2); border-radius: 18px; padding: 22px; background: var(--card); display: flex; flex-direction: column; }
.pack.hot { border: 2px solid var(--accent); box-shadow: var(--sh-2); }
.pack-tag { position: absolute; top: -13px; left: 20px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: var(--pill); }
.pack-coins { display: flex; align-items: baseline; gap: 8px; }
.pack-coins .coin { width: 30px; height: 30px; align-self: center; }
.pack-coins b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pack-coins span { font-weight: 700; color: var(--ink-3); }
.pack h3 { font-size: 20px; margin: 14px 0 4px; }
.pack p { color: var(--ink-3); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.pack-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.pack-price b { font-size: 24px; letter-spacing: -.02em; }
.pack-price span { font-size: 13px; color: var(--ink-3); }
.pack .btn { font-size: 15px; }
.pack-note { margin: 14px 0 0; }
.modal-card.pack-modal { width: min(900px, 100%); padding: 30px; position: relative; }
.pm-head { display: flex; gap: 16px; align-items: center; margin: 0 40px 26px 0; }
.pm-coin .coin { width: 54px; height: 54px; }
.pm-head h2 { font-size: 30px; }
.pm-head p { margin: 6px 0 0; color: var(--ink-2); }

/* reader */
.reader-sec { padding-top: 28px; }
.r-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.r-head h1 { font-size: clamp(32px, 4vw, 48px); margin: 8px 0 6px; }
.r-head p { margin: 0; }
.back-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.r-actions { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: flex-end; align-items: center; }
.r-actions .btn { white-space: nowrap; }
.r-more { position: relative; }
.r-caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 4px; }
.r-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; background: var(--card); border-radius: 14px; box-shadow: var(--sh-2); padding: 6px; display: grid; }
.r-menu[hidden] { display: none; }
.r-menu > * { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.r-menu > *:hover { background: var(--paper-2); color: var(--ink); }
.r-actions .btn { min-height: 42px; }
.r-stage { position: relative; display: flex; align-items: center; gap: 16px; }
.r-stage > [data-spread] { flex: 1; min-width: 0; }
.spread-r { display: grid; background: var(--card); border-radius: 18px; box-shadow: var(--sh-2); overflow: hidden; }
.spread-r.two { grid-template-columns: 1fr 1fr; }
.spread-r.two .rpage + .rpage { border-left: 1px solid var(--line); box-shadow: inset 14px 0 18px -14px rgba(31,42,68,.18); }
.rpage { position: relative; display: flex; flex-direction: column; min-height: 640px; }
.rscene { aspect-ratio: 364 / 280; overflow: hidden; }
.rscene svg { width: 100%; height: 100%; }
.rtext { font-size: 21px; line-height: 1.6; letter-spacing: -.005em; padding: 26px 40px 56px; margin: 0; font-weight: 500; }
.rnum { position: absolute; bottom: 18px; left: 40px; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.rcover { background: var(--paper-2); display: grid; place-items: center; padding: 40px; }
.rcover .book { width: min(360px, 80%); box-shadow: var(--sh-3); transform: rotate(-2deg); }
.rend { background: var(--paper-2); display: grid; place-items: center; text-align: center; padding: 40px; }
.the-end { font-size: 56px; font-weight: 800; letter-spacing: -.04em; display: block; }
.rend p { color: var(--ink-3); font-size: 18px; }
.rend-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.rend-print { background: var(--card); border-radius: 16px; padding: 20px; display: grid; gap: 6px; justify-items: center; max-width: 340px; margin: 0 auto; }
.rend-print span { color: var(--ink-3); font-size: 14.5px; margin-bottom: 8px; }
.r-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; }
.r-arrow:disabled { opacity: .35; cursor: default; }
.r-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.r-dots { display: flex; gap: 2px; flex-wrap: nowrap; justify-content: center; }
.r-prog { display: none; width: 160px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.r-prog i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .2s; }
[data-pos] { white-space: nowrap; }
.r-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.r-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: all .15s; }
.r-dots button[aria-current="true"]::before { background: var(--ink); width: 22px; border-radius: 6px; }
.r-keys { text-align: center; margin-top: 6px; }

/* account: stories + tokens */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story-card { background: var(--card); border-radius: 18px; box-shadow: var(--sh-1); padding: 18px; display: grid; gap: 14px; }
.story-card .book { width: 62%; margin: 6px auto 0; transform: rotate(-2deg); }
.story-card h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 4px; }
.story-card p { margin: 0 0 12px; }
.sc-actions { display: flex; gap: 8px; }
.sc-actions .btn { min-height: 42px; }
.tok-bal { display: flex; align-items: center; gap: 16px; background: #FFF2CC; border-radius: 18px; padding: 22px 24px; }
.tok-bal .coin { width: 56px; height: 56px; }
.tok-bal b { display: block; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.tok-bal span { color: var(--ink-2); font-weight: 600; }
.tok-bal .btn { margin-left: auto; }
.tok-log { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1); font-size: 15px; }
.tok-log th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tok-log td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tok-log tr:last-child td { border-bottom: 0; }
.tok-log td:last-child, .tok-log th:last-child { text-align: right; font-weight: 800; }
.tok-log .pos { color: var(--ok); }
.tok-log .tl-date { white-space: nowrap; }
.tl-kind { display: inline-block; font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: var(--pill); margin-right: 10px; background: var(--paper-2); }
.tl-kind.bought { background: #E3F2E7; color: #1F6B3A; }
.tl-kind.free { background: #FFF2CC; }
.tl-kind.spent { background: var(--accent-soft); color: #B33822; }

/* thank-you tokens */
.tok-band { display: flex; align-items: center; gap: 18px; background: #D6E8FA; color: var(--ink); border-radius: 20px; padding: 22px 26px; margin-top: 28px; }
.tok-band > .coin { width: 52px; height: 52px; }
.tok-band b { display: block; font-size: 24px; letter-spacing: -.02em; }
.tok-band span { color: var(--ink-2); font-size: 15px; }
.tok-band .grow { flex: 1; }
.ty-coins span { position: absolute; width: 26%; z-index: 4; filter: drop-shadow(0 10px 14px rgba(31,42,68,.25)); }
.ty-coins .coin { width: 100%; height: auto; }
.vnote { margin-top: 20px; }

@media (max-width: 1180px) {
  .band-studio .band-copy { padding: 48px 40px; }
  .studio { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) { .nav-new .new-dot { display: none; } }
@media (max-width: 900px) {
  .band-studio { grid-template-columns: 1fr; }
  .band-art { min-height: 340px; }
  .studio { grid-template-columns: 1fr; }
  .studio-prev { position: static; }
  .packs, .story-grid { grid-template-columns: 1fr 1fr; }
  .rpage { min-height: 0; }
}
@media (max-width: 560px) {
  .band-studio .band-copy { padding: 36px 22px; }
  .band-art { min-height: 260px; }
  .band-art .book { width: 33%; }
  .band-art { min-height: 250px; }
  .studio-form { padding: 4px 18px; }
  .studio-form .row2 { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lengths { grid-template-columns: 1fr; }
  .lengths button { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .lengths button em { margin: 0 0 0 auto; }
  .sp-cover .book { width: 160px; }
  .packs, .story-grid { grid-template-columns: 1fr; }
  .modal-card.pack-modal { padding: 22px 16px; }
  .pm-head h2 { font-size: 24px; }
  .pm-coin .coin { width: 40px; height: 40px; }
  .r-arrow { position: absolute; top: 34%; z-index: 3; width: 44px; height: 44px; background: rgba(255,255,255,.92); }
  .r-arrow.l { left: -6px; } .r-arrow.r { right: -6px; }
  .r-stage { display: block; }
  .rtext { font-size: 19px; padding: 20px 22px 48px; }
  .rnum { left: 22px; }
  .rcover { padding: 32px 20px; }
  .r-head > div:first-child { width: 100%; }
  .r-actions { width: 100%; flex-wrap: wrap; justify-content: stretch; }
  .r-actions > .btn { flex: 1 1 100%; justify-content: center; font-size: 14.5px; }
  .r-more { flex: 1 1 100%; }
  .r-more > .btn { width: 100%; justify-content: center; }
  .r-menu { left: 0; right: 0; min-width: 0; }
  .r-dots.many { display: none; }
  .r-dots.many + .r-prog { display: block; }
  .pm-head { margin: 36px 0 20px 0; }
  .tok-bal { flex-wrap: wrap; } .tok-bal .btn { margin-left: 0; width: 100%; }
  .tok-band { flex-wrap: wrap; } .tok-band .btn { width: 100%; }
  .guest-note { flex-wrap: wrap; }
  .the-end { font-size: 44px; }
}
@media (max-width: 560px) {
  .guest-note { flex-wrap: wrap; }
  .guest-note p { flex: 1 1 calc(100% - 50px); }
  .guest-note .btn { margin-left: 44px; }
}
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 18px; height: 18px; }

/* ---------- round 3: Bookcamp ---------- */
.foot-op { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legal-links a { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.legal-links a:hover { color: var(--accent-2); }
.foot-btn { font: inherit; font-size: 15px; color: var(--ink-2); background: none; border: 0; padding: 5px 0; cursor: pointer; text-align: left; }
.foot-btn:hover { color: var(--accent-2); }
.op-line { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.test-note { background: #FFF3C9; border-radius: 14px; padding: 12px 16px; margin: 0 0 22px; font-size: 15px; color: var(--ink); box-shadow: inset 0 0 0 1.5px #EBC94E; }
.test-note[hidden] { display: none; }
.msg-err { color: #C23A22; font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.co-panel .row2 { margin-bottom: 14px; }
.co-panel [data-card-panel] h3 { margin-top: 24px; }

/* look inside pages */
.lpages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lpages.peek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpage { margin: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; display: flex; flex-direction: column; }
.lscene { line-height: 0; background: var(--paper-2); }
.lscene svg { width: 100%; height: auto; display: block; }
.lpage figcaption { position: relative; padding: 16px 48px 18px 18px; flex: 1; }
.lpage figcaption p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.lnum { position: absolute; right: 14px; bottom: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.g-pthumb { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 8px; line-height: 0; }
.g-pthumb svg { width: 100%; height: 100%; object-fit: cover; }
.gview-page { width: min(100%, 460px); position: relative; z-index: 2; }

/* product */
.owned-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 6px; }
.chip.ok { background: #DDF0E2; color: #23663A; }
.chip.ok .icon { width: 14px; height: 14px; }
.how-made { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 36px; }
.hm-head { max-width: 760px; }
.hm-head .h2 { margin-top: 8px; }
.hm-steps { list-style: none; padding: 0; margin: 26px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; align-content: start; }
.hm-steps i { grid-row: span 2; font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.hm-steps b { font-size: 17px; }
.hm-steps span { color: var(--ink-2); font-size: 15px; }

/* account */
.mybooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mybook { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 16px; }
.mybook .book { width: 96px; }
.mybook h3 { font-size: 17px; margin: 2px 0 6px; }
.mybook .btn { margin-top: 10px; }
.acct-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 18px; }

/* thank you */
.read-band { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; background: #DDF0E2; border-radius: var(--r); padding: 18px 20px; margin: 22px 0; }
.read-band .grow { flex: 1 1 220px; display: grid; gap: 2px; }
.read-band .grow span { color: var(--ink-2); font-size: 15px; }
.read-list { display: flex; flex-wrap: wrap; gap: 10px; }
.read-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: 14.5px; box-shadow: var(--sh-1); }
.read-chip:hover { color: var(--accent-2); }

/* legal pages */
.legal-art { max-width: 68ch; min-width: 0; }
.legal-art .updated { font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 0 0 18px; }
.legal-art section { scroll-margin-top: 100px; }
.legal-art section h2 { font-size: 26px; }
.legal-art code { font-size: .92em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.contact-card { padding: 24px; }
.contact-card .btn { justify-self: start; }
.contact-card textarea.input { min-height: 140px; resize: vertical; padding-top: 12px; line-height: 1.5; height: auto; }
.contact-ok h3 { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: 16px; }
.co-dl div { display: contents; }
.co-dl dt { color: var(--ink-3); }
.co-dl dd { margin: 0; font-weight: 600; }
.faq-h { font-size: 26px; margin: 40px 0 14px; }
.faq-h:first-child { margin-top: 8px; }

@media (max-width: 900px) {
  .lpages { grid-template-columns: 1fr 1fr; }
  .hm-steps { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .lpages, .lpages.peek { grid-template-columns: 1fr; }
  .how-made { padding: 24px 18px; }
  .co-dl { grid-template-columns: 1fr; gap: 2px; }
  .co-dl dd { margin-bottom: 10px; }
  .foot-op { flex-direction: column; align-items: flex-start; }
}

/* round 3 fix pass: thank-you art box, checkout terms links */
.ty-art { position: relative; aspect-ratio: 7 / 5; width: 100%; max-width: 520px; justify-self: center; }
.ty-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) { .ty-art { max-width: 360px; } }
label[for="c-terms"] a, .check a { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
@media (max-width: 420px) { .hdr .token-chip { display: none !important; } }
