/* ==========================================================================
   My Story Game — site styles (new design, same visual language as the
   "Coming soon" page). Used by resources/views/layouts/app.blade.php.
   No framework: plain CSS, mobile-first.
   ========================================================================== */

@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('../fonts/nunito-v32-cyrillic_latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('../fonts/nunito-v32-cyrillic_latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('../fonts/nunito-v32-cyrillic_latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('../fonts/nunito-v32-cyrillic_latin-800.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
    --teal: #10a39a;
    --teal-dark: #0b7d76;
    --teal-soft: #c9f1ec;
    --navy: #0e3a78;
    --navy-deep: #0a2a57;
    --orange: #f7941d;
    --orange-dark: #e07b00;
    --orange-soft: #ffe2bd;
    --yellow: #ffc328;
    --sky: #eaf6ff;
    --sky-soft: #f4faff;
    --cream: #fff7ea;
    --ink: #1d2b45;
    --muted: #5b6b86;
    --line: rgba(14, 58, 120, .1);
    --white: #fff;

    --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(14, 58, 120, .07);
    --shadow: 0 14px 40px rgba(14, 58, 120, .10);
    --shadow-lg: 0 24px 60px rgba(14, 58, 120, .16);

    --container: 1200px;
    --gutter: 16px;
    --header-h: 72px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
h1, h2 { text-wrap: balance; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 18px; border-radius: 10px;
    background: var(--navy); color: #fff; font-weight: 700;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; line-height: 1.2;
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
    white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
    background: linear-gradient(180deg, #ffa53a 0%, var(--orange) 100%);
    color: var(--navy-deep);
    box-shadow: 0 8px 20px rgba(247, 148, 29, .35), inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(247, 148, 29, .45), inset 0 -3px 0 rgba(0, 0, 0, .08); }

.btn--secondary {
    background: var(--white); color: var(--navy);
    box-shadow: inset 0 0 0 2px rgba(14, 58, 120, .15);
}
.btn--secondary:hover { box-shadow: inset 0 0 0 2px var(--navy); transform: translateY(-2px); }

.btn--light { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.btn--light:hover { transform: translateY(-2px); }

.btn--sm { min-height: 44px; padding: 9px 20px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(48px, 6vw, 80px) 0; position: relative; }
.section--sky { background: linear-gradient(180deg, var(--sky-soft) 0%, var(--white) 100%); }
.section--cream { background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); }

.section-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section-head--split {
    max-width: none; text-align: left;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
}
.section-head--split > div { max-width: 620px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; margin-bottom: 16px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal-dark);
}
.eyebrow svg { width: 14px; height: 14px; color: var(--orange); }
@media (max-width: 520px) { .eyebrow { font-size: .7rem; letter-spacing: .06em; } }

.section-title { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 14px; }
.section-lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); }

.highlight { position: relative; white-space: nowrap; z-index: 0; }
.highlight::after {
    content: ''; position: absolute; z-index: -1;
    left: -3%; right: -3%; bottom: .06em; height: .34em;
    background: var(--orange-soft); border-radius: 8px;
}

/* ---------- Announcement bar ---------- */
.announcement {
    background: var(--navy); color: #fff;
    font-size: .92rem; font-weight: 600; text-align: center;
    padding: 9px var(--gutter);
}
.announcement strong { color: var(--yellow); letter-spacing: .04em; }
.announcement a { text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14, 58, 120, .08); border-bottom-color: var(--line); }

.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
    display: block; padding: 10px 14px; border-radius: 999px;
    font-weight: 700; font-size: .98rem; color: var(--ink);
    transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--sky); color: var(--navy); }

.site-header__cta { flex-shrink: 0; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px; margin-left: auto;
    border-radius: 12px;
    align-items: center; justify-content: center;
    color: var(--navy);
}
.nav-toggle:hover { background: var(--sky); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.nav__mobile-cta { display: none; }

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .brand img { height: 38px; }
    .nav-toggle { display: inline-flex; }
    .site-header__cta { display: none; }

    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        background: var(--white);
        box-shadow: 0 20px 40px rgba(14, 58, 120, .14);
        padding: 12px var(--gutter) 24px;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: transform .25s var(--ease), opacity .25s, visibility .25s;
    }
    .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
    body.nav-open::after {
        content: ''; position: fixed; inset: var(--header-h) 0 0; z-index: 40;
        background: rgba(10, 42, 87, .35);
    }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__link { padding: 14px 12px; border-radius: 12px; font-size: 1.08rem; }
    .nav__mobile-cta { display: block; margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #dcf0ff 0%, var(--sky-soft) 55%, var(--white) 100%);
    padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 72px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blobDrift 18s ease-in-out infinite alternate; }
.blob--teal   { width: 44vmax; height: 44vmax; background: var(--teal-soft);   top: -18vmax; left: -14vmax; }
.blob--orange { width: 26vmax; height: 26vmax; background: var(--orange-soft); bottom: -12vmax; right: -8vmax; opacity: .45; animation-delay: -7s; }

