/* NINOTS web, v5.
 * Light theme only (owner choice, 2026-11-20): the warm tones of preview/index.html on every system.
 * Brand structure: NINOTS landing (index) -> collections (cavallets) -> tradition page (QR target).
 * Scale rule: inside one component every figure image uses ONE width, so the Dama and the Cavallet
 * always render at the same height on the same floor line (renders come from the real STL models).
 * Focal motion: the "D'esbós a NINOT" scroll sequence. Everything else stays still. */

:root {
  color-scheme: light;
  --cream: #FAF3E6;
  --surface: #FFFCF7;
  --card: #FFF9EF;
  --card-visual: #F3EADD;
  --pink: #FAE4DC;
  --pink-line: #F1CFC4;
  --kraft-light: #E8D4B5;
  --kraft: #C8A67A;
  --kraft-mid: #BE9A6A;
  --kraft-deep: #A9824F;
  --ink: #1F1B17;
  --ink-2: #4A433B;
  --muted: #5B554B;
  --line: rgb(31 27 23 / 0.14);
  --line-strong: rgb(31 27 23 / 0.24);
  --red: #D62828;
  --red-deep: #B31F1F;
  --red-soft: #FFECE7;
  --red-text: #C42222;
  --green: #2E7D32;
  --green-deep: #24642A;
  --on-accent: #FFFFFF;
  --gold: #E0A51C;
  --gold-ink: #1F1B17;
  --focus: #1F1B17;
  --error: #B3261E;
  --backdrop: rgb(31 27 23 / 0.45);
  --shadow: 0 18px 40px -24px rgb(31 27 23 / 0.35);

  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --container: 1200px;
  --gutter: 32px;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--kraft) var(--cream); background: var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; caret-color: var(--red); }
::selection { background: var(--kraft-light); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.625rem); }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* Spam trap: invisible to people and screen readers, bots tend to fill it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.caption { font-size: 0.875rem; color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.btn svg, .hint svg, .cart-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent; font: 800 1.0625rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: translateY(1px); }
.btn--green { background: var(--green); color: var(--on-accent); }
.btn--green:hover { background: var(--green-deep); }
.btn--red { background: var(--red); color: var(--on-accent); }
.btn--red:hover { background: var(--red-deep); }
.btn--outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.75; }

/* ---------- demo strip + nav ---------- */
.demo-strip { margin: 0; background: var(--ink); color: var(--cream); text-align: center; font-size: 0.875rem; font-weight: 700; padding: 7px 16px; }
.nav { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.nav__brand { display: block; color: var(--ink); padding-right: 28px; border-right: 1px solid var(--line-strong); }
.nav__brand svg { height: 44px; width: auto; }
.nav__menu { flex: 1; min-width: 0; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.8vw, 30px); flex-wrap: wrap; }
.nav__menu a { font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 160ms var(--ease); }
.nav__menu a:hover { border-bottom-color: var(--red); }
.cart-btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; }
.cart-btn:hover { background: var(--card-visual); }
.cart-btn svg { width: 28px; height: 28px; }
.cart-btn__count { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--on-accent); font: 800 0.75rem/22px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- hero (landing) ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) 24px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.2vw + 0.6rem, 4.25rem); max-width: 12ch; }
.rule { display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--red); margin: 24px 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stage { margin: 0; }
/* White figures on a soft kraft floor so the white PLA reads on cream. */
.hero__figs { --hero-fig: clamp(120px, 15vw, 214px); display: flex; align-items: flex-end; justify-content: center; }
/* Both colour canvases are 660 x 900 with the figure 860 px tall: same width = same height. */
.fig-color { width: var(--hero-fig); aspect-ratio: 660 / 900; flex: none; margin-inline: calc(var(--hero-fig) * -0.04); }
/* Closed bag: the top flap is folded down, the seal sits centred on the closing line and the label
 * stays below it, never covered. Sizes are in bag widths (cqw) so the layout holds at every size. */
