/* Mín jólabók – customer-facing styles.
   Playful for children, calm and very readable for the parents and grandparents who buy. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/shop/fredoka-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/shop/fredoka-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/shop/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/shop/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #12264a;
  --night-deep: #0b1a36;
  --pine: #1d7a64;        /* the green of the 2026 cover, deepened for readable text */
  --pine-deep: #135a4a;
  --cranberry: #d83743;   /* the red of the 2026 cover (white text stays readable) */
  --cranberry-dark: #b72634;
  --cover-red: #e5404a;
  --cover-green: #38b597;
  --gold: #f4b63f;
  --gold-soft: #fde7b4;
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #1d2733;
  --ink-soft: #4a5666;
  --line: #e7dccb;
  --line-strong: #cdbfa8;
  --success: #1d7a4f;
  --success-bg: #e6f5ec;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --info-bg: #eef4ff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 38, 74, .06), 0 2px 8px rgba(18, 38, 74, .06);
  --shadow: 0 10px 30px rgba(18, 38, 74, .12);
  --shadow-lg: 0 24px 60px rgba(11, 26, 54, .28);

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px – comfortable for all ages */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); text-underline-offset: .18em; }
a:hover { color: var(--cranberry); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 26, 54, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
}
.site-header::after { /* airmail stripe, as on the frame of the 2026 cover */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: repeating-linear-gradient(-45deg,
    var(--cover-red) 0 9px, #fff 9px 14px, var(--cover-green) 14px 23px, #fff 23px 28px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-star { width: 34px; height: 34px; color: var(--gold); fill: currentColor; stroke: none; filter: drop-shadow(0 0 8px rgba(244, 182, 63, .55)); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1; }
.brand-sub { display: block; font-size: .72rem; opacity: .75; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .1); }
@media (max-width: 760px) { .site-nav a.nav-optional { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cranberry); --btn-fg: #fff; --btn-bd: var(--cranberry);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: 0 6px 16px rgba(216, 55, 67, .28);
}
.btn:hover { --btn-bg: var(--cranberry-dark); --btn-bd: var(--cranberry-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .7; cursor: progress; transform: none; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 1rem; }
.btn-lg { min-height: 60px; padding: 14px 34px; font-size: 1.3rem; }
.btn-block { width: 100%; }
.btn-gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--night-deep); box-shadow: 0 6px 18px rgba(244, 182, 63, .35); }
.btn-gold:hover { --btn-bg: #f7c35f; --btn-bd: #f7c35f; color: var(--night-deep); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--pine); --btn-bd: var(--line-strong); box-shadow: none; }
.btn-outline:hover { --btn-bg: var(--paper); --btn-bd: var(--pine); color: var(--pine); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); box-shadow: none; }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: #fff; color: #fff; }
.btn-link {
  background: none; border: 0; padding: 6px 4px; min-height: 0; box-shadow: none; color: var(--pine);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer; display: inline-flex; gap: .4em; align-items: center;
}
.btn-link:hover { color: var(--cranberry); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244, 182, 63, .18), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(19, 90, 74, .9), transparent 60%),
    linear-gradient(160deg, var(--night-deep) 0%, var(--night) 55%, var(--pine-deep) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 10vw, 130px);
}
.hero::after { /* snowy hill */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 90px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; text-align: center; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244, 182, 63, .16); color: var(--gold-soft);
  border: 1px solid rgba(244, 182, 63, .4);
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .95rem; margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 .accent { color: var(--gold); }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: rgba(255, 255, 255, .88); max-width: 34em; }
@media (max-width: 860px) { .hero-lead { margin-left: auto; margin-right: auto; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
@media (max-width: 860px) { .hero-actions { justify-content: center; } }
.hero-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.hero-price small { display: block; font-family: var(--font-body); font-size: .9rem; font-weight: 600; opacity: .75; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; font-weight: 700; font-size: 1rem; color: rgba(255, 255, 255, .85); }
@media (max-width: 860px) { .hero-trust { justify-content: center; } }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--gold); }