/* Sparkles only behind the visual, never over the headline copy. */
.hero__sparkles { position: absolute; inset: 0 0 0 52%; }
@media (max-width: 960px) { .hero__sparkles { display: none; } }
@keyframes blobDrift { to { transform: translate(4vmax, 3vmax) scale(1.1); } }

.sparkle { position: absolute; color: var(--yellow); animation: twinkle 3.2s ease-in-out infinite; }
.sparkle svg { width: 100%; height: 100%; }
@keyframes twinkle {
    0%, 100% { transform: scale(.55) rotate(0); opacity: .35; }
    50%      { transform: scale(1) rotate(25deg); opacity: 1; }
}

.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 961px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.hero__title { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 700; line-height: 1.05; margin-bottom: 20px; }
.hero__title .accent-teal { color: var(--teal); }
.hero__title .accent-orange { color: var(--orange); }
.hero__lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero__lead strong { color: var(--navy); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.checklist { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checklist li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--navy); }
.checklist svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--teal); color: #fff; flex-shrink: 0; }

@media (max-width: 960px) {
    .hero__content { text-align: center; }
    .hero__lead { margin-inline: auto; }
    .hero__actions, .checklist { justify-content: center; }
}
@media (max-width: 520px) {
    .hero__actions .btn { width: 100%; }
}

/* Hero visual: photo → illustrated hero */
.transform {
    position: relative;
    width: min(520px, 100%); margin-inline: auto;
    aspect-ratio: 1 / .92;
}
.transform__card {
    position: absolute; width: 52%;
    background: #fff; padding: 10px 10px 14px;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}
.transform__card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.transform__card--photo { left: 0; top: 10%; transform: rotate(-6deg); }
.transform__card--hero  { right: 0; top: 0; width: 58%; transform: rotate(4deg); z-index: 1; }
.transform__label {
    position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
    padding: 7px 16px; border-radius: 999px;
    font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.transform__card--photo .transform__label { background: var(--white); color: var(--navy); }
.transform__card--hero  .transform__label { background: var(--orange); color: var(--navy-deep); }

.transform__arrow {
    position: absolute; left: 41%; top: 52%; z-index: 2;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--teal); color: #fff;
    box-shadow: 0 10px 24px rgba(16, 163, 154, .4);
    animation: pulse 2.4s ease-in-out infinite;
}
.transform__arrow svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .transform__arrow { display: none; } }