.bag { position: relative; flex: none; container-type: inline-size; width: calc(var(--hero-fig) * 0.9); aspect-ratio: 1 / 1.25; margin-left: calc(var(--hero-fig) * 0.12); margin-bottom: calc(var(--hero-fig) * 0.03); background: linear-gradient(180deg, var(--kraft) 0 94%, var(--kraft-mid)); border-radius: 4px 4px 10px 10px; box-shadow: var(--shadow); }
.bag__flap { position: absolute; left: 0; right: 0; top: 0; height: 24cqw; background: linear-gradient(180deg, var(--kraft-mid), var(--kraft-deep)); border-radius: 4px 4px 3px 3px; box-shadow: 0 3px 4px -2px rgb(31 27 23 / 0.35); }
.bag__seal { position: absolute; left: 50%; top: 24cqw; width: 26cqw; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 3px 8px -3px rgb(31 27 23 / 0.45); }
.bag__label { position: absolute; left: 50%; bottom: 8cqw; width: 40cqw; transform: translateX(-50%); border-radius: 6px; box-shadow: 0 2px 6px -2px rgb(31 27 23 / 0.3); }
.hero__stage .caption { text-align: center; margin-top: 12px; }

/* ---------- divider + section heads ---------- */
.divider { display: flex; align-items: center; gap: 18px; max-width: var(--container); margin: 24px auto; padding-inline: var(--gutter); }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); }
.divider img { width: 96px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { margin-inline: auto; }
.section-head p { margin: 10px auto 0; color: var(--ink-2); max-width: 60ch; }
.sparks { display: inline-block; width: 30px; height: 34px; margin-right: 14px; vertical-align: -2px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 34' fill='none' stroke='%23D62828' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M20 4l5 6M8 17h14M20 30l5-6'/%3E%3C/svg%3E"); }
.sparks--end { margin: 0 0 0 14px; transform: scaleX(-1); }

/* ---------- collections (landing) ---------- */
.collections { padding-block: 8px 56px; }
.coll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.coll-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.coll-card__pic { display: grid; place-items: center; background: var(--card-visual); padding: 20px; height: 240px; }
.coll-card--live .coll-card__pic img { width: auto; max-width: 100%; max-height: 190px; filter: drop-shadow(0 10px 16px rgb(31 27 23 / 0.18)); transition: transform 300ms var(--ease); }
.coll-card--live:hover .coll-card__pic img { transform: translateY(-4px) rotate(-1.5deg); }
.coll-card--soon .coll-card__pic img { width: 120px; opacity: 0.5; }
.coll-card__body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.coll-card__state { justify-self: start; font-size: 0.8125rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; background: var(--kraft-light); }
.coll-card--live .coll-card__state { background: var(--green); color: var(--on-accent); }
.coll-card__title { font: 700 1.5rem/1.15 var(--font-display); }
.coll-card__text { color: var(--ink-2); font-size: 0.9375rem; }
.coll-card__cta { margin-top: 6px; font-weight: 800; color: var(--green); text-decoration: underline; text-underline-offset: 0.2em; }
.coll-card--soon { border-style: dashed; border-color: var(--line-strong); }

/* ---------- making: scroll-linked sequence ---------- */
.making { padding-block: 72px 40px; background: var(--surface); border-block: 1px solid var(--line); }
.making__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.making__stage { position: sticky; top: 104px; align-self: start; height: min(76vh, 640px); display: grid; grid-template-rows: 1fr auto; justify-items: center; }
.stage { position: relative; container-type: size; width: min(100%, 440px); height: 100%; overflow: hidden; border-radius: 24px; background: radial-gradient(34% 4% at 50% 93.5%, rgb(31 27 23 / 0.16), transparent), linear-gradient(180deg, var(--surface) 0 35%, var(--card-visual) 100%); }
.stage__fig { position: absolute; inset: 0; transform-origin: 50% 94%; z-index: 2; }
.stage__frame { position: absolute; left: 50%; bottom: 4%; height: 92%; width: auto; max-width: none; aspect-ratio: 420 / 560; transform: translateX(-50%); }
.stage__frame--pla { opacity: 0; }
/* Multi-layer kraft bag: back panel behind the figure, front panel (with label) in front of it,
 * a top flap that folds down to close it, and the round seal applied last. */
/* Bag geometry in stage widths (cqw): front 58 x 55, flap 12.8 tall standing on the front's top edge.
 * Folded, the flap's free edge is the closing line, 12.8 below the top; the seal (12.2) is centred on
 * it and the label (33 % of the bag width) starts below the seal, so nothing overlaps. */
.bagx { position: absolute; left: 50%; width: 58cqw; transform: translate(-50%, 100cqh); }
.bagx--front { z-index: 3; bottom: 4cqh; height: 55cqw; background: linear-gradient(180deg, var(--kraft) 0 94%, var(--kraft-mid)); border-radius: 2px 2px 10px 10px; box-shadow: var(--shadow), inset 0 2px 0 rgb(255 255 255 / 0.25); }
.bagx__label { position: absolute; left: 50%; bottom: 7%; width: 33%; transform: translateX(-50%); border-radius: 5px; box-shadow: 0 2px 6px -2px rgb(31 27 23 / 0.3); }
.bagx--flap { z-index: 1; bottom: calc(4cqh + 55cqw); height: 12.8cqw; background: linear-gradient(0deg, var(--kraft-mid), var(--kraft-deep)); border-radius: 6px 6px 2px 2px; transform-origin: 50% 100%; box-shadow: 0 2px 3px -1px rgb(31 27 23 / 0.3); }
.bagx__seal { position: absolute; z-index: 5; left: 50%; bottom: calc(4cqh + 55cqw - 12.8cqw - 6.1cqw); width: 12.2cqw; transform: translateX(-50%); opacity: 0; border-radius: 50%; box-shadow: 0 3px 8px -3px rgb(31 27 23 / 0.45); }
.stage__tag { margin-top: 12px; font-weight: 800; font-size: 0.9375rem; background: var(--card-visual); border-radius: 999px; padding: 4px 16px; }
.making__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.making__steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.making__steps li:first-child { min-height: 40vh; }
.making__steps li:last-child { min-height: 70vh; }
.making__steps h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.25rem); margin-bottom: 10px; color: var(--muted); transition: color 300ms var(--ease); }
.making__steps li.is-active h3 { color: var(--ink); }
.making__steps h3::before { counter-increment: step; content: counter(step) " · "; color: var(--red-text); }
.making__steps p { color: var(--ink-2); max-width: 40ch; font-size: 1.125rem; }