.book-stage { position: relative; display: grid; place-items: center; }
.book-stage::before { /* warm glow */
  content: ""; position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 182, 63, .45), transparent 65%);
  filter: blur(10px);
}
.book-cover {
  position: relative; width: min(360px, 78vw);
  border-radius: 6px 14px 14px 6px;
  box-shadow: var(--shadow-lg), inset 6px 0 10px rgba(0, 0, 0, .15);
  transform: rotate(-4deg);
  transition: transform .4s ease;
}
.book-stage:hover .book-cover { transform: rotate(-1deg) translateY(-6px); }
.book-placeholder {
  position: relative; width: min(320px, 72vw); aspect-ratio: 3 / 4; border-radius: 8px 18px 18px 8px;
  background: linear-gradient(150deg, var(--cranberry), #7d1420); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center; padding: 24px; transform: rotate(-4deg);
  font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-soft);
}

/* Falling snow (decorative, disabled for reduced motion). Click a flake and it bursts into smaller ones (snow.js). */
.snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.snow span {
  position: absolute; top: -12px; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%;
  background: #fff; opacity: var(--o, .7);
  animation: snowfall var(--d, 12s) linear infinite; animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  pointer-events: auto; cursor: pointer;
}
.snow span::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; } /* bigger hit area */
.snow span.burst { animation: none; box-shadow: 0 0 6px rgba(255, 255, 255, .8); }
/* Some flakes are crystals, like on the 2026 cover; they turn slowly as they fall. */
.snow span.crystal {
  border-radius: 0; animation-name: snowfall-turn;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'><path id='a' d='M0 0V-10.5M0-6.8-2.8-9.6M0-6.8 2.8-9.6M0-3.4-2-5.4M0-3.4 2-5.4'/><use href='%23a' transform='rotate(60)'/><use href='%23a' transform='rotate(120)'/><use href='%23a' transform='rotate(180)'/><use href='%23a' transform='rotate(240)'/><use href='%23a' transform='rotate(300)'/></svg>") center / contain no-repeat;
}
.snow span.crystal.burst { box-shadow: none; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .8)); }
/* Let clicks reach the snow behind empty parts of the hero, but keep text, buttons and the book clickable. */
.hero .container, .hero .container > div { pointer-events: none; }
.hero .container > div > * { pointer-events: auto; }
@keyframes snowfall-turn {
  0% { transform: translate3d(0, -10px, 0) rotate(0deg); }
  50% { transform: translate3d(18px, 50vh, 0) rotate(90deg); }
  100% { transform: translate3d(-12px, 105vh, 0) rotate(180deg); }
}

/* Northern lights on a few evenings a week (aurora.js). Behind the snow, the text and the hill. */
.aurora {
  position: absolute; inset: -25% -15% 30% -15%; z-index: 0; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity 6s ease, visibility 0s 6s;
  mix-blend-mode: screen;
}
.aurora.is-on { opacity: 1; visibility: visible; transition: opacity 6s ease; }
.aurora.is-on.is-summoned { transition: opacity 2.5s ease; } /* five snowflakes pressed: come out a little faster */
/* Each span is a curtain: brightest green at its curved lower edge, fading to violet upwards, with rays. */
.aurora span {
  position: absolute; left: 5%; width: 90%; top: 6%; height: 40%;
  border-radius: 0 0 50% 50% / 0 0 35% 35%;
  background: linear-gradient(to top, transparent 0%, rgba(110, 245, 180, .85) 7%, rgba(56, 214, 160, .5) 30%,
    rgba(70, 170, 200, .25) 60%, rgba(140, 110, 230, .18) 82%, transparent 100%);
  -webkit-mask-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .5) 0 7px, #000 7px 10px, rgba(0, 0, 0, .7) 10px 21px, #000 21px 23px),
    repeating-linear-gradient(90deg, #000 0 19px, rgba(0, 0, 0, .45) 31px, #000 53px),
    linear-gradient(90deg, transparent, #000 18%, #000 72%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .5) 0 7px, #000 7px 10px, rgba(0, 0, 0, .7) 10px 21px, #000 21px 23px),
    repeating-linear-gradient(90deg, #000 0 19px, rgba(0, 0, 0, .45) 31px, #000 53px),
    linear-gradient(90deg, transparent, #000 18%, #000 72%, transparent);
          mask-composite: intersect;
  filter: blur(2.5px);
  transform-origin: 50% 100%;
  animation: aurora-sway 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) { left: 30%; width: 80%; top: -4%; height: 38%; opacity: .65; animation-duration: 33s; animation-delay: -11s; }
.aurora span:nth-child(3) { left: -15%; width: 70%; top: 12%; height: 30%; opacity: .45; filter: blur(6px); animation-duration: 41s; animation-delay: -23s; }
.aurora:not(.is-on) span { animation-play-state: paused; }
@keyframes aurora-sway {
  0% { transform: translateX(-6%) skewX(-12deg) rotate(-5deg) scaleY(.9); }
  50% { transform: translateX(2%) skewX(8deg) rotate(-1deg) scaleY(1.12); }
  100% { transform: translateX(7%) skewX(-4deg) rotate(-4deg) scaleY(.96); }
}

@keyframes snowfall {
  0% { transform: translate3d(0, -10px, 0); }
  50% { transform: translate3d(18px, 50vh, 0); }
  100% { transform: translate3d(-12px, 105vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
  .aurora span { animation: none; }
  html { scroll-behavior: auto; }
  .book-cover, .btn { transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-soft); font-size: 1.2rem; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cranberry); margin-bottom: 8px;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 26px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--night-deep); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(244, 182, 63, .45);
}
.step-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); color: var(--pine); margin-bottom: 14px; }
.step-icon .icon { width: 28px; height: 28px; }
.step h3 { margin-bottom: .35em; }
.step p { color: var(--ink-soft); margin: 0; }

.product-feature { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .product-feature { grid-template-columns: 1fr; } }
.product-feature-cover { position: sticky; top: 96px; }
@media (max-width: 860px) { .product-feature-cover { position: static; max-width: 300px; margin: 0 auto; } }
.product-feature-cover img { border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow); }
.prose { font-size: 1.15rem; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

.price-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px;
  box-shadow: var(--shadow-sm);
}
.price-card .price { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--pine); line-height: 1; }
.price-card .price small { font-family: var(--font-body); font-size: .95rem; color: var(--ink-soft); font-weight: 600; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
}
.product-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--cream); }
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { margin: 0; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-card .price { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--pine); }

