/* css/nook.css
   The Reading Nook design system (Sept 2026). One sheet shared by the
   homepage, Examples, Prices, My Stories, and the generated gift and guide
   pages. Loaded after each page's own styles so equal-specificity rules
   here win; a few older inline rules need !important and say so.

   Six colors, Nunito plus Lora italic plus the Pacifico wordmark, one
   radius, one shadow. Motion: sections rise in once, the page strip
   moves with the scroll bar, the cover reveals. Nothing else moves. */

:root {
    --paper: #FBF7F0;
    --card: #FFFFFF;
    --ink: #2A2340;
    --muted: #6A627E;
    --line: #E8DFD3;
    --teal: #2D9C92;
    --teal-ink: #1F7C74;
    --honey: #E4A83B;
    --honey-soft: #FBEFD6;
    --frame: #F4EBDD;
    --shadow: 0 14px 40px rgba(42, 35, 64, 0.10);
    --shadow-sm: 0 4px 14px rgba(42, 35, 64, 0.08);
    --radius: 16px;
    --nook-max: 1180px;
}

/* ---------- Ground and type ---------- */
/* overflow-x: clip on BOTH html and body: iOS Safari ignores overflow-x: hidden on body alone and lets the page
   pan sideways when anything pokes past the right edge (Sean saw it on the examples page, Sep 19 2026).
   clip does not create a scroll container, so the sticky header keeps working. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
    overflow-x: clip;
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    background: var(--paper) !important;
    background-image: none !important;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.12;
}
.brand-font, .m-brand { font-family: 'Pacifico', cursive; font-weight: 400; }
.nook-serif { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 400; }
.nook-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); }
.nook-muted { color: var(--muted); }
.nook-wrap { max-width: var(--nook-max); margin: 0 auto; padding: 0 24px; }
.nook-section { padding: 56px 0; }
.nook-section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; display: flex; flex-direction: column; gap: 10px; }
.nook-section-head h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; text-wrap: balance; }
.nook-section-head p { font-size: 18px; color: var(--muted); line-height: 1.5; }

/* ---------- Buttons ---------- */
.nook-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--teal); color: #fff; font-weight: 800; font-size: 19px;
    padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
    text-decoration: none; box-shadow: 0 6px 18px rgba(45, 156, 146, 0.28);
    transition: background 0.15s, transform 0.15s;
    font-family: inherit;
}
.nook-btn:hover { background: var(--teal-ink); color: #fff; }
.nook-btn:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }
.nook-btn.small { font-size: 16px; padding: 12px 22px; }
.nook-btn.tiny { font-size: 14px; padding: 8px 14px; box-shadow: none; }
.nook-btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.nook-btn.ghost:hover { background: var(--paper); color: var(--ink); }
.nook-btn.arrow::after { content: " \2192"; }