/* Mobile hero: the photo → hero proof moves above the copy, so it lands inside the first screen. */
@media (max-width: 760px) {
    .hero__grid { gap: 28px; }
    .hero__grid .transform { order: -1; width: min(520px, 85%); }
    /* Fixed-size decorations crowd the card labels at this width. */
    .hero .floaty { display: none; }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.floaty { position: absolute; animation: bob 7s ease-in-out infinite; z-index: 3; filter: drop-shadow(0 8px 14px rgba(14, 58, 120, .15)); }
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50%      { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 761px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
    position: relative;
    padding: 34px 28px 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step__num {
    position: absolute; top: 18px; right: 24px;
    font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1;
    color: rgba(14, 58, 120, .06);
}
.step__icon {
    width: 60px; height: 60px; border-radius: 18px;
    display: grid; place-items: center; margin-bottom: 20px;
}
.step__icon svg { width: 30px; height: 30px; }
.step--teal   .step__icon { background: var(--teal-soft);   color: var(--teal-dark); }
.step--orange .step__icon { background: var(--orange-soft); color: var(--orange-dark); }
.step--navy   .step__icon { background: #dbe6f7;            color: var(--navy); }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

.steps-cta { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

/* ---------- Books ---------- */
.books { display: grid; gap: 24px; }
@media (min-width: 640px)  { .books { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .books { grid-template-columns: repeat(3, 1fr); } }

.book-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.book-card__cover {
    position: relative; aspect-ratio: 3 / 4; overflow: hidden;
    background: linear-gradient(140deg, var(--sky) 0%, var(--cream) 100%);
    display: grid; place-items: center;
}
@media (max-width: 639px) { .book-card__cover { aspect-ratio: 4 / 3.6; } }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.book-card:hover .book-card__cover img { transform: scale(1.04); }
.book-card__cover svg { width: 56px; height: 56px; color: var(--muted); opacity: .4; }
.book-card__label {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--orange); color: var(--navy-deep);
    font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.book-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.book-card__title { font-size: 1.4rem; margin-bottom: 6px; }
.book-card__desc {
    color: var(--muted); font-size: .96rem; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--sky-soft); border: 1px solid var(--line);
    font-size: .8rem; font-weight: 700; color: var(--navy);
}
.chip svg { width: 13px; height: 13px; color: var(--teal); }

.book-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { line-height: 1.1; }
.price small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }

.formats { display: flex; gap: 14px; margin-bottom: 16px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.formats span { display: inline-flex; align-items: center; gap: 5px; }
.formats svg { width: 15px; height: 15px; color: var(--teal); }

.empty-state {
    grid-column: 1 / -1; text-align: center;
    padding: 48px 24px; border-radius: var(--radius-lg);
    background: var(--sky-soft); color: var(--muted); font-weight: 700;
}

/* ---------- Benefits ---------- */
.benefits { display: grid; gap: 20px; }
@media (min-width: 640px)  { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

.benefit {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 26px 24px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__icon {
    width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
    display: grid; place-items: center;
}
.benefit__icon svg { width: 26px; height: 26px; }
.benefit:nth-child(3n+1) .benefit__icon { background: var(--teal-soft);   color: var(--teal-dark); }
.benefit:nth-child(3n+2) .benefit__icon { background: var(--orange-soft); color: var(--orange-dark); }
.benefit:nth-child(3n+3) .benefit__icon { background: #dbe6f7;            color: var(--navy); }
.benefit h3 { font-size: 1.2rem; margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: .97rem; }

/* ---------- Reviews ---------- */
.section--reviews {
    background: radial-gradient(1200px 500px at 15% 0%, #144a93 0%, transparent 60%),
                linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff; overflow: hidden;
}
.section--reviews .section-title { color: #fff; }
.section--reviews .section-lead { color: rgba(255, 255, 255, .72); }
.section--reviews .eyebrow { background: rgba(255, 255, 255, .1); color: var(--yellow); box-shadow: none; }

.reviews { position: relative; }
.reviews__track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: min(360px, 86%);
    gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 2px 18px;
    scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }

.review {
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    padding: 28px 26px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
}
.stars { display: flex; gap: 3px; color: var(--yellow); margin-bottom: 16px; }
.stars svg { width: 18px; height: 18px; }
.stars .is-off { color: rgba(255, 255, 255, .25); }
.review blockquote { font-size: 1.08rem; line-height: 1.6; margin-bottom: 22px; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--teal), var(--orange));
    font-family: var(--font-display); font-weight: 700; color: #fff;
}
.review__name { font-weight: 800; display: block; line-height: 1.2; }
.review__meta { font-size: .85rem; color: rgba(255, 255, 255, .6); }

.reviews__nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.reviews__btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff;
    transition: background-color .2s;
}
.reviews__btn:hover { background: rgba(255, 255, 255, .2); }
.reviews__btn svg { width: 22px; height: 22px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 961px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq-intro .section-lead { margin-bottom: 24px; }
.faq-contact {
    display: flex; gap: 14px; align-items: center;
    padding: 18px 20px; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow-sm);
}
.faq-contact svg { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; }
.faq-contact a { color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--navy);
    cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--sky); color: var(--navy);
    transition: transform .25s var(--ease), background-color .2s;
}
.faq__icon svg { width: 18px; height: 18px; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--orange); color: var(--navy-deep); }
.faq__answer { padding: 0 22px 22px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.section--cta { padding-top: clamp(24px, 4vw, 48px); }
.cta-band {
    position: relative; overflow: hidden;
    padding: clamp(44px, 7vw, 76px) clamp(22px, 5vw, 64px);
    border-radius: 36px;
    background: linear-gradient(135deg, var(--teal) 0%, #0c8f87 45%, var(--navy) 100%);
    color: #fff; text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 1.12rem; max-width: 600px; margin: 0 auto 30px; }
.cta-band .sparkle { color: var(--yellow); }
.cta-band > *:not(.cta-band__bg) { position: relative; }
.cta-band__bg { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sky-soft); padding: clamp(56px, 7vw, 80px) 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 761px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 340px; font-size: .96rem; }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: .96rem; transition: color .2s; }
.footer-links a:hover { color: var(--navy); }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), color .2s;
}
.social a:hover { transform: translateY(-2px); color: var(--teal); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    font-size: .9rem; color: var(--muted);
}
.footer-bottom .heart { color: var(--orange); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Proof: photo → hero, for several children ---------- */
/* Flex, not grid, so one pair centres as happily as three. */
.proof-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: clamp(28px, 4vw, 40px); margin-bottom: clamp(40px, 6vw, 64px);
    padding: 0; list-style: none;
}
.proof-pair { flex: 0 1 340px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.proof-pair__card {
    position: relative; margin: 0;
    background: #fff; padding: 8px 8px 12px;
    border-radius: 18px; box-shadow: var(--shadow);
}
.proof-pair__card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.proof-pair__card:first-of-type { transform: rotate(-3deg); }
.proof-pair__card:last-of-type  { transform: rotate(3deg); }

.proof-pair__label {
    position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%);
    padding: 5px 13px; border-radius: 999px;
    font-weight: 800; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.proof-pair__label--photo { background: var(--white); color: var(--navy); }
.proof-pair__label--hero  { background: var(--orange); color: var(--navy-deep); }

.proof-pair__arrow {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--teal); color: #fff;
    box-shadow: 0 8px 18px rgba(16, 163, 154, .38);
}
.proof-pair__arrow svg { width: 19px; height: 19px; }

.proof-note {
    max-width: 780px; margin-inline: auto; text-align: center;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    padding: clamp(26px, 4vw, 40px);
}
.proof-note__title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 12px; }
.proof-note p { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.08rem); }
.proof-note p + p { margin-top: 12px; }
.proof-note__small { font-size: .95rem !important; opacity: .8; }