/* ---------- paint it at home: before / after ---------- */
.paint { padding-block: 72px; }
.paint__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.paint__text p { margin-top: 14px; color: var(--ink-2); max-width: 52ch; font-size: 1.125rem; }
.paint__steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.paint__steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; }
.paint__steps b { font: 700 1.125rem var(--font-display); }
.paint__steps span { font-size: 0.9375rem; color: var(--ink-2); }
.compare { margin: 0; --pos: 50%; }
.compare__frame { position: relative; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; background: radial-gradient(34% 4% at 50% 93%, rgb(31 27 23 / 0.16), transparent), linear-gradient(180deg, var(--surface) 0 35%, var(--card-visual) 100%); }
/* Same figure height in both images: the render canvas holds the figure at ~81 %, the colour
 * concept at 95.6 %, so the concept is drawn smaller and lifted to the same floor line. */
.compare__before, .compare__after { position: absolute; left: 50%; transform: translateX(-50%); width: auto; max-width: none; }
.compare__before { height: 92%; bottom: 3%; aspect-ratio: 495 / 660; }
/* Each picture is clipped to its own side of the line: the renders do not match pixel for pixel,
   so the white model must never show behind the painted concept. */
.compare__before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__after { height: calc(92% * 0.81 / 0.956); bottom: calc(3% + 92% * 0.088 - 92% * 0.847 * 0.022); aspect-ratio: 660 / 900; }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); pointer-events: none; }
.compare__control { display: block; margin-top: 14px; }
.compare__control input { width: 100%; accent-color: var(--red); }