.tradition {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 100%); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  box-shadow: var(--shadow);
}
@media (max-width: 760px) { .tradition { grid-template-columns: 1fr; text-align: center; } }
.tradition-number { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 6.5rem); font-weight: 700; line-height: .9; color: var(--gold); }
.tradition-number small { display: block; font-size: 1.1rem; color: var(--gold-soft); font-weight: 500; margin-top: 8px; }
.tradition h2 { color: #fff; }
.tradition p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 1.15rem; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--cranberry); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }

.cta-band { text-align: center; }
.cta-band .tradition { grid-template-columns: 1fr; text-align: center; background: linear-gradient(135deg, var(--night) 0%, var(--night-deep) 100%); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--night-deep), var(--night)); color: #fff; padding: 40px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 44px; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0; }
.page-hero p { color: rgba(255, 255, 255, .82); margin: 8px 0 0; font-size: 1.15rem; }
.page-body { margin-top: -24px; position: relative; z-index: 2; padding-bottom: 72px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 32px); }
.card + .card { margin-top: 20px; }
.card-title { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin-bottom: 4px; }
.card-title .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--pine); color: #fff; font-size: 1.05rem;
}
.card-sub { color: var(--ink-soft); margin: 0 0 20px; }

/* ---------- Order form ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .order-layout { grid-template-columns: 1fr; } }

.order-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; font-weight: 800; font-size: .95rem; }
.order-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.order-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-size: .85rem; }
.order-steps li.is-current { color: var(--pine); border-color: var(--pine); }
.order-steps li.is-current span { background: var(--pine); color: #fff; }
@media (max-width: 620px) {
  .order-steps { display: none; }
  .page-body .card { padding: 18px 14px; border-radius: 16px; }
  .child-card { padding: 16px 14px 4px; }
  .brand-sub { display: none; }
}

.child-list { display: grid; gap: 16px; }
.child-card {
  position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 20px 8px; background: #fffdf9;
  animation: pop-in .25s ease;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .child-card { animation: none; } }
.child-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.child-card-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.child-card-head h3 .icon { color: var(--cranberry); }
.child-card .remove-child { color: var(--ink-soft); }
.child-card .remove-child:hover { color: var(--danger); }

.add-child {
  width: 100%; border: 2px dashed var(--line-strong); background: transparent; border-radius: var(--radius);
  padding: 18px; font: inherit; font-weight: 800; color: var(--pine); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, border-color .15s;
}
.add-child:hover { background: var(--paper); border-color: var(--pine); }
.add-child .icon { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--pine); color: #fff; }

.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; }
.form-grid > .span-6 { grid-column: span 6; }
.form-grid > .span-4 { grid-column: span 4; }
.form-grid > .span-3 { grid-column: span 3; }
.form-grid > .span-2 { grid-column: span 2; }
@media (max-width: 620px) {
  .form-grid > .span-4, .form-grid > .span-3 { grid-column: span 6; }
  .form-grid > .span-2 { grid-column: span 3; }
}

.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 1rem; }
.field .hint { display: block; font-size: .92rem; color: var(--ink-soft); margin-top: 5px; }
.field .optional { font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
.input, .select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1.08rem; transition: border-color .15s, box-shadow .15s;
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f4a3a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input:hover, .select:hover { border-color: var(--pine); }
.input:focus, .select:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(29, 122, 100, .18); }
.input::placeholder { color: #9aa3ad; }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); background: #fffafa; }
.field-error { display: none; color: var(--danger); font-weight: 700; font-size: .95rem; margin-top: 6px; }
.field.has-error .field-error, .field-error.is-visible { display: flex; gap: 6px; align-items: flex-start; }
.field-error:empty { display: none !important; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; margin-bottom: 12px; }
.check:hover { border-color: var(--line-strong); }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--pine); flex: none; cursor: pointer; }
.check.has-error { border-color: var(--danger); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.alert .icon { margin-top: 3px; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c2bd; }
.alert-info { background: var(--info-bg); color: #1d3f7a; border: 1px solid #cdddfb; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #b7e2c8; }
.alert ul { margin: 4px 0 0; padding-left: 1.1em; }

.summary { position: sticky; top: 92px; }
.summary-book { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.summary-book img { width: 64px; border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-sm); }
.summary-book strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.summary-book span { color: var(--ink-soft); font-size: .95rem; }
.summary-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 1rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 10px; }
.summary-lines li span:first-child { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: 14px; margin-top: 6px; }
.summary-total strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--pine); }
.summary-note { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); margin-top: 16px; }
.summary-note .icon { color: var(--pine); margin-top: 2px; }

/* Mobile: sticky total + pay button */
.mobile-paybar { display: none; }
@media (max-width: 980px) {
  .summary { position: static; }
  .mobile-paybar {
    display: flex; position: sticky; bottom: 0; z-index: 40; margin: 0 calc(var(--gutter) * -1);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18, 38, 74, .1);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px;
  }
  .mobile-paybar .total { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--pine); line-height: 1.1; }
  .mobile-paybar .total small { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
}