/* ---------- Catalog (/books) ---------- */
.breadcrumb { padding-top: 26px; font-size: .88rem; font-weight: 700; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: rgba(14, 58, 120, .3); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current] { color: var(--navy); }

.catalog-intro {
    background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 55%, var(--white) 100%);
    padding-bottom: clamp(30px, 4vw, 52px);
}
.catalog-intro__head { max-width: 720px; margin: clamp(16px, 3vw, 26px) auto 0; text-align: center; }
.catalog-intro .section-lead { margin-bottom: 22px; }
.checklist--center { justify-content: center; }

.catalog-grid { padding-top: clamp(30px, 4vw, 48px); }

/* Boy / girl edition of the same story */
.book-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.book-card__head .book-card__title { margin-bottom: 0; }
.book-card__edition {
    flex-shrink: 0; margin-top: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.book-card__edition--boy  { background: var(--teal-soft);   color: var(--teal-dark); }
.book-card__edition--girl { background: var(--orange-soft); color: var(--orange-dark); }

.price__was { margin-left: 8px; font-weight: 700; font-size: .95rem; color: var(--muted); text-decoration: line-through; }

/* Placeholder tile: an honest "young shop", instead of a half-empty row */
.book-ghost {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    gap: 4px; padding: 40px 28px; min-height: 280px;
    border: 2px dashed rgba(14, 58, 120, .18); border-radius: var(--radius-lg);
    background: var(--sky-soft); color: var(--muted);
}
.book-ghost__icon {
    width: 56px; height: 56px; border-radius: 18px; margin-bottom: 10px;
    display: grid; place-items: center;
    background: var(--white); color: var(--teal); box-shadow: var(--shadow-sm);
}
.book-ghost__icon svg { width: 28px; height: 28px; }
.book-ghost__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.book-ghost__text { font-size: .92rem; }

.catalog-steps .section-head { margin-bottom: clamp(22px, 3vw, 34px); }
.steps--compact .step { padding: 28px 24px 24px; }
.steps--compact .step__num { font-size: 2.6rem; top: 14px; right: 18px; }
.steps--compact .step__icon { width: 50px; height: 50px; border-radius: 15px; margin-bottom: 14px; }
.steps--compact .step__icon svg { width: 25px; height: 25px; }
.steps--compact .step h3 { font-size: 1.25rem; }
.steps--compact .step p { font-size: .95rem; }

.guarantee {
    display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 30px);
    padding: clamp(26px, 4vw, 40px);
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.guarantee__badge {
    flex-shrink: 0; width: 64px; height: 64px; border-radius: 20px;
    display: grid; place-items: center;
    background: var(--teal-soft); color: var(--teal-dark);
}
.guarantee__badge svg { width: 32px; height: 32px; }
.guarantee__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.guarantee p { color: var(--muted); }
.guarantee__small { margin-top: 10px; font-size: .92rem; }
.guarantee__small a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
@media (max-width: 600px) { .guarantee { flex-direction: column; align-items: center; text-align: center; } }
@media (min-width: 640px) and (max-width: 999px) { .book-ghost--md2 { grid-column: span 2; } }
@media (min-width: 1000px) { .book-ghost--lg2 { grid-column: span 2; } .book-ghost--lg3 { grid-column: span 3; } }
.catalog-guarantee { padding-top: clamp(26px, 3.5vw, 44px); }

/* ---------- How it works (/how-it-works) ---------- */
@media (min-width: 640px) and (max-width: 960px) { .steps--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .steps--four { grid-template-columns: repeat(4, 1fr); } }

.hiw-detail { padding: clamp(40px, 5vw, 72px) 0; }
.hiw-row { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 961px) { .hiw-row { grid-template-columns: 1.02fr .98fr; } }
@media (min-width: 961px) { .hiw-row--flip .hiw-row__visual { order: -1; } }
.hiw-row__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 10px 0 14px; }
.hiw-row__text > p { color: var(--muted); margin-bottom: 18px; }
.hiw-row__text > p strong { color: var(--navy); }
.hiw-row__note { font-size: .94rem; }
.hiw-row__note a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

