@font-face { font-family: "Andika Preview"; src: url("/fonts/Andika-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Patrick Preview"; src: url("/fonts/PatrickHand-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka Preview"; src: url("/fonts/Fredoka-Variable.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Comic Neue Preview"; src: url("/fonts/ComicNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Baloo 2 Preview"; src: url("/fonts/Baloo2-Variable.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Borel Preview"; src: url("/fonts/Borel-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --ink: #24393d;
  --muted: #667a7c;
  --paper: #fffdf8;
  --cream: #f8f0e4;
  --peach: #e99a7e;
  --peach-dark: #c96f57;
  --sage: #7da89c;
  --sage-pale: #dceae4;
  --line: #e7ded2;
  --shadow: 0 24px 60px rgba(58, 50, 39, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 12% 0%, #fbefe4 0, transparent 28rem), var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(90, 74, 57, 0.1); background: rgba(255, 253, 248, 0.86); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; font-family: Georgia, serif; font-weight: 700; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--peach); box-shadow: 0 5px 14px rgba(201, 111, 87, 0.28); }
.format-pill { padding: 8px 13px; border-radius: 999px; background: var(--sage-pale); color: #416c63; font-size: 13px; font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.ui-language { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ui-language select { border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 7px 8px; }
.creator-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin: -4px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.account-status { margin-right: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.account-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b6aaa0; }
.account-status[data-state="connected"] { color: #35675d; }
.account-status[data-state="connected"]::before { background: #5b9a89; box-shadow: 0 0 0 4px rgba(91,154,137,.13); }
.toolbar-button { border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); padding: 8px 12px; font-size: 12px; font-weight: 750; }
.toolbar-button:hover { border-color: var(--peach); color: var(--ink); }
.toolbar-button.is-emphasized { background: var(--cream); color: var(--ink); }

main { overflow: hidden; }
.hero { max-width: 1180px; margin: auto; padding: 80px 24px 70px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 70px; align-items: center; }
.eyebrow, .section-kicker { color: var(--peach-dark); letter-spacing: 0.13em; font-size: 12px; font-weight: 800; margin: 0 0 16px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.035em; }
h1 { font-size: clamp(46px, 5.2vw, 76px); line-height: 0.98; margin: 0; max-width: 770px; font-weight: 500; }
.hero-intro { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 680px; margin: 28px 0; }
.hero-cta { display: inline-flex; align-items: center; gap: 15px; padding: 14px 23px; margin: -7px 0 24px; border-radius: 999px; color: white; background: var(--peach-dark); box-shadow: 0 12px 25px rgba(201,111,87,.24); text-decoration: none; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(201,111,87,.3); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: rgba(255,255,255,.6); font-size: 13px; font-weight: 700; }

.book-scene { min-height: 430px; position: relative; display: grid; place-items: center; }
.book { position: absolute; width: 285px; aspect-ratio: 1; border-radius: 10px 20px 20px 10px; box-shadow: 0 28px 55px rgba(53, 57, 52, .22); }
.book-back { background: #9dbfb5; transform: translate(28px, -20px) rotate(9deg); }
.book-front { transform: rotate(-6deg); padding: 46px 32px; background: linear-gradient(145deg, #ea9c80, #d97963); color: #fff7ed; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; border-left: 9px solid rgba(116, 64, 52, .25); }
.hero-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 0; }
.book-front:has(.hero-cover-image)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(18,35,38,.12), rgba(18,35,38,.55)); z-index: 1; }
.book-front::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.34); border-radius: 6px 14px 14px 6px; }
.book-front strong { font-family: Georgia, serif; font-size: 27px; line-height: 1.12; z-index: 2; }
.book-front small { margin-top: 34px; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; z-index: 2; }
.book-star { font-size: 28px; margin-bottom: 18px; color: #ffe1a6; z-index: 2; }
.spark { position: absolute; color: #e2a14f; font-size: 26px; }
.spark-one { top: 52px; left: 16%; }.spark-two { right: 14%; bottom: 72px; font-size: 38px; }

.creator-shell { max-width: 1180px; margin: 0 auto 100px; padding: 0 24px; display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.steps { position: sticky; top: 104px; display: grid; gap: 7px; }
.step { appearance: none; border: 0; background: transparent; display: grid; grid-template-columns: 38px 1fr; gap: 12px; text-align: left; padding: 13px; border-radius: 14px; color: var(--muted); opacity: .68; }
.step span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #cfc7bb; font-weight: 800; font-size: 13px; }
.step div { display: grid; gap: 2px; }.step strong { color: inherit; font-size: 14px; }.step small { font-size: 11px; }
.step.is-active { background: #f4ede3; color: var(--ink); opacity: 1; }.step.is-active span { color: white; background: var(--peach); border-color: var(--peach); }
.step.is-complete { opacity: 1; }.step.is-complete span { background: var(--sage); border-color: var(--sage); color: white; }

.form-card { min-height: 650px; padding: clamp(30px, 5vw, 62px); background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.mobile-progress { display: none; }
.form-panel { display: none; animation: panelIn .35s ease; }.form-panel.is-active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.form-panel h2, .generation-panel h2, .result-section h2 { font-size: clamp(34px, 4vw, 49px); font-weight: 500; margin: 0 0 12px; }
.section-lead { color: var(--muted); line-height: 1.65; margin: 0 0 34px; max-width: 720px; }
.question-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field { display: grid; gap: 8px; align-content: start; }.field.is-wide { grid-column: 1 / -1; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field label, .language-field { font-weight: 750; font-size: 14px; }
.field small { color: var(--muted); line-height: 1.4; }
.field input, .field textarea, .language-field select, .photo-meta input, .photo-meta select { width: 100%; border: 1px solid #d9d0c4; color: var(--ink); background: #fffdf9; border-radius: 12px; padding: 13px 14px; outline: 0; transition: border .2s, box-shadow .2s; }
.field textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, select:focus, .photo-meta input:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(125,168,156,.14); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #c6534f; }
.improve-answer { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9d0c4; border-radius: 999px; padding: 6px 10px; color: #486f67; background: #f4faf7; font-size: 11px; font-weight: 800; transition: border .2s, background .2s, transform .2s; }
.improve-answer:hover { border-color: var(--sage); background: #e7f3ed; transform: translateY(-1px); }
.improve-answer:disabled { cursor: wait; opacity: .68; transform: none; }
.button-spinner { width: 11px; height: 11px; border: 2px solid rgba(72,111,103,.25); border-top-color: #486f67; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.choice-section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.choice-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.choice-section h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.choice-section > p { color: var(--muted); margin: 0 0 17px; font-size: 14px; line-height: 1.55; }
.style-grid, .visual-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.style-card { border: 1px solid var(--line); border-radius: 17px; padding: 0; overflow: hidden; background: white; text-align: left; transition: transform .2s, border .2s, box-shadow .2s; }
.style-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(47,52,47,.1); }
.style-card.is-selected { border: 2px solid var(--peach); box-shadow: 0 0 0 4px rgba(233,154,126,.15); }
.style-preview, .visual-card-art { height: 112px; display: block; position: relative; overflow: hidden; background: linear-gradient(145deg, var(--c1), var(--c2)); }
.style-preview img, .visual-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.style-preview::before, .visual-card-art::before { content: ""; position: absolute; width: 76px; height: 76px; border-radius: 48% 52% 45% 55%; background: var(--c3); left: 16px; bottom: -18px; box-shadow: 85px -22px 0 -14px rgba(255,255,255,.28); }
.style-preview i, .visual-card-art i { position: absolute; width: 54px; height: 68px; border-radius: 50% 50% 42% 42%; background: rgba(255,255,255,.72); right: 27px; bottom: -9px; }
.style-preview b, .visual-card-art b { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--c2); right: 43px; bottom: 42px; box-shadow: -7px 3px 0 -5px var(--ink), 7px 3px 0 -5px var(--ink); }
.preview-paper_cut .style-preview { background: linear-gradient(155deg, var(--c1) 0 35%, var(--c2) 35% 67%, var(--c3) 67%); }
.preview-pastel_pencil .style-preview { background: repeating-linear-gradient(120deg, var(--c2), var(--c2) 5px, var(--c1) 6px, var(--c2) 9px); }
.preview-gentle_3d .style-preview i { box-shadow: inset -12px -10px 16px rgba(0,0,0,.12), 0 12px 15px rgba(0,0,0,.18); }
.preview-enchanted_ink .style-preview { background: radial-gradient(circle at 70% 25%, var(--c3) 0 4%, transparent 5%), linear-gradient(145deg, var(--c1), var(--c2)); }
.style-card-copy { padding: 15px; display: grid; gap: 6px; }.style-card strong { font-family: Georgia, serif; font-size: 18px; }.style-card small { color: var(--muted); line-height: 1.42; }

.visual-card { position: relative; border: 1px solid var(--line); border-radius: 17px; padding: 0; overflow: hidden; background: white; text-align: left; transition: transform .2s, border .2s, box-shadow .2s; }
.visual-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(47,52,47,.1); }
.visual-card.is-selected { border: 2px solid var(--sage); box-shadow: 0 0 0 4px rgba(125,168,156,.16); }
.visual-card-copy { padding: 14px; display: grid; gap: 5px; }.visual-card-copy strong { font-family: Georgia, serif; font-size: 17px; }.visual-card-copy small { color: var(--muted); line-height: 1.38; }
.info-dot { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.88); font-size: 12px; font-weight: 900; box-shadow: 0 3px 9px rgba(0,0,0,.12); }
.preview-starry_space .visual-card-art { background: radial-gradient(circle at 25% 25%, #fff 0 2px, transparent 3px), radial-gradient(circle at 72% 36%, #ffe794 0 4px, transparent 5px), linear-gradient(145deg, var(--c1), var(--c2)); }
.preview-coral_ocean .visual-card-art { background: linear-gradient(180deg, #89e2df, var(--c1)); }
.preview-cloud_castle .visual-card-art { background: linear-gradient(180deg, #b9dcff, #f3d9ec); }
.preview-dinosaur_valley .visual-card-art { background: linear-gradient(180deg, #badb8d, var(--c1)); }
.preview-wonder_city .visual-card-art { background: linear-gradient(160deg, var(--c1), var(--c2) 72%, var(--c3)); }
.optional-detail { display: grid; gap: 8px; margin-top: 17px; font-weight: 750; font-size: 14px; }
.optional-detail textarea { min-height: 72px; resize: vertical; border: 1px solid #d9d0c4; border-radius: 12px; padding: 13px 14px; background: #fffdf9; }

.font-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.font-card { min-height: 96px; border: 1px solid var(--line); border-radius: 15px; background: #fffaf2; padding: 17px; color: var(--ink); text-align: center; }
.font-card.is-selected { border: 2px solid var(--peach); box-shadow: 0 0 0 4px rgba(233,154,126,.15); }
.font-card span { display: block; font-size: 22px; line-height: 1.3; }.font-school_round span { font-family: "Andika Preview", sans-serif; }.font-handwritten_story span { font-family: "Patrick Preview", cursive; font-size: 26px; }
.font-rounded_playful span { font-family: "Fredoka Preview", sans-serif; font-size: 24px; font-weight: 560; }
.font-comic_bubble span { font-family: "Comic Neue Preview", cursive; font-size: 24px; }
.font-storybook_bold span { font-family: "Baloo 2 Preview", cursive; font-size: 25px; font-weight: 570; }
.font-cursive_magic span { font-family: "Borel Preview", cursive; font-size: 21px; line-height: 1.55; }
.page-count-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-type-card { min-height: 112px; display: grid; align-content: center; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; color: var(--ink); text-align: left; }
.product-type-card strong { font-family: Georgia, serif; font-size: 19px; }.product-type-card small { color: var(--muted); line-height: 1.4; }
.product-type-card.is-selected { border: 2px solid var(--sage); box-shadow: 0 0 0 4px rgba(125,168,156,.16); background: #f5fbf8; }
.page-count-card { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 13px; padding: 13px 8px; background: white; color: var(--ink); }
.page-count-card small { color: var(--muted); }.page-count-card.is-selected { color: white; background: var(--ink); border-color: var(--ink); }.page-count-card.is-selected small { color: rgba(255,255,255,.72); }
.page-count-card em { margin-top: 5px; color: var(--peach-dark); font-size: 15px; font-style: normal; font-weight: 850; }.page-count-card.is-selected em { color: #ffe4aa; }

.drop-zone { min-height: 170px; border: 1.5px dashed #c9bdb0; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 7px; background: #fdf9f3; text-align: center; transition: border .2s, background .2s; }
.drop-zone:hover, .drop-zone.is-dragover { border-color: var(--peach); background: #fff1e4; box-shadow: 0 0 0 5px rgba(233,154,126,.12); }.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.drop-zone > span:not(.upload-icon) { color: var(--muted); font-size: 13px; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--sage); font-size: 20px; }
.drop-zone small, .photo-count { color: var(--muted); font-size: 12px; }.photo-count { margin: 10px 0; text-align: right; }
.photo-list { display: grid; gap: 11px; }.photo-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; align-items: center; }
.photo-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; background: var(--cream); }
.photo-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.photo-meta input, .photo-meta select { padding: 9px 10px; font-size: 13px; }
.remove-photo { border: 0; color: #aa5550; background: #faece9; width: 32px; height: 32px; border-radius: 50%; }

.review-card { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; margin-bottom: 20px; }
.review-row { padding: 13px 16px; display: grid; grid-template-columns: 160px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }.review-row:last-child { border: 0; }.review-row strong { font-size: 13px; }.review-row span { color: var(--muted); font-size: 14px; }
.language-field { display: grid; gap: 8px; max-width: 280px; margin: 20px 0; }
.language-separation { color: var(--muted); font-size: 12px; margin: -10px 0 20px; }
.credit-panel { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #f8fbf9; text-align: left; }.credit-panel h3,.preview-action-center h3 { margin: 4px 0 14px; font: 600 24px/1.2 Georgia,serif; }.credit-panel dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 0 0 16px; }.credit-panel dl div { padding: 12px; border-radius: 12px; background: white; }.credit-panel dt { color: var(--muted); font-size: 11px; }.credit-panel dd { margin: 3px 0 0; font-weight: 800; }.credit-panel .has-missing-credit dd { color: #a23f3a; }.promo-code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }.promo-code-row input { min-width: 0; }.credit-buy-link { display: inline-block; margin-top: 14px; color: var(--peach-dark); font-weight: 800; }.credit-feedback { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 24px; }
.primary-button { border: 0; border-radius: 999px; background: var(--ink); color: white; padding: 13px 21px; font-weight: 750; display: inline-flex; gap: 14px; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(36,57,61,.18); }
.primary-button:hover { background: #172b2f; transform: translateY(-1px); }.primary-button:disabled { cursor: not-allowed; opacity: .52; transform: none; box-shadow: none; }.text-button { border: 0; background: transparent; color: var(--muted); padding: 10px; }
.generate-button { width: 100%; padding: 17px; font-size: 16px; background: var(--peach-dark); }.cost-note { color: var(--muted); font-size: 12px; text-align: center; }
.form-error { color: #a23f3a; min-height: 20px; font-size: 13px; text-align: right; }

.generation-panel, .result-section { max-width: 960px; margin: 40px auto 100px; padding: 64px 24px; text-align: center; }
.generation-orbit { width: 84px; height: 84px; border: 1px solid var(--peach); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 30px; animation: orbit 3s linear infinite; }.generation-orbit span { color: var(--peach); font-size: 24px; }
@keyframes orbit { 50% { transform: rotate(180deg) scale(1.08); } 100% { transform: rotate(360deg); } }
.generation-progress { height: 8px; background: #eee5da; border-radius: 99px; overflow: hidden; max-width: 520px; margin: 30px auto 12px; }.generation-progress i { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--sage), var(--peach)); border-radius: inherit; transition: width .6s ease; }
.generation-panel p:not(.section-kicker), .result-section > p:not(.section-kicker) { color: var(--muted); }
.book-preview { margin-top: 40px; }
.result-actions { display: flex; justify-content: center; margin: 22px 0 28px; }
.result-actions .toolbar-button { padding: 12px 22px; font-size: .9rem; }
.preview-action-center { margin: 44px auto 0; padding: 24px; max-width: 920px; border: 1px solid var(--line); border-radius: 20px; background: white; text-align: left; }.preview-action-center p { color: var(--muted); }.preview-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; }.preview-action-buttons .toolbar-button { text-align: center; }.preview-action-buttons button:disabled { opacity: .5; cursor: not-allowed; }
.reader-shell { display: grid; justify-items: center; gap: 16px; }
.reader-book { position: relative; width: min(920px, 100%); aspect-ratio: 2 / 1; display: grid; place-items: center; perspective: 2200px; cursor: pointer; outline: none; transition: width .35s ease; }
.reader-book:focus-visible { border-radius: 18px; box-shadow: 0 0 0 4px rgba(125,168,156,.35); }
.reader-book.is-cover { width: min(450px, 100%); aspect-ratio: 1; }
.reader-sheet { position: relative; width: 100%; transform-style: preserve-3d; }
.reader-pages { display: grid; overflow: hidden; border-radius: 10px; background: #e8e0d5; box-shadow: 0 24px 50px rgba(45,43,38,.23), inset 0 0 0 1px rgba(255,255,255,.65); }
.reader-pages.is-spread { grid-template-columns: 1fr 1fr; gap: 3px; padding: 12px; }.reader-pages.is-single { width: 50%; margin: auto; padding: 12px; }
.reader-book.is-cover .reader-pages.is-single { width: 100%; }
.reader-page { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: #fff8ed; border-radius: 4px; }
.reader-page img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; }
.reader-page span { position: absolute; right: 10px; bottom: 9px; padding: 4px 8px; border-radius: 99px; background: rgba(255,255,255,.86); color: #314147; font-size: 10px; font-style: normal; }
.reader-page em { position: absolute; left: 10px; bottom: 9px; padding: 4px 8px; border-radius: 99px; background: rgba(255,255,255,.72); color: rgba(79,58,51,.48); font-family: Georgia, serif; font-size: 10px; font-style: normal; font-weight: 900; letter-spacing: .1em; pointer-events: none; }
.reader-cover em { background: rgba(24,45,49,.58); color: rgba(255,255,255,.78); }.reader-cover span { display: none; }
.reader-curl { position: absolute; z-index: 8; top: 12px; right: 12px; bottom: 12px; width: calc(50% - 13.5px); display: none; transform-style: preserve-3d; transform-origin: left center; pointer-events: none; will-change: transform, border-radius, filter; }
.reader-curl.is-active { display: block; }.reader-curl.is-backward { right: auto; left: 12px; transform-origin: right center; }.reader-curl.is-single { left: 12px; right: 12px; width: auto; }.reader-curl.is-single.is-forward { transform-origin: left center; }.reader-curl.is-single.is-backward { transform-origin: right center; }
.reader-curl-face { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; background: #fff8ed; backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(65,54,48,.08); }
.reader-curl-face .reader-page { width: 100%; height: 100%; }.reader-curl-back { transform: rotateY(180deg); }
.reader-curl::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; background: linear-gradient(90deg, rgba(26,31,32,.38), transparent 18%, transparent 72%, rgba(255,255,255,.5)); opacity: 0; backface-visibility: hidden; pointer-events: none; }
.reader-curl.is-forward.is-turning { animation: pageCurlForward .78s cubic-bezier(.44,.02,.26,1) both; }.reader-curl.is-backward.is-turning { animation: pageCurlBackward .78s cubic-bezier(.44,.02,.26,1) both; }
.reader-curl.is-turning::after { animation: pageCurlShade .78s ease-in-out both; }
@keyframes pageCurlForward { 0% { transform: rotateY(0deg) scaleX(1); border-radius: 4px; filter: drop-shadow(0 8px 8px rgba(26,31,32,.08)); } 48% { transform: rotateY(-82deg) scaleX(.9) translateX(-2%); border-radius: 34% 4px 4px 38%; filter: drop-shadow(-18px 18px 16px rgba(26,31,32,.42)); } 58% { transform: rotateY(-105deg) scaleX(.88) translateX(-3%); border-radius: 4px 38% 34% 4px; filter: drop-shadow(18px 18px 17px rgba(26,31,32,.38)); } 100% { transform: rotateY(-180deg) scaleX(1); border-radius: 4px; filter: drop-shadow(0 6px 7px rgba(26,31,32,.08)); } }
@keyframes pageCurlBackward { 0% { transform: rotateY(0deg) scaleX(1); border-radius: 4px; filter: drop-shadow(0 8px 8px rgba(26,31,32,.08)); } 48% { transform: rotateY(82deg) scaleX(.9) translateX(2%); border-radius: 4px 34% 38% 4px; filter: drop-shadow(18px 18px 16px rgba(26,31,32,.42)); } 58% { transform: rotateY(105deg) scaleX(.88) translateX(3%); border-radius: 38% 4px 4px 34%; filter: drop-shadow(-18px 18px 17px rgba(26,31,32,.38)); } 100% { transform: rotateY(180deg) scaleX(1); border-radius: 4px; filter: drop-shadow(0 6px 7px rgba(26,31,32,.08)); } }
@keyframes pageCurlShade { 0%, 100% { opacity: 0; } 42%, 60% { opacity: .92; } }
.reader-hand { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--peach-dark); color: white; font-size: 28px; box-shadow: 0 10px 22px rgba(63,48,43,.2); animation: readerHint 1.8s ease-in-out infinite; }
@keyframes readerHint { 50% { transform: translate(5px,-50%); } }
.reader-controls { display: flex; align-items: center; justify-content: center; gap: 18px; }.reader-controls button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: white; font-size: 18px; box-shadow: 0 8px 18px rgba(36,57,61,.18); }.reader-controls button:disabled { opacity: .28; cursor: default; }
.reader-controls strong { min-width: 120px; color: var(--ink); font-size: 14px; }.reader-help { margin: 0; color: var(--muted); font-size: 13px; }
footer { max-width: 1180px; margin: auto; padding: 35px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); } footer span { color: var(--ink); font-family: Georgia, serif; font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 55px; gap: 20px; }.hero-intro { margin-left: auto; margin-right: auto; }.trust-row { justify-content: center; }.book-scene { min-height: 350px; transform: scale(.85); }
  .creator-shell { grid-template-columns: 1fr; }.steps { display: none; }.mobile-progress { display: grid; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }.mobile-progress div { height: 5px; background: var(--cream); border-radius: 99px; }.mobile-progress i { display: block; width: 20%; height: 100%; background: var(--peach); border-radius: inherit; transition: width .25s; }
}
@media (max-width: 650px) {
  .credit-panel dl { grid-template-columns: 1fr; }.promo-code-row { grid-template-columns: 1fr; }
  .site-header { height: 65px; }.format-pill { display: none; }.brand { font-size: 17px; }
  .hero { padding: 45px 18px 30px; }.book-scene { min-height: 300px; }.book { width: 240px; }
  .creator-shell { padding: 0 12px; margin-bottom: 60px; }.form-card { padding: 30px 20px; border-radius: 21px; min-height: 620px; }
  .question-grid, .style-grid, .visual-choice-grid, .font-grid, .product-type-grid { grid-template-columns: 1fr; }.page-count-grid { grid-template-columns: repeat(2, 1fr); }.field.is-wide { grid-column: auto; }.field-heading { align-items: flex-start; }.improve-answer { max-width: 120px; white-space: normal; justify-content: center; }.photo-item { grid-template-columns: 60px 1fr auto; }.photo-item img { width: 60px; height: 60px; }.photo-meta { grid-template-columns: 1fr; }
  .creator-toolbar { align-items: flex-start; }.account-status { width: 100%; margin-bottom: 2px; }.form-actions { margin-top: 30px; }.review-row { grid-template-columns: 1fr; gap: 4px; }.spread { padding: 7px; }.result-section { padding-left: 12px; padding-right: 12px; }
  .reader-book, .reader-book.is-cover { width: min(540px, 100%); aspect-ratio: 1; }.reader-pages.is-single { width: 100%; }.reader-hand { right: -4px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .reader-book { transition: none; }.reader-hand { animation: none; }.reader-curl.is-turning, .reader-curl.is-turning::after { animation-duration: .01ms; } }