/* ---------- Receipt ---------- */
.receipt-head { text-align: center; padding: 8px 0 8px; }
.receipt-check {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 10px rgba(29, 122, 79, .08);
}
.receipt-check .icon { width: 44px; height: 44px; stroke-width: 2.5; }
.receipt-check.is-pending { background: var(--gold-soft); color: #8a5a00; box-shadow: 0 0 0 10px rgba(244, 182, 63, .15); }
.receipt-check.is-pending .icon { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.receipt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; }
.receipt-meta div { background: var(--cream); border-radius: 12px; padding: 12px 16px; }
.receipt-meta dt { font-size: .85rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.receipt-meta dd { margin: 2px 0 0; font-weight: 700; }
.book-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.book-line { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }
.book-line .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; flex: none; }
.book-line .who { flex: 1; min-width: 0; }
.book-line .who strong { display: block; }
.book-line .who span { color: var(--ink-soft); font-size: .98rem; }
.book-line .amount { font-weight: 800; white-space: nowrap; }
.totals { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 0; margin-top: 12px; border-top: 2px dashed var(--line); font-weight: 800; }
.totals strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--pine); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.status-pill.paid { background: var(--success-bg); color: var(--success); }
.status-pill.unpaid { background: var(--gold-soft); color: #7a4f00; }
.status-pill.refunded { background: var(--danger-bg); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: rgba(255, 255, 255, .8); padding: 56px 0 28px; margin-top: 0; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer li .icon { margin-top: 3px; color: var(--gold); }
.footer-publisher { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-publisher img { height: 46px; width: auto; background: #fff; padding: 6px 8px; border-radius: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: rgba(255, 255, 255, .6); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
[hidden] { display: none !important; }

/* ---------- Print (receipt) ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .actions, .page-hero::after, .no-print, .snow { display: none !important; }
  .page-hero { background: none; color: var(--ink); padding: 0 0 12px; }
  .page-hero h1, .page-hero p { color: var(--ink); }
  .page-body { margin: 0; padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  .container { max-width: none; padding: 0; }
}