.ticks { display: grid; gap: 10px; margin-bottom: 24px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 600; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Mock-ups of the real screens */
.mock {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 20px; width: min(420px, 100%); margin-inline: auto;
}
.mock__cover { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
    background: linear-gradient(140deg, var(--sky) 0%, var(--cream) 100%); display: grid; place-items: center; }
.mock__cover img { width: 100%; height: 100%; object-fit: cover; }
.mock__cover svg { width: 56px; height: 56px; color: var(--muted); opacity: .4; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mock__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.mock__pill {
    padding: 4px 11px; border-radius: 999px; background: var(--sky-soft); border: 1px solid var(--line);
    font-size: .76rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .04em;
}
.mock__pill--teal { background: var(--teal-soft); border-color: transparent; color: var(--teal-dark); }

.mock__drop {
    display: grid; place-items: center; gap: 4px; text-align: center;
    padding: 30px 18px; margin-bottom: 14px;
    border: 2px dashed rgba(14, 58, 120, .2); border-radius: var(--radius);
    background: var(--sky-soft); color: var(--muted);
}
.mock__drop svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: 4px; }
.mock__drop-title { font-weight: 800; color: var(--navy); }
.mock__drop-hint { font-size: .82rem; }
.mock__field {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
.mock__field span { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mock__field strong { color: var(--navy); font-weight: 700; }
.mock__field--split { width: 52%; }

.mock--choice { background: linear-gradient(180deg, var(--white) 0%, var(--sky-soft) 100%); }
.mock__story { color: var(--muted); margin-bottom: 16px; }
.mock__question { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.mock__choice {
    display: block; padding: 13px 18px; margin-bottom: 10px;
    border-radius: 999px; background: var(--orange); color: var(--navy-deep);
    font-weight: 800; text-align: center; box-shadow: var(--shadow-sm);
}
.mock__choice--alt { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.mock__endings { margin-top: 14px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--teal-dark); }

.tips { display: grid; gap: 18px; }
@media (min-width: 640px)  { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tips { grid-template-columns: repeat(4, 1fr); } }
.tip {
    display: flex; gap: 14px; padding: 24px 22px;
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.tip__num {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--teal-soft); color: var(--teal-dark);
    font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.tip h3 { font-size: 1.1rem; margin-bottom: 5px; }
.tip p { color: var(--muted); font-size: .93rem; }

.tips__privacy {
    display: flex; gap: 14px; align-items: flex-start;
    max-width: 780px; margin: clamp(24px, 3vw, 36px) auto 0;
    padding: 20px 24px; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--line);
    color: var(--muted); font-size: .95rem;
}
.tips__privacy svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.tips__privacy strong { color: var(--navy); }

.cta-band__small { margin-top: 18px; font-size: .9rem; opacity: .9; }
.cta-band__small a { text-decoration: underline; font-weight: 700; }

/* ---------- FAQ page (/faq) ---------- */
.faq-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.faq-nav a {
    padding: 9px 16px; border-radius: 999px;
    background: var(--white); border: 1px solid var(--line);
    font-size: .9rem; font-weight: 700; color: var(--navy);
    box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.faq-page { max-width: 860px; }
.faq-group + .faq-group { margin-top: clamp(34px, 5vw, 54px); }
.faq-group__title {
    display: flex; align-items: center; gap: 12px;
    font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px;
}
.faq-group__count {
    display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px;
    border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark);
    font-family: var(--font-body); font-size: .85rem; font-weight: 800;
}
.faq-more { margin-top: 14px; }
.faq-more a { color: var(--teal-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Product page (/book/{slug}) ---------- */
.product-hero { padding-bottom: clamp(34px, 5vw, 60px); }
.product-grid { display: grid; gap: clamp(26px, 4vw, 48px); margin-top: clamp(14px, 2vw, 22px); }
@media (min-width: 961px) { .product-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.product-gallery__stage {
    /* Portrait, because everything shown here is upright: the book cover and screens
       from the reader on a phone. A square stage wastes width on both sides of them.
       Prepare each frame at 3/4 (1200x1600) — object-fit is cover, so anything wider
       gets cropped at the edges rather than fitted. */
    position: relative; aspect-ratio: 3 / 4; overflow: hidden;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    background: linear-gradient(140deg, var(--sky) 0%, var(--cream) 100%);
}
.product-gallery__item {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity .35s var(--ease);
}
.product-gallery__item.is-active { opacity: 1; }
.product-gallery__empty { display: grid; place-items: center; height: 100%; color: var(--muted); opacity: .4; }
.product-gallery__empty svg { width: 64px; height: 64px; }

.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.product-thumb {
    /* Same shape as the stage, so a thumbnail shows what the big frame will show. */
    width: 64px; height: 80px; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: var(--radius-sm);
    background: var(--sky-soft); cursor: pointer;
    box-shadow: var(--shadow-sm); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover { transform: translateY(-2px); }
.product-thumb.is-active { border-color: var(--orange); }
.product-thumb__play { display: grid; place-items: center; width: 100%; height: 100%; color: var(--teal); }
.product-thumb__play svg { width: 22px; height: 22px; }

.product-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-title { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; }
.product-pitch { color: var(--muted); margin: 12px 0 18px; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.product-price strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.product-price small { width: 100%; font-size: .82rem; font-weight: 700; color: var(--muted); }
.product-chips { margin-bottom: 20px; }

/* The order card — step one of the order lives here */
.order-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: clamp(18px, 2.4vw, 26px);
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.order-card__promise { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.order-card__promise p { font-size: .96rem; color: var(--muted); }
.order-card__promise strong { color: var(--navy); }
.order-card__badge {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark);
}
.order-card__badge svg { width: 22px; height: 22px; }
.order-card__status {
    padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm);
    background: var(--teal-soft); color: var(--teal-dark); font-weight: 700;
}
.order-card__errors {
    padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius-sm);
    background: #fff1f0; border: 1px solid #ffd2cd; color: #a8301f; font-size: .92rem;
}
.order-card__errors p { font-weight: 800; margin-bottom: 4px; }
.order-card__errors ul { margin: 0; padding-left: 18px; }

.order-field { margin-bottom: 14px; }
.order-field label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.order-field input[type="text"],
.order-field input[type="email"],
.order-field input[type="number"] {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); font: inherit; color: var(--ink);
}
.order-field input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.order-field__hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
/* The typo suggestion under an email field. Amber, not red: nothing is wrong yet. */
.order-field__typo {
    margin: 6px 0 0; padding: 7px 10px; font-size: .84rem; color: #8a5a00;
    background: #fff8e6; border: 1px solid #ffe2a8; border-radius: 10px;
}
.order-field__typo-fix {
    padding: 0; border: 0; background: none; font: inherit; font-weight: 800;
    color: #8a5a00; text-decoration: underline; cursor: pointer;
}
.order-field__typo-fix:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.order-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .order-row { grid-template-columns: 1fr 110px; } }

.order-drop {
    position: relative; display: block; cursor: pointer;
    border: 2px dashed rgba(14, 58, 120, .22); border-radius: var(--radius);
    background: var(--sky-soft); padding: 26px 18px; text-align: center;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.order-drop:hover { border-color: var(--teal); background: var(--white); }
.order-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.order-drop__body { display: grid; place-items: center; gap: 4px; position: relative; z-index: 1; }
.order-drop svg { width: 32px; height: 32px; color: var(--teal); }
.order-drop__title { font-weight: 800; color: var(--navy); word-break: break-word; }
.order-drop__hint { font-size: .82rem; color: var(--muted); }
.order-drop__preview {
    position: absolute; inset: 0; border-radius: inherit;
    background-size: cover; background-position: center; opacity: 0;
}
.order-drop__preview.is-visible { opacity: .18; }
.order-drop.has-file { border-style: solid; border-color: var(--teal); background: var(--white); }

.order-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 18px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.order-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--teal); }
.order-form__note { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }

.product-proof .transform { width: min(520px, 100%); }
.benefits--two { grid-template-columns: 1fr; }
@media (min-width: 761px) { .benefits--two { grid-template-columns: repeat(2, 1fr); } }

/* Phone-only buy bar */
.buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14, 58, 120, .10);
    transform: translateY(110%); transition: transform .3s var(--ease);
}
.buybar.is-visible { transform: translateY(0); }
.buybar__price strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); line-height: 1; }
.buybar__price small { font-size: .78rem; font-weight: 700; color: var(--muted); }
@media (min-width: 761px) { .buybar { display: none; } }