/* ---------- Header ---------- */
.nook-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(251, 247, 240, 0.88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 35, 64, 0.08);
    transition: box-shadow 0.2s;
}
.nook-header.scrolled { box-shadow: var(--shadow-sm); }
.nook-header .nook-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.nook-header .brand { font-family: 'Pacifico', cursive; font-size: 28px; color: var(--teal-ink); text-decoration: none; line-height: 1; white-space: nowrap; }
.nook-nav { display: flex; align-items: center; gap: 28px; }
.nook-nav a { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nook-nav a:hover, .nook-nav a.active { color: var(--teal-ink); border-bottom-color: var(--teal-ink); }
.nook-header .right { display: flex; align-items: center; gap: 14px; }
.nook-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: var(--honey); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1; vertical-align: 1px; }
/* The returning visitor's story, above the hero */
.nook-waiting { background: var(--honey-soft); border-bottom: 1px solid var(--line); }
.nook-waiting[hidden] { display: none; }
.nook-waiting__inner { display: flex; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; position: relative; }
.nook-waiting__close { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.nook-waiting__close:hover { background: rgba(42, 35, 64, 0.08); color: var(--ink); }
.nook-waiting__close:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.nook-waiting__cover { width: 72px; height: 96px; object-fit: cover; flex: 0 0 auto; border: 4px solid #fff; border-radius: 4px; box-shadow: 0 8px 18px rgba(42, 35, 64, 0.22); transform: rotate(-3deg); }
.nook-waiting__copy { flex: 1 1 auto; min-width: 0; }
.nook-waiting__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 2px; }
.nook-waiting__copy h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; margin: 0 0 4px; text-wrap: balance; }
.nook-waiting__copy p:last-child { font-size: 15px; color: var(--muted); margin: 0; }
.nook-waiting__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; padding-right: 36px; }
@media (max-width: 760px) {
    .nook-waiting__inner { flex-wrap: wrap; gap: 14px; }
    .nook-waiting__copy { flex-basis: calc(100% - 92px); }
    .nook-waiting__actions { flex-basis: 100%; justify-content: flex-start; padding-right: 0; }
    .nook-waiting__copy { padding-right: 28px; }
}
.nook-header .right .nook-btn { white-space: nowrap; }
@media (max-width: 480px) { .nook-header .right .nook-btn.small { padding: 7px 12px; font-size: 14px; } }
#auth-container { display: flex; align-items: center; }
#auth-container a, #auth-container button { font-family: inherit; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
#auth-container #sign-in-btn, #auth-container a.nook-cta { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; background: var(--card); }
#auth-container img { border-color: var(--line) !important; }
.nook-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; align-items: center; justify-content: center; }
.nook-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 14px 24px 20px; }
.nook-menu.open { display: block; }
.nook-menu a { display: block; padding: 12px 0; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nook-menu a:last-child { border-bottom: 0; }
.mobile-desktop-banner { background: var(--honey-soft) !important; color: var(--ink) !important; border: 0 !important; }
@media (max-width: 860px) {
    .nook-nav { display: none; }
    .nook-burger { display: inline-flex; flex: 0 0 auto; }
    .nook-header .right { flex: 0 0 auto; }
    #auth-container .hidden.sm\:inline { display: none !important; }
}
/* Phones: My Stories (with its count) plus the menu button is all that fits;
   the round profile picture used to be pushed under the menu button. */
@media (max-width: 560px) {
    #auth-container a[aria-label="My Stories"] { display: none; }
    /* Signed out on a phone, the header's own "Make a free cover" pushed the menu button off the
       screen on the gift pages; the page already has that button in the hero. */
    #auth-container a.nook-cta--make { display: none; }
    .seo-stack { padding-right: 14px; }
    .seo-stack .back { width: 80%; right: 0; }
}

/* ---------- Hero ---------- */
.nook-hero { position: relative; height: clamp(600px, 44vw, 780px); overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.nook-hero picture { position: absolute; inset: 0; width: 100%; }
.nook-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%;
    -webkit-mask-image: linear-gradient(#000 0 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
    mask-image: linear-gradient(#000 0 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%); }
.nook-hero-copy { position: relative; z-index: 2; max-width: 780px; padding: 64px 24px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.nook-hero-copy::before { content: ""; position: absolute; inset: -10px -180px -70px; z-index: -1;
    background: radial-gradient(ellipse at 50% 45%, rgba(251, 247, 240, 0.97) 0%, rgba(251, 247, 240, 0.88) 52%, rgba(251, 247, 240, 0) 76%); }
.nook-hero-copy h1 { font-size: clamp(38px, 4.8vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.nook-hero-copy .sub { font-size: 21px; color: var(--muted); max-width: 560px; line-height: 1.5; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.hero-actions .fine { font-size: 15px; color: var(--ink); font-weight: 600; }
/* The seasonal script drops its holiday pill into .hero-actions */
.hero-actions .seasonal-hero-btn { order: 2; font-size: 16px !important; padding: 10px 22px !important; border-width: 5px !important; }
.hero-actions .fine { order: 3; }

/* ---------- Proof: how a book gets made ---------- */
/* ---------- Proof: how a book gets made, pictures pegged to a line on the studio wall ---------- */
.nook-line { position: relative; z-index: 2; margin-top: -40px; padding: 70px 0 250px; overflow: hidden; }
.nook-line__wall { position: absolute; inset: 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(transparent 0, #000 160px, #000 calc(100% - 120px), transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 160px, #000 calc(100% - 120px), transparent 100%); }
.nook-line__wall img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.nook-line__inner { position: relative; z-index: 1; }
.nook-line__head { text-align: center; max-width: 720px; margin: 0 auto 28px; position: relative; }
.nook-line__head::before { content: ""; position: absolute; inset: -30px -140px -20px; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(251, 247, 240, 0.95) 0%, rgba(251, 247, 240, 0.8) 50%, rgba(251, 247, 240, 0) 76%); }
.nook-line__head h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; margin: 0 0 6px; }
.nook-line__head p { font-size: 17px; color: var(--muted); margin: 0; }
.nook-line__hang { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 56px; }
.nook-line__row { display: contents; }
.nook-line__string { position: absolute; left: -40px; right: -40px; width: calc(100% + 80px); height: 140px; top: 0; pointer-events: none; }
.nook-line__string--narrow { display: none; }
.nook-line__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: var(--hang, 0px); text-align: center; }
/* two copies of the peg: the whole peg behind the picture, and in front only the part above the paper edge plus the front jaw,
   so below the edge one jaw shows and the other is tucked behind the picture */
.nook-line__peg { position: absolute; top: -52px; left: 50%; width: 18px; height: auto; transform: translateX(-50%); pointer-events: none; --edge: 78.5%; }
.nook-line__peg--back { z-index: 0; }
.nook-line__peg--front { z-index: 3; clip-path: polygon(57% 0, 100% 0, 100% 100%, 67% 100%, 67% 44%, 57% 26%); filter: drop-shadow(0 3px 3px rgba(42, 35, 64, 0.3)); }
.nook-line__pic { z-index: 2; }
.nook-line__string { z-index: 1; top: -6px; }
.nook-line__pic { width: min(100%, 230px); position: relative; }
.nook-line__pic img { width: 100%; display: block; }
.nook-line__pic--polaroid { background: #fff; padding: 8px 8px 24px; box-shadow: 0 12px 28px rgba(42, 35, 64, 0.2); transform: rotate(-3deg); }
.nook-line__pic--polaroid img { aspect-ratio: 1; object-fit: cover; }
.nook-line__pic--polaroid .nook-tape { display: none; }
.nook-line__pic--book { transform: rotate(1.5deg); }
.nook-line__pic--book img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: 8px 12px 26px rgba(42, 35, 64, 0.24), inset 6px 0 8px -6px rgba(0, 0, 0, 0.45); }
.nook-line__pic--page { transform: rotate(-1deg); }
.nook-line__pic--page img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 0 12px 26px rgba(42, 35, 64, 0.22); }
.nook-line__pic--real { transform: rotate(2deg); }
.nook-line__pic--real img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 6px solid #fff; box-shadow: 0 14px 30px rgba(42, 35, 64, 0.22); }
.nook-line__cap { margin: 8px 0 0; display: flex; flex-direction: column; gap: 3px; position: relative; padding: 9px 16px 11px; background: #FFFDF8; border-radius: 6px; box-shadow: 0 8px 18px rgba(42, 35, 64, 0.14); transform: rotate(-1deg); }
.nook-line__item:nth-child(even) .nook-line__cap { transform: rotate(1deg); }
.nook-line__cap b { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 19px; color: var(--ink); }
.nook-line__cap b i { font-style: italic; color: var(--teal-ink); margin-right: 2px; }
.nook-line__cap span { font-size: 14px; color: #4A4260; font-weight: 600; line-height: 1.35; }
/* the line reveals with the section: each picture drops onto the line in turn */
.nook-line.nook-reveal .nook-line__item { opacity: 0; transform: translateY(-14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.nook-line.nook-reveal.visible .nook-line__item { opacity: 1; transform: none; }
.nook-line.nook-reveal.visible .nook-line__item:nth-child(2) { transition-delay: 0.12s; }
.nook-line.nook-reveal.visible .nook-line__row:nth-child(3) .nook-line__item:nth-child(2) { transition-delay: 0.24s; }
.nook-line.nook-reveal.visible .nook-line__row:nth-child(3) .nook-line__item:nth-child(3) { transition-delay: 0.36s; }
@media (max-width: 1100px) {
    .nook-line { padding: 56px 0 64px; }
    .nook-line__wall img { object-position: center top; }
}
@media (max-width: 900px) {
    .nook-line__hang { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
    .nook-line__string--wide { display: none; }
    .nook-line__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; padding-top: 52px; }
    .nook-line__row + .nook-line__row { margin-top: 28px; }
    .nook-line__string--narrow { display: block; height: 120px; top: -4px; }
    .nook-line__peg { width: 16px; top: -46px; --edge: 78%; }
    .nook-line__pic { width: min(100%, 200px); }
    .nook-line__cap b { font-size: 17px; }
}
@media (max-width: 480px) {
    .nook-line__row { gap: 14px; }
    .nook-line__pic { width: 100%; }
    .nook-line__cap span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .nook-line.nook-reveal .nook-line__item { opacity: 1; transform: none; transition: none; } }
.nook-demo { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; margin: 18px auto 0; max-width: var(--nook-max); padding: 0 24px; }
.nook-demo-inner { grid-column: 1 / -1; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.nook-demo-inner img { width: 44px; height: 44px; object-fit: contain; }
.nook-demo-inner b { display: block; font-size: 16px; color: var(--ink); }
.nook-demo-inner span { font-size: 14px; color: var(--muted); }

/* ---------- Film: the 44-second video with a big play button ---------- */
.nook-film .nook-section-head { margin-bottom: 22px; }
.nook-film__frame { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--frame); box-shadow: var(--shadow); }
.nook-film__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.nook-film__play { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: rgba(42, 35, 64, 0.16); cursor: pointer; transition: background 0.2s ease; }
.nook-film__play:hover { background: rgba(42, 35, 64, 0.06); }
.nook-film__play:focus-visible { outline: 3px solid var(--honey); outline-offset: -6px; }
.nook-film__play span { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--teal); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), inset 0 0 0 5px rgba(255, 253, 247, 0.9); }
.nook-film__play span::after { content: ""; margin-left: 7px; border-left: 28px solid var(--paper); border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.nook-film__frame.playing .nook-film__play { display: none; }
@media (max-width: 560px) {
    .nook-film__play span { width: 68px; height: 68px; }
    .nook-film__play span::after { margin-left: 5px; border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; }
}
@media (prefers-reduced-motion: reduce) { .nook-film__play { transition: none; } }

/* ---------- Page strip ---------- */
.nook-strip { padding: 44px 0 8px; overflow: hidden; }
.nook-strip h2 { font-size: 28px; font-weight: 700; text-align: center; }
.nook-strip .sub { text-align: center; color: var(--muted); font-size: 16px; margin: 6px 0 24px; }
.nook-strip .track { display: flex; gap: 18px; width: max-content; will-change: transform; padding-left: 24px; }
.nook-strip .pg { width: 190px; flex: none; display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.nook-strip .pg .im { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 5px solid var(--frame); outline: 1px solid rgba(42, 35, 64, 0.12); background: var(--frame); }
.nook-strip .pg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nook-strip .pg.photo .im { border-color: var(--card); box-shadow: 0 8px 20px rgba(42, 35, 64, 0.16); }

/* ---------- Anyone can be the hero ---------- */
.nook-heroes .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.nook-heroes .hb { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.nook-heroes .cv { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 6px solid var(--frame); outline: 1px solid rgba(42, 35, 64, 0.12); box-shadow: 0 14px 30px rgba(42, 35, 64, 0.12); margin-bottom: 8px; }
.nook-heroes .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nook-heroes b { font-size: 17px; color: var(--ink); }
.nook-heroes span { font-size: 14px; color: var(--muted); }

/* ---------- Wizard reframe (markup untouched, only the shell) ---------- */
#cover-hook { background: transparent !important; background-image: none !important; padding-top: 24px; }
#cover-hook .magic-intro { max-width: 760px; margin-bottom: 28px; }
#cover-hook .cover-heading { font-size: clamp(30px, 3.6vw, 40px) !important; font-weight: 700 !important; color: var(--ink) !important; }
#cover-hook .magic-intro p { font-size: 18px !important; color: var(--muted) !important; }
#cover-hook .heading-icon { display: none !important; }
.cover-wizard { background: var(--card) !important; background-image: none !important; border: 1px solid var(--line); border-radius: 20px !important; box-shadow: var(--shadow) !important; }
.wizard-aura, .wizard-aura--secondary { display: none !important; }
.wizard-stepper { background: var(--paper) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.wizard-step, .wizard-step.active, .wizard-step.upcoming, .wizard-step.completed { background: transparent !important; box-shadow: none !important; opacity: 1 !important; }
.wizard-step.active { background: var(--card) !important; border: 1px solid var(--line) !important; }
.wizard-step__number { color: var(--teal-ink) !important; }
.wizard-step__title { color: var(--ink) !important; }
.wizard-step__icon, .wizard-step.active .wizard-step__icon, .wizard-step.completed .wizard-step__icon, .wizard-step.photo-ready .wizard-step__icon,
.wizard-panel__icon { background: var(--paper) !important; background-image: none !important; box-shadow: none !important; border: 1px solid var(--line); }
.wizard-connector, .wizard-step.completed + .wizard-connector { background: var(--line) !important; background-image: none !important; }
.wizard-panel { background: var(--card) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.wizard-panel__title { color: var(--ink) !important; }
.wizard-panel__title span { background: var(--honey-soft) !important; color: var(--ink) !important; }
.wizard-panel__caption { color: var(--muted) !important; }
.wizard-panel__pet-chip { background: var(--paper) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.input-label, .input-label.accent-label { color: var(--ink) !important; font-weight: 700 !important; }
.input-field { background: var(--card) !important; border: 1.5px solid rgba(42, 35, 64, 0.22) !important; color: var(--ink) !important; font-size: 17px !important; }
.input-field:focus { border-color: var(--teal) !important; box-shadow: 0 0 0 3px rgba(45, 156, 146, 0.18) !important; }
.gender-btn, .choice-btn .choice-pill, .cover-reading-level-btn .choice-pill, .char-chip { background: var(--card) !important; background-image: none !important; color: var(--ink) !important; border: 1.5px solid rgba(42, 35, 64, 0.22) !important; box-shadow: none !important; font-weight: 600 !important; }
.gender-btn.active, .choice-btn.active .choice-pill, .cover-reading-level-btn.active .choice-pill, .char-chip.active { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.gender-btn.active::before, .choice-btn.active .choice-pill::before { content: "\2713 "; }
.age-reading-summary { background: var(--honey-soft) !important; color: var(--ink) !important; border: 0 !important; }
.age-stepper-container { background: var(--paper) !important; border: 1px solid var(--line) !important; }
.age-stepper-btn { background: var(--card) !important; border: 1.5px solid var(--ink) !important; color: var(--ink) !important; }
#photo-upload-area { background: var(--paper) !important; border: 2px dashed rgba(42, 35, 64, 0.28) !important; box-shadow: none !important; transform: none !important; }
#photo-upload-area:hover { border-color: var(--teal) !important; }
.upload-title, .upload-subtitle, .upload-hint { color: var(--ink) !important; }
#add-character-trigger, .add-character-btn { background: var(--card) !important; border: 1.5px solid var(--ink) !important; color: var(--ink) !important; border-radius: 999px !important; font-weight: 700 !important; box-shadow: none !important; }
.wizard-continue-btn, #step1-continue-btn, #generate-cover-btn, #create-full-book-btn, #story-wizard-btn {
    background: var(--teal) !important; background-image: none !important; color: #fff !important; border: 0 !important;
    border-radius: 999px !important; font-weight: 800 !important; box-shadow: 0 6px 18px rgba(45, 156, 146, 0.28) !important; opacity: 1 !important; }
.wizard-continue-btn:hover, #generate-cover-btn:hover, #create-full-book-btn:hover { background: var(--teal-ink) !important; transform: none !important; }
#story-wizard-btn { background: var(--card) !important; color: var(--ink) !important; border: 1.5px solid var(--ink) !important; box-shadow: none !important; font-size: 14px !important; }
.style-btn .style-card { background: var(--card) !important; border: 1.5px solid rgba(42, 35, 64, 0.22) !important; box-shadow: none !important; }
.style-btn.active .style-card { border-color: var(--teal) !important; box-shadow: 0 0 0 2px var(--teal) !important; background: var(--card) !important; }
.style-card__title { color: var(--ink) !important; }
.style-card__hint { color: var(--muted) !important; }
#style-preview, .style-preview, .style-examples-panel__inner { background: var(--paper) !important; background-image: none !important; border: 1px solid var(--line) !important; }
.style-example-thumbnail { border: 4px solid var(--frame) !important; }
.tooltip-bubble { background: var(--ink) !important; color: #fff !important; }
/* The right column: the painting is the placeholder for the cover */
.cover-preview__card--placeholder { padding: 0 !important; overflow: hidden !important; border: 0 !important; background: var(--frame) !important; box-shadow: var(--shadow) !important; border-radius: 16px !important; aspect-ratio: 4 / 5; }
.cover-preview__card--placeholder .cover-placeholder__content { display: none !important; }
.cover-preview__card--placeholder .wizard-art { width: 100%; height: 100%; object-fit: cover; display: block; }
#cover-result { border-radius: 16px !important; overflow: hidden; box-shadow: 0 22px 50px rgba(42, 35, 64, 0.22) !important; background: transparent !important; }
#end-result-teaser { display: none !important; }
#recipient-section, .recipient-section { background: var(--paper) !important; border: 1px solid var(--line) !important; }
#recipient-name, #recipient-relationship { border: 1.5px solid rgba(42, 35, 64, 0.22) !important; border-radius: 12px !important; }
.text-purple-700, .text-purple-600, .text-purple-500, .text-purple-400, .text-blue-600, .text-teal-700 { color: var(--teal-ink) !important; }
.bg-purple-50, .bg-purple-100, .bg-teal-100, .bg-blue-50 { background-color: var(--honey-soft) !important; }
.border-purple-300, .border-purple-200, .border-purple-400 { border-color: var(--line) !important; }
[class*="bg-gradient-to"] { background-image: none !important; }
/* The header sits at z-index 60; these full-screen dialogs are Tailwind z-50 and opened under it
   (the reorder dialog's top and close button were hidden). The editor's dialogs are left alone:
   its zoom view (z-60) has to open on top of the picture picker (z-50). */
#reorder-modal, #delete-modal, #delete-account-modal, #signin-modal, #story-wizard-modal { z-index: 70; }
/* The crop header's gradient is flattened to white above, so its pale hint line vanished. */
#crop-modal #crop-guide-text { color: var(--muted) !important; }
.magical-button { background: var(--teal) !important; background-image: none !important; }

/* ---------- Packages ---------- */
.nook-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.nook-pack { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 26px rgba(42, 35, 64, 0.08); }
.nook-pack.best { border: 2px solid var(--teal); }
.nook-pack .tag { position: absolute; top: -14px; left: 22px; background: var(--honey); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.nook-pack h3 { font-size: 22px; font-weight: 700; }
.nook-pack .price { font-size: 38px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; margin: 6px 0; }
.nook-pack p { color: var(--muted); font-size: 16px; line-height: 1.45; flex: 1; }
.nook-pack .nook-btn { align-self: flex-start; margin-top: 8px; }
.nook-price-line { text-align: center; font-size: 16px; color: var(--muted); margin-top: 22px; }
.nook-price-line b { color: var(--ink); }

/* ---------- Family ---------- */
.nook-family { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 40px; align-items: center; max-width: 1040px; margin: 0 auto; }
.nook-family .pic { border-radius: 18px; overflow: hidden; border: 8px solid var(--card); box-shadow: 0 18px 44px rgba(42, 35, 64, 0.16); max-width: 420px; justify-self: center; }
.nook-family .pic img { width: 100%; height: auto; display: block; }
.nook-family h2 { font-size: 32px; font-weight: 700; margin-bottom: 14px; }
.nook-family p { font-size: 18px; color: var(--muted); line-height: 1.55; }
.nook-family .sig { margin-top: 18px; font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 20px; color: var(--ink); }
.nook-family .sig span { display: block; font-family: 'Nunito', sans-serif; font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- Questions ---------- */
.nook-faq { max-width: 820px; margin: 0 auto; }
.nook-faq h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; text-align: center; }
.nook-faq details { border-top: 1px solid var(--line); padding: 12px 4px; }
.nook-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.nook-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.nook-faq summary::-webkit-details-marker { display: none; }
.nook-faq summary::after { content: "+"; color: var(--teal-ink); font-weight: 800; }
.nook-faq details[open] summary::after { content: "\2212"; }
.nook-faq p { font-size: 16px; color: var(--muted); line-height: 1.5; padding: 8px 0 4px; max-width: 64ch; }

/* ---------- Closing and footer ---------- */
.nook-close { position: relative; min-height: 460px; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; margin-top: 48px; }
.nook-close-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 88%;
    -webkit-mask-image: linear-gradient(transparent 0, rgba(0, 0, 0, 0.7) 22%, #000 48%);
    mask-image: linear-gradient(transparent 0, rgba(0, 0, 0, 0.7) 22%, #000 48%); }
.nook-close-copy { position: relative; z-index: 2; text-align: center; padding: 56px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nook-close-copy::before { content: ""; position: absolute; inset: -20px -140px -30px; z-index: -1;
    background: radial-gradient(ellipse at 50% 40%, rgba(251, 247, 240, 0.96) 0%, rgba(251, 247, 240, 0.8) 45%, rgba(251, 247, 240, 0) 72%); }
.nook-close-copy h2 { font-size: 36px; font-weight: 700; }
.nook-close-copy p { font-size: 19px; color: var(--muted); }
.nook-footer { background: var(--paper); border-top: 1px solid var(--line); }
.nook-footer .nook-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.nook-footer .brand { font-family: 'Pacifico', cursive; font-size: 26px; color: var(--teal-ink); text-decoration: none; }
.nook-footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nook-footer-links a { color: var(--ink); text-decoration: none; }
.nook-footer-links a:hover { color: var(--teal-ink); }
.nook-footer-note { width: 100%; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nook-footer-note img { width: 20px; height: 20px; object-fit: contain; }
.nook-footer-note a { color: var(--muted); text-decoration: none; }
.nook-footer-note a:hover { color: var(--teal-ink); }

/* ---------- Reveal and to-top ---------- */
.nook-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.nook-reveal.visible { opacity: 1; transform: none; }
.no-observer .nook-reveal { opacity: 1; transform: none; }
.nook-totop { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(42, 35, 64, 0.16); opacity: 0; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s, border-color 0.15s; pointer-events: none; }
.nook-totop.show { opacity: 1; transform: none; pointer-events: auto; }
.nook-totop:hover { border-color: var(--ink); }
#feedback-widget, .feedback-widget { bottom: 82px !important; }
/* Phones: the feedback button is the icon alone, a round teal dot the size of the back-to-top button */
@media (max-width: 640px) {
    #feedback-toggle { width: 46px; height: 46px; padding: 0 !important; border-radius: 50% !important; display: inline-flex !important; align-items: center; justify-content: center; }
    #feedback-toggle .feedback-label { display: none; }
    #feedback-toggle svg { width: 22px; height: 22px; }
    #feedback-widget { right: 22px !important; }
}

/* ---------- Seasonal doorways (rendered by js/seasonal-ui.js) ---------- */
.dm-season-bar { background: var(--honey-soft) !important; color: var(--ink) !important; font-family: 'Nunito', sans-serif !important; font-size: 15px !important; border-bottom: 1px solid rgba(42, 35, 64, 0.08); }
.dm-season-bar a { color: var(--teal-ink) !important; }
.dm-season-bar__close { color: var(--ink) !important; }
.seasonal-band { padding: 0 24px 40px !important; }
.seasonal-band__inner { max-width: var(--nook-max) !important; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) !important; gap: 24px !important; padding: 24px !important; background: var(--card) !important; background-image: none !important; border: 1px solid var(--line) !important; border-radius: 20px !important; box-shadow: 0 18px 44px rgba(42, 35, 64, 0.10) !important; overflow: hidden; padding: 0 !important; min-height: 400px; position: relative; }
.seasonal-band__inner.has-scene { grid-template-columns: 40% minmax(0, 1fr) !important; gap: 0 !important; padding: 0 !important; }
.seasonal-band__inner.has-scene::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 46%; background-image: var(--nook-season-art, none); background-size: cover; background-position: 0% 50%;
    -webkit-mask-image: linear-gradient(90deg, #000 0 55%, rgba(0, 0, 0, 0.6) 78%, transparent 100%); mask-image: linear-gradient(90deg, #000 0 55%, rgba(0, 0, 0, 0.6) 78%, transparent 100%); }
.seasonal-band__inner.has-scene .seasonal-band__art { position: absolute !important; left: 30% !important; top: 50% !important; width: 190px !important; height: auto !important; transform: translateY(-50%) rotate(-4deg); z-index: 2; border-radius: 4px 10px 10px 4px !important; box-shadow: 14px 18px 34px rgba(42, 35, 64, 0.32), inset 6px 0 8px -6px rgba(0, 0, 0, 0.45) !important; }
.seasonal-band__inner > div { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.seasonal-band__inner.has-scene > div { grid-column: 2; padding: 34px 32px 34px 120px; }
.seasonal-band__eyebrow { color: var(--teal-ink) !important; font-size: 12px !important; letter-spacing: 0.1em !important; margin: 0 !important; }
.seasonal-band__headline { font-family: 'Nunito', sans-serif !important; font-size: 28px !important; font-weight: 700 !important; color: var(--ink) !important; line-height: 1.15 !important; margin: 0 !important; }
.seasonal-band__sub { color: var(--muted) !important; font-size: 16px !important; margin: 0 !important; }
.seasonal-band__phase { color: var(--ink) !important; font-weight: 600 !important; font-size: 15px !important; margin: 0 !important; }
.seasonal-band__count { background: var(--honey) !important; color: var(--ink) !important; letter-spacing: 0.06em !important; text-transform: uppercase; box-shadow: 3px 4px 10px rgba(42, 35, 64, 0.18); }
.seasonal-band__chips { margin: 4px 0 !important; gap: 6px !important; flex-wrap: nowrap !important; }
.seasonal-band__chip { border: 1.5px solid rgba(42, 35, 64, 0.22) !important; color: var(--ink) !important; background: var(--card) !important; font-size: 13px !important; padding: 6px 10px !important; white-space: nowrap; }
.seasonal-band__chip.is-selected { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.seasonal-band__cta { background: var(--teal) !important; box-shadow: 0 6px 18px rgba(45, 156, 146, 0.28) !important; font-family: 'Nunito', sans-serif; font-weight: 800 !important; align-self: flex-start; }
.seasonal-band__cta:hover { background: var(--teal-ink) !important; }
.seasonal-band__links { display: none !important; }
.seasonal-band__trust { color: var(--muted) !important; margin: 0 !important; font-size: 14px !important; }
.seasonal-pick { background: var(--card) !important; border: 1px solid var(--line) !important; border-left: 4px solid var(--teal) !important; }
.seasonal-pick__check { background: var(--teal) !important; }
.seasonal-pick__title, .seasonal-pick a { color: var(--teal-ink) !important; }
@media (max-width: 860px) {
    .seasonal-band__inner, .seasonal-band__inner.has-scene { grid-template-columns: 1fr !important; }
    .seasonal-band__inner.has-scene::before { width: 100%; height: 260px; bottom: auto; -webkit-mask-image: linear-gradient(#000 0 55%, transparent 100%); mask-image: linear-gradient(#000 0 55%, transparent 100%); }
    .seasonal-band__inner.has-scene .seasonal-band__art { left: auto !important; right: 20px !important; top: 150px !important; width: 130px !important; transform: rotate(3deg); }
    .seasonal-band__inner.has-scene > div { grid-column: 1; padding: 340px 20px 24px !important; }
    .seasonal-band__chips { flex-wrap: wrap !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .nook-demo-inner { grid-template-columns: 44px 1fr; }
    .nook-demo-inner .nook-btn { grid-column: 2; justify-self: start; }
    .nook-heroes .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nook-packs { grid-template-columns: 1fr; }
    .nook-family { grid-template-columns: 1fr; }
    .nook-hero { height: 720px; }
    .nook-hero-art { object-position: 68% 50%; -webkit-mask-image: linear-gradient(#000 0 74%, rgba(0, 0, 0, 0.6) 90%, transparent 100%); mask-image: linear-gradient(#000 0 74%, rgba(0, 0, 0, 0.6) 90%, transparent 100%); }
    .nook-hero-copy { padding-top: 32px; gap: 14px; }
    .nook-hero-copy::before { inset: -90px -100vw -160px; border-radius: 0; background: linear-gradient(rgba(251, 247, 240, 0.94) 0%, rgba(251, 247, 240, 0.92) 30%, rgba(251, 247, 240, 0.82) 48%, rgba(251, 247, 240, 0.62) 62%, rgba(251, 247, 240, 0.4) 74%, rgba(251, 247, 240, 0.2) 85%, rgba(251, 247, 240, 0.07) 94%, rgba(251, 247, 240, 0) 100%); }
    .nook-hero-copy h1 { font-size: 34px; }
    .nook-hero-copy .sub { font-size: 17px; }
    .nook-strip .pg { width: 150px; }
}
@media (max-width: 560px) {
    .nook-heroes .row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .nook-footer-links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nook-reveal { opacity: 1; transform: none; transition: none; }
    .nook-strip .track { transform: none !important; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Older id-level rules in the inline block outrank classes; pin the hero copy. */
#hero.nook-hero { padding-block: 0; }
#hero .nook-hero-copy .sub { font-size: 21px; }
#hero .nook-hero-copy .fine { font-size: 15px; }
#hero .nook-hero-copy h1 { margin: 0; }
#cover-hook.section-spacing { padding-block: 24px 48px; }
@media (max-width: 1000px) { #hero .nook-hero-copy .sub { font-size: 17px; } }

/* Phone header: the sign-in pill stays on one line next to the menu button */
#auth-container #sign-in-btn, #auth-container a.nook-cta { white-space: nowrap; }
@media (max-width: 480px) { #auth-container #sign-in-btn, #auth-container a.nook-cta { padding: 7px 12px; font-size: 14px; } .nook-header .brand { font-size: 24px; } }
/* The painting pins beside the form on wide screens */
@media (min-width: 1024px) { .wizard-preview { position: sticky; top: 90px; align-self: start; } }

/* Seasons without a scene file: art on the left, copy on the right, as the script lays it out */
.seasonal-band__art { border-radius: 12px !important; box-shadow: 0 14px 30px rgba(42, 35, 64, 0.16) !important; }
@media (max-width: 640px) { .nook-header #sign-out-btn { display: none !important; } }

/* ---------- My Stories ---------- */
.nook-stories .book-card { border-radius: 16px !important; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(42, 35, 64, 0.08) !important; overflow: visible !important; }
.nook-stories .book-card { transition: transform 0.35s ease, box-shadow 0.35s ease !important; cursor: pointer; }
.nook-stories .book-card:hover { transform: translateY(-6px) !important; box-shadow: 0 18px 40px rgba(42, 35, 64, 0.16) !important; }
.nook-stories .book-card.cursor-not-allowed:hover { transform: none !important; }
.nook-stories .book-cover img { transition: transform 0.6s ease; }
.nook-stories .book-card:hover .book-cover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .nook-stories .book-card:hover { transform: none !important; } .nook-stories .book-card:hover .book-cover img { transform: none; } }
.nook-stories .book-cover { height: auto !important; aspect-ratio: 4 / 5; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--frame) !important; background-image: none !important; }
.nook-stories .book-cover img { object-position: center top; }
.nook-stories .book-card > .absolute { background: rgba(251, 247, 240, 0.96) !important; color: var(--ink) !important; font-weight: 800 !important; font-size: 13px !important; padding: 6px 12px !important; top: 12px !important; }
.nook-stories .book-card > .absolute.top-2.right-2 { right: 12px !important; }
.nook-stories .book-card > .absolute.top-2.left-2 { left: 12px !important; }
.nook-stories .story-body h3 { font-size: 20px !important; white-space: normal !important; line-height: 1.25; }
.nook-stories .story-next { font-size: 14px; color: var(--muted); line-height: 1.4; margin: 4px 0 12px; min-height: 20px; }
.nook-stories .story-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.story-more { position: relative; }
.story-more summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 22px; line-height: 1; border: 1.5px solid transparent; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary:hover, .story-more[open] summary { border-color: var(--line); background: var(--paper); }
.story-more__menu { position: absolute; right: 0; bottom: 48px; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.story-more__menu button { text-align: left; background: none; border: 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.story-more__menu button:hover { background: var(--paper); }
.story-more__menu .delete-btn { color: #B9525A !important; }
.story-more__date { font-size: 13px; color: var(--muted); padding: 6px 12px; }
#profile-content .bg-white.rounded-full.shadow-md { background: var(--card) !important; border: 1px solid var(--line); box-shadow: none !important; }
#stories-tab.bg-teal-500, #orders-tab.bg-teal-500, #account-tab.bg-teal-500 { background: var(--ink) !important; }
#stories-tab, #orders-tab, #account-tab { font-weight: 700 !important; font-size: 15px !important; }
.nook-stories .story-card-in-progress { opacity: 1 !important; }

.nook-header .nook-cta-link { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }

/* ---------- Examples page ---------- */
.nook-exhero { background: var(--paper) !important; }
.nook-exhero .font-display, .nook-exhero h1 { font-family: 'Nunito', sans-serif !important; color: var(--ink) !important; }
.nook-exhero h1 { font-weight: 700 !important; font-size: clamp(28px, 3.2vw, 36px) !important; }
.nook-exhero .italic { font-family: 'Lora', Georgia, serif !important; }
.nook-exhero .text-gray-500, .nook-exhero .text-gray-600 { color: var(--muted) !important; }
.nook-exhero .text-gray-700, .nook-exhero .text-gray-800 { color: var(--ink) !important; }
.nook-exhero button.bg-\[\#2D9C92\], .nook-exhero .bg-\[\#2D9C92\] { background: var(--teal) !important; box-shadow: 0 6px 18px rgba(45, 156, 146, 0.28) !important; font-weight: 800; }
.nook-exhero a.border-2 { border-color: var(--ink) !important; color: var(--ink) !important; background: var(--card); font-weight: 800; }
.nook-exhero a.border-2:hover { background: var(--paper) !important; color: var(--ink) !important; }
.nook-genre-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto 28px; }
.genre-tab { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-family: inherit; color: var(--ink); }
.genre-tab .cv { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 28px rgba(42, 35, 64, 0.16); margin-bottom: 10px; transition: transform 0.15s, box-shadow 0.15s; position: relative; }
.genre-tab .cv img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.2s; }
.genre-tab:not(.is-active) .cv img { filter: saturate(0.8) brightness(0.96); }
/* A pill on every cover, so the row reads as buttons and not as decoration. The open book's pill is teal
   and its frame is a ring outside the picture, which stays visible over a busy cover. */
.genre-tab .cv::after { content: "Open this book"; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(42, 35, 64, 0.25); transition: background 0.15s, color 0.15s; }
.genre-tab:hover .cv { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(42, 35, 64, 0.22); }
.genre-tab:hover:not(.is-active) .cv::after { background: var(--ink); color: #fff; }
.genre-tab:hover:not(.is-active) .cv img { filter: none; }
.genre-tab.is-active .cv { box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--teal), 0 14px 30px rgba(42, 35, 64, 0.2); }
.genre-tab.is-active .cv::after { content: "\2713  Now open"; background: var(--teal); color: #fff; }
.genre-tab b { font-size: 15px; line-height: 1.3; }
.genre-tab.is-active b { color: var(--teal-ink); }
.genre-tab > span:last-child { font-size: 13px; color: var(--muted); }
.genre-tab:focus-visible { outline: 3px solid var(--honey); outline-offset: 6px; border-radius: 12px; }
@media (max-width: 640px) { .genre-tab .cv::after { font-size: 11px; padding: 5px 9px; bottom: 6px; } }
#genreContent .bg-purple-500, #genreContent .bg-purple-600 { background: var(--teal) !important; }
#genreContent .text-purple-600, #genreContent .text-purple-700 { color: var(--teal-ink) !important; }
#genreContent .border-purple-500 { border-color: var(--teal) !important; }
#genreContent .font-serif { font-family: 'Nunito', sans-serif !important; }
.bg-white\/50 { background: transparent !important; }
@media (max-width: 760px) { .nook-genre-row { grid-template-columns: 1fr 1fr; gap: 12px; } }
.nook-stories .book-card > .absolute { z-index: 20; }

/* ---------- Wizard, rebuilt to the mock (Sept 10) ---------- */
/* ---------- The writing desk: See the magic happen ---------- */
.nook-desk { position: relative; padding: 56px 0 64px; background: var(--paper); overflow: hidden; }
.nook-desk__art { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none;
    -webkit-mask-image: linear-gradient(transparent 0, #000 200px, #000 calc(100% - 260px), transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 200px, #000 calc(100% - 260px), transparent 100%); }
.nook-desk__art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.nook-desk__inner { position: relative; z-index: 1; max-width: 1180px; }
.nook-desk__head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.nook-desk__head .cover-heading { font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em; }
.nook-desk__head p { font-size: 18px; color: var(--muted); margin: 0; }

/* the two things on the desk */
.nook-wizard { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.nook-wizard .wizard-panels { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; align-items: start; }
.nook-sheet { background: #FFFDF8; padding: 28px 32px 30px; box-shadow: 0 18px 44px rgba(60, 40, 20, 0.22), 0 2px 0 rgba(255, 255, 255, 0.6) inset; }
.nook-wizard .wizard-panel { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
.nook-wizard .wizard-panel[data-collapsed="true"] { display: none !important; }
.nook-wizard .wizard-panel[data-collapsed="false"] { animation: nookStepIn 0.5s ease both; }
@keyframes nookStepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.nook-wizard .wizard-panel__header { padding: 0 !important; display: block; }
.nook-wizard .wizard-panel__step { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 4px; }
.nook-wizard .wizard-panel__title { font-family: 'Lora', Georgia, serif; font-size: 27px !important; font-weight: 600 !important; color: var(--ink) !important; margin: 0 0 18px !important; line-height: 1.2; }
.nook-wizard .nook-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.nook-wizard .nook-hd .wizard-panel__step { margin: 0; }
.nook-wizard .wizard-panel__body { padding: 0 !important; display: flex; flex-direction: column; gap: 18px; }

/* numbered blocks */
.nook-blk { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; transition: opacity 0.25s ease; }
.nook-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-top: 1px; transition: background 0.25s ease, box-shadow 0.25s ease; }
.nook-blk.is-done .nook-n { background: var(--teal); font-size: 0; }
.nook-blk.is-done .nook-n::after { content: "\2713"; font-size: 14px; }
.nook-blk.is-now .nook-n { background: var(--honey); color: var(--ink); box-shadow: 0 0 0 4px rgba(228, 168, 59, 0.25); }
.nook-blk.is-todo { opacity: 0.45; }
.nook-blk.is-todo .nook-n { background: #CFC9D6; }
.nook-blk.is-todo:not([data-blk="others"]) { pointer-events: none; }
.nook-blk.is-todo[data-blk="others"] .nook-n { font-size: 14px; }
.nook-blk[data-blk="others"].is-now .nook-n { background: var(--honey); color: var(--ink); box-shadow: 0 0 0 4px rgba(228, 168, 59, 0.25); }
.nook-blk__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nook-blk__title { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 20px; color: var(--ink); margin: 0; line-height: 1.25; display: block; }
.nook-hint { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.45; }
.nook-hint .nook-link, .nook-link { color: var(--teal-ink); font-weight: 800; text-decoration: none; }
.nook-hint .nook-link:hover { text-decoration: underline; }
.nook-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nook-lbl { font-size: 15px; font-weight: 800; color: var(--ink); min-width: 96px; }
.nook-wizard .input-field { padding: 12px 16px !important; border: 1.5px solid #CFC9D6 !important; border-radius: 12px !important; background: #fff !important; font-size: 17px !important; margin: 0 !important; color: var(--ink) !important; box-shadow: none !important; }
.nook-wizard .input-field:focus { border-color: var(--teal) !important; outline: none; box-shadow: 0 0 0 3px rgba(45, 156, 146, 0.18) !important; }
.nook-wizard .nook-name { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 21px !important; color: var(--teal-ink) !important; }
.nook-wizard .nook-name::placeholder { font-style: italic; color: #B9B3C6; }
.nook-wizard .textarea-field { min-height: 120px; line-height: 1.5; font-family: 'Lora', Georgia, serif !important; font-style: italic; }
.nook-wizard .input-label { font-size: 13px !important; font-weight: 800 !important; color: var(--ink) !important; margin: 0 0 5px !important; display: block; }
.nook-wizard .input-hint { font-weight: 600; color: var(--muted); }

/* pills */
.nook-wizard .chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.nook-wizard .gender-btn, .nook-wizard .choice-btn { padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; font: inherit; cursor: pointer; }
.nook-wizard .gender-btn, .nook-wizard .choice-btn .choice-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px !important; border: 1.5px solid #CFC9D6 !important; border-radius: 999px !important; background: #fff !important; color: var(--ink) !important; font-size: 15px !important; font-weight: 800 !important; line-height: 1.2; transition: background 0.15s, border-color 0.15s; }
.nook-wizard .gender-btn:hover, .nook-wizard .choice-btn:hover .choice-pill { border-color: var(--ink) !important; }
.nook-wizard .gender-btn.active, .nook-wizard .choice-btn.active .choice-pill { background: var(--ink) !important; color: #FBF7F0 !important; border-color: var(--ink) !important; }
.nook-wizard .age-stepper-container { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--paper) !important; border: 1.5px dashed var(--honey) !important; border-radius: 999px !important; padding: 6px 14px 6px 16px !important; margin: 0 !important; align-self: flex-start; }
.nook-wizard .age-stepper-container.hidden { display: none; }
.nook-wizard .age-stepper-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.nook-wizard .age-stepper-group { display: flex; align-items: center; gap: 6px; background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.nook-wizard .age-stepper-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.nook-wizard .age-stepper-btn { width: 32px !important; height: 32px !important; border-radius: 50% !important; border: 1.5px solid var(--ink) !important; background: #fff !important; color: var(--ink) !important; font-size: 18px !important; display: grid; place-items: center; padding: 0 !important; cursor: pointer; }
.nook-wizard .age-stepper-input { width: 40px !important; text-align: center; font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 24px !important; font-weight: 500; color: var(--teal-ink) !important; border: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 !important; -moz-appearance: textfield; }
.nook-wizard .nook-band { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.nook-wizard .nook-band.hidden { display: none; }
.nook-wizard .nook-band .chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.nook-wizard .age-band-btn { padding: 7px 13px; border: 1.5px solid #CFC9D6; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; line-height: 1; }
.nook-wizard .age-band-btn:hover { border-color: var(--ink); }
.nook-wizard .age-band-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.nook-wizard .age-band-btn:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.nook-wizard .nook-band__note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.nook-wizard .char-age-band-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nook-wizard .char-age-band-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.nook-wizard .char-age-band-note { font-size: 12px; color: var(--muted); }
.nook-wizard .age-stepper-input:placeholder-shown, .nook-wizard .char-age-stepper-input:placeholder-shown { border: 2px solid var(--honey) !important; background: var(--honey-soft) !important; border-radius: 8px; }
.nook-wizard .age-stepper-input::-webkit-outer-spin-button, .nook-wizard .age-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nook-wizard .age-stepper-summary { display: none; }

/* reading level cards */
.nook-levels { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.nook-levels .choice-btn { display: block; width: 100%; text-align: left; }
.nook-wizard .choice-pill.nook-level { display: grid !important; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px !important; border-radius: 12px !important; width: 100%; }
.nook-wizard .choice-pill.nook-level img { grid-row: 1 / 3; width: 24px; height: 24px; object-fit: contain; }
.nook-wizard .choice-pill.nook-level b { font-size: 14px; line-height: 1.2; }
.nook-wizard .choice-pill.nook-level span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nook-wizard .choice-btn.active .choice-pill.nook-level span { color: #CFC9D6; }

/* the photo polaroid */
.nook-photo { display: flex; align-items: center; gap: 16px; }
.nook-wizard .nook-pol { flex: none; width: 128px; background: #fff; padding: 8px 8px 8px; box-shadow: 0 10px 22px rgba(60, 40, 20, 0.2); transform: rotate(-3deg); position: relative; cursor: pointer; border: 0 !important; border-radius: 0 !important; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.nook-wizard .nook-pol:hover { transform: rotate(-3deg) translateY(-3px); box-shadow: 0 14px 28px rgba(60, 40, 20, 0.28); }
.nook-tape { position: absolute; width: 60px; height: 16px; background: rgba(228, 168, 59, 0.55); transform: rotate(-4deg); left: 50%; margin-left: -30px; top: -8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.nook-wizard .nook-pol__ph { aspect-ratio: 1; border: 2px dashed #CFC9D6; background: repeating-linear-gradient(45deg, #F4EBDD 0 8px, #FBF7F0 8px 16px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 6px; font-size: 12px; font-weight: 800; color: var(--ink); line-height: 1.25; overflow: hidden; transition: border-color 0.2s, background-color 0.2s; }
.nook-wizard .nook-pol:hover .nook-pol__ph:not(.nook-pol__ph--has) { border-color: var(--teal); background: #E7F5F3; color: var(--teal-ink); }
.nook-wizard .nook-pol__ph > img { width: 26px; height: 26px; object-fit: contain; }
.nook-wizard .nook-pol__ph b { font-weight: 800; }
.nook-wizard .nook-pol__ph--has { border: 0; padding: 0; background: none; position: relative; }
.nook-wizard .nook-pol__ph--has .uploaded-image { width: 100%; height: 100%; object-fit: cover; display: block; max-height: none; border-radius: 0; }
.nook-wizard .nook-pol__ph--has .upload-success { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(42, 35, 64, 0.55); }
.nook-wizard .nook-pol .hidden { display: none !important; }
.nook-photo__txt p { font-family: 'Lora', Georgia, serif; font-size: 15.5px; line-height: 1.5; color: var(--ink); margin: 0; }
.nook-photo__txt small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.nook-wizard #photo-upload-area.drag-over .nook-pol__ph { border-color: var(--teal); background: #E7F5F3; }

/* people cards */
.nook-addrow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.nook-people { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.nook-wizard .additional-character-card { background: var(--paper) !important; border: 1.5px solid var(--line) !important; border-radius: 14px !important; padding: 14px 16px !important; margin: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; position: relative; box-shadow: none !important; }
.nook-wizard .additional-character-card::before { content: "Someone else"; grid-column: 1 / -1; font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.nook-wizard .additional-character-card.character-card-invalid { border-color: #B9525A !important; }
.nook-wizard .remove-character-btn { position: absolute; top: 14px; right: 16px; background: none !important; border: 0 !important; font-size: 12.5px !important; font-weight: 800; color: var(--muted) !important; cursor: pointer; padding: 0 !important; display: flex; gap: 4px; align-items: center; }
.nook-wizard .remove-character-btn span:first-child { display: none; }
.nook-wizard .additional-character-card .field-group { margin: 0 !important; min-width: 0; }
.nook-wizard .additional-character-card .field-group.char-gender-group, .nook-wizard .additional-character-card .field-group.char-age-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nook-wizard .additional-character-card .field-group.char-gender-group.hidden, .nook-wizard .additional-character-card .field-group.char-age-group.hidden { display: none !important; }
.nook-wizard .additional-character-card .field-group:last-child { grid-column: 1 / -1; }
.nook-wizard .additional-character-card .field-label { font-size: 12.5px !important; font-weight: 800 !important; color: var(--ink) !important; margin: 0 0 5px !important; display: block; }
.nook-wizard .char-gender-group .field-label, .nook-wizard .char-age-group .field-label { margin: 0 !important; min-width: 80px; }
.nook-wizard .additional-character-card .field-label .text-rose-500 { display: none; }
.nook-wizard .additional-character-card .field-input { width: 100%; padding: 10px 12px !important; border: 1.5px solid #CFC9D6 !important; border-radius: 12px !important; background: #fff !important; font-size: 15px !important; font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--ink) !important; margin: 0 !important; }
.nook-wizard .additional-character-card .char-name-input { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 500; font-size: 17px !important; color: var(--teal-ink) !important; }
.nook-wizard .additional-character-card select.field-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%236A627E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; padding-right: 34px !important; cursor: pointer; }
.nook-wizard .char-chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.nook-wizard .char-chip { padding: 6px 12px !important; border: 1.5px solid #CFC9D6 !important; border-radius: 999px !important; background: #fff !important; color: var(--ink) !important; font-size: 13px !important; font-weight: 800 !important; cursor: pointer; margin: 0 !important; }
.nook-wizard .char-chip.active { background: var(--ink) !important; color: #FBF7F0 !important; border-color: var(--ink) !important; }
.nook-wizard .char-age-stepper-container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fff !important; border: 1.5px dashed var(--honey) !important; border-radius: 999px !important; padding: 4px 12px !important; margin: 0 !important; }
.nook-wizard .char-age-stepper-group { display: flex; align-items: center; gap: 4px; }
.nook-wizard .char-age-stepper-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.nook-wizard .char-age-stepper-btn { width: 28px !important; height: 28px !important; border-radius: 50% !important; border: 1.5px solid var(--ink) !important; background: #fff !important; color: var(--ink) !important; font-size: 16px !important; display: grid; place-items: center; padding: 0 !important; cursor: pointer; }
.nook-wizard .char-age-stepper-input { width: 34px !important; text-align: center; font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 19px !important; color: var(--teal-ink) !important; border: 0 !important; background: transparent !important; padding: 0 !important; -moz-appearance: textfield; }
.nook-wizard .char-age-stepper-input::-webkit-outer-spin-button, .nook-wizard .char-age-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nook-wizard .char-age-stepper-summary { display: none; }
.nook-wizard .photo-upload-compact { display: flex; align-items: center; gap: 14px; cursor: pointer; border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; }
.nook-wizard .photo-upload-compact .photo-preview { width: 84px; height: 84px; object-fit: cover; flex: none; background: #fff; padding: 6px; box-shadow: 0 8px 18px rgba(60, 40, 20, 0.2); transform: rotate(-3deg); border: 0 !important; border-radius: 0 !important; }
.nook-wizard .photo-upload-compact .photo-preview[src$="camera.webp"] { object-fit: contain; background: repeating-linear-gradient(45deg, #F4EBDD 0 8px, #FBF7F0 8px 16px); outline: 2px dashed #CFC9D6; outline-offset: -8px; }
.nook-wizard .photo-upload-compact > div span { font-family: 'Lora', Georgia, serif !important; font-size: 15px !important; font-weight: 600 !important; color: var(--ink) !important; }
.nook-wizard .photo-upload-compact .photo-hint { font-size: 12.5px !important; color: var(--muted) !important; margin: 2px 0 0 !important; }
.nook-wizard .photo-upload-compact.photo-missing .photo-preview { outline-color: #B9525A; }

/* the foot of each step */
.nook-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.nook-why { font-size: 13px; color: var(--muted); font-weight: 700; line-height: 1.3; }
.nook-why:empty { display: none; }
.nook-wizard .wizard-continue-btn, .nook-wizard #generate-cover-btn { width: auto !important; flex: none; white-space: nowrap; margin-left: auto; }
/* Waiting buttons: light grey with ink text, so the label still reads (white on grey looked broken) */
.nook-wizard .wizard-continue-btn.is-off { background: #E4DEE8 !important; color: #5C536F !important; box-shadow: none !important; }
.nook-wizard #generate-cover-btn:disabled, .nook-wizard #generate-cover-btn[disabled] { background: #E4DEE8 !important; color: #5C536F !important; box-shadow: none !important; cursor: default; }
.nook-wizard #generate-cover-btn:disabled::after { opacity: 0.6; }
.nook-helprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nook-wizard #story-wizard-btn { font-size: 13px !important; padding: 7px 12px !important; }
.nook-wizard .loves-chip { padding: 7px 12px !important; border-radius: 999px !important; border: 1.5px solid #CFC9D6 !important; background: #fff !important; color: var(--ink) !important; font-family: 'Lora', Georgia, serif !important; font-style: italic; font-size: 14px !important; font-weight: 600 !important; margin: 0 !important; cursor: pointer; }
.nook-wizard .loves-chip.active, .nook-wizard .loves-chip.selected, .nook-wizard .loves-chip[aria-pressed="true"] { background: var(--ink) !important; color: #FBF7F0 !important; border-color: var(--ink) !important; }
.nook-loves { flex-wrap: nowrap !important; }

/* style cards */
.nook-styles { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nook-wizard .style-btn { padding: 0 !important; background: none !important; border: 0 !important; position: relative; cursor: pointer; }
.nook-wizard .style-card { display: block !important; border: 1.5px solid var(--line) !important; border-radius: 10px !important; background: #fff !important; padding: 0 0 6px !important; text-align: center; position: relative; box-shadow: none !important; }
.nook-wizard .style-btn.active .style-card { border: 2px solid var(--teal) !important; }
.nook-wizard .style-btn.active .style-card::after { content: "\2713"; position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; display: grid; place-items: center; }
.nook-wizard .style-card__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.nook-wizard .style-card__title { font-size: 12px !important; font-weight: 800; color: var(--ink); display: block; line-height: 1.2; padding: 0 4px; }
.nook-wizard #style-preview { display: none !important; }
.nook-optional summary { list-style: none; display: inline-flex; cursor: pointer; }
.nook-optional summary::-webkit-details-marker { display: none; }
.nook-optional .input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.nook-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.nook-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.nook-consent a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }

/* the canvas: a taped sheet where the cover is painted */
.nook-canvas-col { display: flex; flex-direction: column; gap: 16px; }
.nook-wizard .nook-canvas { position: relative; background: #fff; padding: 24px; box-shadow: 0 22px 50px rgba(60, 40, 20, 0.25); }
.nook-tp { position: absolute; width: 64px; height: 18px; background: rgba(228, 168, 59, 0.6); }
.nook-tp.a { left: -14px; top: 14px; transform: rotate(-45deg); } .nook-tp.b { right: -14px; top: 14px; transform: rotate(45deg); } .nook-tp.c { left: -14px; bottom: 14px; transform: rotate(45deg); } .nook-tp.d { right: -14px; bottom: 14px; transform: rotate(-45deg); }
.nook-wizard .cover-preview__frame { max-width: none !important; aspect-ratio: 4 / 5; position: relative; }
.nook-wizard .cover-preview__frame > .cover-preview__card { max-width: none !important; }
.nook-wizard .cover-preview__card--placeholder { position: absolute !important; inset: 0; padding: 0 !important; margin: 0 !important; border: 1px solid var(--line) !important; border-radius: 4px !important; background: var(--paper) !important; overflow: hidden; box-shadow: 0 6px 18px rgba(42, 35, 64, 0.1) !important; }
.nook-sketch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(0.5) brightness(1.35); opacity: 0.32; }
.nook-wizard .cover-placeholder__content { position: absolute; left: 0; right: 0; top: 46%; text-align: center; padding: 0 16px; }
.nook-canvas__cap { display: inline-block; background: rgba(255, 253, 248, 0.92); padding: 8px 12px; border-radius: 8px; font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 15px; color: var(--ink); }
.nook-wizard #cover-result { position: absolute !important; inset: 0; background: transparent !important; padding: 0 !important; margin: 0 !important; }
.nook-wizard .cover-result__inner { border-radius: 4px; overflow: hidden; height: 100%; box-shadow: 0 6px 18px rgba(42, 35, 64, 0.12); }
.nook-wizard .cover-result__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.nook-wizard #cover-result:not(.hidden) .cover-result__image { animation: nookReveal 3s ease-in-out both; }
@keyframes nookReveal { from { opacity: 0; } to { opacity: 1; } }
.nook-recipient { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.nook-recipient h4 { font-family: 'Lora', Georgia, serif; font-size: 22px; font-weight: 600; margin: 0; }
.nook-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nook-wizard .cover-preview__cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.nook-cta-note { display: none; }
.nook-wizard #create-full-book-btn:not(.hidden) + .nook-cta-note { display: block; }
/* After the cover: a line and a down arrow point to the dedication fields, a second arrow to the button.
   Both sit on paper (a pill, a round badge) so nothing is drawn straight onto the wood; the badge nods unless motion is reduced. */
.nook-flow { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 2px 0; }
.nook-flow.hidden { display: none; }
.nook-flow p, .nook-wizard .nook-cta-note { margin: 0; font-family: 'Lora', Georgia, serif; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink) !important; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; text-align: center; text-wrap: balance; box-shadow: 0 4px 12px rgba(42, 35, 64, 0.10); }
.nook-flow-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(42, 35, 64, 0.14); animation: nookNod 1.8s ease-in-out infinite; }
.nook-flow svg { width: 26px; height: 26px; color: var(--teal-ink); }
@keyframes nookNod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .nook-flow-badge { animation: none; } }
/* The line under the button matches the ready line above: same card, same serif, one line where it fits. */
.nook-wizard .nook-cta-note { align-self: center; max-width: 100%; }
.nook-wizard .cover-preview__cta .nook-cta-note a { display: inline; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.nook-recipient .nook-optional-tag { display: inline-block; vertical-align: middle; font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; margin-left: 8px; }
.nook-wizard #create-full-book-btn:not(.hidden) { width: 100% !important; justify-content: center; }

@media (max-width: 1100px) {
    .nook-wizard .wizard-panels { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; }
}
@media (max-width: 1000px) {
    .nook-desk { padding: 44px 0 40px; }
    .nook-desk__art { -webkit-mask-image: linear-gradient(transparent 0, #000 120px, #000 calc(100% - 200px), transparent 100%); mask-image: linear-gradient(transparent 0, #000 120px, #000 calc(100% - 200px), transparent 100%); }
    .nook-desk__art img { object-position: 40% top; }
    .nook-wizard .wizard-panels { grid-template-columns: 1fr; gap: 24px; }
    .nook-sheet { padding: 22px 18px 24px; }
    .nook-canvas-col:not(:has(#cover-result:not(.hidden))) { display: none; }
    /* The old phone layout sent the cover picture below the buttons (order: 3 in the page's own CSS); the cover comes first, then the next step */
    .nook-canvas-col .cover-preview { order: 0 !important; }
    .nook-wizard .wizard-panel__title { font-size: 24px !important; }
    .nook-levels, .nook-optional .input-grid, .nook-two { grid-template-columns: 1fr 1fr; }
    .nook-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .nook-wizard .style-card__title { font-size: 11px !important; }
    .nook-wizard .additional-character-card { grid-template-columns: 1fr; }
    .nook-foot { flex-direction: column; align-items: stretch; }
    .nook-wizard .wizard-continue-btn, .nook-wizard #generate-cover-btn { width: 100% !important; justify-content: center; margin-left: 0; }
    .nook-why { text-align: center; }
    .nook-loves { flex-wrap: wrap !important; }
}
@media (max-width: 560px) {
    .nook-levels, .nook-optional .input-grid, .nook-two { grid-template-columns: 1fr; }
    .nook-photo { flex-direction: column; align-items: flex-start; }
    .nook-lbl { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .nook-wizard .wizard-panel[data-collapsed="false"] { animation: none; }
    .nook-wizard #cover-result:not(.hidden) .cover-result__image { animation: none; }
}


/* the page's own inline styles for the old wizard still load; these win over them */
.nook-wizard .wizard-panel { overflow: visible !important; }
.nook-wizard #photo-upload-area { display: block !important; width: 128px !important; height: auto !important; min-height: 0 !important; padding: 8px !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; text-align: center; box-shadow: 0 10px 22px rgba(60, 40, 20, 0.2) !important; transform: rotate(-3deg) !important; }
.nook-wizard #photo-upload-area:hover { transform: rotate(-3deg) translateY(-3px) !important; box-shadow: 0 14px 28px rgba(60, 40, 20, 0.28) !important; }
.nook-wizard #upload-placeholder:not(.hidden), .nook-wizard #uploaded-photo:not(.hidden) { display: flex !important; }
.nook-wizard #upload-placeholder.hidden, .nook-wizard #uploaded-photo.hidden { display: none !important; }
.nook-wizard .nook-pol__ph--has .upload-success { font-size: 11px !important; padding: 4px !important; margin: 0 !important; line-height: 1.2 !important; }

.nook-wizard .uploaded-image { width: 100% !important; height: 100% !important; border-radius: 0 !important; box-shadow: none !important; }
.nook-wizard .choice-pill { width: auto !important; }
.nook-wizard .choice-pill.nook-level { width: 100% !important; text-align: left !important; justify-items: start; }
.nook-wizard .choice-pill.nook-level::before { display: none !important; }
.nook-wizard .choice-pill.nook-level b, .nook-wizard .choice-pill.nook-level span { grid-column: 2; justify-self: start; }
.nook-wizard #age-reading-summary { display: block !important; text-align: left !important; background: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; box-shadow: none !important; border: 0 !important; color: var(--muted) !important; font-size: 14px !important; font-weight: 600 !important; }
.nook-wizard .wizard-panel__title span, .nook-wizard .nook-blk__title span { background: none !important; padding: 0 !important; box-shadow: none !important; color: inherit !important; border: 0 !important; }
.nook-foot #generate-btn-hint { order: -1; margin: 0 !important; text-align: left !important; font-size: 13px !important; color: var(--muted) !important; font-weight: 700; line-height: 1.3; flex: 1; }
.nook-desk__head { position: relative; padding: 12px 0 8px; }
.nook-desk__head::before { content: ""; position: absolute; inset: -40px -180px -40px; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(251, 247, 240, 0.97) 0%, rgba(251, 247, 240, 0.86) 52%, rgba(251, 247, 240, 0) 76%); }


/* extra people: the same polaroid as the star's */
.nook-wizard .additional-character-card .photo-upload-compact { display: block !important; width: 112px !important; padding: 7px !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: 0 10px 22px rgba(60, 40, 20, 0.2) !important; transform: rotate(-3deg); cursor: pointer; position: relative; flex: none; margin: 0 !important; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.nook-wizard .additional-character-card .photo-upload-compact:hover { transform: rotate(-3deg) translateY(-3px); box-shadow: 0 14px 28px rgba(60, 40, 20, 0.28) !important; }
.nook-wizard .additional-character-card .photo-upload-compact.photo-required .char-ph { border-color: #B9525A; }
.nook-wizard .char-ph { aspect-ratio: 1; }
.nook-wizard .char-ph .photo-preview { width: 24px; height: 24px; object-fit: contain; background: none !important; padding: 0 !important; box-shadow: none !important; transform: none !important; border: 0 !important; outline: 0 !important; }
.nook-wizard .photo-upload-compact.has-photo .char-ph { border: 0; padding: 0; background: none; position: relative; }
.nook-wizard .photo-upload-compact.has-photo .char-ph .photo-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.nook-wizard .photo-upload-compact.has-photo .char-ph b { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4px; font-size: 0; color: #fff; background: rgba(42, 35, 64, 0.55); }
.nook-wizard .photo-upload-compact.has-photo .char-ph b::after { content: "Tap to change it"; font-size: 11px; font-weight: 800; }
.nook-wizard .additional-character-card .nook-photo { grid-column: 1 / -1; }
.nook-wizard .additional-character-card .field-group.char-photo-group { grid-column: 1 / -1; }
.nook-wizard .additional-character-card .nook-photo__txt p { font-size: 14px; }

/* the three extra scenes under the style cards */
.nook-wizard .nook-more { display: block !important; margin-top: 10px !important; opacity: 1 !important; visibility: visible !important; transform: none !important; position: static !important; background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; max-width: none !important; max-height: none !important; overflow: visible !important; transition: none !important; }
.nook-wizard .nook-more .nook-hint b { color: var(--ink); }
.nook-more__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.nook-more__row figure { margin: 0; }
.nook-more__row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 10px; border: 1px solid var(--line); background: var(--frame); }
.nook-more__row img[src=""] { opacity: 0; }
.nook-more__row figcaption { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; margin-top: 4px; }

/* the sheet after the cover lands: quiet, not greyed to nothing */
.nook-wizard .wizard-forms.cover-complete, .nook-wizard .wizard-panel--photo.cover-complete { opacity: 0.55 !important; filter: none !important; }

/* the friendly "almost there" note in the site's own look */
#cover-error-modal { background: rgba(42, 35, 64, 0.5) !important; backdrop-filter: blur(2px); }
#cover-error-modal .modal-content { background: #FFFDF8 !important; border-radius: 18px !important; max-width: 440px !important; box-shadow: 0 24px 60px rgba(42, 35, 64, 0.3) !important; overflow: hidden; font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif; }
#cover-error-modal .modal-content > div:first-child { background: var(--honey-soft) !important; border-radius: 0 !important; padding: 26px 30px 14px !important; }
#cover-error-modal .modal-content > div:first-child > div { font-size: 0 !important; margin: 0 !important; line-height: 0; }
#cover-error-modal .modal-content > div:first-child img, #cover-error-modal .modal-content > div:first-child svg { width: 44px !important; height: 44px !important; }
#cover-error-modal .modal-content > div:nth-child(2) { padding: 22px 28px 26px !important; }
#cover-error-modal .modal-content > div:nth-child(2) > div:first-child { color: var(--ink) !important; font-size: 17px !important; line-height: 1.55 !important; margin-bottom: 20px !important; }
#cover-error-ok-btn { background: var(--teal) !important; color: #fff !important; border-radius: 999px !important; font-weight: 800 !important; font-size: 16px !important; padding: 12px 30px !important; box-shadow: 0 8px 20px rgba(45, 156, 146, 0.28) !important; font-family: inherit; }

/* phones have no hover: the chosen level's description shows as a line instead, and hover-only hints disappear */
.nook-levelnote { display: none; margin-top: 2px !important; }
.nook-levelnote b { color: var(--ink); }
@media (hover: none) { .nook-levelnote:not([hidden]) { display: block; } .nook-hover-only { display: none; } }


/* ---------- Generated gift, guide and compare pages: the same room, no cards ---------- */
.seo-crumbs { max-width: var(--nook-max); margin: 0 auto; padding: 18px 24px 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seo-crumbs a { color: var(--teal-ink); font-weight: 700; text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }
.seo-eyebrow { display: inline-block; background: var(--honey-soft); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.seo-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding: 40px 0 24px; }
.seo-hero h1 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
.seo-hero .sub { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 20px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.seo-hero .copy p { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; max-width: 62ch; }
.seo-hero .copy p:last-child { margin-bottom: 0; }
.seo-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.seo-fine { font-size: 14px; color: var(--ink); font-weight: 600; margin: 12px 0 0; }
.seo-stack { position: relative; max-width: 480px; margin: 0 auto; padding: 24px 24px 24px 0; }
.seo-stack .front { position: relative; z-index: 2; display: block; width: 100%; height: auto; border: 8px solid #fff; border-radius: 6px; box-shadow: 0 18px 44px rgba(42, 35, 64, 0.2); transform: rotate(-2deg); }
.seo-stack .back { position: absolute; top: 0; right: 0; width: 82%; height: calc(100% - 24px); object-fit: cover; object-position: center 40%; border: 8px solid #fff; border-radius: 6px; box-shadow: 0 12px 30px rgba(42, 35, 64, 0.16); transform: rotate(3deg); z-index: 1; }
.seo-hero .seo-stack-single { max-width: 460px; margin: 0 auto; }
.seo-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 22px 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.seo-trust span { display: inline-flex; align-items: center; gap: 8px; }
.seo-trust img { width: 26px; height: 26px; object-fit: contain; }
.seo-prints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 900px; margin: 0 auto; padding: 24px 0 8px; }
.seo-prints img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 8px solid #fff; border-radius: 4px; box-shadow: 0 14px 30px rgba(42, 35, 64, 0.16); transform: rotate(-1.5deg); }
.seo-prints img:nth-child(2) { transform: rotate(1.5deg); }
.seo-prints img:nth-child(3) { transform: rotate(-1deg); }
.seo-photos4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; margin: 0 auto; }
.seo-photos4 img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 7px solid #fff; border-radius: 4px; box-shadow: 0 12px 28px rgba(42, 35, 64, 0.16); }
.seo-photos4 img:nth-child(1) { transform: rotate(-2deg); } .seo-photos4 img:nth-child(2) { transform: rotate(2deg) translateY(14px); } .seo-photos4 img:nth-child(3) { transform: rotate(1.5deg); } .seo-photos4 img:nth-child(4) { transform: rotate(-1.5deg) translateY(14px); }
.seo-why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; align-items: start; max-width: 1040px; margin: 0 auto; }
.seo-why h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.seo-why p { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.seo-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.seo-ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.seo-ticks li::before { content: "\2713"; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.seo-ticks b { display: block; font-size: 16px; color: var(--ink); }
.seo-ticks span { font-size: 15px; color: var(--muted); line-height: 1.45; }
.seo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1000px; margin: 0 auto; }
.seo-step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.seo-step .n { font-family: 'Lora', Georgia, serif; font-size: 44px; line-height: 1; color: var(--honey); font-weight: 600; }
.seo-step h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 20px; margin: 4px 0 6px; }
.seo-step p { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; }
.seo-center { text-align: center; margin-top: 28px; }
.seo-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; }
.seo-note { background: #FFFDF8; padding: 22px 22px 24px; box-shadow: 0 12px 28px rgba(42, 35, 64, 0.14); transform: rotate(-1.2deg); position: relative; }
.seo-note:nth-child(2) { transform: rotate(1deg); } .seo-note:nth-child(3) { transform: rotate(-0.6deg); }
.seo-note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 18px; margin-left: -32px; background: rgba(228, 168, 59, 0.55); transform: rotate(-3deg); }
.seo-note h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 20px; margin: 4px 0 8px; }
.seo-note p { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; }
.seo-tips { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: flex; flex-direction: column; }
.seo-tips li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.seo-tips li:last-child { border-bottom: 1px solid var(--line); }
.seo-tips .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-top: 2px; }
.seo-tips h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.seo-tips p { font-size: 16px; color: var(--muted); line-height: 1.5; margin: 0; }
.seo-family .pic { max-width: 300px; }
.seo-family p.q { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 19px; color: var(--ink); line-height: 1.55; }
.seo-related { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; max-width: 1040px; }
.seo-related li { border-top: 1px solid var(--line); }
.seo-related a { text-decoration: none; color: inherit; display: grid; grid-template-columns: 1fr 34px; gap: 12px; align-items: center; padding: 16px 6px 18px 10px; margin: 0 -6px 0 -10px; border-radius: 12px; transition: background 0.15s, transform 0.15s; }
.seo-related a::after { content: "\2192"; grid-row: 1 / span 3; grid-column: 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal-ink); font-size: 18px; font-weight: 800; display: grid; place-items: center; transition: background 0.15s, color 0.15s, transform 0.15s; }
.seo-related a:hover, .seo-related a:focus-visible { background: var(--honey-soft); transform: translateX(2px); outline: none; }
.seo-related a:hover::after, .seo-related a:focus-visible::after { background: var(--teal); color: #fff; }
.seo-related h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 18px; margin: 0 0 4px; color: var(--teal-ink); text-decoration: underline; text-decoration-color: rgba(31, 124, 116, 0.35); text-underline-offset: 3px; grid-column: 1; }
.seo-related a:hover h3 { text-decoration-color: var(--teal-ink); }
.seo-related p { font-size: 14.5px; color: var(--muted); line-height: 1.45; margin: 0 0 6px; grid-column: 1; }
.seo-related .go { font-size: 13px; font-weight: 800; color: var(--teal-ink); grid-column: 1; }
.seo-related.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-occasion { max-width: 1040px; margin: 0 auto 40px; }
.seo-occasion .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.seo-occasion .hd img { width: 34px; height: 34px; object-fit: contain; }
.seo-occasion h2 { font-size: 26px; font-weight: 700; margin: 0; }
.seo-occasion .lead { font-size: 16px; color: var(--muted); margin: 0 0 6px; }
.seo-article { max-width: 760px; margin: 0 auto; padding: 36px 24px 40px; }
.seo-article h1 { font-size: clamp(32px, 3.8vw, 44px); font-weight: 700; line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
.seo-article .intro p { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 20px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.guide-content { margin-top: 36px; }
.guide-content h2 { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.guide-content h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 21px; color: var(--ink); margin: 26px 0 8px; }
.guide-content p { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }
.guide-content ul, .guide-content ol { margin: 0 0 16px 22px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.guide-content ul { list-style: disc; } .guide-content ol { list-style: decimal; }
.guide-content li { margin-bottom: 8px; }
.guide-content a { color: var(--teal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.guide-content strong { color: var(--ink); }
.seo-tablewrap { overflow-x: auto; max-width: 1040px; margin: 0 auto; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.seo-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.seo-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.seo-table td.k { font-weight: 800; color: var(--ink); width: 32%; }
.seo-table td.k small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.seo-table .yes { color: var(--ink); } .seo-table .no { color: var(--muted); }
.seo-table .yes::before { content: "\2713"; color: var(--teal-ink); font-weight: 800; margin-right: 6px; }
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1040px; margin: 0 auto; }
.seo-cols h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.seo-cols ul { margin: 0 0 0 20px; padding: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.seo-cols li { margin-bottom: 8px; }
.seo-panel { background: var(--honey-soft); border-radius: 18px; padding: 24px 28px; max-width: 900px; margin: 0 auto; }
.seo-panel h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.seo-panel p, .seo-panel li { font-size: 16px; color: var(--ink); line-height: 1.55; }
.seo-panel ul { margin: 8px 0 0 20px; padding: 0; }
.seo-prose { max-width: 760px; margin: 0 auto; }
.seo-prose p { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.seo-prose a { color: var(--teal-ink); font-weight: 800; text-decoration: none; }
.seo-prose a:hover { text-decoration: underline; }
.seo-dates { max-width: 860px; margin: 0 auto; }
.seo-dates h2 { font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.seo-dates .lead { font-size: 16px; color: var(--muted); margin: 0 0 12px; }
.seo-dates + .seo-dates { margin-top: 36px; }
.seo-dates .after { font-size: 16px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }
.seo-dates .after b { color: var(--ink); }
.seo-hero.single { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; }
.seo-disclosure { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; max-width: 70ch; line-height: 1.5; }
.seo-checked { font-size: 13.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.seo-h2 { font-size: 24px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.seo-lead { font-size: 19px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.seo-score { min-width: 640px; }
.seo-score th.us { color: var(--teal-ink); }
.seo-score td.k { width: 34%; }
.seo-table td.d { font-weight: 800; color: var(--ink); white-space: nowrap; }
.nook-section.tight { padding: 32px 0; }
@media (max-width: 900px) {
    .seo-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
    .seo-hero .seo-stack { order: -1; max-width: 360px; }
    .seo-why, .seo-cols { grid-template-columns: 1fr; gap: 24px; }
    .seo-steps { grid-template-columns: 1fr; gap: 22px; }
    .seo-notes, .seo-prints, .seo-related { grid-template-columns: 1fr; }
    .seo-related.two { grid-template-columns: 1fr; }
    .seo-prints { gap: 18px; }
    .seo-trust { gap: 10px 22px; font-size: 14px; }
}

/* The wizard script shows and hides things with .hidden; nothing here may outrank it */
.nook-wizard .hidden { display: none !important; }
#draft-restored-note { background: var(--honey-soft) !important; border: 0 !important; color: var(--ink) !important; border-radius: 14px !important; }
#draft-restored-note a, #draft-start-fresh { color: var(--teal-ink) !important; }

/* Thin loading bar under the header: shows while the next page is on its way */
.nook-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: var(--teal); opacity: 0; transition: transform 0.4s ease, opacity 0.3s ease; }
.nook-progress.start { opacity: 1; transform: scaleX(0.15); transition: transform 0.3s ease, opacity 0.1s; }
.nook-progress.crawl { transform: scaleX(0.85); transition: transform 6s cubic-bezier(0.1, 0.6, 0.2, 1), opacity 0.1s; }
.nook-progress.done { transform: scaleX(1); opacity: 0; transition: transform 0.2s ease, opacity 0.4s ease 0.2s; }
@media (prefers-reduced-motion: reduce) { .nook-progress { display: none; } }

/* Examples page: every section on the same rhythm, and each one rises in */
.nook-exhero.nook-section { padding: 48px 0 40px; }
.nook-strip--band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0 44px; }
.nook-section > .max-w-6xl, .nook-section > .max-w-5xl, .nook-section > .container { padding-top: 0 !important; padding-bottom: 0 !important; }
.nook-section .mt-12 { margin-top: 28px !important; }
.nook-section .mt-8 { margin-top: 20px !important; }
.nook-section .mb-8 { margin-bottom: 24px !important; }

/* Hover tips: plain ink card, bigger text for older eyes */
.tooltip-bubble { background: var(--ink) !important; color: #fff !important; font-family: 'Nunito', sans-serif; font-size: 15px !important; line-height: 1.45 !important; padding: 12px 16px !important; border-radius: 12px !important; max-width: 300px !important; box-shadow: var(--shadow) !important; }
.tooltip-bubble strong { color: var(--honey); }
.tooltip-bubble.tooltip-below::before { border-bottom-color: #2A2340 !important; }
.tooltip-bubble.tooltip-above::after { border-top-color: #2A2340 !important; }

/* Signed-in header: the avatar is a small circle, whatever utility classes are compiled */
.nook-header #auth-container img { width: 36px !important; height: 36px !important; border-radius: 50% !important; object-fit: cover; border: 2px solid var(--line) !important; display: block; }
.nook-header #auth-container > div { display: flex; align-items: center; gap: 12px; }

/* ---------- My Orders ---------- */
.nook-orders { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 0 auto; }
.nook-order { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 26px rgba(42, 35, 64, 0.08); }
.nook-order__cover { align-self: start; }
.nook-order__cover img, .nook-order__nocover { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: 10px 12px 26px rgba(42, 35, 64, 0.22), inset 5px 0 7px -5px rgba(0, 0, 0, 0.45); display: block; transform: rotate(-2deg); background: var(--frame); }
.nook-order__nocover { display: grid; place-items: center; }
.nook-order__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nook-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.nook-order__head h3 { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.2; }
.nook-order__sub { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.nook-order__pill { background: var(--honey-soft); color: var(--ink); font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.nook-order__pill.is-shipped { background: var(--teal); color: #fff; }
.nook-order__pill.is-canceled { background: var(--line); color: var(--muted); }
.nook-order__steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.nook-order__steps::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 15px; height: 2px; background: var(--line); }
.nook-order__steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 13px; color: var(--muted); font-weight: 700; }
.nook-order__steps .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.nook-order__steps li.done .dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.nook-order__steps li.done { color: var(--ink); }
.nook-order__steps li.current .dot { box-shadow: 0 0 0 4px rgba(45, 156, 146, 0.18); }
.nook-order__line { font-size: 16px; color: var(--ink); margin: 0; line-height: 1.5; }
.nook-order__eta { font-size: 15px; color: var(--muted); margin: 0; }
.nook-order__eta b { color: var(--ink); }
.nook-order__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nook-order__actions:empty { display: none; }
.nook-order__cancel { font-size: 14px; color: var(--muted); margin: 0; background: var(--honey-soft); border-radius: 10px; padding: 10px 12px; }
.nook-order__cancel button { background: none; border: 0; font: inherit; font-weight: 800; color: #B9525A; cursor: pointer; padding: 0 0 0 6px; }
.nook-order__meta { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.nook-empty { text-align: center; max-width: 440px; margin: 24px auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nook-empty img { width: 48px; height: 48px; object-fit: contain; }
.nook-empty h3 { font-size: 24px; font-weight: 700; margin: 0; }
.nook-empty p { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
#orders-loading { color: var(--muted); }
#orders-loading .text-red-600 { color: var(--ink) !important; }
/* Story cards a size down */
.nook-stories .story-body h3 { font-size: 18px !important; }
.nook-stories .story-body { padding: 14px 16px 16px !important; }
.nook-stories .story-actions .nook-btn.small { font-size: 15px; padding: 10px 16px; }
@media (max-width: 640px) {
    .nook-order { grid-template-columns: 1fr; padding: 18px; }
    .nook-order__cover { width: 120px; }
}

/* ---------- Prices: personal pages + read-aloud sample ---------- */
.nook-keepsakes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.nook-keepsakes figure { margin: 0; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.nook-keepsakes img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #fff; border: 6px solid #fff; outline: 1px solid rgba(42, 35, 64, 0.12); border-radius: 4px; box-shadow: 0 12px 26px rgba(42, 35, 64, 0.12); transform: rotate(-1.2deg); }
.nook-keepsakes figure:nth-child(even) img { transform: rotate(1.2deg); }
.nook-keepsakes figcaption b { display: block; font-size: 15px; color: var(--ink); }
.nook-keepsakes figcaption span { font-size: 13px; color: var(--muted); font-family: 'Lora', Georgia, serif; font-style: italic; }
.nook-readaloud { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1000px; }
.nook-readaloud__page { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 36px 34px 22px; box-shadow: 0 14px 34px rgba(42, 35, 64, 0.1); transform: rotate(-1deg); }
.nook-readaloud__page p { font-family: 'Lora', Georgia, serif; font-size: 19px; line-height: 1.8; color: var(--ink); margin: 0; }
.nook-readaloud__folio { display: block; text-align: center; margin-top: 18px; font-family: 'Lora', Georgia, serif; font-size: 13px; color: var(--muted); }
.nook-readaloud__copy h2 { font-size: 30px; font-weight: 700; margin: 0 0 12px; }
.nook-readaloud__copy > p { font-size: 18px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
#read-aloud-demo-control .dm-nar-btn { background: var(--teal) !important; background-image: none !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; font-weight: 800 !important; font-size: 17px !important; padding: 13px 24px !important; box-shadow: 0 8px 20px rgba(45, 156, 146, 0.28) !important; }
@media (max-width: 900px) { .nook-keepsakes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .nook-readaloud { grid-template-columns: 1fr; gap: 24px; } }
