/* ============================================================================
   TaleLamp design system — "Двенадцать лун"
   One world: a night sky with twelve moons, a warm paper page, a moon-yellow accent.
   Everything is derived from the tokens below; components never invent colours or sizes.
   ============================================================================ */
/* @fonts:begin (generated by tools/build_fonts.py) */
@font-face { font-family: "Rubik"; src: url("/fonts/web/Rubik-latin.woff2?v=5a1c07d1") format("woff2"); font-weight: 400 700; font-style: normal; font-display: optional; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; src: url("/fonts/web/Rubik-latin-ext.woff2?v=5a1c07d1") format("woff2"); font-weight: 400 700; font-style: normal; font-display: optional; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; src: url("/fonts/web/Rubik-cyrillic.woff2?v=5a1c07d1") format("woff2"); font-weight: 400 700; font-style: normal; font-display: optional; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20B4; }
@font-face { font-family: "Alegreya"; src: url("/fonts/web/Alegreya-latin.woff2?v=5a1c07d1") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; src: url("/fonts/web/Alegreya-latin-ext.woff2?v=5a1c07d1") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; src: url("/fonts/web/Alegreya-cyrillic.woff2?v=5a1c07d1") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20B4; }
@font-face { font-family: "Caveat"; src: url("/fonts/web/Caveat-latin.woff2?v=5a1c07d1") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; src: url("/fonts/web/Caveat-latin-ext.woff2?v=5a1c07d1") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; src: url("/fonts/web/Caveat-cyrillic.woff2?v=5a1c07d1") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20B4; }
@font-face { font-family: "Literata"; src: url("/fonts/web/Literata-latin.woff2?v=5a1c07d1") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("/fonts/web/Literata-latin-ext.woff2?v=5a1c07d1") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url("/fonts/web/Literata-cyrillic.woff2?v=5a1c07d1") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20B4; }
@font-face { font-family: "Literata"; src: url("/fonts/web/Literata-Italic-latin.woff2?v=5a1c07d1") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("/fonts/web/Literata-Italic-latin-ext.woff2?v=5a1c07d1") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url("/fonts/web/Literata-Italic-cyrillic.woff2?v=5a1c07d1") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20B4; }
@font-face { font-family: "Alegreya Fallback"; src: local("Georgia"), local("Times New Roman"); ascent-override: 101.6%; descent-override: 34.5%; line-gap-override: 0.0%; size-adjust: 101.1%; }
@font-face { font-family: "Caveat Fallback"; src: local("Comic Sans MS"), local("Chalkboard SE"); ascent-override: 96.0%; descent-override: 30.0%; line-gap-override: 0.0%; size-adjust: 86.0%; }
/* @fonts:end */
:root {
  /* colour: night (indigo, never black), paper (warm, not cream-beige), moon (the only accent), star (soft highlight) */
  --night: #1b2447; --night-2: #27306a; --night-3: #38427f;
  --paper: #fbf7ee; --paper-2: #f3ecdd; --paper-3: #e7dfcc;
  --ink: #23213a; --ink-2: #4b4866; --muted: #635f78;
  --moon: #f2c14e; --moon-2: #e0ad2c; --moon-ink: #7a5a00; --star: #ffe9a8;
  --sage: #7fb29a; --sage-ink: #2f6b55; --rose: #e48a76;
  --ok: #23624a; --warn: #b26d0f; --err: #b3261e;
  --line: #e1d9c8; --line-night: #3b4578;
  /* type: Alegreya = book display, Rubik = interface, Literata = reading, Caveat = the child's name */
  --font-display: "Alegreya", "Alegreya Fallback", Georgia, "Times New Roman", serif;
  --font-ui: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-read: "Literata", Georgia, "DejaVu Serif", serif;
  --font-name: "Caveat", "Caveat Fallback", "Comic Sans MS", cursive;
  --fs-1: 13px; --fs-2: 15px; --fs-3: 17px; --fs-4: 20px; --fs-5: 26px; --fs-6: 34px; --fs-7: 46px;
  /* space & shape */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --r-1: 8px; --r-2: 12px; --r-3: 18px; --r-4: 26px;
  --shadow-1: 0 2px 8px rgba(27,36,71,.06); --shadow-2: 0 10px 30px rgba(27,36,71,.10); --shadow-night: 0 18px 44px rgba(27,36,71,.28);
  --glow: 0 0 0 4px rgba(242,193,78,.28);
  /* legacy aliases kept for older selectors */
  --accent: var(--moon-2); --accent2: var(--sage-ink); --bg: var(--paper); --font: var(--font-ui); --radius: var(--r-3); --sea: var(--sage-ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-ui); font-size: var(--fs-2); color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--sage-ink); }
h1, h2, h3, .display { font-family: var(--font-display); color: var(--night); letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: var(--fs-6); line-height: 1.1; margin: 0 0 var(--s-4); font-weight: 800; }
h3 { font-size: var(--fs-4); margin: 0 0 var(--s-3); font-weight: 700; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#build, #preview, #order { scroll-margin-top: 64px; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: var(--fs-1); }
::selection { background: var(--star); color: var(--night); }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 2px; }
.hero-name, mark.hero { font-family: var(--font-name); font-size: 1.25em; line-height: 1; color: var(--moon-ink); background: transparent; font-weight: 700; }