/* ---------- Preview screen (/order/{uuid}/preview) ---------- */
.preview-screen { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 40%, var(--white) 100%); }
.preview-shell { max-width: 720px; }

.preview-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden;
}
.preview-stage { padding: clamp(18px, 3vw, 26px); text-align: center; }
.preview-stage__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); margin-top: 16px; }
.preview-stage__sub { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.preview-stage__sub a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

/* The photo being scanned while the AI works */
.scan {
    position: relative; overflow: hidden;
    border-radius: var(--radius); box-shadow: var(--shadow);
    aspect-ratio: 3 / 4; max-width: 320px; margin-inline: auto;
}
.scan__photo { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.92) saturate(.85); transform: scale(1.08); user-select: none; }
.scan__dim { position: absolute; inset: 0; background: rgba(10, 42, 87, .22); }
.scan__line {
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 163, 154, .45) 12%, rgba(16, 163, 154, .95) 42%, #fff 50%, rgba(16, 163, 154, .95) 58%, rgba(16, 163, 154, .45) 88%, transparent 100%);
    box-shadow: 0 0 12px 3px rgba(16, 163, 154, .5), 0 0 4px rgba(255, 255, 255, .6);
    animation: scanSweep 2.4s cubic-bezier(.45, .05, .55, .95) infinite;
    transition: opacity .35s ease;
}
@keyframes scanSweep { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } }
.scan__badge {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(10, 42, 87, .58); backdrop-filter: blur(8px);
    color: #fff; font-size: .76rem; font-weight: 700;
}
.scan__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-soft); animation: scanPulse 1.15s ease-in-out infinite; }
@keyframes scanPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.6); } }