/* ---------- collection hero (cavallets) ---------- */
.coll-hero { padding-block: clamp(28px, 4vw, 56px) 32px; }
.coll-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.coll-hero h1 { font-size: clamp(2.25rem, 3.6vw + 0.6rem, 3.75rem); max-width: 14ch; }
.crumbs { display: flex; gap: 8px; font-size: 0.9375rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink); }
.duo { margin: 0; }
.duo__figs { --duo-fig: clamp(160px, 20vw, 270px); position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4px; padding: 24px 56px 0 0; border-radius: 28px; background: radial-gradient(55% 8% at 46% 90%, rgb(31 27 23 / 0.14), transparent), linear-gradient(180deg, var(--cream) 0 30%, var(--card-visual) 100%); }
.duo__fig { display: grid; justify-items: center; }
.duo__fig img { width: var(--duo-fig); aspect-ratio: 495 / 660; }
.duo__name { font-weight: 800; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; margin: -10px 0 14px; position: relative; }
/* Height marker: the canvas holds the figure from 8.6 % to 89.4 % of its height. */
.duo__measure { position: absolute; right: 22px; top: calc(24px + var(--duo-fig) * 660 / 495 * 0.086); height: calc(var(--duo-fig) * 660 / 495 * 0.808); width: 12px; border: 2px solid var(--red); border-left: 0; border-radius: 0 4px 4px 0; }
.duo__measure span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: left center; white-space: nowrap; font-weight: 800; font-size: 0.875rem; color: var(--red-text); }
.duo .caption { text-align: center; margin-top: 12px; }

