/* Mimicolor – "Warm Atelier" design (Google Stitch, Nov 2026), hand-written CSS, no framework. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #fffaf3;          /* cream page */
  --card: #ffffff;
  --cream: #fff5e8;       /* cream card / soft buttons */
  --line: #f0e7dc;        /* warm border */
  --line-2: #e9e1f5;      /* lavender border */
  --ink: #2a2440;
  --ink-2: #474554;
  --muted: #6d6680;
  --violet: #7c6cf0;
  --primary: #5846ca;
  --primary-hover: #4a38b8;
  --lav-50: #f8f1ff;
  --lav-100: #f2ebff;
  --lav-200: #ede4ff;
  --lav-300: #e4dbff;
  --coral: #ff7a6b;
  --coral-ink: #a7392f;
  --coral-50: #fff0ed;
  --sun: #ffc84a;
  --sun-ink: #765700;
  --sun-50: #fff4d6;
  --mint-ink: #1d7a55;
  --mint-50: #e7f8ef;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 4px 16px -2px rgba(42, 36, 64, .05), 0 2px 6px -1px rgba(42, 36, 64, .03);
  --shadow-hover: 0 14px 28px -4px rgba(42, 36, 64, .09), 0 4px 10px -2px rgba(42, 36, 64, .04);
  --shadow-pop: 0 24px 48px -8px rgba(42, 36, 64, .12), 0 8px 16px -4px rgba(42, 36, 64, .06);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--violet); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