.preview-dots::after { content: ''; animation: previewDots 1.6s steps(4, end) infinite; }
@keyframes previewDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.preview-progress { height: 3px; margin: 20px clamp(4px, 2vw, 18px) 2px; border-radius: 3px; background: var(--sky); overflow: hidden; }
.preview-progress__fill {
    display: block; height: 100%; width: 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
    animation: previewProgress 60s cubic-bezier(.15, .6, .4, 1) forwards;
}
@keyframes previewProgress { from { width: 0; } to { width: 88%; } }

.preview-figure { position: relative; display: inline-block; max-width: 340px; }
.preview-figure img { width: 100%; border-radius: var(--radius); border: 3px solid var(--white); box-shadow: var(--shadow-lg); }
.preview-figure__badge {
    position: absolute; top: -10px; right: -10px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--teal); color: #fff; font-size: .74rem; font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.preview-retry {
    border: 0; padding: 0; background: none; cursor: pointer;
    color: var(--teal-dark); font: inherit; font-weight: 700; text-decoration: underline;
}

.preview-decide {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    margin-top: 20px; padding: clamp(16px, 2.4vw, 22px);
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.preview-decide__book { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.preview-decide__meta { font-size: .86rem; color: var(--muted); }
.preview-decide__price strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); line-height: 1; }
.preview-decide__price small { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); }
.preview-decide .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
@media (max-width: 520px) { .preview-decide .btn { width: 100%; } }

