/* Lenvisto Books & Comics: 3D ANIMATED-MOVIE VERSION (folder lenvisto-site-v2-3d).
   Soft gradients, depth, glossy buttons, floating cards, CSS clouds and bokeh.
   System fonts only. No web fonts, no CDNs, no external requests. */
:root {
  --sky: #8FD3FF; --sky2: #CDEBFF; --peach: #FFC9A8; --peach2: #FFE6D6; --sun: #FFD84D; --lav: #C9B8FF; --lav2: #EEE8FF; --mint: #A8EBCF; --mint2: #DDF8EC; --pink: #FFB3CF;
  --ink: #2A2350; --muted: #5B5680; --card: #fff;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --read: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, Cambria, "Times New Roman", serif;
  --lift: 0 1px 2px rgba(42,35,80,.08), 0 6px 14px rgba(42,35,80,.10), 0 22px 44px rgba(42,35,80,.14);
  --lift-hi: 0 2px 4px rgba(42,35,80,.08), 0 12px 24px rgba(42,35,80,.14), 0 34px 64px rgba(42,35,80,.20);
  --r: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--round); color: var(--ink); line-height: 1.55; font-size: 1.0625rem; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 30%, var(--peach2) 70%, var(--peach) 100%); }
body > main { flex: 1 0 auto; }
body > * { position: relative; z-index: 1; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6rem; font-weight: 900; }
p { margin: 0 0 1rem; }
a { color: #4B3FD1; }
:focus-visible { outline: 4px solid #6C5CFF; outline-offset: 3px; border-radius: 12px; }
img, svg { max-width: 100%; display: block; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Floating clouds and bokeh (decorative, behind content) */
.sky { position: fixed !important; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; width: 260px; height: 80px; border-radius: 80px; background: rgba(255,255,255,.75); filter: blur(2px); animation: drift 38s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 120px; height: 120px; left: 40px; top: -60px; }
.cloud::after { width: 90px; height: 90px; left: 130px; top: -40px; }
.cloud--1 { top: 14%; left: -5%; } .cloud--2 { top: 48%; left: 70%; transform: scale(.7); animation-duration: 52s; opacity: .8; } .cloud--3 { top: 78%; left: 20%; transform: scale(.55); animation-duration: 64s; opacity: .7; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .55; animation: bob 9s ease-in-out infinite; }
.orb--1 { width: 90px; height: 90px; left: 8%; top: 62%; background: radial-gradient(circle at 35% 30%, #fff, var(--pink) 60%, transparent 72%); }
.orb--2 { width: 60px; height: 60px; right: 10%; top: 22%; background: radial-gradient(circle at 35% 30%, #fff, var(--sun) 60%, transparent 72%); animation-delay: -3s; }
.orb--3 { width: 120px; height: 120px; right: 4%; top: 72%; background: radial-gradient(circle at 35% 30%, #fff, var(--mint) 60%, transparent 72%); animation-delay: -5s; }
.orb--4 { width: 46px; height: 46px; left: 40%; top: 8%; background: radial-gradient(circle at 35% 30%, #fff, var(--lav) 60%, transparent 72%); animation-delay: -1s; }
@keyframes drift { from { translate: 0 0; } to { translate: 40vw 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@media (prefers-reduced-motion: reduce) { .cloud, .orb { animation: none; } * { transition: none !important; } }

/* Puffy 3D title lettering (system rounded fonts + layered shading) */
.puff { display: inline-block; font-family: var(--round); font-weight: 900; letter-spacing: -.01em; color: #7A68F5;
  text-shadow: 0 1px 0 #6553E2, 0 2px 0 #5745D2, 0 3px 0 #4A39BF, 0 4px 0 #3E2FAA, 0 8px 14px rgba(42,35,80,.30), 0 16px 30px rgba(42,35,80,.15); }
.puff--sun { color: #FFAE1F; text-shadow: 0 1px 0 #F29A12, 0 2px 0 #E2860C, 0 3px 0 #CF7208, 0 4px 0 #B85F05, 0 8px 14px rgba(120,60,10,.30), 0 16px 30px rgba(42,35,80,.15); }
.puff--sm { text-shadow: 0 1px 0 #5745D2, 0 2px 0 #4A39BF, 0 3px 0 #3E2FAA, 0 6px 10px rgba(42,35,80,.25); }
.spark { position: absolute; width: 22px; height: 22px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, #fff, var(--sun) 55%, rgba(255,216,77,0) 72%); }
.spark--m { background: radial-gradient(circle at 35% 30%, #fff, var(--pink) 55%, rgba(255,179,207,0) 72%); }
.spark--c, .spark--y + .spark { background: radial-gradient(circle at 35% 30%, #fff, var(--mint) 55%, rgba(168,235,207,0) 72%); }

/* Prototype banner */
.proto-banner { background: linear-gradient(90deg, #5B4BE0, #2B6CD8); color: #fff; text-align: center; font-weight: 800; font-size: .85rem; padding: .4rem .75rem; letter-spacing: .02em; }

/* Header: frosted glass */
.s-header { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; box-shadow: 0 6px 20px rgba(42,35,80,.10); }
.s-header__in { display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem; flex-wrap: wrap; }
.s-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.s-logo img { width: 52px; }
.s-logo span { font-weight: 900; font-size: 1.05rem; line-height: 1.05; }
.s-logo small { display: block; font-weight: 700; font-size: .72rem; color: var(--muted); }
.s-nav { display: flex; gap: .35rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.s-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .93rem; padding: .4rem .85rem; border-radius: 999px; }
.s-nav a:hover, .s-nav a[aria-current="page"] { background: linear-gradient(180deg, #fff, var(--lav2)); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(42,35,80,.14); }
.balance { display: inline-flex !important; align-items: center; gap: .4rem; font-weight: 900; color: #5a3a00 !important;
  background: linear-gradient(180deg, #FFF0A8, var(--sun) 55%, #F7B731) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(180,110,0,.25), 0 4px 10px rgba(200,130,0,.35) !important; }
.balance .coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, #FFC83D 45%, #E39A10); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
@media (max-width: 559px) { .s-nav { width: 100%; justify-content: space-between; margin-left: 0; } .s-nav a { min-height: 44px; min-width: 44px; padding: .35rem .55rem; font-size: .88rem; } }

/* Glossy 3D buttons */
.btn { position: relative; display: inline-block; font: inherit; font-weight: 900; text-decoration: none; color: #4a2c00; cursor: pointer; text-align: center;
  padding: .7rem 1.4rem; border: 0; border-radius: 999px; overflow: hidden;
  background: linear-gradient(180deg, #FFF0A0 0%, var(--sun) 45%, #F6AE2D 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.85), inset 0 -4px 6px rgba(190,100,0,.25), 0 5px 0 #D98A1A, 0 12px 22px rgba(217,138,26,.35);
  transition: transform .1s, box-shadow .1s; }
.btn::after { content: ""; position: absolute; left: 12%; right: 12%; top: 4px; height: 42%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); pointer-events: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(190,100,0,.25), 0 1px 0 #D98A1A, 0 4px 10px rgba(217,138,26,.3); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn--big { font-size: 1.1rem; padding: .85rem 1.7rem; }
.btn--hot { color: #3d0a10; background: linear-gradient(180deg, #FFB3A1 0%, #FF7A6B 50%, #F0525F 100%); text-shadow: none;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.7), inset 0 -4px 6px rgba(150,20,40,.25), 0 5px 0 #C93D4D, 0 12px 22px rgba(201,61,77,.35); }
.btn--white { color: var(--ink); background: linear-gradient(180deg, #fff 0%, #F2EEFF 60%, #E2DAFF 100%);
  box-shadow: inset 0 2px 1px #fff, inset 0 -4px 6px rgba(90,70,180,.12), 0 5px 0 #BDB0F0, 0 12px 22px rgba(90,70,180,.22); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.bubble { position: relative; display: inline-block; background: #fff; border-radius: 22px; padding: .45rem 1.1rem; font-weight: 900; font-size: .95rem; box-shadow: var(--lift); }
.bubble::after { content: ""; position: absolute; left: 24px; bottom: -9px; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); border-radius: 0 0 5px 0; }
.sample-tag { display: inline-block; background: linear-gradient(180deg, #5B4BE0, #4B3FC2); color: #fff; font-weight: 900; font-size: .75rem; letter-spacing: .08em; padding: .18rem .6rem; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 6px rgba(91,75,224,.35); }
.fmt { display: inline-block; font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; padding: .16rem .6rem; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 5px rgba(42,35,80,.15); }
.fmt--book { background: linear-gradient(180deg, #DDF2FF, #9FD8FF); color: #0b4a74; } .fmt--comic { background: linear-gradient(180deg, #FFE0EC, #FFAFCB); color: #7d1a45; }

/* Catalog hero */
.s-hero { position: relative; margin: 1.5rem 0 1.75rem; border-radius: 32px; background: linear-gradient(135deg, #fff 0%, var(--lav2) 55%, var(--peach2) 100%); box-shadow: var(--lift-hi); overflow: hidden; }
.s-hero__in { position: relative; display: grid; align-items: center; }
.s-hero__text { padding: 1.6rem 1.35rem 1.4rem; position: relative; z-index: 1; }
.s-hero h1 { font-size: clamp(2.2rem, 8.5vw, 3.7rem); margin: .9rem 0 .9rem; line-height: 1.12; }
.s-hero p { font-size: 1.12rem; font-weight: 700; color: var(--muted); max-width: 32rem; }
.s-hero__art img { width: 100%; }
@media (max-width: 859px) { .s-hero__art { margin: 0 1rem 1rem; border-radius: 22px; overflow: hidden; box-shadow: var(--lift); } }
@media (min-width: 860px) {
  .s-hero__in { grid-template-columns: 1fr 1.25fr; }
  .s-hero__art { height: 100%; } .s-hero__art img { height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
  .s-hero__text { padding: 2.25rem 1rem 2.25rem 2.5rem; }
}
.s-hero--plain { padding: 1.6rem 1.35rem; background: linear-gradient(135deg, #fff 0%, #FFF4C7 60%, var(--peach2) 100%); }
.s-hero--plain::after { content: ""; position: absolute; right: -50px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--sun) 48%, rgba(255,216,77,0) 70%); opacity: .8; }

/* Filters (soft pill toggles) */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 1.5rem; }
.filters button { font: inherit; font-weight: 900; color: var(--ink); border: 0; padding: .45rem 1.1rem; cursor: pointer; border-radius: 999px; background: linear-gradient(180deg, #fff, #EEE9FF); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #CFC4F7, 0 6px 14px rgba(90,70,180,.15); }
.filters button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #6C5CFF, #4B3FC2); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 3px 0 #4B3FC2, 0 6px 14px rgba(75,63,194,.3); }
.section-title { font-size: clamp(1.5rem, 4.5vw, 2rem); }

/* Covers: image + HTML title overlay */
.cover { position: relative; display: block; container-type: inline-size; overflow: hidden; border-radius: 20px; background: var(--lav2); }
.cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
/* Covers are composites: art in the lower part, soft sky band on top for the title (see _src/art3d.py) */
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,18,70,.50) 0, rgba(30,18,70,.18) 30%, transparent 44%, transparent 85%, rgba(30,18,70,.18) 100%); pointer-events: none; }
.cover__title { position: absolute; z-index: 1; left: 6%; right: 6%; top: 15%; text-align: center; font-weight: 900; font-size: 10.5cqi; line-height: 1.04; color: #fff;
  text-shadow: 0 .4cqi 0 #B9A9FF, 0 .8cqi 0 #7E68E8, 0 1.6cqi 3cqi rgba(20,10,50,.6); }
.cover__title--long { font-size: 8.8cqi; }
.cover--comic .cover__title { color: var(--sun); text-shadow: 0 .4cqi 0 #F9AE2E, 0 .8cqi 0 #D27318, 0 1.6cqi 3cqi rgba(20,10,50,.6); }
.cover__sample { position: absolute; z-index: 1; left: 5%; top: 5%; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(238,232,255,.95)); color: #4B3FD1; font-weight: 900; font-size: max(.62rem, 4.4cqi); letter-spacing: .08em; padding: .3em .8em; border-radius: 999px; box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(20,10,50,.25); }

/* Catalog grid: floating cards */
.grid { display: grid; gap: 1.25rem 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); padding: .25rem 0 3rem; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.2rem 1.9rem; } }
.cover-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); padding: 8px; box-shadow: var(--lift); text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.cover-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--lift-hi); }
.cover-card__body { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; padding: .8rem .5rem .55rem; }
.cover-card__title { font-size: 1.06rem; line-height: 1.2; font-weight: 900; }
.cover-card__meta { font-size: .84rem; color: var(--muted); }

/* Book page */
.book-hero { position: relative; z-index: 0; height: clamp(170px, 34vw, 360px); overflow: hidden; }
.book-hero img { width: 100%; height: 100%; object-fit: cover; }
.book-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(143,211,255,0) 40%, var(--sky2) 100%); }
.backlink { position: relative; z-index: 3; margin: 1rem 0 0; }
.backlink a { display: inline-block; background: rgba(255,255,255,.9); padding: .3rem .85rem; border-radius: 999px; box-shadow: var(--lift); font-weight: 800; text-decoration: none; }
.book { display: grid; gap: 1.75rem; padding: 1.25rem 0 3rem; }
@media (min-width: 820px) { .book { grid-template-columns: 330px 1fr; gap: 2.75rem; margin-top: -150px; } .backlink { position: absolute; margin: 0; top: calc(16px - clamp(170px, 34vw, 360px)); } }
.book__coverwrap { position: relative; }
.book__cover { position: relative; max-width: 330px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 28px; box-shadow: var(--lift-hi); transform: perspective(900px) rotateY(-6deg) rotateX(2deg); }
.book__meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; font-size: .92rem; }
.book__meta .muted { background: rgba(255,255,255,.85); padding: .1rem .6rem; border-radius: 999px; }
.book h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin-bottom: 1rem; }
@media (min-width: 820px) { .book > div:last-child { padding-top: 160px; } }
.book__blurb { font-size: 1.1rem; background: #fff; padding: 1.1rem 1.25rem; border-radius: 22px; box-shadow: var(--lift); }
.chapters { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .7rem; }
.chapter-row { display: flex; align-items: center; gap: .8rem; background: #fff; padding: .7rem .9rem; border-radius: 18px; text-decoration: none; color: var(--ink); font-weight: 800; box-shadow: 0 1px 2px rgba(42,35,80,.08), 0 6px 16px rgba(42,35,80,.10); transition: transform .15s, box-shadow .15s; }
.chapter-row:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.chapter-row__n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 900; background: radial-gradient(circle at 35% 30%, #CFC6FF, #7A6BFF 60%, #5B4BE0); box-shadow: inset 0 -2px 3px rgba(0,0,0,.15), 0 3px 6px rgba(91,75,224,.35); }
.chapter-row__t { flex: 1; min-width: 0; }
.pill { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-weight: 900; font-size: .84rem; padding: .18rem .65rem; border-radius: 999px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 5px rgba(42,35,80,.12); }
.pill small { font-weight: 700; }
.pill--free { background: linear-gradient(180deg, var(--mint2), var(--mint)); color: #0d5a3d; } .pill--open { background: linear-gradient(180deg, #FFF6C9, var(--sun)); }
#chapters-heading { font-size: 1.6rem; margin-top: 1.75rem; }

/* Reader: soft movie-style frame, calm plain page */
.r-bar { background: linear-gradient(90deg, #5B4BE0, #2B6CD8); color: #fff; box-shadow: 0 6px 18px rgba(75,63,194,.25); }
.r-bar__in { display: flex; align-items: center; gap: .4rem 1rem; padding: .75rem 1rem; flex-wrap: wrap; }
.r-bar a { color: #fff; font-weight: 800; }
.r-bar h1 { font-size: 1.12rem; margin: 0; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.r-bar .count { margin-left: auto; background: linear-gradient(180deg, #FFF0A8, var(--sun)); color: #5a3a00; padding: .1rem .7rem; border-radius: 999px; font-weight: 900; font-size: .85rem; box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0,0,0,.15); }
.r-main { position: relative; padding: 1.25rem 1rem 1rem; overflow-x: clip; }
.r-stage { position: relative; max-width: 48rem; margin: 0 auto; padding: 12px; border-radius: 32px; background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(238,232,255,.75)); box-shadow: var(--lift-hi); }
.r-stage .spark { z-index: 2; }
.r-sheet { position: relative; background: #fff; border-radius: 24px; padding: 1.4rem 1.1rem; box-shadow: inset 0 0 0 1px rgba(42,35,80,.06); }
@media (min-width: 700px) { .r-stage { padding: 18px; } .r-sheet { padding: 2.5rem 3rem; } }
.prose { font-family: var(--read); font-size: 1.2rem; line-height: 1.75; color: #111; max-width: 38em; margin: 0 auto; }
.prose p { margin: 0 0 1.15em; }
.sample-note { font-size: .85rem; font-weight: 800; color: var(--muted); text-align: center; background: var(--lav2); border-radius: 999px; padding: .35rem .8rem; margin: 0 auto 1.5rem; max-width: 30rem; }
.panels { display: grid; gap: 1.1rem; max-width: 40rem; margin: 0 auto; }
.panel { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(42,35,80,.08), 0 10px 24px rgba(42,35,80,.14); }
.panel svg, .panel img { width: 100%; height: auto; }
.say { position: absolute; max-width: 62%; background: #fff; color: var(--ink); border-radius: 22px; padding: .55rem 1rem; font-weight: 900; font-size: clamp(.85rem, 3.4vw, 1.08rem); line-height: 1.25; text-align: center; box-shadow: 0 4px 14px rgba(20,10,50,.25); }
.say::after { content: ""; position: absolute; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); bottom: -8px; left: 28%; border-radius: 0 0 5px 0; }
.say--tl { top: 5%; left: 4%; } .say--tr { top: 5%; right: 4%; } .say--bl { bottom: 7%; left: 4%; } .say--bl::after { top: -8px; bottom: auto; border-radius: 5px 0 0 0; }
.r-nav { display: flex; justify-content: space-between; gap: .9rem; max-width: 48rem; margin: 1.25rem auto 2.5rem; flex-wrap: wrap; }
.r-nav .btn { flex: 1 1 0; min-width: 0; padding-left: .5rem; padding-right: .5rem; white-space: nowrap; }
@media (max-width: 479px) { .r-nav { gap: .6rem; } .r-nav .btn { font-size: .9rem; } }
@media (max-width: 559px) { .r-main { padding: 1rem .5rem .75rem; } .r-stage { padding: 7px; border-radius: 26px; } .r-sheet { padding: 1.25rem 1rem; border-radius: 20px; } .prose { font-size: 1.125rem; line-height: 1.7; } }
.locked { text-align: center; padding: 1rem 0; }
.locked__icon { width: 96px; height: 96px; margin: 0 auto 1.1rem; display: grid; place-items: center; color: #fff; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #FFF6C9 0 10%, var(--sun) 45%, #F0A020 100%); box-shadow: inset 0 -6px 10px rgba(180,100,0,.3), inset 0 4px 6px rgba(255,255,255,.7), 0 14px 26px rgba(217,138,26,.35); }
.locked__icon svg { width: 42px; height: 42px; filter: drop-shadow(0 2px 2px rgba(150,80,0,.4)); }
.locked h2 { font-size: 1.7rem; }
.locked p { max-width: 30rem; margin-left: auto; margin-right: auto; }
.locked__bal { font-size: 1.1rem; }
.locked__short { font-weight: 800; color: #B3261E; }
.locked__fine { font-size: .85rem; color: var(--muted); margin-top: 1.4rem; }

/* Packs: floating glossy cards */
.packs { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding: .9rem 0 1.75rem; }
@media (min-width: 600px) { .packs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .packs { grid-template-columns: repeat(4, 1fr); } }
.pack { position: relative; background: #fff; border-radius: 28px; box-shadow: var(--lift); padding: 2.4rem 1.25rem 1.5rem; text-align: center; display: flex; flex-direction: column; overflow: visible; transition: transform .18s, box-shadow .18s; }
.pack:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }
.pack::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 92px; border-radius: 28px 28px 50% 50% / 28px 28px 30px 30px; opacity: .9; }
.pack:nth-child(1)::before { background: linear-gradient(180deg, var(--sky), var(--sky2)); } .pack:nth-child(2)::before { background: linear-gradient(180deg, var(--peach), var(--peach2)); }
.pack:nth-child(3)::before { background: linear-gradient(180deg, var(--mint), var(--mint2)); } .pack:nth-child(4)::before { background: linear-gradient(180deg, var(--lav), var(--lav2)); }
.pack > * { position: relative; }
.pack .bubble { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: #fff; white-space: nowrap; font-size: .85rem; z-index: 1;
  background: linear-gradient(180deg, #FF9AA8, #F0525F); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 14px rgba(240,82,95,.35); }
.pack .bubble::after { background: #F0525F; }
.pack--hot { box-shadow: 0 0 0 3px var(--sun), var(--lift); }
.pack__label { font-size: 1.2rem; margin-top: .2rem; }
.pack__tokens { font-weight: 800; margin: 0; }
.pack__tokens span { display: block; font-size: 3.1rem; line-height: 1.05; font-weight: 900; color: #5B4BE0; text-shadow: 0 2px 0 #CFC6FF, 0 6px 12px rgba(91,75,224,.25); }
.pack__price { font-size: 1.6rem; font-weight: 900; margin: .6rem 0 .2rem; }
.pack__per { font-size: .84rem; color: var(--muted); }
.pack .btn { margin-top: auto; }
.example-label { display: inline-block; color: #fff; font-weight: 900; padding: .2rem .8rem; border-radius: 999px; background: linear-gradient(180deg, #D93A4A, #B3261E); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 10px rgba(240,82,95,.3); }
.note-box { background: rgba(255,255,255,.92); border-radius: 24px; padding: 1.1rem 1.25rem; margin: 0 0 2.75rem; box-shadow: var(--lift); }
.note-box ul { margin: .25rem 0 0; padding-left: 1.2rem; }

/* Shared box and button styles */
.narrow { max-width: 36rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.box { position: relative; background: linear-gradient(180deg, #fff 0%, #fff 70%, #FBF9FF 100%); border-radius: 32px; box-shadow: var(--lift-hi); padding: 1.7rem 1.35rem; margin-bottom: 1.5rem; }
.box h1 { font-size: 1.9rem; }
.box .spark { z-index: 2; }
.warn { background: linear-gradient(180deg, #FFF6C9, var(--sun)); color: #5a3a00; padding: .95rem 1rem; font-weight: 900; text-align: center; font-size: 1.15rem; margin-bottom: 1.25rem; border-radius: 18px; box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 6px 14px rgba(217,138,26,.25); }
.row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 2px solid #EEE9FA; font-weight: 700; }
.fake-card { display: grid; gap: .6rem; margin: 1rem 0; opacity: .65; }
label { font-weight: 800; display: block; margin-bottom: .3rem; }
input[type="email"], input[type="text"] { width: 100%; font: inherit; padding: .75rem 1rem; border: 2px solid #E2DAFF; border-radius: 16px; background: #fff; box-shadow: inset 0 2px 4px rgba(42,35,80,.08); }
input:focus { border-color: #8C7BFF; outline: none; box-shadow: inset 0 2px 4px rgba(42,35,80,.08), 0 0 0 4px rgba(140,123,255,.25); }
input:disabled { background: #F5F2FC; }
.stack { display: grid; gap: 1rem; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-weight: 900; margin: 1.3rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: #E6E0F7; border-radius: 2px; }
.google { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; }
.g-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.msg { background: linear-gradient(180deg, var(--mint2), var(--mint)); padding: .95rem 1rem; font-weight: 800; border-radius: 18px; box-shadow: 0 6px 14px rgba(13,90,61,.15); }
.fine { font-size: .85rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { padding: 1rem; text-align: center; font-weight: 800; border-radius: 22px; background: linear-gradient(160deg, #E8F6FF, var(--sky)); box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 8px 18px rgba(42,35,80,.12); }
.stat:nth-child(2) { background: linear-gradient(160deg, #FFEFF5, var(--pink)); }
.stat b { display: block; font-size: 2.5rem; line-height: 1.05; color: #fff; text-shadow: 0 2px 0 rgba(42,35,80,.25), 0 6px 12px rgba(42,35,80,.2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .4rem; border-bottom: 2px solid #F0ECFA; vertical-align: top; }
th { font-weight: 900; color: var(--muted); }
.num { text-align: right; white-space: nowrap; } .pos { color: #087F5B; font-weight: 900; } .neg { color: #B3261E; font-weight: 900; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.s-footer { background: linear-gradient(180deg, #3B3170, #2A2350); color: #ECE8FB; padding: 1.4rem 0; font-size: .9rem; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 24px rgba(42,35,80,.15); }
.s-footer a { color: var(--sun); }
.s-footer p { margin: .2rem 0; }

/* ---- Live PREVIEW additions (free first chapters only, nothing to buy) ---- */
.mt { margin-top: 1.5rem; }
.s-hero__text--flush { padding: 0; }
.center { text-align: center; }
.preview-pill { display: inline-block; font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #5a3a00; background: linear-gradient(180deg, #FFE27A, #FFC83D); border-radius: 999px; padding: .3rem .7rem; box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(42,35,80,.15); }
.soon-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: #4B3AB8; }
.pill--soon { background: #EEE9FF; color: #4B3AB8; border: 1px solid #CFC5FF; }
.chapter-row--soon { cursor: default; opacity: .9; }
.chapter-row--soon:hover { transform: none; }
.pack__soon, .locked__soon { display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #4B3AB8; background: none; border: 0; border-radius: 0; box-shadow: none; padding: .2rem 0; margin: .4rem auto; width: auto; font-size: .95rem; cursor: default; user-select: none; }
.pack__soon::before, .locked__soon::before { content: "\23F3\FE0E  "; }
.s-logo img.s-logo__img { width: 88px; height: auto; }
.soon-label { display: inline-block; font-weight: 900; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: #4B3AB8; background: #EEE9FF; border-radius: 999px; padding: .55rem 1.1rem; cursor: default; }
/* "New title coming soon" placeholder cards (owner rule: no titles). Styled 3D gradient art for cards without a scenery image. */
.cat-note { margin: -.25rem 0 1rem; font-weight: 700; color: var(--muted); }
.cover-card--soon .cover-card__title { color: #2B2350; }
.cover--gradient { aspect-ratio: 2 / 3; box-shadow: inset 0 -18px 40px rgba(30,18,70,.18), inset 0 10px 30px rgba(255,255,255,.45); }
.cover--g1 { background: radial-gradient(120% 80% at 30% 15%, #FFE6D6 0%, rgba(255,230,214,0) 55%), linear-gradient(160deg, #FFC9A8 0%, #FF9AC1 45%, #9B8CFF 100%); }
.cover--g2 { background: radial-gradient(120% 80% at 70% 15%, #E8F6FF 0%, rgba(232,246,255,0) 55%), linear-gradient(200deg, #8FD3FF 0%, #A8EBCF 50%, #6C5CFF 100%); }
.cover__orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0%, rgba(255,255,255,.85) 12%, rgba(255,255,255,.25) 45%, rgba(255,255,255,0) 70%);
  box-shadow: inset -6px -10px 18px rgba(91,75,224,.25), 0 10px 24px rgba(42,35,80,.18); }
.cover__orb--1 { width: 46%; aspect-ratio: 1; left: 12%; top: 34%; }
.cover__orb--2 { width: 28%; aspect-ratio: 1; right: 10%; top: 22%; }
.cover__orb--3 { width: 20%; aspect-ratio: 1; right: 22%; bottom: 12%; }