button { font: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section { padding: 64px 0; }
.section-alt { background: var(--lav-50); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ---------- small parts */
.kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--lav-100); color: var(--primary); font-size: .78rem; font-weight: 700; letter-spacing: .01em; margin-bottom: 14px; }
.kicker.coral { background: var(--coral-50); color: var(--coral-ink); }
.kicker.sun { background: var(--sun-50); color: var(--sun-ink); }
.kicker.mint { background: var(--mint-50); color: var(--mint-ink); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--primary); }
.link-arrow:hover { text-decoration: underline; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }
.badge.easy { color: var(--mint-ink); background: var(--mint-50); border-color: #cdeedd; }
.badge.medium { color: var(--sun-ink); background: var(--sun-50); border-color: #ffe6a8; }
.badge.detailed { color: var(--coral-ink); background: var(--coral-50); border-color: #ffd5cf; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; cursor: pointer; }
.chip:hover { border-color: var(--violet); color: var(--primary); }
.chip[aria-pressed="true"], .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .n { opacity: .7; font-weight: 500; }
.chip-img { width: 22px; height: 29px; object-fit: contain; border-radius: 4px; background: #fff; }
.sec-mini { font-size: 1.25rem; margin-bottom: 16px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .ico { color: var(--mint-ink); }
.ticks.boxed { display: inline-flex; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--primary); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .82rem; gap: 6px; }
.btn-xs { min-height: 32px; padding: 0 10px; font-size: .78rem; gap: 5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-soft { background: var(--lav-100); color: var(--primary); }
.btn-soft:hover { background: var(--lav-200); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--lav-50); border-color: var(--violet); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #ffecd4; }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: #ff6a5a; }
.btn-shadow { box-shadow: 0 8px 20px -6px rgba(88, 70, 202, .45); }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 250, 243, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.32rem; letter-spacing: -.04em; flex: none; }
.logo-mark { width: 38px; height: 26px; }
.logo-mark.big { width: 96px; height: 68px; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav a { position: relative; white-space: nowrap; text-decoration: none; color: var(--ink-2); padding: 8px 12px; font-weight: 600; font-size: .92rem; border-radius: 999px; }
.nav a:hover { color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--primary); }
.top-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.icon-btn:hover { background: var(--lav-100); color: var(--primary); }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.langs a, .langs span { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; text-decoration: none; color: var(--muted); }
.langs span { background: var(--lav-100); color: var(--primary); }
.langs a:hover { color: var(--primary); }
.top .btn-coral { min-height: 40px; padding: 0 16px; font-size: .85rem; }
.top .btn-coral .label-short { display: none; }
/* mid-size screens: the header stays on one row if the photo-book button uses its short name and the menu is tighter */
@media (min-width: 1181px) and (max-width: 1380px) {
  .top-row { gap: 14px; }
  .nav a { padding: 8px 8px; }
  .nav a[aria-current="page"]::after { left: 8px; right: 8px; }
  .top .btn-coral .label { display: none; }
  .top .btn-coral .label-short { display: inline; }
}
@media (max-width: 1180px) {
  .top-row { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; }
  .nav { order: 3; flex: 0 0 calc(100% + 48px); justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 18px 6px; }   /* edge to edge, no wider than the screen */
  .nav::-webkit-scrollbar { display: none; }
  .top-tools { margin-left: auto; }
}
.nav .nav-photo { display: none; }
.nav .nav-gift { order: 10; display: inline-flex; align-items: center; gap: 6px; color: var(--coral-ink); }
.nav .nav-gift svg { width: 16px; height: 16px; }
@media (max-width: 1180px) { .nav .nav-gift { order: 0; } }   /* the menu scrolls sideways there: keep gifts in view */
@media (max-width: 1180px) {
  /* the menu row scrolls sideways: a fade on the right shows there is more */
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
}
@media (max-width: 560px) {
  /* one row: logo, search, account, the other language; the photo book leads the menu row, with its name */
  .top-row { flex-wrap: wrap; gap: 4px 6px; }
  .top .btn-coral { display: none; }
  .top-tools { gap: 2px; }
  .icon-btn { width: 36px; height: 36px; }
  .langs span[aria-current] { display: none; }
  .logo { font-size: 1.15rem; }
  .nav .nav-photo { display: inline-flex; align-items: center; gap: 6px; background: #ff7a6b; color: #fff; font-weight: 800; padding: 6px 12px; margin-right: 4px; }
  .nav .nav-photo svg { width: 16px; height: 16px; }
  .nav .nav-photo[aria-current="page"]::after { display: none; }
  .nav .nav-gift { order: 0; background: var(--coral-50); font-weight: 800; padding: 6px 12px; margin-right: 4px; }
  .nav .nav-gift[aria-current="page"]::after { display: none; }
}

/* ---------- language hint (shown by site.js) */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 48px 11px 16px; color: #fff; font-size: .88rem; text-align: center;
  /* floats over the page bottom instead of pushing the page down (no layout shift) */
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 16, 40, .28); }
.lang-hint a { color: var(--sun); font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang-hint a:hover { text-decoration: underline; }
.lang-hint button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.lang-hint button:hover { background: rgba(255, 255, 255, .12); }

/* ---------- breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; font-weight: 600; color: var(--muted); padding: 22px 0 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--primary); }

/* ---------- hero (home) */
.hero { padding: 56px 0 72px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13em; }
.search { position: relative; max-width: 560px; margin: 26px 0 10px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.search-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 108, 240, .15); }
.search-box .ico { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: .98rem; color: var(--ink); padding: 8px 0; }
.search-box .btn { min-height: 40px; padding: 0 20px; }
.search-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 8px; max-height: 420px; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--lav-50); outline: 0; }
.search-results img { width: 44px; height: 58px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.search-results strong { display: block; font-size: .92rem; }
.search-results span { font-size: .78rem; color: var(--muted); }
.search-results p { margin: 8px; color: var(--muted); font-size: .9rem; }
.popular { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 26px; }
.popular a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.popular a:hover { color: var(--primary); text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-art { position: relative; min-height: 470px; }
.paper { position: absolute; background: #fff; border-radius: 22px; padding: 14px 14px 16px; box-shadow: var(--shadow-pop); border: 1px solid var(--line); }
.paper img { border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.paper figcaption { padding: 12px 4px 0; }
.paper figcaption strong { display: block; font-size: .95rem; }
.paper figcaption span { font-size: .78rem; color: var(--muted); }
.paper-back { width: 62%; left: 2%; top: 26px; transform: rotate(-6deg); }
.paper-front { width: 68%; right: 2%; top: 0; transform: rotate(3deg); }
.paper .badge { position: absolute; top: -10px; right: 18px; background: var(--sun); border-color: var(--sun); color: var(--ink); }
.swatch-row { display: flex; gap: 5px; margin-top: 10px; }
.swatch-row i { width: 14px; height: 14px; border-radius: 999px; display: block; background: var(--coral); }
.swatch-row i:nth-child(2) { background: #ffb3c7; }
.swatch-row i:nth-child(3) { background: var(--sun); }
.swatch-row i:nth-child(4) { background: #7cc48a; }
.swatch-row i:nth-child(5) { background: #7fb5f0; }
.swatch-row i:nth-child(6) { background: var(--violet); }
@media (max-width: 900px) {
  .hero { padding: 28px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { min-height: 0; height: 360px; max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ---------- design cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid, .grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .3s; }
.card-img .col { opacity: 0; }
.card:hover .card-img .col, .show-color .card-img .col { opacity: 1; }
.card:hover .card-img .line, .show-color .card-img .line { opacity: 0; }
.card-img .badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
.card-body { padding: 12px 4px 10px; flex: 1; }
.card-title { margin: 0; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-sub { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.card-actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; }
.card-actions .btn-xs { padding: 0 6px; }
.card.compact .card-actions { grid-template-columns: 1fr auto; }
.card.compact .card-body { padding: 10px 2px 8px; }
.card.compact .card-title { font-size: .9rem; }
@media (max-width: 560px) {
  .card { padding: 7px; border-radius: var(--r); }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .card-actions .print-btn { display: none; }
}

/* ---------- theme tiles (home) */
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.theme-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.theme-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.theme-art { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.theme-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 4px; border-radius: 10px; background: #fff; }
.theme-art img:first-child { grid-row: span 2; }
.theme-art .count { position: absolute; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .94); padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; box-shadow: var(--shadow); }
.theme-tile .tt-name { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 6px; font-weight: 800; font-size: 1.1rem; }
.theme-tile:hover .tt-name { color: var(--primary); }
.theme-christmas .theme-art { background: #fdeeee; }
.theme-kawaii-cats .theme-art { background: #fff1f6; }
.theme-mandalas .theme-art { background: var(--lav-100); }
.theme-unicorns .theme-art { background: #eef6ff; }

/* ---------- photo book band */
.band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 48px; border-radius: 32px; background: linear-gradient(135deg, #fff5e8 0%, #f8f1ff 55%, #f0eaff 100%); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.band .lead { font-size: 1.05rem; }
.steps-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 18px; padding: 0; list-style: none; }
.steps-mini li { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 10px; text-align: center; font-size: .8rem; color: var(--muted); }
.steps-mini b { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: .75rem; }
.steps-mini strong { display: block; color: var(--ink); font-size: .85rem; }
.price-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.price-pills span { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 700; }
.band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.band-cta .note { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--mint-ink); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; border-radius: var(--r-lg); } .steps-mini { grid-template-columns: 1fr 1fr 1fr; } }

/* photo -> coloring page pair */
.pair { position: relative; margin: 0; aspect-ratio: 1 / .92; max-width: 560px; margin-left: auto; }
.pair-page, .pair-photo { position: absolute; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-pop); border: 1px solid var(--line); }
.pair img { border-radius: 12px; }
.pair-page { right: 0; top: 0; width: 58%; transform: rotate(2.5deg); }
.pair-photo { left: 0; bottom: 6%; width: 58%; transform: rotate(-4deg); z-index: 2; }
.pair .tag { position: absolute; bottom: 16px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(42, 36, 64, .8); }
.pair .tag.l { left: 16px; }
.pair .tag.r { right: 16px; background: var(--primary); }
.pair-arrow { position: absolute; z-index: 3; left: 47%; top: 38%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--sun); color: var(--ink); box-shadow: var(--shadow-hover); }
.pair-arrow .ico { width: 22px; height: 22px; }
@media (max-width: 900px) { .pair { margin: 0 auto; width: 100%; } }

/* ---------- books */
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.book-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.book-cover { position: relative; border-radius: var(--r); overflow: hidden; background: var(--lav-50); aspect-ratio: 210 / 297; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover .badge { position: absolute; top: 8px; left: 8px; }
.book-card h3 { margin: 12px 4px 2px; font-size: 1.02rem; }
.book-card h3 a { color: var(--ink); text-decoration: none; }
.book-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.book-card .sub { margin: 0 4px 12px; font-size: .8rem; color: var(--muted); flex: 1; }
.book-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 1.15rem; }
.soon { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sun-50); color: var(--sun-ink); font-size: .75rem; font-weight: 700; }

/* ---------- footer */
.foot { margin-top: 0; background: var(--lav-50); border-top: 1px solid var(--line-2); padding: 56px 0 28px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot .logo { font-size: 1.15rem; margin-bottom: 12px; }
.foot p { color: var(--muted); max-width: 30em; }
.foot-h { font-weight: 800; color: var(--ink); margin: 0 0 12px; font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--primary); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .82rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- "in short" fact boxes (theme pages, photo book) */
.faq summary h3 { display: inline; font-size: inherit; font-weight: inherit; letter-spacing: 0; margin: 0; }

/* ---------- theme page */
.page-head { padding: 4px 0 26px; max-width: 820px; }
.page-head .lead { font-size: 1.08rem; }
.page-head .ticks { margin-top: 18px; }
.page-head .ticks li { padding: 5px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; font-size: .78rem; }
/* Script-only controls keep their space while hidden, so showing them doesn't push the page down (no layout shift). */
.filter-bar.js-only[hidden], .stage-bar.js-only[hidden], .chips.js-only[hidden] { display: flex !important; visibility: hidden; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; margin-bottom: 24px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--lav-200); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(16px); }
.promo { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin: 32px 0; padding: 22px 28px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--lav-100), #f6edff); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.promo img { width: 82px; border-radius: 8px; box-shadow: var(--shadow-hover); transform: rotate(-5deg); }
.promo strong { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 700px) { .promo { grid-template-columns: auto 1fr; } .promo .btn { grid-column: 1 / -1; } }
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .info-cols { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.panel-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-h h2 { margin: 0; font-size: 1.35rem; }
.panel-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lav-100); color: var(--primary); flex: none; }
.panel-ico.coral { background: var(--coral-50); color: var(--coral-ink); }
.panel-ico.sun { background: var(--sun-50); color: var(--sun-ink); }
.panel-ico.mint { background: var(--mint-50); color: var(--mint-ink); }
.tip { padding: 14px 16px; border-radius: var(--r); background: var(--lav-50); border: 1px solid var(--line-2); margin-bottom: 10px; font-size: .9rem; color: var(--ink-2); }
.tip:last-child { margin-bottom: 0; }
.faq details { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r); margin-bottom: 10px; }
.faq details:last-child { margin-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); font-size: .92rem; }
.panel .faq details { background: var(--lav-50); }

/* ---------- design page */
.design { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.design-stage { position: sticky; top: 92px; padding: 28px; border-radius: 28px; background: var(--lav-100); border: 1px solid var(--line-2); }
.sheet { position: relative; background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop); aspect-ratio: 210 / 297; padding: 7%; display: grid; place-items: center; }
.sheet.landscape { aspect-ratio: 297 / 210; }
.sheet img { width: 100%; height: 100%; object-fit: contain; }
.sheet .col { position: absolute; inset: 7%; width: 86%; height: 86%; opacity: 0; transition: opacity .3s; }
.show-color .sheet .col { opacity: 1; }
.stage-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.stage-bar { display: flex; justify-content: center; }
.stage-print { display: none; min-height: 42px; }
@media (max-width: 900px) { .stage-print { display: inline-flex; } }
.stage-bar .switch { padding: 8px 16px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
.design-side h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 10px 0 12px; }
.design-side .meta { gap: 6px; }
.design-side .meta span { padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--lav-100); color: var(--primary); }
.actions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 22px 0; }
.actions-grid .btn { min-height: 50px; white-space: normal; text-align: center; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 420px) { .actions-grid .btn { padding-left: 12px; padding-right: 12px; } }
.actions-grid .wide { grid-column: 1 / -1; }
.share { padding: 18px 0; border-top: 1px solid var(--line-2); }
.share p { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.share .chip { font-size: .8rem; padding: 6px 12px; }
.share .chip.pin { background: #e8433e; border-color: #e8433e; color: #fff; }
.note-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.note-card .ico { color: var(--primary); width: 22px; height: 22px; }
.note-card strong { display: block; margin-bottom: 4px; }
.note-card p { margin: 0; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 900px) { .design { grid-template-columns: minmax(0, 1fr); gap: 24px; } .design-stage { position: static; padding: 16px; border-radius: var(--r-lg); } }

.design-details { padding-bottom: 8px; }
.design-details .panel > p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin: 18px 0 0; }
.facts div { padding: 10px 12px; border-radius: var(--r-sm); background: var(--lav-50); border: 1px solid var(--line-2); }
.facts dt { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }

/* ---------- coloring tool */
.color-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; }
.color-top h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.color-title { display: flex; align-items: center; gap: 12px; }
.color-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 56px; }
.canvas-wrap { position: relative; background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-hover); padding: 18px; }
.canvas-wrap .hint { display: flex; justify-content: center; margin: -4px 0 12px; }
.canvas-wrap .hint span { padding: 6px 14px; border-radius: 999px; background: var(--sun-50); color: var(--sun-ink); font-size: .8rem; font-weight: 700; }
#canvas { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; margin: 0 auto; touch-action: manipulation; cursor: crosshair; border-radius: 10px; }
.canvas-scroll { position: relative; border-radius: 10px; }
.canvas-scroll.zoomed { overflow: auto; overscroll-behavior: contain; background: #fff; }
.canvas-scroll.zoomed #canvas { border-radius: 0; }
.canvas-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin: 0; background: #fff; color: var(--muted); font-weight: 700; font-size: .9rem; }
.canvas-loading[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--lav-100); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.canvas-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -4px 0 12px; }
.canvas-head .hint { margin: 0; }
.zoom-ctl { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.zoom-ctl.js-only[hidden] { display: inline-flex !important; visibility: hidden; }
.zoom-ctl button { width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--lav-100); color: var(--primary); font-size: 1.3rem; font-weight: 800; line-height: 1; cursor: pointer; }
.zoom-ctl button:disabled { opacity: .35; cursor: default; }
.zoom-ctl span { min-width: 52px; text-align: center; font-size: .78rem; font-weight: 800; color: var(--ink-2); }
@media (max-width: 900px) { .canvas-head { justify-content: space-between; margin: 0 0 8px; } .canvas-head .hint { justify-content: flex-start; } .zoom-ctl button { width: 34px; height: 34px; } .zoom-ctl span { min-width: 44px; } }
.tools { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-hover); }
.tools h2 { font-size: .95rem; font-weight: 800; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.tools h2 small { font-size: .75rem; color: var(--muted); font-weight: 600; }
.tool-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.tool-row .btn { flex-direction: column; gap: 2px; font-size: .78rem; padding: 6px 4px; }
.mobile-only { display: none !important; }
.tool-row .btn { min-height: 56px; border-radius: 14px; }
.tool-row .btn[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 14px; }
.swatch { aspect-ratio: 1; width: 100%; border-radius: 999px; border: 2px solid rgba(42, 36, 64, .08); cursor: pointer; padding: 0; transition: transform .12s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary); }
.custom-color { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 20px; cursor: pointer; }
.custom-color input { width: 30px; height: 30px; border: 0; padding: 0; background: none; border-radius: 999px; cursor: pointer; }
.tools .btn-block + .btn-block { margin-top: 10px; }
.more-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .more-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .color-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .canvas-wrap { padding: 8px; border-radius: var(--r); }
  .tools { position: sticky; bottom: 0; top: auto; z-index: 15; border-radius: 22px 22px 0 0; padding: 14px 16px; margin: 0 -24px; box-shadow: 0 -8px 24px rgba(42, 36, 64, .1); }
  .tools h2 { display: none; }
  .palette { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 34px; overflow-x: auto; padding: 4px 4px 8px; margin-bottom: 10px; }
  .custom-color { display: none; }
  .tool-row { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
  .mobile-only { display: inline-flex !important; }
  .tool-row .btn { min-height: 40px; font-size: .78rem; padding: 0 6px; }
  .tools .btn-block, .tools .export { display: none; }
}

/* ---------- photo book page */
.cb-hero { padding: 48px 0 64px; overflow-x: clip; }
.cb-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cb-hero h1 .hl { color: var(--primary); background: linear-gradient(transparent 70%, rgba(255, 200, 74, .55) 70%); }
.trust-line { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin: 18px 0 22px; }
.trust-line .ico { color: var(--mint-ink); }
.feature-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.feature-row span { display: inline-flex; align-items: center; gap: 8px; }
.feature-row .ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--lav-100); color: var(--primary); }
.example-card { background: #fff; border: 1px solid var(--line-2); border-radius: 28px; padding: 16px; box-shadow: var(--shadow-pop); }
.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.step-card .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-weight: 800; margin-bottom: 18px; background: var(--lav-100); color: var(--primary); }
.step-card:nth-child(2) .num { background: var(--coral-50); color: var(--coral-ink); }
.step-card:nth-child(3) .num { background: var(--sun-50); color: var(--sun-ink); }
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto 24px; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-pop); }
.price-card .flag { position: absolute; top: -13px; right: 24px; padding: 4px 12px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: .75rem; font-weight: 800; }
.price-card .over { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.price-card h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.price-card > p { color: var(--muted); font-size: .9rem; }
.tier-box { background: var(--lav-50); border-radius: var(--r); padding: 6px 16px; margin: 6px 0 18px; }
.tier { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: .9rem; }
.tier + .tier { border-top: 1px solid var(--line-2); }
.tier strong { font-size: 1.35rem; font-weight: 800; }
.featured .tier strong { color: var(--primary); }
.points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; font-size: .9rem; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points .ico { color: var(--primary); margin-top: 2px; }
.occasions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.occasion { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.occasion .panel-ico { margin-bottom: 14px; }
.occasion h3 { font-size: 1.05rem; }
.occasion p { margin: 0; font-size: .85rem; color: var(--ink-2); }
.occasions.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .occasions, .occasions.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .occasions, .occasions.three { grid-template-columns: 1fr; } }
.form-card { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line-2); border-radius: 32px; padding: 40px; box-shadow: var(--shadow-pop); }
.form-card > header { text-align: center; margin-bottom: 26px; }
.form-card > header p { color: var(--muted); max-width: 30em; margin: 0 auto; }
.form-step { font-size: .85rem; font-weight: 800; margin: 26px 0 12px; }
.drop { position: relative; display: block; text-align: center; padding: 30px 20px; border-radius: 22px; border: 2px dashed #cfc3f5; background: var(--lav-50); cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.drag { background: var(--lav-100); border-color: var(--violet); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ico { width: 52px; height: 52px; padding: 12px; border-radius: 999px; background: #fff; color: var(--primary); box-shadow: var(--shadow); margin-bottom: 10px; }
.drop strong { display: block; font-size: 1.05rem; }
.drop small { display: block; color: var(--muted); margin-top: 4px; }
.drop .count { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 700; color: var(--primary); }
.drop .count:empty { display: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .full { grid-column: 1 / -1; }
.field { display: block; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 108, 240, .15); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--lav-100); }
.segmented label { position: relative; display: grid; place-items: center; min-height: 42px; border-radius: 11px; font-size: .85rem; font-weight: 700; color: var(--ink-2); cursor: pointer; text-align: center; }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--violet); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin: 12px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-sep { height: 1px; background: var(--line-2); margin: 24px 0 8px; }
.progress { height: 10px; border-radius: 999px; background: var(--lav-100); overflow: hidden; margin: 14px 0; }
.progress span { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--violet), var(--coral)); border-radius: 999px; transition: width .3s; }
.form-error { color: #b3261e; background: #fdecea; border-radius: 12px; padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-wrap .panel { margin-bottom: 20px; }
@media (max-width: 900px) {
  .cb-hero { padding: 24px 0 40px; }
  .cb-hero-grid, .step-cards, .price-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .price-card { padding: 24px 20px; }
  .form-card { padding: 24px 18px; border-radius: var(--r-lg); }
  .field-grid { grid-template-columns: 1fr; }
}

/* ---------- order page */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; margin: 24px 0 32px; list-style: none; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); counter-reset: st; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: .85rem; font-weight: 700; color: var(--muted); counter-increment: st; }
.stepper li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--lav-100); color: var(--muted); font-size: .8rem; flex: none; }
.stepper li.done::before { content: "✓"; background: var(--mint-ink); color: #fff; }
.stepper li.now { color: var(--primary); }
.stepper li.now::before { background: var(--primary); color: #fff; }
@media (max-width: 640px) { .stepper { grid-template-columns: repeat(4, auto); justify-content: space-between; } .stepper li span { display: none; } }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.order { padding-top: 8px; }
.order > section > h2 { font-size: 1.45rem; margin-bottom: 16px; }
.order-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.status-line { font-weight: 600; color: var(--ink-2); }
.status-line:empty { display: none; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.preview-grid img { width: 100%; background: #fff; border-radius: var(--r-lg); border: 10px solid #fff; box-shadow: var(--shadow-hover); outline: 1px solid var(--line-2); }
@media (max-width: 640px) { .preview-grid { grid-template-columns: 1fr; } }
.info-note { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--lav-100); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .9rem; margin-bottom: 32px; }
.info-note .ico { color: var(--primary); }
.formats { border: 0; padding: 0; margin: 0 0 20px; }
.formats legend { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; padding: 0; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
@media (max-width: 700px) { .format-grid { grid-template-columns: 1fr; } }
.format { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.format:hover { border-color: var(--lav-300); }
.format:has(input:checked) { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.format input { position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; accent-color: var(--primary); }
.format strong { font-size: 1.1rem; padding-right: 30px; }
.format small { color: var(--muted); font-size: .85rem; }
.format .panel-ico { margin-bottom: 6px; }
.format b { margin-top: 10px; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.pay-zone { text-align: center; margin-top: 18px; }
.pay-zone .check { justify-content: center; text-align: left; max-width: 640px; margin: 0 auto 18px; }
.pay-zone .muted { font-size: .8rem; margin-top: 12px; }
.ready-card { padding: 32px; border-radius: 28px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.ready-head { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--mint-50); border: 1px solid #c8ecd9; margin-bottom: 22px; }
.ready-head .ico { width: 44px; height: 44px; padding: 10px; border-radius: 999px; background: var(--mint-ink); color: #fff; }
.ready-head h2 { margin: 0; font-size: 1.4rem; }
.ready-head p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); }
.ready-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ready-cols:has(.print-box[hidden]) { grid-template-columns: minmax(0, 1fr); }
.ready-cols .btn-block { white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 700px) { .ready-cols { grid-template-columns: minmax(0, 1fr); } .ready-card { padding: 18px; } .ready-cols > div { padding: 18px; } }
.ready-cols > div { padding: 22px; border-radius: var(--r-lg); background: var(--lav-50); border: 1px solid var(--line-2); }
.ready-cols h3 { font-size: 1.15rem; }

/* ---------- account */
.account-page { padding-bottom: 8px; }
.account-page > h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.account-page .panel { margin-bottom: 20px; }
.notice { padding: 14px 18px; border-radius: var(--r); background: var(--mint-50); border: 1px solid #c8ecd9; color: var(--ink); font-weight: 600; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; box-shadow: none; width: 100%; justify-content: center; }
.btn-google:hover { background: #f8f8f8; color: #1f1f1f; }
.btn-google .g-logo { width: 20px; height: 20px; flex: none; }
.acc-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--muted); font-size: .9rem; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.acc-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 6px 0 14px; }
.acc-form .field { flex: 1 1 260px; }
@media (max-width: 520px) { .acc-form .btn { width: 100%; justify-content: center; padding-inline: 16px; } }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.acc-head p { margin: 0; font-weight: 700; }
.acc-list { display: grid; gap: 12px; }
.acc-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--lav-50); border: 1px solid var(--line-2); }
.acc-main { display: grid; gap: 4px; min-width: 0; }
.acc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.acc-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-thanks { margin-bottom: 18px; }
.acc-thanks .ready-head { margin-bottom: 16px; }
.acc-thanks .ready-head .ico { flex: none; }
.acc-thanks-btns { margin-bottom: 12px; }
@media (max-width: 520px) { .acc-thanks-btns .btn { width: 100%; } }
.acc-danger { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: #fdecea; border: 1px solid #f5c2bd; }
.acc-danger p { margin: 0 0 10px; font-weight: 600; color: #8c1d18; }
.btn-danger { background: #b3261e; color: #fff; }
.btn-danger:hover { background: #8c1d18; }
.keep-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r); background: var(--lav-100); border: 1px solid var(--line-2); }
.keep-box p { margin: 2px 0 0; }

/* ---------- book product page */
.product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding: 0 0 56px; }
.product-cover { margin: 0; padding: 28px; border-radius: 28px; background: var(--lav-100); border: 1px solid var(--line-2); }
.product-cover img { border-radius: 10px; box-shadow: var(--shadow-pop); }
.product-side h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.buy-box { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); margin: 20px 0; }
.buy-box .price { font-size: 2rem; }
.preview-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }   /* the previews fill the row */
.preview-strip img { background: #fff; border-radius: var(--r); border: 6px solid #fff; box-shadow: var(--shadow); outline: 1px solid var(--line); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- text pages + root */
.text-page { padding: 8px 0 64px; }
.text-page .panel { padding: 36px; margin-bottom: 8px; }
.text-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.buy-box .sec-head { margin-bottom: 14px; align-items: center; }
.buy-box .points { margin: 18px 0 0; }
.product-side .panel .points { margin: 0; }
.text-page h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.text-page p, .text-page li { color: var(--ink-2); }
.legal-list { padding-left: 20px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
@media (max-width: 560px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }
.legal dd { overflow-wrap: anywhere; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }

@media (max-width: 640px) {
  .color-title .kicker { display: none; }
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .nav { margin: 0 -16px; padding: 0 10px 6px; flex-basis: calc(100% + 32px); }
  .tools { margin: 0 -16px; }
}

@media print {
  .top, .foot, .tools, .color-top, .hint, .more-section, .zoom-ctl, .canvas-loading { display: none !important; }
  .canvas-scroll { height: auto !important; overflow: visible !important; }
  body { background: #fff; }
  .canvas-wrap { border: 0; box-shadow: none; padding: 0; }
  #canvas { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- gift cards */
.field select { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.field input[type="tel"] { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.field select:focus, .field input[type="tel"]:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 108, 240, .15); }
.gift-form { margin-top: 26px; }
.gift-form .formats { margin-bottom: 18px; }
.gift-form .field-grid { margin-bottom: 18px; }
.gift-side { align-self: start; position: sticky; top: 100px; }
.gift-code-label { margin: 18px 0 4px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.gift-code { margin: 0 0 22px; font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: .08em; color: var(--primary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gift-code.small-code { margin: 2px 0; font-size: 1rem; letter-spacing: .06em; }
.gift-field { margin: 18px 0 4px; padding: 12px 16px; border-radius: 16px; border: 1px dashed var(--lav-300); background: var(--lav-100); }
.gift-field summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--primary); }
.gift-field[open] summary { margin-bottom: 12px; }
.gift-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 0; color: var(--ink-2); font-weight: 600; text-align: center; }
.gift-promo .ico { color: var(--coral-ink); }
.gift-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.gift-pay .field-grid { margin-bottom: 18px; }
.gift-message { margin: 14px 0 6px; padding: 14px 18px; border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; background: var(--coral-50); font-size: 1.05rem; }
.gift-ok .btn { margin-top: 14px; }
@media (max-width: 900px) { .gift-side { position: static; } }
@media (max-width: 560px) { .gift-form .field-grid, .gift-pay .field-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- coloriage magique / color by number */
.mq-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.mq-level { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.mq-level:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.mq-level strong { font-size: 1.1rem; }
.mq-level small { color: var(--muted); }
.mq-grade { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; margin-top: 10px; border-radius: 999px; background: var(--lav-100); color: var(--primary); font-size: .78rem; font-weight: 700; }
.mq-xmas .mq-grade { background: var(--coral-50); color: var(--coral-ink); }
.mq-thumb { display: block; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.mq-thumb img { display: block; width: 100%; height: auto; }
.mq-tools { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; margin: 6px 0 22px; }
.mq-tools .field { margin: 0; }
.mq-tools select { min-width: 120px; }
.mq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mq-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); }
.mq-card h3 { margin: 6px 0 0; font-size: 1rem; }
.mq-card p { margin: 0; }
.mq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.mq-level-pick select { width: 100%; font: inherit; font-size: .85rem; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.mq-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.mq-more { margin-top: 36px; }
.mq-more .chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1060px) { .mq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mq-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mq-info { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mq-card { padding: 10px; } .mq-actions .btn { width: 100%; justify-content: center; } }
@media (max-width: 400px) { .mq-levels { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- order page: samples as spreads (photo | page) */
.preview-grid:has(.spread) { grid-template-columns: 1fr; gap: 28px; }
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; max-width: 860px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-hover); outline: 1px solid var(--line-2); background: #fff;
  padding: 0; border: 0; font: inherit; color: inherit; text-align: inherit; cursor: zoom-in; transition: box-shadow .15s, transform .15s; }
.spread:hover { box-shadow: var(--shadow-pop); }
.spread:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.spread .spread-page { position: relative; }
.spread-zoom { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--primary); box-shadow: var(--shadow); }
.spread-zoom .ico { width: 18px; height: 18px; }
/* desktop and tablet: the two pairs side by side (photo above its page), so both are seen at once */
@media (min-width: 641px) {
  .preview-grid:has(.spread) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .preview-grid:has(.spread:only-child) { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .preview-grid .spread { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; max-width: none; }
  .spread .spread-photo { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 16px 10px; }
  .spread .spread-photo img { width: auto; max-width: 100%; max-height: 170px; }
  .spread .spread-page { padding: 16px 16px 12px; }
  .spread .spread-page img { width: auto; max-width: 100%; max-height: 340px; }
}
.spread figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px 18px 14px; }
.spread .spread-photo { background: #fff8f0; border-right: 1px solid var(--line); }
.spread img { width: 100%; height: auto; border: 0; box-shadow: none; outline: 0; border-radius: 12px; background: transparent; }
.spread .spread-photo img { border: 6px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.spread figcaption { font-size: .82rem; font-weight: 700; color: var(--muted); }
.small-photos { margin: 12px 0 0; }
@media (max-width: 560px) { .spread figure { padding: 12px 8px 10px; } }
.see-whole { display: flex; justify-content: center; margin: -2px 0 18px; }
.see-whole[hidden] { display: none; }
#flip-box { scroll-margin-top: 90px; }

/* full-screen viewer for the sample pages */
.viewer { width: min(1180px, 94vw); max-width: none; height: min(880px, 92vh); max-height: none; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(20, 16, 36, .35); overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(20, 16, 36, .72); }
html.viewer-open { overflow: hidden; }
.viewer-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--lav-100); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.viewer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); touch-action: pan-y pinch-zoom; }   /* swipe sideways = next page; pinch = zoom */
.viewer-body figure { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 22px 14px; }
.viewer-body figure[hidden] { display: none; }
.viewer-body:has(.viewer-photo[hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.viewer-photo { background: #fff8f0; border-right: 1px solid var(--line); }
.viewer-body img { -webkit-user-drag: none; user-select: none; display: block; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 10px; }
.viewer-photo img { border: 6px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.viewer-body figcaption { flex: none; font-size: .85rem; font-weight: 700; color: var(--muted); }
.viewer-nav { flex: none; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0 14px; border-top: 1px solid var(--line); }
.viewer-nav[hidden] { display: none; }
.viewer-nav button { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.viewer-nav button:disabled { opacity: .3; cursor: default; }
.viewer-nav span { min-width: 150px; text-align: center; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .viewer { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .viewer-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 2fr) minmax(0, 5fr); }
  .viewer-photo { border-right: 0; border-bottom: 1px solid var(--line); }
  .viewer-body figure { padding: 14px 12px 8px; gap: 6px; }
  .viewer-body .viewer-photo { padding-top: 58px; }
}

/* ---------------------------------------------------------------- photo book page: video */
.cb-video { margin-top: 8px; margin-bottom: 28px; }
.video-card { margin: 0 auto; max-width: 1040px; }
.video-card video { display: block; width: 100%; height: auto; border-radius: 24px; background: #efe7dc; box-shadow: var(--shadow-pop); }
.video-card figcaption { margin-top: 10px; text-align: center; font-size: .78rem; color: var(--muted); }

/* Drawing style picker (order form): one real example per style */
.style-field .style-hint { margin: -2px 0 10px; }
.style-field .style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.style-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 16px; background: #fff;
  border: 2px solid var(--line-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.style-opt input { position: absolute; opacity: 0; }
.style-opt .style-img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 358; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; }
.style-opt .style-txt { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 4px; }
.style-opt strong { font-size: .95rem; }
.style-opt small { color: var(--ink-2); font-size: .8rem; line-height: 1.35; }
.style-opt:has(input:checked) { border-color: var(--primary); box-shadow: var(--shadow); }
.style-opt:has(input:checked)::after { content: "✓"; position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; }
.style-opt:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (max-width: 640px) {
  .style-field .style-grid { grid-template-columns: 1fr; gap: 10px; }
  .style-opt { flex-direction: row; align-items: center; }
  .style-opt .style-img { width: 128px; flex: none; }
  .style-opt:has(input:checked)::after { top: 8px; left: 112px; right: auto; }
}
.tier-box .tier.tier-extra { border-top-style: dashed; color: var(--ink-2); }
.style-line { margin-top: -6px; }

/* Chosen photos under the drop zone */
.photo-msg { margin: 10px 0 0; }
.thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs li { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--lav-100); border: 1px solid var(--line-2); }
.thumbs .thumb-name { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 1.15rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.thumb-remove:hover { background: #fff; color: var(--coral, #e5533d); }
.thumb-remove:focus-visible { outline: 3px solid var(--violet); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.remove-all { margin-top: 10px; font-size: .85rem; }

/* Signed-in mark on the account icon */
.acc-link { position: relative; }
.acc-link.is-signed-in::after { content: ""; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: #22a06b; box-shadow: 0 0 0 2px #fff; }

/* Printed book options (order page) */
.print-opts { margin-top: 18px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line-2); display: grid; gap: 16px; }
.print-opts h3 { margin: 0; font-size: 1.1rem; }
.print-opts .opt { border: 0; margin: 0; padding: 0; }
.print-opts .opt legend { font-weight: 800; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .opt-grid { grid-template-columns: 1fr; } }
.opt-card { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  border: 2px solid var(--line-2); background: #fff; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; }
.opt-card .opt-shape { grid-row: 1 / span 2; display: block; border: 2px solid currentColor; border-radius: 3px; color: var(--ink-2); background: var(--lav-50); }
.opt-portrait .opt-shape { width: 30px; height: 40px; }
.opt-square .opt-shape { width: 34px; height: 34px; }
.opt-small .opt-shape { width: 21px; height: 32px; border-width: 4px; }
.opt-card strong { font-size: .9rem; }
.opt-card small { color: var(--ink-2); font-size: .78rem; line-height: 1.35; }
.opt-card:has(input:checked) { border-color: var(--primary); box-shadow: var(--shadow); }
.opt-card:has(input:checked) .opt-shape { color: var(--primary); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.opt-plus { color: var(--primary); font-weight: 700; }
#opt-hard.is-off { opacity: .45; cursor: not-allowed; }
.opt-list { display: grid; gap: 6px; }
.opt-theme select { max-width: 360px; }
.opt-total { margin: 0; font-weight: 800; font-size: 1.05rem; }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .segmented.three { grid-template-columns: 1fr; } }
#opt-hard { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.print-opts .opt-theme { display: grid; gap: 6px; }
.print-opts .opt-theme small { display: block; }
.print-opts .opt-list .check { margin: 0; }

/* Cover choice (order page) */
.cover-choice { margin: 6px 0 26px; }
.cover-choice h2 { font-size: 1.45rem; letter-spacing: -.02em; margin: 0 0 14px; }
.cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .cover-grid { grid-template-columns: 1fr; } }
.cover-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-lg); background: #fff;
  border: 2px solid var(--line-2); cursor: pointer; }
.cover-card input { position: absolute; opacity: 0; }
.cover-card:has(input:checked) { border-color: var(--primary); box-shadow: var(--shadow); }
.cover-card:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.cover-card:has(input:checked)::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; }
.cover-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-right: 34px; }
.cover-head strong { font-size: 1.05rem; }
.cover-incl { color: #1f8a5b; font-weight: 800; }
.cover-plus { color: var(--primary); font-weight: 800; }
.cover-card small { color: var(--ink-2); }
.cover-frame { display: grid; place-items: center; margin-top: 8px; padding: 14px; border-radius: 14px; background: var(--lav-50); min-height: 200px; }
.cover-frame img { width: 100%; max-width: 300px; height: auto; border-radius: 6px; box-shadow: 0 10px 24px rgba(42, 36, 64, .18); }
.cover-photo-opts { margin-top: 14px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line-2); display: grid; gap: 12px; }
.cover-pick-title { margin: 0; font-weight: 800; font-size: .9rem; }
.cover-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-thumb { width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 3px solid transparent; background: var(--lav-100); cursor: pointer; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb[aria-checked="true"] { border-color: var(--primary); }
.cover-thumb:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Waiting for the sample pages */
.wait-card { margin: 18px 0 30px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line-2); display: grid; gap: 14px; }
.wait-bar { height: 12px; border-radius: 999px; background: var(--lav-100); overflow: hidden; }
.wait-bar span { display: block; height: 100%; width: 2%; border-radius: inherit; transition: width .5s linear;
  background: linear-gradient(90deg, var(--primary), #ff6b6b, #ffc43d, var(--primary)); background-size: 300% 100%; animation: wait-shine 3s linear infinite; }
@keyframes wait-shine { to { background-position: 300% 0; } }
.wait-step { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wait-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); animation: wait-pulse 1s ease-in-out infinite alternate; }
@keyframes wait-pulse { from { opacity: .3; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }
.wait-label { margin: 6px 0 0; font-size: .85rem; font-weight: 800; color: var(--ink-2); }
.wait-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.wait-photo { position: relative; margin: 0; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--lav-100); }
.wait-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wait-photo.now { outline: 3px solid var(--primary); outline-offset: 2px; }
.wait-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; font-size: .62rem; font-weight: 800; text-align: center;
  color: #fff; background: rgba(90, 75, 209, .88); }
.wait-next { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; color: var(--ink-2); font-size: .92rem; }
.wait-next li { display: flex; gap: 8px; align-items: flex-start; }
.wait-next svg { flex: none; width: 18px; height: 18px; color: #1f8a5b; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .wait-bar span, .wait-dot { animation: none; } }
/* PDF paper size on the order page, waiver hint */
.pdf-paper { margin: 0 0 22px; border: 0; padding: 0; max-width: 420px; }
.pdf-paper legend { font-weight: 800; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.waiver-hint { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff4e5;
  color: #8a4b00; font-size: .9rem; font-weight: 600; }
.waiver-hint svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* Theme pages: the text that used to sit above the drawings */
.theme-about { margin: 34px 0 0; max-width: 820px; }
.theme-about .lead { font-size: 1rem; }
/* factual summary of a page (shop, color by number, FAQ intros): plain text, no box */
.summary-text { max-width: 820px; margin: 36px auto 8px; color: var(--ink-2); font-size: 1rem; line-height: 1.65; }
.faq-intro { margin: -8px auto 26px; }
.home-photo-band { padding-top: 10px; }

/* Page not found */
.notfound { padding: 50px 0 80px; }
.nf-card { max-width: 720px; margin: 0 auto; text-align: center; padding: 40px 28px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line-2); }
.nf-code { display: block; font-size: 4.5rem; font-weight: 900; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(90deg, #ff6b6b, #ffc43d, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-card h1 { margin: 10px 0 8px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0; }
.nf-themes-title { margin: 10px 0 8px; font-weight: 800; }
.nf-card .chips { justify-content: center; }

/* ---------------------------------------------------------------- flip-through preview (order page) */
.flip-box { margin: 28px 0; padding: 22px 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.flip-box h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.3rem; }
.flip-box h2 svg { width: 24px; height: 24px; color: var(--primary); }
.flip-lead { margin: 0 0 14px; }
.flip { --h: min(62vh, 560px); user-select: none; }
.flip-stage { display: flex; align-items: center; justify-content: center; gap: 10px; }
.flip-spread { flex: 0 1 auto; display: flex; justify-content: center; margin: 0 auto; touch-action: pan-y;
  width: min(100%, calc(var(--h) * var(--ar) * 2)); filter: drop-shadow(0 10px 22px rgba(40, 30, 80, .16)); }
.flip-spread.single { width: min(100%, calc(var(--h) * var(--ar))); }
.flip-page { position: relative; flex: 1 1 0; margin: 0; aspect-ratio: var(--ar); background: #fff; overflow: hidden; }
.flip-spread:not(.single) .flip-page:first-child { border-radius: 6px 0 0 6px; box-shadow: inset -14px 0 16px -14px rgba(0, 0, 0, .28); }
.flip-spread:not(.single) .flip-page:last-child { border-radius: 0 6px 6px 0; box-shadow: inset 14px 0 16px -14px rgba(0, 0, 0, .28); }
.flip-spread.single .flip-page { border-radius: 6px; }
.flip-page img { position: relative; z-index: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.flip-spread:not(.single) .flip-page img { mix-blend-mode: multiply; }   /* lets the fold shadow show over white pages */
.flip-page.loading { background: linear-gradient(100deg, #f6f2fb 30%, #fff 50%, #f6f2fb 70%) 0 0 / 300% 100%; animation: flip-shimmer 1.4s linear infinite; }
.flip-page.blank { background: #fff; }
@keyframes flip-shimmer { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .flip-page.loading { animation: none; } }
.flip-redrawing { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 16px; text-align: center;
  background: rgba(255, 255, 255, .82); color: var(--ink); font-weight: 700; font-size: .95rem; }
.flip-nav { flex: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.flip-nav:disabled { opacity: .35; cursor: default; }
.flip-bar { display: flex; align-items: center; gap: 12px; margin: 14px auto 0; max-width: 640px; font-size: .9rem; }
.flip-label { min-width: 7.5em; font-weight: 700; color: var(--ink); }
.flip-range { flex: 1; accent-color: var(--primary); }
.flip-count { min-width: 4em; text-align: right; color: var(--muted); }
.flip-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.flip-actions:empty { display: none; }
.flip-replace { cursor: pointer; }
.flip-replace.is-busy { opacity: .6; pointer-events: none; }
.review-box { margin: 4px 0 18px; padding: 16px 18px; background: #fff7e8; border: 1px solid #f2d9a6; border-radius: 16px; }
.review-box h3 { margin: 0 0 6px; font-size: 1.1rem; }
.review-box p { margin: 0 0 12px; }
.review-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 640px) {
  .flip-box { padding: 16px 12px; }
  .flip-stage { gap: 4px; }
  .flip-nav { width: 34px; height: 34px; font-size: 1.4rem; }
  .flip-label { min-width: 0; }
}

/* ---------- photo-book page: "you see every page before it's printed" */
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .check-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.mock-book { margin: 0; padding: 22px; border-radius: 28px; background: var(--lav-100); border: 1px solid var(--line-2); }
.mock-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 42 / 28; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-pop); }
.mock-spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 18px; margin-left: -9px; background: linear-gradient(90deg, transparent, rgba(42, 36, 64, .10), transparent); }
.mock-page { display: grid; place-items: center; padding: 9%; min-width: 0; }
.mock-page.left { background: #fff8ef; }
.mock-page img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mock-page.left img { border-radius: 6px; box-shadow: 0 4px 14px -6px rgba(42, 36, 64, .35); }
.mock-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.mock-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow); }
.mock-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .9rem; font-weight: 700; }
.mock-chip .ico, .mock-btn .ico { width: 18px; height: 18px; }
.check-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.check-points li { display: flex; gap: 14px; align-items: flex-start; }
.check-points li > .ico { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--lav-100); color: var(--primary); }
.check-points strong { display: block; margin-bottom: 2px; }
.check-points span { color: var(--ink-2); font-size: .93rem; }

/* gift page on phones: the example (photo -> coloring page) comes before the form, so people see what they give */
@media (max-width: 900px) {
  .gift-hero-grid { gap: 0; }
  .gift-hero-text { display: contents; }
  .gift-hero-text > .kicker { justify-self: start; }
  .gift-hero-grid .gift-side { order: 1; width: 100%; max-width: 360px; margin: 6px auto 4px; }
  .gift-hero-grid .gift-form { order: 2; }
}

/* ---------- check step: stable action row, undo, sideways note, approve bar that follows the reader */
.flip.editing .flip-actions, .flip.editing .flip-actions:empty { display: flex; min-height: 50px; }
.flip-busy { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--lav-50); color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.flip-busy .spinner { width: 18px; height: 18px; border-width: 2px; }
.flip-turned { text-align: center; margin: 8px auto 0; max-width: 560px; }
.approve-bar { position: sticky; bottom: 12px; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px auto 0; max-width: 560px; padding: 10px 10px 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.approve-bar[hidden] { display: none; }
@media (max-width: 520px) { .approve-bar { border-radius: 20px; justify-content: center; text-align: center; padding: 10px; } .approve-bar .btn { width: 100%; } }

/* ---------- PDF theme book page: the printed, personalized version (full-width band under the product) */
.upsell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin: 0 0 56px; padding: 36px 44px; border-radius: 28px; background: linear-gradient(135deg, #fff5e8 0%, #f8f1ff 100%); border: 1px solid var(--line-2); }
.upsell h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 12px 0 8px; }
.upsell p { margin: 0 0 20px; color: var(--ink-2); }
.upsell-art { display: flex; align-items: center; justify-content: center; gap: 12px; }
.upsell-art img { display: block; min-width: 0; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px -6px rgba(42, 36, 64, .28); border: 5px solid #fff; }
.upsell-art .up-photo { width: 40%; transform: rotate(-3deg); }
.upsell-art .up-page { width: 25%; }
.upsell-art .up-theme { width: 25%; transform: rotate(3deg); }
.upsell-art .up-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--sun); color: var(--ink); flex: none; }
.upsell-art .up-arrow .ico { width: 18px; height: 18px; }
.upsell-art .up-plus { flex: none; font-weight: 800; font-size: 1.5rem; color: var(--coral-ink); }
.upsell-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.up-price { font-weight: 800; color: var(--primary); }
@media (max-width: 860px) {
  .upsell { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 20px; border-radius: var(--r-lg); margin-bottom: 40px; }
  .upsell-art { gap: 8px; }
  .upsell-art img { border-width: 3px; }
  .upsell-art .up-arrow { width: 28px; height: 28px; }
}
@media (max-width: 420px) { .upsell-cta .btn { width: 100%; } }
/* the cover stays in view while the details on the right scroll */
@media (min-width: 861px) { .product-cover { position: sticky; top: 92px; } }
.theme-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--coral-50); color: var(--ink); font-size: .9rem; font-weight: 600; }
.theme-note[hidden] { display: none; }
.theme-note .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--coral-ink); }

/* Christmas bar under the header (printed-book deadlines, then gift cards) */
.xmas-bar { background: #fff1ee; border-bottom: 1px solid #ffd8cf; color: var(--ink); }
.xmas-row { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 9px; padding-bottom: 9px; padding-right: 44px; }
.xmas-ico { display: inline-flex; color: var(--coral-ink); }
.xmas-ico .ico { width: 20px; height: 20px; }
.xmas-text { margin: 0; flex: 1 1 340px; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.xmas-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xmas-actions .btn[hidden] { display: none; }
.xmas-close { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.xmas-close:hover, .xmas-close:focus-visible { color: var(--ink); background: rgba(0, 0, 0, .05); }
.xmas-bar .xs { display: none; }
@media (max-width: 640px) {
  .xmas-bar .xl { display: none; }
  .xmas-bar .xs { display: inline; }
  .xmas-ico { display: none; }
  .xmas-row { gap: 6px 8px; padding-top: 7px; padding-bottom: 7px; padding-right: 36px; }
  .xmas-text { flex-basis: 100%; font-size: .82rem; line-height: 1.35; }
  .xmas-actions .btn { padding: 5px 12px; font-size: .82rem; }
  .xmas-close { top: 6px; transform: none; right: 2px; }
}

/* Order page: send the 2 free pages to family */
.share-preview { text-align: center; margin: 14px 0 0; }
.share-msg { text-align: center; margin: 8px auto 0; max-width: 34em; }