/* Where the book gets delivered, shown one last time before the money. */
.preview-contact { margin-top: 16px; text-align: center; }
.preview-contact__line { font-size: .95rem; color: var(--muted); }
.preview-contact__line strong { color: var(--navy); }
.preview-contact__toggle {
    padding: 0; border: 0; background: none; font: inherit; font-weight: 700;
    color: var(--teal-dark); text-decoration: underline; cursor: pointer;
}
.preview-contact__toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.preview-contact__form {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    max-width: 520px; margin: 12px auto 0;
}
.preview-contact__form input[type="email"] {
    flex: 1 1 240px; min-height: 48px; padding: 11px 14px; font: inherit;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px;
}
.preview-contact__form input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.preview-contact__form .order-field__typo { flex: 1 1 100%; text-align: left; }
.preview-contact__status { font-size: .9rem; font-weight: 700; color: var(--teal-dark); }
.preview-contact__error { font-size: .9rem; font-weight: 700; color: #b42318; }

.preview-note { margin-top: 10px; font-size: .86rem; color: var(--muted); text-align: center; }
.preview-guarantee { margin-top: 18px; text-align: center; color: var(--muted); font-size: .95rem; }

/* ---------- Legal pages (/terms, /privacy) ---------- */
.legal-head { max-width: 760px; margin: clamp(14px, 2vw, 22px) auto 0; }
.legal-updated { margin-top: -4px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.legal-summary {
    margin-top: 18px; padding: 18px 22px;
    background: var(--white); border: 1px solid var(--line);
    border-left: 4px solid var(--teal); border-radius: var(--radius);
    color: var(--ink); font-size: 1.02rem; line-height: 1.65;
}
.legal-toc { margin-top: 22px; }
.legal-toc__title { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { display: grid; gap: 6px 22px; margin: 0; padding-left: 18px; color: var(--muted); }
@media (min-width: 640px) { .legal-toc ol { grid-template-columns: 1fr 1fr; } }
.legal-toc a { color: var(--navy); font-weight: 600; }
.legal-toc a:hover { color: var(--teal-dark); text-decoration: underline; }

.legal-body { padding-top: clamp(26px, 3.5vw, 44px); }
.legal-shell { max-width: 760px; }
.legal-shell h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    margin: clamp(28px, 4vw, 40px) 0 12px;
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal-shell h2:first-child { margin-top: 0; }
.legal-shell p { color: var(--muted); margin-bottom: 14px; }
.legal-shell strong { color: var(--navy); }
.legal-shell ul { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.legal-shell li { margin-bottom: 8px; }
.legal-shell a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-shell code { padding: 2px 6px; border-radius: 6px; background: var(--sky); font-size: .9em; color: var(--navy); }
.legal-todo { padding: 12px 16px; border-radius: var(--radius-sm); background: #fff6e5; border: 1px solid #ffd79a; color: #8a5a00 !important; }

/* ---------- Contact page (/contact) ---------- */
.contact-grid { display: grid; gap: clamp(20px, 3vw, 34px); }
@media (min-width: 861px) { .contact-grid { grid-template-columns: .8fr 1.2fr; align-items: start; } }

.contact-card {
    padding: 20px 22px; margin-bottom: 14px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.contact-card--muted { background: var(--sky-soft); box-shadow: none; }
.contact-card p { color: var(--muted); font-size: .95rem; }
.contact-card__icon {
    display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px;
    border-radius: 13px; background: var(--teal-soft); color: var(--teal-dark);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card__value a { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); word-break: break-all; }
.contact-card__value a:hover { color: var(--teal-dark); }
.contact-links { margin: 10px 0 0; padding-left: 18px; }
.contact-links li { margin-bottom: 6px; }
.contact-links a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-note { font-size: .88rem; color: var(--muted); padding: 0 4px; }

.contact-form textarea {
    width: 100%; padding: 13px 16px; resize: vertical;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); font: inherit; color: var(--ink);
}
.contact-form textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.order-field__optional { font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--muted); opacity: .8; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-error {
    padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm);
    background: #fff1f0; border: 1px solid #ffd2cd; color: #a8301f; font-weight: 700;
}

/* ---------- 404 ---------- */
.notfound { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 45%, var(--white) 100%); }
.notfound__shell { max-width: 680px; text-align: center; }
.notfound .section-lead { margin-bottom: clamp(24px, 3vw, 34px); }

.notfound__choices { display: grid; gap: 14px; text-align: left; }
.notfound__choice {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 22px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.notfound__choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.notfound__choice-num {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--orange-soft); color: var(--orange-dark);
    font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.notfound__choice--alt .notfound__choice-num { background: var(--teal-soft); color: var(--teal-dark); }
.notfound__choice-text strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.notfound__choice-text { color: var(--muted); font-size: .95rem; }

.notfound__links { margin-top: clamp(22px, 3vw, 32px); color: var(--muted); font-size: .95rem; }
.notfound__links a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Thank-you screen ---------- */
.thanks-next {
    margin-top: 20px; padding: clamp(20px, 3vw, 28px);
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.thanks-next__title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 14px; }
.thanks-next__list { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.thanks-next__list li { margin-bottom: 8px; }
.thanks-next__note { color: var(--muted); font-size: .95rem; }
.thanks-next__note a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

/* ---------- Order tracking (/order/{uuid}/track) ---------- */
.track-steps { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0 0 20px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.track-step { position: relative; flex: 1 1 120px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: .84rem; font-weight: 700; }
.track-step::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track-step:first-child::before { display: none; }
.track-step__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--sky); box-shadow: inset 0 0 0 2px var(--line); position: relative; z-index: 1; }
.track-step.is-done { color: var(--navy); }
.track-step.is-done .track-step__dot { background: var(--teal); box-shadow: none; }
.track-step.is-done::before { background: var(--teal); }
.track-step.is-now .track-step__dot { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.track-step.is-now { color: var(--orange-dark); }

.track-panel { margin-bottom: 18px; padding: clamp(18px, 2.6vw, 26px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.track-panel p { color: var(--muted); margin-bottom: 14px; }
.track-panel__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 10px; }
.track-panel--ready { background: linear-gradient(140deg, var(--teal-soft) 0%, var(--white) 70%); }
.track-panel--quiet { background: var(--sky-soft); box-shadow: none; }

.track-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; list-style: none; margin: 0 0 16px; padding: 0; }
.track-gallery img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.track-approve__note { margin-top: 10px; font-size: .9rem; text-align: center; }
.track-approve__note a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
.track-approved { color: var(--teal-dark) !important; font-weight: 700; }

.track-photo > summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); list-style: none; }
.track-photo > summary::-webkit-details-marker { display: none; }
.track-photo > summary::after { content: " +"; color: var(--orange); }
.track-photo[open] > summary::after { content: " –"; }
.track-photo > summary + p { margin-top: 12px; }
.track-photo__count { font-size: .85rem; margin: 12px 0 0 !important; }

.track-thread { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.track-note { padding: 14px 16px; border-radius: var(--radius); background: var(--sky-soft); }
.track-note--us { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); }
.track-note__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px !important; font-size: .8rem; color: var(--muted) !important; }
.track-note__meta strong { color: var(--navy); }
.track-note__body { margin: 0 !important; color: var(--ink) !important; white-space: pre-wrap; }

.track-form textarea { width: 100%; padding: 13px 16px; margin-bottom: 12px; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: inherit; color: var(--ink); }
.track-form textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.thanks-next__cta { margin-bottom: 14px; }
/* Five-step flow strip on How it works */
@media (min-width: 640px) and (max-width: 900px)  { .steps--flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) and (max-width: 1150px) { .steps--flow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1151px) { .steps--flow { grid-template-columns: repeat(5, 1fr); } }
.mock--approve .mock__samples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mock--approve .mock__samples img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* ---------- Book description ("About this story") ---------- */
.product-about { max-width: 820px; }
.book-about { color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.book-about > * + * { margin-top: 14px; }
.book-about h2, .book-about h3, .book-about h4 {
    color: var(--navy); font-size: clamp(1.2rem, 2vw, 1.45rem);
    margin-top: clamp(24px, 3vw, 32px); margin-bottom: 4px;
}
.book-about strong { color: var(--navy); }
.book-about ul, .book-about ol { padding-left: 22px; }
.book-about li { margin-bottom: 8px; }
.book-about li::marker { color: var(--teal); }
.book-about p:first-child { font-size: 1.1rem; color: var(--ink); }