/* ---------- offers (cavallets) ---------- */
.shop { padding-block: 32px 48px; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer__stage { position: relative; container-type: inline-size; aspect-ratio: 5 / 4; display: grid; place-items: end center; background: radial-gradient(45% 6% at 50% 94%, rgb(31 27 23 / 0.14), transparent), linear-gradient(180deg, var(--card) 0 25%, var(--card-visual) 100%); }
/* Pair: two figures at one width. Band: the seven figures of the pack at one width. */
.offer__pair { display: flex; align-items: flex-end; justify-content: center; }
.offer__pair img { width: 52cqi; aspect-ratio: 495 / 660; margin-inline: -7cqi; }
.offer__band { display: flex; flex-direction: column; align-items: center; padding-bottom: 3cqi; }
.offer__row { display: flex; justify-content: center; }
.offer__row--front { margin-top: calc(29cqi * 660 / 495 * -0.74); }
.offer__band img { width: 29cqi; aspect-ratio: 495 / 660; margin-inline: -4.4cqi; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 0.8125rem; border-radius: 999px; padding: 3px 10px; }
.badge--age { left: auto; right: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
/* Age recommendation (collectible figures, +14): shop head and cart. */
.age-note { display: inline-flex; align-items: center; gap: 10px; text-align: left; font-size: 0.9375rem; color: var(--ink-2); }
.section-head .age-note { display: flex; max-width: 60ch; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 14px; }
.age-badge { flex: none; display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 1rem var(--font-display); }
.age-note--cart { display: flex; font-size: 0.875rem; }
.age-note--cart .age-badge { min-width: 2.25rem; height: 2.25rem; font-size: 0.875rem; }
.offer__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 22px; flex: 1; }
.offer h3 { font-size: clamp(1.25rem, 0.5vw + 1.05rem, 1.5rem); }
.offer__body > p:not(.price) { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.price { font: 700 1.75rem/1.1 var(--font-display); margin-top: auto; padding-top: 8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.was, .price__note { display: block; font: 700 0.8125rem var(--font-body); color: var(--muted); }
.btn--buy { min-height: 44px; padding: 8px 22px; margin-top: 6px; }
.buy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.buy .btn--buy { margin-top: 0; }
.choice { border: 0; margin: 4px 0 0; display: inline-flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.choice input:checked + label { background: var(--ink); color: var(--cream); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice--large label { padding: 8px 18px; font-size: 0.9375rem; }
.stepper { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 1.125rem; cursor: pointer; }
.stepper button:hover { background: var(--card-visual); }
.stepper input { width: 3ch; border: 0; background: transparent; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.delivery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; padding: 22px 26px; background: var(--kraft-light); border-radius: var(--radius); }
.delivery div { min-width: 0; }
.delivery dt { font: 700 1.125rem var(--font-display); }
.delivery dd { margin: 4px 0 0; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- multicolor ---------- */
.multi { padding-block: 72px; background: var(--pink); border-block: 1px solid var(--pink-line); }
.multi__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.multi__pic { margin: 0; display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.multi__pic img { width: 46%; aspect-ratio: 660 / 900; margin-inline: -2%; }
.multi__pic .caption { flex-basis: 100%; text-align: center; margin-top: 8px; }
.multi__text { display: grid; gap: 18px; }
.multi__text h2 { max-width: 20ch; }
.multi__text > p { color: var(--ink-2); max-width: 56ch; }
.goal { background: var(--surface); border: 1px solid var(--pink-line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.goal__head { display: flex; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 0.9375rem; flex-wrap: wrap; }
.goal__count { color: var(--red-text); font-variant-numeric: tabular-nums; }
.goal__bar { height: 14px; border-radius: 999px; background: var(--red-soft); overflow: hidden; border: 1px solid var(--pink-line); }
.goal__fill { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width 600ms var(--ease); }
.goal__note { font-size: 0.875rem; color: var(--muted); }
.prereserve { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: 14px; align-items: end; }
.prereserve .choice, .prereserve .check, .prereserve .btn, .prereserve .notice, .prereserve .form__help { grid-column: 1 / -1; }
.prereserve .field:not(.field--qty) { grid-column: 1; grid-row: 2; }
.prereserve .field--qty { grid-column: 2; grid-row: 2; }
.prereserve .btn, .prereserve .choice { justify-self: start; }
.mc-price { background: var(--surface); border: 1px solid var(--pink-line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.mc-price__title { font: 700 1.125rem var(--font-display); }
.mc-price__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mc-price__list div { min-width: 0; background: var(--red-soft); border-radius: 12px; padding: 10px 14px; }
.mc-price__list dt { font-weight: 800; font-size: 0.9375rem; }
.mc-price__list dd { margin: 2px 0 0; font: 700 1.75rem/1.1 var(--font-display); color: var(--red-text); font-variant-numeric: tabular-nums; }
.mc-price > p { font-size: 0.9375rem; color: var(--ink-2); }
.notice { font-size: 0.875rem; color: var(--ink-2); background: var(--surface); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--pink-line); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); transition: border-color 160ms var(--ease); }
.field textarea { resize: vertical; min-height: 92px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--kraft-deep); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.form__help { font-size: 0.875rem; color: var(--muted); min-height: 1.4em; }

/* ---------- story ---------- */
.story { padding-block: 80px; background: var(--surface); border-block: 1px solid var(--line); }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.story__pic { margin: 0; }
.story__pic img { width: 100%; filter: drop-shadow(0 14px 22px rgb(31 27 23 / 0.18)); }
.story__text { display: grid; gap: 16px; }
.story__text h2 { max-width: 22ch; margin-bottom: 4px; }
.story__text p { font-size: 1.125rem; line-height: 1.7; max-width: 62ch; color: var(--ink-2); }

/* ---------- tradition teaser ---------- */
.tradition { padding-block: 56px; background: var(--kraft-light); }
.tradition__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.tradition p { margin: 12px 0 22px; color: var(--ink-2); max-width: 46ch; }
.dates { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dates div { background: var(--surface); border-radius: var(--radius); padding: 18px; min-width: 0; }
.dates dt { font: 700 1.25rem/1.15 var(--font-display); }
.dates dd { margin: 6px 0 0; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- town proposal ---------- */
.town { padding-block: 16px 64px; }
.town__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.town__text h2 { font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.5rem); }
.town__text p { margin-top: 16px; color: var(--ink-2); }
.town__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field--wide, .btn--wide { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq { padding-block: 56px 72px; background: var(--surface); border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 20px; }
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.5rem/1 var(--font-display); color: var(--red-text); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { margin-top: 8px; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { background: var(--card-visual); padding-block: 48px 24px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand svg { width: 170px; height: auto; color: var(--ink); }
.footer__brand p { margin-top: 14px; color: var(--ink-2); max-width: 36ch; }
.footer__title { font: 700 1.0625rem var(--font-display); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9375rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.linkish:hover { text-decoration: underline; }
.placeholder { border: 1.5px dashed var(--kraft-deep); border-radius: 6px; padding: 0 6px; color: var(--muted); }
.footer__base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }

/* ---------- cart dialog ---------- */
.cart { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px -20px var(--backdrop); }
.cart::backdrop { background: var(--backdrop); }
.cart__inner { padding: 24px; display: grid; gap: 16px; }
.cart__head { display: flex; justify-content: space-between; align-items: center; }
.cart__head h2 { font-size: 1.75rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--card-visual); font-size: 1.5rem; cursor: pointer; }
.cart__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart__line { display: grid; grid-template-columns: minmax(0, 1fr) auto 5em; gap: 10px; align-items: center; font-weight: 700; }
.cart__line output { text-align: right; font-variant-numeric: tabular-nums; }
.cart__delivery { border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 16px; display: grid; gap: 8px; margin: 0; }
.cart__delivery legend { font-weight: 800; padding: 0 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; }
.radio input { accent-color: var(--green); width: 18px; height: 18px; margin-top: 3px; }
.radio label .muted { display: block; font-size: 0.875rem; }
.cart__sum { margin: 0; display: grid; gap: 4px; }
.cart__sum div { display: flex; justify-content: space-between; font-weight: 800; }
.cart__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart__vat, .cart__note { font-size: 0.875rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 75rem) {
  .nav__menu ul { gap: 14px; font-size: 0.9375rem; }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coll-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .coll-card--live { grid-column: 1 / -1; }
}
@media (max-width: 64rem) {
  .nav__menu { display: none; }
  .nav__row { justify-content: space-between; min-height: 68px; }
  .nav__brand { border-right: 0; padding-right: 0; }
  .nav__brand svg { height: 38px; }
  .hero__grid, .coll-hero__grid, .paint__grid, .multi__grid, .story__grid, .tradition__grid, .town__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1, .coll-hero h1 { max-width: 16ch; }
  .story__pic { max-width: 420px; }
  .compare { max-width: 440px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  /* Sequence: stage pinned on top, steps scroll underneath. */
  .making__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .making__stage { top: 68px; height: 44vh; z-index: 1; background: var(--surface); padding-bottom: 8px; }
  .making__steps li, .making__steps li:first-child, .making__steps li:last-child { min-height: 52vh; }
  .offers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; }
  .hero__figs { --hero-fig: calc((100% - 8px) / 2.75); }
  /* cqi = the panel content box; a % here would resolve against each figure, not the panel. */
  .duo__figs { container-type: inline-size; --duo-fig: calc((100cqi - 12px) / 2); padding-right: 44px; }
  .actions .btn { width: 100%; }
  .coll-grid { grid-template-columns: minmax(0, 1fr); }
  .paint__steps { grid-template-columns: minmax(0, 1fr); }
  .delivery, .dates { grid-template-columns: minmax(0, 1fr); }
  .prereserve { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .town__form { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .faq__list { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Delivery prices (owner decision 2026-11-20) and cart totals. */
.delivery__fee { display: block; font: 700 1.375rem/1.2 var(--font-display); color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.delivery__more { margin-top: 12px; }
.cart__total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-size: 1.125rem; }
.cart__free { font-size: 0.9375rem; font-weight: 700; color: var(--green-deep); }

/* Reis promise (owner decision 2026-11-20): orders before 15 December arrive in time.
   Hidden by app.js from the cut-off date (catalog.js -> delivery.reisOrderBefore). */
.reis-note { margin-top: 18px; display: inline-block; max-width: 100%; padding: 8px 16px; border-radius: 18px; background: var(--red-soft); border: 1px solid var(--pink-line); color: var(--ink); font-size: 0.9375rem; }
.reis-note strong { color: var(--red-text); }
[data-reis][hidden] { display: none; }

/* Third collection slot: an open invitation to propose a town (links to the form). */
.coll-card--propose { background: var(--pink); border-color: var(--pink-line); }
.coll-card--propose .coll-card__pic { background: var(--red-soft); }
.coll-card--propose .coll-card__pic img { width: 140px; height: auto; }
.coll-card--propose .coll-card__state { background: var(--surface); }

/* ---------- language switcher (generated by tools/build_site.mjs) ---------- */
.langs { display: flex; gap: 2px; flex: none; }
.langs a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; text-decoration: none; color: var(--ink-2); }
.langs a:hover { background: var(--card-visual); color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.langs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 64rem) {
  .langs { margin-left: auto; }
}
@media (max-width: 22rem) {
  .langs a { min-width: 34px; padding: 0 4px; }
}