/* ---------------- header ---------------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s-4); padding: 12px 24px; background: rgba(251,247,238,.9); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--night); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.logo::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--moon); box-shadow: inset -4px -2px 0 0 var(--night); }
.top-links { display: flex; gap: var(--s-4); margin-left: auto; margin-right: var(--s-3); }
.top-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--fs-2); padding: 6px 2px; border-bottom: 2px solid transparent; }
.top-links a:hover { border-bottom-color: var(--moon); color: var(--night); }
.ui-lang { display: flex; gap: 2px; }
.ui-lang button { min-width: 44px; height: 40px; border: 1px solid var(--line); background: #fff; padding: 0 8px; border-radius: var(--r-1); cursor: pointer; font: 600 var(--fs-1) var(--font-ui); color: var(--ink-2); }
.ui-lang button.on { background: var(--night); color: #fff; border-color: var(--night); }
.ui-lang-select { display: none; width: auto; height: 40px; padding: 0 28px 0 10px; font-size: var(--fs-1); font-weight: 600; border-radius: var(--r-1); }
@media (max-width: 1100px) { .ui-lang { display: none; } .ui-lang-select { display: block; } }  /* 8 language buttons need ~1100px next to the nav */
/* country: flag + ISO code (the code is always there - Windows has no flag emoji, .noflag hides the letter pair) */
.cc-btn { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-1); cursor: pointer; font: 600 var(--fs-1) var(--font-ui); color: var(--ink-2); white-space: nowrap; flex: none; }
.cc-btn:hover { border-color: var(--night); }
.cc-flag { font-size: 18px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.noflag .flag-emoji { display: none; }
.cc-dlg { position: fixed; inset: 0; z-index: 60; background: rgba(27,36,71,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.cc-box { background: var(--paper, #fff); width: 100%; max-width: 420px; max-height: 80vh; display: flex; flex-direction: column; border-radius: var(--r-3); box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; gap: 10px; }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-2); }
.cc-x { width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.cc-q { width: 100%; height: 44px; font-size: 16px; }
.cc-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 120px; }
.cc-list li[data-cc] { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border-radius: var(--r-1); cursor: pointer; }
.cc-list li[data-cc]:hover, .cc-list li[data-cc]:focus { background: rgba(242,193,78,.18); outline: none; }
.cc-list li[aria-selected="true"] { font-weight: 700; }
.cc-list li .cc-li-code { margin-left: auto; }
.cc-list .cc-sep { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px 4px; }
.cc-note { margin: 0; }
@media (max-width: 760px) { body:not([data-view="landing"]) .ui-lang, body:not([data-view="landing"]) .ui-lang-select, body:not([data-view="landing"]) .cc-btn { display: none; } }
main { max-width: 1060px; margin: 0 auto; padding: 8px 16px 48px; }

/* ---------------- hero (landing) ---------------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-6); align-items: center; padding: var(--s-6) 0 var(--s-7); }
.hero h1 { font-size: var(--fs-7); line-height: 1.04; margin: 0 0 var(--s-4); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--moon-ink); font-family: var(--font-name); font-size: 1.15em; margin-inline: .08em .18em; }
.hero .lead { font-size: var(--fs-3); color: var(--ink-2); max-width: 46ch; margin: 0 0 var(--s-5); }
.hero-start { display: flex; gap: var(--s-2); align-items: stretch; margin-bottom: var(--s-3); }
.hero-start input { flex: 1; min-width: 0; font-size: var(--fs-3); padding: 12px 14px; }
.hero-start .seg { border-color: var(--line); }
.hero-start .seg button { background: #fff; color: var(--ink-2); }
.hero-start .seg button.on { background: var(--night); color: #fff; }
.hero-cta { width: 100%; justify-content: center; }
.hero-offer { margin: var(--s-2) 0 0; text-align: center; text-wrap: balance; font-size: var(--fs-1); font-weight: 600; color: var(--ink-2); min-height: 1.55em; }
/* phones: the name accent gets its own line - the headline wraps the same with the fallback and the loaded Caveat (no CLS) */
@media (max-width: 640px) { .hero h1 em { display: block; margin-inline: 0; } }
.bullets { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 6px; color: var(--ink-2); font-size: var(--fs-2); }
.bullets li::before { content: "✦"; color: var(--moon-2); margin-right: 8px; font-size: 12px; }
.hero-art { min-height: 420px; }

/* ---------------- surfaces ---------------- */
.card { background: #fff; border-radius: var(--r-4); padding: var(--s-5); box-shadow: var(--shadow-2); margin-bottom: var(--s-5); border: 1px solid rgba(225,217,200,.6); }
.block { padding: var(--s-7) 0; position: relative; }
.block::before { content: ""; display: block; height: 1px; margin: 0 auto var(--s-7); max-width: 320px; background: radial-gradient(circle, var(--moon-2) 0 1px, transparent 1.6px) 0 0 / 12px 1px repeat-x; opacity: .7; }
.block h2 { margin-bottom: var(--s-2); }
.block > .muted { margin: 0 0 var(--s-4); font-size: var(--fs-3); }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font: 600 var(--fs-2) var(--font-ui); cursor: pointer; background: var(--paper-2); color: var(--night); text-decoration: none; transition: transform .08s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { background: var(--paper-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--moon); color: var(--night); box-shadow: 0 6px 18px rgba(242,193,78,.35); }
.btn.primary:hover { background: var(--moon-2); box-shadow: 0 8px 22px rgba(242,193,78,.45); }
.btn.night { background: var(--night); color: #fff; }
.btn.night:hover { background: var(--night-2); }
.btn.big { font-size: var(--fs-3); padding: 14px 26px; }
.btn.small { font-size: var(--fs-1); padding: 6px 12px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.actions { display: flex; gap: var(--s-4); align-items: center; margin-top: var(--s-2); }
.status { color: var(--muted); font-size: var(--fs-1); }
.status.err { color: var(--err); }
.notice { display: block; margin: 0 0 var(--s-4); padding: 12px 16px; border-radius: var(--r-2); background: var(--paper-2); border-left: 4px solid var(--moon-2); color: var(--ink); font-size: var(--fs-2); }

/* ---------------- forms ---------------- */
label { display: block; margin-bottom: var(--s-3); font-size: var(--fs-1); color: var(--ink-2); }
label > span { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
input[type=text], input[type=email], input:not([type]), select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-2); font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--moon-2); box-shadow: var(--glow); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: end; }
.grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); }
fieldset { border: 1px dashed var(--line); border-radius: var(--r-2); padding: 12px 16px; margin: 0 0 var(--s-4); }
legend { padding: 0 6px; font-weight: 700; color: var(--night); }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; accent-color: var(--night); }
.check span { font-weight: 400; }
.consent { align-items: flex-start; font-size: var(--fs-1); color: var(--ink); margin-bottom: var(--s-2); line-height: 1.45; padding: 6px 8px; margin-left: -8px; border-radius: var(--r-1); border: 1px solid transparent; }
.consent input { margin: 0; width: 22px; height: 22px; flex: none; }
.consent.err { border-color: var(--err); background: rgba(179,38,30,.05); }
.trust { list-style: none; padding: 0; margin: 10px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-1); color: var(--ink-2); }
.trust li::before { content: "✓ "; color: var(--sage-ink); font-weight: 700; }
.portrait { background: radial-gradient(120% 80% at 50% 100%, var(--night-3) 0%, var(--night) 70%); border-radius: var(--r-3); padding: var(--s-4); display: flex; justify-content: center; position: relative; overflow: hidden; }
.portrait::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 25%, rgba(255,255,255,.7) 0 1px, transparent 2px) 0 0/ 90px 70px, radial-gradient(circle at 70% 60%, rgba(255,255,255,.5) 0 1px, transparent 2px) 0 0 / 120px 90px; opacity: .6; }
.portrait::after { content: ""; position: absolute; top: 14px; right: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 24px 6px rgba(242,193,78,.35); }
.portrait img { width: 220px; height: 240px; position: relative; z-index: 1; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.hint { text-align: center; color: var(--muted); font-size: var(--fs-1); margin-top: var(--s-2); }
.portrait img.photo { width: 200px; height: 240px; object-fit: contain; }
.portrait.painted { animation: portrait-pop .9s ease; } @keyframes portrait-pop { 0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(242,193,78,.6); } 60% { box-shadow: 0 0 0 14px rgba(242,193,78,0); } 100% { transform: scale(1); } }
.pv-listen { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; } .pv-listen audio { width: 100%; height: 36px; }
.pv-portrait { display: flex; gap: 12px; align-items: center; margin-top: 12px; background: var(--paper-2); border-radius: var(--r-2); padding: 10px 12px; }
.pv-portrait img { width: 64px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); } .pv-portrait p { margin: 0; color: var(--ink-2); }
#portrait-name { font-family: var(--font-name); font-size: 24px; font-weight: 700; color: var(--night); }
.companion { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.companion label { margin: 0; }
.companion label.k { grid-column: 1 / 3; }
.pron { margin: 4px 0 12px; }
.pron summary { cursor: pointer; color: var(--muted); font-size: var(--fs-1); min-height: 28px; }
.pron-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.pron-row input { flex: 1; min-width: 0; }
.companion .c-adv { grid-column: 1 / -1; }
.companion .c-adv summary { cursor: pointer; color: var(--muted); font-size: var(--fs-1); }
.companion .c-remove { width: 44px; height: 44px; padding: 0; justify-content: center; align-self: end; font-size: 20px; line-height: 1; }

/* ---------------- wizard: twelve moons progress ---------------- */
.build-lead { margin: -8px 0 var(--s-4); color: var(--ink-2); }
.wiz-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 var(--s-5); }
.wiz-steps li { flex: 1; min-width: 0; display: flex; }
.wiz-steps button { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--r-2); background: var(--paper-2); color: var(--muted); font: 600 var(--fs-1) var(--font-ui); cursor: pointer; min-width: 0; min-height: 44px; }
.wiz-step-label { display: none; margin: -14px 0 var(--s-4); font-size: var(--fs-1); color: var(--ink-2); font-weight: 600; }
.wiz-steps li i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-3); color: transparent; box-shadow: inset 6px 0 0 -2px var(--night-3); display: inline-flex; flex: none; transition: all .25s; }
.wiz-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-steps li.on button { background: var(--night); color: #fff; }
.wiz-steps li.on i { background: var(--moon); box-shadow: 0 0 0 4px rgba(242,193,78,.35), 0 0 16px rgba(242,193,78,.6); }
.wiz-steps li.done button { background: var(--paper-2); color: var(--sage-ink); }
.wiz-steps li.done i { background: var(--moon); box-shadow: none; }
.wiz { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); align-items: start; }
.wstep h3 { margin: 0 0 var(--s-3); font-size: var(--fs-5); }
.wiz-nav { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.wiz-nav .sp { flex: 1; }

/* ---------------- story sets / prices ---------------- */
.sets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.set-card { border: 2px solid var(--line); border-radius: var(--r-3); padding: 14px 16px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.set-card:hover { border-color: var(--paper-3); }
.set-card.on { border-color: var(--moon); box-shadow: var(--glow); }
.set-card b { display: block; color: var(--night); margin-bottom: 4px; font-family: var(--font-display); font-size: var(--fs-3); }
.set-card .desc { font-size: var(--fs-1); color: var(--muted); }
.set-card .price { font-size: var(--fs-3); margin: 6px 0 0; }
.price { font-family: var(--font-display); font-size: var(--fs-5); font-weight: 800; color: var(--night); margin: 8px 0 12px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
.price-card { background: #fff; border-radius: var(--r-3); padding: 22px; border: 2px solid transparent; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-1); }
.price-card.featured { border-color: var(--moon); box-shadow: var(--shadow-2); position: relative; }
.price-card.featured::before { content: "✦"; position: absolute; top: -12px; left: 18px; background: var(--moon); color: var(--night); font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.price-card b { font-family: var(--font-display); font-size: var(--fs-4); color: var(--night); }
.price-card .amount { font-family: var(--font-display); font-size: var(--fs-6); font-weight: 800; color: var(--night); }
.price-card p { flex: 1; color: var(--ink-2); margin: 4px 0 10px; }
.price-card.packs { grid-column: 1 / -1; }
.pack-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.pack-details summary { list-style: none; display: inline-flex; width: auto; }
.pack-details summary::-webkit-details-marker { display: none; }
.pack-details[open] summary { margin-bottom: 4px; }
.price-card.gift-card { background: var(--night); color: #fff; border-color: var(--night); }
.price-card.gift-card b, .price-card.gift-card p { color: var(--star); }
.price-card.gift-card p { color: #dfe3f7; }
.price-card.gift-card .btn { align-self: flex-start; }
.pack { text-align: left; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: 4px; transition: border-color .2s, transform .2s; }
.pack:hover { border-color: var(--moon); transform: translateY(-2px); }
.pack b { font-family: var(--font-display); font-size: var(--fs-3); color: var(--night); }
.pack span { font-size: var(--fs-1); color: var(--ink-2); line-height: 1.4; }
.price-card .tag { position: absolute; top: -12px; left: 18px; background: var(--moon); color: var(--night); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.price-card.featured::before { content: none; }
.price-card .was { color: var(--muted); font-size: var(--fs-1); }
.price-card .also { color: var(--muted); font-size: var(--fs-1); margin-top: 8px; }
/* checkout tiers: book / book + audiobook */
.tiers { display: grid; gap: 10px; margin: var(--s-4) 0; }
.tier.premium { border-color: var(--moon); background: linear-gradient(180deg, #fff 0%, #fff8e6 100%); }
.tier .reco.gold { background: var(--night); color: var(--moon); }
.tier { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-2); background: #fff; cursor: pointer; position: relative; }
.tier:has(input:checked) { border-color: var(--moon); box-shadow: var(--glow); }
.tier input { width: auto; margin: 0; accent-color: var(--night); }
.tier b { font-family: var(--font-display); font-size: var(--fs-3); color: var(--night); display: block; }
.tier .d { font-size: var(--fs-1); color: var(--ink-2); }
.tier .p { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-4); color: var(--night); white-space: nowrap; }
.tier .p small { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 11px; color: var(--sage-ink); text-align: right; }
.tier .reco { position: absolute; top: -10px; right: 12px; background: var(--moon); color: var(--night); font-size: 11px; font-weight: 600; padding: 1px 9px; border-radius: 999px; }
.guarantee { margin-top: var(--s-4); font-weight: 600; color: var(--sage-ink); }
.lowest { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.addon { margin: 8px 0 4px; font-size: var(--fs-2); color: var(--ink); }

/* ---------------- landing sections ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-4); }
.step { background: #fff; border-radius: var(--r-3); padding: 22px; box-shadow: var(--shadow-1); }
.step .num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--moon); color: var(--night); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; font-family: var(--font-display); }
.step b { display: block; font-family: var(--font-display); font-size: var(--fs-4); color: var(--night); margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-4); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: var(--r-3); display: block; box-shadow: var(--shadow-2); }
.gallery figcaption { font-weight: 600; color: var(--night); margin-top: 8px; font-size: var(--fs-2); }
.story-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); counter-reset: s; margin-top: var(--s-4); }
.story-grid li { background: #fff; border-radius: var(--r-3); padding: 14px 16px; counter-increment: s; position: relative; box-shadow: var(--shadow-1); }
.story-grid li::before { content: counter(s); position: absolute; top: 10px; right: 14px; color: var(--paper-3); font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.story-grid b { color: var(--night); padding-right: 26px; display: inline; font-family: var(--font-display); font-size: var(--fs-3); }
.story-grid .len { color: var(--muted); font-size: 12px; white-space: nowrap; }
.story-grid p { margin: 6px 0 0; font-size: var(--fs-1); color: var(--ink-2); font-style: italic; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-5); align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--s-3); }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--night); }
.note-card { background: var(--night); color: #fff; border-radius: var(--r-3); padding: 22px 24px; box-shadow: var(--shadow-night); }
.note-card b { font-family: var(--font-display); font-size: var(--fs-4); color: var(--star); }
.faq details { background: #fff; border-radius: var(--r-2); padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--night); }
.faq p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }
.final-cta { text-align: center; padding-bottom: var(--s-7); }

/* ---------------- preview / buy ---------------- */
.preview-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-5); }
.cover svg { width: 100%; height: auto; border-radius: var(--r-2); box-shadow: var(--shadow-night); }
.kicker { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--moon-ink); font-weight: 700; }
.story p { font-family: var(--font-read); font-size: 18px; line-height: 1.65; }
.moral { margin-top: var(--s-3); padding: 12px 16px; background: var(--paper-2); border-radius: var(--r-2); font-style: italic; }
.buy { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px dashed var(--line); }
.stories { columns: 2; padding-left: 0; margin: 8px 0 16px; list-style: none; }
.stories li { margin-bottom: 4px; display: flex; gap: 6px; align-items: baseline; position: relative; break-inside: avoid; }
.stories .st-t { flex: 1; } .stories li.swapped .st-t { color: var(--sage-ink); } .stories .from { font-size: 12px; color: var(--ink-2); }
.swap-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; font-size: 16px; color: var(--ink-2); flex: none; }
.stories li { align-items: center; }
.book-opts { margin: 4px 0 var(--s-4); border: 1px dashed var(--line); border-radius: var(--r-2); padding: 10px 14px; background: var(--paper); }
.book-opts summary { cursor: pointer; font-weight: 600; color: var(--night); min-height: 28px; display: flex; align-items: center; }
.book-opts[open] summary { margin-bottom: 8px; }
.swap-btn:hover { border-color: var(--night); color: var(--night); }
.swap-menu { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow-2); padding: 6px; max-height: 260px; overflow: auto; display: grid; gap: 2px; }
.swap-opt { text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; display: grid; font: inherit; }
.swap-opt:hover { background: var(--paper-2); } .swap-opt span { font-size: 12px; color: var(--ink-2); } .swap-opt.back { color: var(--sage-ink); }
.custom-box { background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--r-2); padding: 12px 14px; display: grid; gap: 8px; margin: 4px 0 10px; }
.custom-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; resize: vertical; }
.custom-box .row { display: flex; gap: 10px; align-items: center; } .custom-result { background: #fff; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; justify-items: start; }
.swap-opt.custom b { color: var(--sage-ink); }
.opts { display: grid; gap: 10px; margin: 6px 0 14px; } .opt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.chip.on { border-color: var(--night); background: var(--night); color: #fff; } .chip .play { opacity: .8; margin-left: 4px; }
.stories .len { color: var(--muted); font-size: 12px; }
.stories .pin { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.row.row-top { align-items: start; }
.field-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.send-box { background: var(--paper-2); border-radius: var(--r-2); padding: 14px; margin-top: var(--s-4); }
.send-box.emailed .send-row, .send-box.emailed .check { display: none; }
.send-box.emailed .status { display: block; color: var(--ok); font-weight: 600; }
.email-first { display: grid; gap: 6px; }
.email-first input { max-width: 420px; font-size: 17px; padding: 12px 14px; }
.email-first .optin { align-items: flex-start; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.email-first .optin input { margin-top: 1px; width: 20px; height: 20px; flex: none; }
#sets:not(.hidden) + .email-first { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px dashed var(--line); }
.send-row { display: flex; gap: 8px; margin: 8px 0; }
.send-row input { flex: 1; }
.email-label { max-width: 420px; }
.progress { height: 10px; background: var(--paper-2); border-radius: 8px; overflow: hidden; margin: var(--s-3) 0; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--moon-2), var(--moon)); transition: width .4s; }
.links a { display: inline-block; margin: 8px 12px 0 0; }

/* ---------------- generating: the lantern loader ---------------- */
.lantern { display: flex; align-items: center; gap: var(--s-4); background: var(--night); color: #fff; border-radius: var(--r-3); padding: 18px 20px; margin: var(--s-3) 0; box-shadow: var(--shadow-night); flex-wrap: wrap; }
.lantern .l-now { flex-basis: 100%; color: var(--star); font-weight: 600; min-height: 1.4em; }
.wait-tip { margin: 4px 0 0; }
.lantern .moons { display: flex; gap: 6px; }
.lantern .moons i { width: 12px; height: 12px; border-radius: 50%; background: var(--night-3); animation: light 4.8s infinite; }
.lantern .moons i:nth-child(n) { animation-delay: calc(var(--i) * .4s); }
@keyframes light { 0%, 100% { background: var(--night-3); box-shadow: none; } 8%, 60% { background: var(--moon); box-shadow: 0 0 10px rgba(242,193,78,.8); } }
.lantern p { margin: 0; font-size: var(--fs-2); color: #dfe3f7; }
@media (prefers-reduced-motion: reduce) { .lantern .moons i { animation: none; background: var(--moon); } }

/* ---------------- footer + cookie ---------------- */
.foot { text-align: center; color: var(--muted); font-size: var(--fs-1); padding: var(--s-5); line-height: 1.8; }
.foot a { color: var(--muted); }
.foot-company { margin-top: 4px; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: var(--night); color: #fff; border-radius: var(--r-3); padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-night); max-width: 760px; margin: 0 auto; font-size: var(--fs-1); }
.cookie a { color: var(--star); }
.cookie-btns { margin-left: auto; display: flex; gap: 8px; }
.cookie .btn { padding: 8px 14px; font-size: var(--fs-1); }
.cookie .btn:not(.primary) { background: rgba(255,255,255,.14); color: #fff; }
.cookie .ck-text { flex: 1 1 320px; }
@media (max-width: 560px) { .cookie { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; gap: 8px; font-size: 12px; line-height: 1.35; border-radius: var(--r-2); } .cookie .ck-text { flex-basis: 100%; } .cookie-btns { width: 100%; } .cookie-btns .btn { flex: 1; justify-content: center; padding: 8px 6px; } }
.cookie .ck-info, .cookie .ck-ok { display: none; }
.cookie.info .ck-ask, .cookie.info #cookie-accept, .cookie.info .cookie-btns .btn:not(.primary) { display: none; }
.cookie.info .ck-info, .cookie.info .ck-ok { display: inline-block; }
.cookie-opts { flex-basis: 100%; display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.cookie-opts .check, .cookie-opts .check span { color: var(--star); font-size: var(--fs-1); }
.cookie-opts input { accent-color: var(--moon); }

/* ---------------- self-service / order / offers / share ---------------- */
.ss { background: var(--paper-2); border-radius: var(--r-2); padding: 12px 16px; margin: var(--s-4) 0; }
.ss summary { cursor: pointer; font-weight: 600; color: var(--night); }
.ss-list { list-style: none; padding: 0; margin: 8px 0; }
.ss-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ss .fix { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.order-hero { display: flex; gap: var(--s-5); align-items: center; }
.order-hero img { width: 220px; height: auto; aspect-ratio: 16/10; border-radius: var(--r-2); box-shadow: var(--shadow-night); object-fit: cover; background: var(--night); }
.audio-details { margin: var(--s-4) 0; background: var(--paper-2); border-radius: var(--r-2); padding: 12px 16px; }
.audio-details summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); color: var(--night); font-size: var(--fs-4); min-height: 28px; }
.audio-list .audio-row { margin: 10px 0; }
.audio-list audio { width: 100%; max-width: 520px; }
.upsell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-3); padding: 16px 18px; margin: var(--s-4) 0; }
.upsell h3 { margin: 0 0 4px; }
.up-list { display: grid; gap: 10px; margin: 10px 0; }
.up-consent { margin-top: 8px; }
.up-more { margin-top: 6px; } .up-more summary { cursor: pointer; font-weight: 600; color: var(--night); padding: 6px 0; }
.question { margin-top: 12px; background: rgba(242,193,78,.16); border-radius: var(--r-2); padding: 12px 16px; font-family: var(--font-read); }
.question b { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 4px; }
.proof { font-size: var(--fs-1); color: var(--sage-ink); font-weight: 600; margin: 4px 0 0; }
.proof::before { content: "✦ "; color: var(--moon-2); }
.photo-box { margin-top: var(--s-4); padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r-2); display: grid; gap: 8px; background: #fff; }
.photo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.photo-consent { margin: 0; }
#photo-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 2px solid var(--moon); }
.voice { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.voice-script { background: var(--paper-2); border-radius: var(--r-2); padding: 10px 12px; font-family: var(--font-read); }
.voice-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.voice audio { width: 100%; max-width: 420px; }
.fail-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-3); padding: 18px 20px; }
.fail-box .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sib-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--r-2); padding: 12px 16px; margin-top: var(--s-4); }
.sib-card b { font-family: var(--font-display); color: var(--night); } .sib-card p { margin: 2px 0 0; }
.sub-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-3); padding: 18px 20px; margin-top: var(--s-5); }
.sub-card h3 { margin: 4px 0 6px; } .sub-card .tiers { margin: 12px 0; } .sub-card .row { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.sub-card.on { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--night); color: #fff; border: 0; }
.sub-card.on b { color: #fff; font-family: var(--font-display); font-size: var(--fs-3); } .sub-card.on p { color: var(--star); margin: 2px 0 0; }
.tips { margin: 18px 0 6px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-2); padding: 10px 14px; }
.tips summary { cursor: pointer; font-weight: 600; font-family: var(--font-title); color: var(--ink); }
.tips ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.95em; line-height: 1.5; }
.tips li { margin-bottom: 4px; }
.up-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; }
.up-card p { margin: 2px 0 0; }
.up-buy { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.up-buy .price { font-size: var(--fs-3); margin: 0; }
.up-buy .price b { font-size: var(--fs-4); }
.up-card.print, .up-card.voice-card { flex-direction: column; align-items: stretch; }
.up-main { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.addr { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; display: grid; gap: 8px; }
.addr label { display: grid; gap: 3px; font-size: var(--fs-1); }
.addr .bindings { display: grid; gap: 8px; margin-bottom: 6px; } .addr .bindings label.tier { display: grid; font-size: inherit; }
.addr input, .addr select { padding: 8px 10px; font-size: 14px; }
.addr .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addr .row:has(select) { grid-template-columns: 1fr 1fr 1.4fr; }
.share { background: var(--night); color: #fff; border-radius: var(--r-3); padding: 16px 18px; margin: var(--s-4) 0; box-shadow: var(--shadow-night); }
.share h3 { color: var(--star); margin: 0 0 4px; }
.share a { color: var(--star); }
.share .check { margin: 8px 0 4px; color: #fff; } .share label > span, .share label { color: #fff; } .share .check input { accent-color: var(--moon); }
.share .muted { color: #aab1d6; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.share a.btn, .share button.btn { text-decoration: none; background: rgba(255,255,255,.12); color: #fff; }
.share #share-copy, .share #share-native { background: rgba(255,255,255,.12); color: #fff; }
.progress-note { font-weight: 600; color: var(--moon); }
.fv-promo { background: var(--night); color: #fff; border-radius: var(--r-4); padding: var(--s-5); box-shadow: var(--shadow-night); }
.fv-promo h2, .fv-promo .fv-promo-price b { color: #fff; } .fv-promo p, .fv-promo li { color: var(--star); }
.fv-pick { border: 1px solid var(--line); border-radius: var(--r-3); padding: 12px 14px; margin: 10px 0; background: #fff; }
.fv-pick p { margin: 4px 0 8px; }
.gift-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-5); align-items: start; }
.gift-form { margin: 0; }
.gift-wrap summary { list-style: none; display: inline-flex; width: auto; } .gift-wrap summary::-webkit-details-marker { display: none; }
.gift-wrap[open] summary { display: none; }
.gift-form .sets { margin-bottom: 10px; }
.gift-buy { display: flex; align-items: center; gap: var(--s-4); margin-top: 8px; }
.gift-buy .price { margin: 0; }
.gift-banner { background: var(--star); border: 0; border-radius: var(--r-2); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; color: var(--night); }
.gift-code-row { margin: 4px 0 10px; font-size: var(--fs-1); }
.gift-code-row input { max-width: 240px; margin-top: 6px; text-transform: uppercase; letter-spacing: 2px; }
.gift-code-big { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 2px; }

/* ---------------- landing mini-book ---------------- */
.demo { background: var(--night); border-radius: var(--r-4); padding: 14px; color: var(--paper); box-shadow: var(--shadow-night); max-width: 560px; margin: 0 auto; position: relative; }
.demo::after { content: ""; position: absolute; top: 10px; right: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 18px 4px rgba(242,193,78,.4); pointer-events: none; }
.demo-form { display: flex; gap: 8px; margin-bottom: 10px; }
.demo-form input { flex: 1; min-width: 0; border: 1px solid var(--line-night); background: var(--night-2); color: #fff; border-radius: var(--r-2); padding: 9px 12px; font-size: 15px; }
.demo-form input::placeholder { color: #aab1d6; }
.seg { display: flex; border: 1px solid var(--line-night); border-radius: var(--r-2); overflow: hidden; flex-shrink: 0; }
.seg button { background: var(--night-2); color: #dfe3f7; border: 0; padding: 8px 12px; font: 500 14px var(--font-ui); cursor: pointer; }
.seg button.on { background: var(--moon); color: var(--night); font-weight: 700; }
.demo-book { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r-2); height: 330px; overflow: hidden; }
.dpage { display: none; padding: 12px 14px 14px; height: 100%; overflow: hidden; }
.dpage.on { display: block; animation: flip .35s ease; }
.dpage img { width: 100%; height: auto; aspect-ratio: 16/10; border-radius: 10px; display: block; object-fit: cover; }
.dpage b { display: block; margin: 10px 0 4px; font-family: var(--font-display); font-size: var(--fs-3); color: var(--night); }
.dpage p { margin: 0; font-family: var(--font-read); font-size: 14px; line-height: 1.5; }
.dpage .btn { margin-top: 10px; }
.dpage.cover { text-align: center; }
.dpage.cover .dcover-t { margin: 12px 0 2px; font-size: var(--fs-4); font-weight: 700; line-height: 1.2; }
.dpage.cover p { color: var(--moon-ink); font-family: var(--font-name); font-size: 20px; font-weight: 700; }
.demo-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.demo-nav button { background: transparent; color: #fff; border: 1px solid var(--line-night); border-radius: 50%; width: 32px; height: 32px; font-size: 18px; line-height: 1; cursor: pointer; }
.dots i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--night-3); margin: 0 3px; cursor: pointer; }
.dots i.on { background: var(--moon); box-shadow: 0 0 8px rgba(242,193,78,.7); }
.demo-hint { margin: 6px 0 0; text-align: center; font-size: 12px; color: #aab1d6; }
@keyframes flip { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dpage.on { animation: none; } }

/* ---------------- sticky buy bar (mobile, preview) ---------------- */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(27,36,71,.97); color: #fff; font-size: var(--fs-1); box-shadow: 0 -8px 24px rgba(0,0,0,.2); }
.sticky-buy b { font-family: var(--font-display); font-size: var(--fs-4); margin-left: 4px; color: var(--star); }
.sticky-buy .btn { white-space: nowrap; }

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
  main { padding: 4px 14px 40px; }
  .hero, .grid, .preview-grid, .two, .gift-block, .wiz { grid-template-columns: 1fr; }
  .hero { padding: var(--s-3) 0 var(--s-5); gap: var(--s-4); }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: var(--fs-2); margin-bottom: var(--s-4); }
  .hero-art { order: 2; min-height: 0; }
  .top { padding: 6px 12px; gap: 6px; min-height: 52px; max-height: 52px; }
  .top-links { display: none; }
  .logo { white-space: nowrap; font-size: 19px; margin-right: auto; }
  .cc-btn { padding: 0 8px; }
  .ui-lang button { min-width: 36px; height: 40px; padding: 0 4px; font-size: 12px; }
  body[data-view="build"] .journey { display: none; }
  .wiz-step-label { display: block; }
  .build-lead { font-size: var(--fs-1); }
  .lantern { flex-direction: column; align-items: flex-start; gap: 10px; }
  .order-hero .links { display: grid; gap: 8px; } .order-hero .links a { margin: 0; justify-content: center; }
  .companion { grid-template-columns: 1fr 1fr 44px; } .companion label.k { grid-column: 1 / 3; }
  .wiz-nav .btn { min-height: 44px; }
  .steps, .gallery, .story-grid, .sets { grid-template-columns: 1fr; }
  .block { padding: var(--s-6) 0; } .block::before { margin-bottom: var(--s-5); }
  .block h2 { font-size: var(--fs-5); }
  h2 { font-size: var(--fs-5); }
  .stories { columns: 1; }
  .cookie-btns { margin-left: 0; }
  .card { padding: var(--s-4); border-radius: var(--r-3); }
  .wiz { gap: var(--s-3); }
  .wiz-side { order: -1; display: flex; align-items: center; gap: var(--s-3); }
  .wiz-side .portrait { padding: 6px; border-radius: var(--r-2); flex: none; } .wiz-side .portrait img { width: 96px; height: 104px; } .wiz-side .portrait::after { width: 12px; height: 12px; top: 8px; right: 10px; }
  .wiz-side .hint { text-align: left; }
  .wiz-steps li span { display: none; } .wiz-steps button { justify-content: center; padding: 8px 4px; } .wiz-steps { margin-bottom: var(--s-4); }
  .wiz-nav { flex-wrap: wrap; } .wiz-nav .btn.big { width: 100%; justify-content: center; }
  .order-hero { flex-direction: column; align-items: stretch; } .order-hero img { width: 100%; }
  .up-card, .up-main { flex-direction: column; align-items: stretch; } .up-buy { justify-content: space-between; white-space: normal; flex-wrap: wrap; }
  .up-list > *, .up-main > *, .up-buy .price { min-width: 0; }  /* "Lowest price of the last 30 days: 5 €" wraps instead of pushing the card off the screen */
  .addr .row, .addr .row:has(select) { grid-template-columns: 1fr; }
  .sticky-buy:not(.hidden) { display: flex; }
}

/* photo -> hero -> scene */
.photo-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: start; margin-top: var(--s-4); }
.pf-step { background: #fff; border-radius: var(--r-3); padding: 16px; box-shadow: var(--shadow-1); text-align: center; }
.pf-pic { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; background: var(--paper-2); border-radius: var(--r-2); overflow: hidden; }
.pf-pic svg { width: 110px; height: 110px; } .pf-pic img { max-height: 100%; } .pf-scene img { width: 100%; height: 100%; object-fit: cover; }
.pf-arrow { align-self: center; font-size: 28px; color: var(--moon); font-weight: 700; }
.price-card.premium { border: 2px solid var(--night); background: linear-gradient(180deg, #fff 0%, #fff8e6 100%); position: relative; }
.price-card .tag.gold { background: var(--night); color: var(--moon); }
/* journey */
.journey { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 auto 14px; font-size: 13px; color: var(--ink-2); }
.journey .j { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.journey .j i { font-style: normal; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--paper-2); font-weight: 700; color: var(--ink-2); font-size: 12px; }
.journey .j.on { border-color: var(--night); color: var(--night); font-weight: 600; } .journey .j.on i { background: var(--night); color: var(--moon); }
.journey .j.done i { background: var(--sage); color: #fff; } .journey .j-line { width: 18px; height: 1px; background: var(--line); }
@media (max-width: 720px) { .photo-flow { grid-template-columns: 1fr; } .pf-arrow { transform: rotate(90deg); text-align: center; } .journey .j { padding-right: 6px; } .journey .j:not(.on) { font-size: 0; } .journey .j:not(.on) i { font-size: 12px; } }
/* one name field: the hero form on desktop, the mini-book's own field on phones (the book sits under the CTA there) */
@media (max-width: 759px) { .hero .hero-start { display: none; } }
@media (min-width: 760px) { .demo .demo-form { display: none; } }

.share a, .share-box a, .small a { overflow-wrap: anywhere; word-break: break-word; }

/* ---- "how it looks": three real screenshots + the 5-step list (lazy images, fixed ratios: no layout shift) */
.looks { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4); margin-top: var(--s-4); align-items: start; }
.looks figure { margin: 0; }
.looks img { width: 100%; height: auto; border-radius: var(--r-3); display: block; box-shadow: var(--shadow-2); background: var(--paper-2, #f3ecdd); }
.looks figcaption { color: var(--ink-2); margin-top: 8px; font-size: var(--fs-1); }
.looks-pdf { margin: var(--s-3) 0 0; text-align: center; }
.looks-pdf a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; font-size: var(--fs-1, 16px); line-height: 1.35; text-decoration: none; }
.hw-h { margin: var(--s-6) 0 var(--s-3); }
.hw { margin: 0; padding-left: 0; list-style: none; counter-reset: hw; display: grid; gap: 10px; max-width: 62ch; }
.hw li { counter-increment: hw; position: relative; padding-left: 40px; color: var(--ink-2); }
.hw li::before { content: counter(hw); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--moon); color: var(--night); font-weight: 700; font-family: var(--font-display); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.price-line { color: var(--ink-2); grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) { .looks { grid-template-columns: 1fr 1fr; } .looks figure:first-child { grid-column: 1 / -1; } }
/* ================= wave8 B: preview page (reading comfort + conversion), mobile first ================= */
#preview { max-width: 820px; margin-left: auto; margin-right: auto; }
.pv-head { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: center; }
.pv-head .cover svg, .pv-head .cover img { width: 100%; height: auto; display: block; border-radius: var(--r-2); box-shadow: var(--shadow-night); }
.pv-head h2 { font-size: var(--fs-5); margin: 4px 0 2px; }
.pv-head .meta { color: var(--muted); font-size: var(--fs-1); }
.pv-head .pv-portrait { margin-top: 8px; padding: 6px 8px; }
.pv-listen { margin: var(--s-4) 0 0; background: var(--night); color: #fff; border-radius: var(--r-2); padding: 12px 14px; }
.pv-listen .pv-listen-h { flex-basis: 100%; font-family: var(--font-display); font-size: var(--fs-3); color: var(--star); }
.pv-listen .muted { color: rgba(255,255,255,.75); }
.pv-listen .btn { background: var(--moon); color: var(--night); }
.pv-pages { margin-top: var(--s-4); display: grid; gap: var(--s-4); }
.pv-pages:empty { display: none; }
.pv-page { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); padding: 14px 16px 18px; min-width: 0; }
.pv-page .pv-art { margin: -14px -16px 12px; }
.pv-page .pv-art img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--r-3) var(--r-3) 0 0; background: var(--paper-2); }
.pv-page .pv-pt p { margin: 0 0 .7em; font-family: var(--font-read); font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.pv-page .pv-pt p:last-child { margin-bottom: 0; }
.pv-page .pv-pn { position: absolute; right: 12px; bottom: 4px; font-size: 11px; color: var(--muted); }
.pv-slot { margin-top: var(--s-4); }
.pv-slot:empty { display: none; }
.pv-cta { display: grid; gap: 10px; justify-items: start; background: linear-gradient(135deg, var(--night) 0%, var(--night-3) 100%); color: #fff; border-radius: var(--r-3); padding: 16px 18px; }
.pv-cta b { font-family: var(--font-display); font-size: var(--fs-4); line-height: 1.25; color: #fff; }
#preview.pv-tiers-up .pv-slot .buy { margin-top: 0; }
#preview.pv-collapsed #pv-rest, #preview.pv-collapsed .moral, #preview.pv-collapsed #pv-question { display: none; }
.pv-readmore { margin-top: var(--s-3); justify-content: center; width: 100%; }
.pv-more { margin-top: var(--s-5); min-width: 0; }
.pv-more h3 { margin-bottom: var(--s-2); }
.pv-more-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pv-mini { flex: 0 0 150px; margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; box-shadow: var(--shadow-1); }
.pv-mini img, .pv-mini .pv-mini-ph { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--paper-2); }
.pv-mini .pv-mini-ph { display: flex; align-items: center; justify-content: center; color: var(--moon-2); font-size: 28px; }
.pv-mini figcaption { padding: 8px 10px 10px; display: grid; gap: 4px; }
.pv-mini b { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.2; color: var(--night); }
.pv-mini span { font-size: 12px; line-height: 1.35; color: var(--ink-2); font-style: italic; }
.pv-trust { list-style: none; margin: var(--s-4) 0 0; padding: 10px 14px; display: grid; gap: 6px; background: var(--paper-2); border-radius: var(--r-2); }
.pv-trust li { font-weight: 600; color: var(--night); font-size: var(--fs-2); }
.pv-trust li::before { display: inline-block; width: 1.4em; color: var(--sage-ink); }
.pv-trust .pv-t-rewrite::before { content: "↺"; } .pv-trust .pv-t-fast::before { content: "⏱"; } .pv-trust .pv-t-pay::before { content: "🔒"; }
.pv-trust .pv-t-pay { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pv-badge { font-size: 11px; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 7px; color: var(--ink-2); }
.pv-reviews { margin-top: var(--s-5); }
.pv-reviews .reviews { grid-template-columns: 1fr; }
#preview .send-box { margin-top: var(--s-5); }
@media (min-width: 761px) {
  .pv-head { grid-template-columns: 200px 1fr; gap: var(--s-5); }
  .pv-head h2 { font-size: var(--fs-6); }
  .pv-reviews .reviews { grid-template-columns: repeat(3, 1fr); }
  .pv-mini { flex-basis: 180px; }
}
@media (max-width: 760px) { body[data-view="preview"] main { padding-bottom: 88px; } }  /* room for the sticky bar */
/* ================= /wave8 B ================= */

/* ---------------- wave 9 D: polish ---------------- */
.block.fv-promo { padding: var(--s-5); margin-block: var(--s-5); }  /* the section's own padding (mobile .block rule used to zero it) */
.block.fv-promo::before { display: none; }
.price-note { margin-top: var(--s-4); }
.dpage img { max-height: 210px; }  /* desktop mini-book: the cover's title + name line stay inside the fixed 330 px page */
.look-cover { background: var(--night); border-radius: var(--r-3); padding: 12px 12px 16px; text-align: center; box-shadow: var(--shadow-night, var(--shadow-2)); }
.look-cover img { box-shadow: none; border-radius: var(--r-2); aspect-ratio: 16/10; object-fit: cover; }
.look-cover .lc-t { display: block; margin: 12px 0 2px; font-family: var(--font-display); font-size: var(--fs-4); color: #fff; line-height: 1.2; }
.look-cover .lc-n { display: block; font-family: var(--font-name); font-weight: 700; font-size: 22px; color: var(--star); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(179,38,30,.14); }
.pv-trust .pv-t-once::before { content: "✓"; } .land-trust { max-width: 640px; }
