/* Weerspiegel's page */
/* Basic reset */
html,
body {
  margin: 0;
}
/* links to a part of the page (like "Find your day" → #builder) glide there instead of jumping */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
img {
  max-width: 100%;
}

/* Look: "Soft sky" — pale blue paper, soft navy ink, light sky-blue + sun-yellow as the two signal colours. */
:root {
  --paper: #eef6fc; /* page background: pale morning sky */
  --card: #ffffff; /* surfaces */
  --ink: #1e3a5f; /* text: soft navy */
  --muted: #5b7390; /* secondary text */
  --line: #d6e6f2; /* hairlines */
  --sun: #ffc93c; /* accent 1 */
  --rain: #4a9fe8; /* accent 2 (light sky blue) */
  --warm: #f2602f; /* hot temperatures, badges */
  --soft: #e1eef8; /* chips, subtle fills */
  --msg-info: #e8f2fc; /* (was #DCEBFA) message boxes: light blue fill (info) */
  --msg-alert: #fdede9; /* (was #FBE3DD) message boxes: light red fill (problems) */
  --msg-note: #fff6da; /* (was #FFF0C2) message boxes: light yellow fill (heads-up: you can go on, good to know) */
  --shadow: 0 1px 2px rgba(30, 58, 95, 0.06), 0 8px 24px rgba(30, 58, 95, 0.08);

  --f-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Instrument Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  color-scheme: light; /* light mode only: form fields and scrollbars stay light too */
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  background: var(--paper); /* pale sky page; white cards sit on top */
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--ink);
  text-decoration-color: var(--rain);
  text-decoration-thickness: 2px;
} /* light blue is too pale for text, so links use ink with a blue underline */
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--rain);
  outline-offset: 2px;
  border-radius: 6px;
}
.mono {
  font-family: var(--f-mono);
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.jump {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s;
}
.pill-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.pill-btn:active {
  transform: scale(0.95);
}
.pill-btn.solid {
  background: var(--ink);
  color: var(--paper);
}
.pill-btn.solid:hover {
  background: var(--ink);
  color: var(--paper);
} /* keeps its colours on hover */

.note {
  font-size: 13px;
  color: var(--muted);
}
.field-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
} /* small help text under a form field */
.field-note + .field-note {
  margin-top: 2px;
} /* two notes in a row sit close together */

/* ---------------- SITE ---------------- */
/* --gut = side space. On wide screens it grows so content stays max 1180px wide. */
.site {
  --gut: max(clamp(16px, 4vw, 48px), calc(50% - 590px), env(safe-area-inset-left, 0px));
}
/* Weerspiegel's stall header */
.stallbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gut);
  border-bottom: 1px solid var(--line);
}
.stallbar .logo {
  font-size: 20px;
}
.stallbar .logo svg {
  width: 24px;
  height: 24px;
}
/* the language switch and the sound toggle (i18n.js, sounds.js): small, quiet, 40px tap targets */
.head-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.langs {
  font-family: var(--f-mono);
  font-size: 12px;
  display: flex;
  gap: 2px;
}
.langs button {
  min-width: 36px;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.langs button[aria-pressed='true'] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.langs button:hover {
  color: var(--ink);
}
.sound-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.sound-btn:hover {
  color: var(--ink);
  background: var(--soft);
}
.sound-btn svg {
  width: 20px;
  height: 20px;
  grid-area: 1 / 1;
}
.sound-btn[aria-pressed='false'] .on,
.sound-btn[aria-pressed='true'] .off,
.sound-btn:not([aria-pressed]) .off {
  display: none;
}
.logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg {
  width: 28px;
  height: 28px;
  transition: transform 0.6s cubic-bezier(0.5, 1.8, 0.5, 1);
}
.logo:hover svg {
  transform: rotate(180deg);
}
.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.cart-btn {
  position: relative;
  border: 0;
  background: var(--soft);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.cart-btn svg {
  width: 18px;
  height: 18px;
}
.badge {
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--warm);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-family: var(--f-mono);
}
.badge.bump {
  animation: bump 0.5s cubic-bezier(0.3, 1.8, 0.5, 1);
}
@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 48px var(--gut) 40px;
  align-items: center;
  overflow: hidden;
}
.hero h2 {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h2 .ltr {
  display: inline-block;
  transition:
    transform 0.25s cubic-bezier(0.3, 1.8, 0.5, 1),
    color 0.2s;
}
.hero h2 .ltr:hover {
  transform: translateY(-8px) rotate(-6deg);
  color: var(--rain);
}
.hero h2 .word {
  display: inline-block;
  white-space: nowrap;
}
.hero .sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin-top: 18px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
/* hero text spacing: kicker, headline, intro, price, button */
.hero-copy .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.hero-copy h2 {
  margin-bottom: 24px;
}
.hero-copy .sub {
  margin: 0 0 32px;
  line-height: 1.6;
}
.price-line {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.price-line b {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  margin-right: 6px;
} /* bigger price */
.hero-copy .hero-cta {
  margin-top: 0;
}
.hero-art {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  cursor: pointer;
}
/* Hero mockup: a 15 × 15 cm tile standing in a wooden block, like the product photo.
   The print fills the whole tile (printable area = 150 × 150 mm), so there is no white rim.
   Sizes are in % so the scene scales with the hero width. */
.tile-scene {
  position: relative;
  padding-bottom: 7%;
  perspective: 1400px;
}
/* soft shadow on the "counter" under the stand */
.tile-scene::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -2%;
  height: 6%;
  background: radial-gradient(closest-side, rgba(30, 58, 95, 0.28), transparent);
  z-index: 0;
}
.hero-tile {
  position: relative;
  z-index: 1;
  width: 86%;
  margin: 0 auto;
  border-radius: 3px;
  /* right + bottom edge of the tile (about 7 mm thick), then a shadow on the wall behind */
  box-shadow:
    2px 2px 0 #e4e8ec,
    4px 4px 0 #cdd4db,
    18px 14px 34px rgba(30, 58, 95, 0.18);
  transform: rotateY(-7deg) rotateX(2deg);
  transform-origin: 50% 100%;
  transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.tile-face {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.1);
}
/* wooden block stand in front of the tile's bottom edge: a plain pale beech block
   with sharp corners, like the product photo (wide and low, grain running sideways) */
.tile-stand {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 58%;
  aspect-ratio: 3.75 / 1; /* width ÷ height: change both together to keep the same height */
  transform: translateX(-50%);
  border-radius: 2px; /* faces the viewer straight on */
  background:
    repeating-linear-gradient(179deg, rgba(150, 98, 52, 0.07) 0 1px, transparent 1px 6px),
    /* wood grain */ linear-gradient(180deg, #efd5b2 0%, #e8c9a0 55%, #ddba8e 100%); /* pale beech */
  /* darker bottom edge, then a shadow on the table */
  box-shadow:
    inset 0 -2px 0 rgba(120, 78, 40, 0.1),
    0 8px 14px -6px rgba(80, 52, 26, 0.4);
}
/* glaze: a soft diagonal shine that slides a little on hover */
.tile-face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 32%,
    rgba(255, 255, 255, 0) 48%,
    rgba(30, 58, 95, 0.06) 100%
  );
  background-size: 200% 200%;
  background-position: 20% 20%;
  transition: background-position 0.6s ease;
}
.hero-art:hover .tile-face::after {
  background-position: 0% 0%;
}
.hero-art canvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  transition: opacity 0.35s;
}
/* small label under the tile, like a shop tag */
.tile-tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 26px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}
.tile-tag b {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--ink);
}
.tile-tag span:last-child {
  flex-basis: 100%;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* raindrops spawned by clicking the hero */
.drop {
  position: absolute;
  width: 6px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--rain);
  pointer-events: none;
  animation: fall 0.9s cubic-bezier(0.5, 0, 1, 1) forwards;
}
@keyframes fall {
  to {
    transform: translateY(160px);
    opacity: 0;
  }
}
.splash {
  position: absolute;
  width: 24px;
  height: 8px;
  border: 2px solid var(--rain);
  border-radius: 50%;
  pointer-events: none;
  animation: splash 0.5s ease-out forwards;
}
@keyframes splash {
  from {
    transform: scale(0.2);
    opacity: 1;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* steps strip */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px var(--gut) 40px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  background: var(--soft);
  transition: transform 0.2s;
}
.step:hover {
  transform: translateY(-3px);
}
.step .num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--rain);
}
.step h4 {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
}
.step p {
  font-size: 14px;
  color: var(--muted);
}

/* builder */
.builder {
  padding: 40px var(--gut);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 48px;
}
.builder-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.builder-head h3 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.b-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.controls {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.field {
  display: grid;
  gap: 6px;
}
.field label,
.field .lab {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--card);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
/* caption field with a ✕ on the right that clears it (room for it inside the field) */
.input-clear-wrap {
  position: relative;
}
.input-clear-wrap input {
  padding-right: 40px;
}
.input-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.input-clear[hidden] {
  display: none;
}
.input-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.input-clear:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.input-clear:focus-visible {
  opacity: 1;
  outline: 2px solid var(--sun);
  outline-offset: 1px;
}
.ed-dark .input-clear {
  color: var(--paper);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--rain);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rain) 20%, transparent);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition:
    transform 0.12s,
    border-color 0.2s,
    background 0.2s;
}
.chip:hover {
  border-color: var(--ink);
}
.chip:active {
  transform: scale(0.92);
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.swatch {
  display: inline-flex;
}
/* the palettes side by side, each its name under its colours, so three fit in a phone's row */
#paletteChips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
#paletteChips .chip {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  line-height: 1.2;
  text-align: center;
}
#paletteChips .swatch i {
  width: 14px;
  height: 16px;
}
.swatch i {
  width: 10px;
  height: 14px;
  display: block;
}
.swatch i:first-child {
  border-radius: 3px 0 0 3px;
}
.swatch i:last-child {
  border-radius: 0 3px 3px 0;
}
.dice {
  border: 0;
  background: var(--sun);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s;
}
.dice:hover svg {
  animation: cal-wiggle 0.6s ease;
} /* the calendar gives a little wiggle on hover */
.dice:active {
  transform: scale(0.95);
}
@keyframes roll {
  to {
    transform: rotate(360deg);
  }
} /* still used by the loading sun */
@keyframes cal-wiggle {
  25% {
    transform: rotate(-12deg) scale(1.1);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.stage-wrap {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.seg {
  display: inline-flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  position: relative;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.seg button[aria-pressed='true'] {
  color: var(--paper);
}
.seg .knob {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: var(--ink);
  transition:
    left 0.3s cubic-bezier(0.3, 1.4, 0.5, 1),
    width 0.3s;
}
.stage {
  position: relative;
  background: var(--soft);
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  min-height: 280px;
  overflow: hidden;
}
.stage {
  padding-bottom: 44px;
} /* room for the hint line under the pattern */
/* hint centred at the bottom of the preview; only shown in the Pattern view */
.stage-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 11px;
  pointer-events: none;
}
.stage canvas {
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: block;
  border-radius: 4px;
  background: #fff; /* the pattern is transparent: show it on white, like the tile */
  box-shadow: var(--shadow);
  cursor: crosshair;
  touch-action: auto; /* the page can scroll over the pattern on phones */
}
.stage .big-product {
  width: min(100%, 520px);
  aspect-ratio: 1;
}
.stage .big-product svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* big tile: the same tile-on-stand mockup as the hero */
.stage .big-product.tile {
  display: grid;
  place-items: center;
  aspect-ratio: auto; /* as high as the tile and its stand, not a square around them */
}
/* tile + stand in "On product": the tile as wide as the preview, its stand in the same proportion to it as the
   hero's (58% of 86%) */
.big-tile {
  width: 100%;
}
.big-tile .tile-stand {
  width: 67.4%;
}
/* editor: the tile faces the viewer straight on, like its stand.
   Its edge is an even thin rim (no right/bottom side showing, which would look turned),
   with the shadow falling straight down. */
.big-tile .hero-tile {
  width: 100%;
  transform: none;
  box-shadow:
    0 0 0 1px #dde3e9,
    0 16px 30px rgba(30, 58, 95, 0.18);
}
.big-tile .tile-face img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
}
.stage .big-product.mug svg,
.stage .big-product .mug-canvas {
  cursor: grab;
  touch-action: none;
}
.stage .big-product.mug svg:active,
.stage .big-product .mug-canvas:active {
  cursor: grabbing;
}
.drag-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--f-mono);
  background: var(--card);
  padding: 4px 10px;
  border-radius: 999px;
}
/* Hover card on the pattern: one hour of weather in friendly words (filled by hourCard() in script.js) */
.tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  width: max-content;
  max-width: 220px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.35;
  transform: translate(-50%, calc(-100% - 16px)) scale(0.96);
  transform-origin: 50% 100%;
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.tip.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 16px));
}
.tip-time {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tip-main {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
}
.tip-ico {
  font-size: 18px;
  line-height: 1;
}
.tip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.tip-row span {
  color: var(--muted);
}
.tip-say {
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
  .tip,
  .tip.show {
    transition: none;
    transform: translate(-50%, calc(-100% - 16px));
  }
}
.forecast-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sun);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.readouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.readout-group {
  display: grid;
  gap: 6px;
} /* label + readouts stay close together */
.ro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}
.ro .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ro .v {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.ro .v small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.pick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 2px 8px;
} /* 4 products, they always fit: no scroll bar */
.pick {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 8px 8px 10px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  text-align: left;
  transition:
    transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1),
    border-color 0.2s;
}
.pick:hover {
  transform: translateY(-4px) rotate(-1.5deg);
}
.pick[aria-pressed='true'] {
  border-color: var(--rain);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rain) 25%, transparent);
}
.pick svg {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background: var(--soft);
  border-radius: 10px;
}
.pick b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.pick span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}

.buy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px 14px 20px;
  border-radius: 16px;
}
.buy-bar .what {
  display: grid;
  min-width: 0;
}
.buy-bar .what b {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
}
.buy-bar .what span {
  font-family: var(--f-mono);
  font-size: 12px;
  opacity: 0.75;
}
.add-btn {
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: transform 0.15s;
}
.add-btn:hover {
  transform: translateY(-2px);
}
.add-btn:active {
  transform: scale(0.94);
}
.add-btn .price {
  font-family: var(--f-mono);
}

/* info sections: "How the weather draws it" and "The tile" */
.info {
  padding: 56px var(--gut) 110px;
  border-top: 1px solid var(--line);
}
.info .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.sec-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}
.info-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.rule {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.rule:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.12);
}
.rule b {
  display: block;
  font-family: var(--f-display);
  font-size: 17px;
  margin-bottom: 4px;
}
.rule p {
  font-size: 14px;
  color: var(--muted);
}
/* each colour strip acts out its weather on hover */
.rule .sw {
  display: block;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.t-temp .sw {
  background: linear-gradient(90deg, #3f7fd9, #5cc6c1, #f2d649, #ff9a3c, #e8433a, #3f7fd9);
  background-size: 200% 100%;
  transition: background-position 1s ease;
}
.t-temp:hover .sw {
  background-position: 100% 0;
}
.t-rain .sw {
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 16px);
}
.t-rain:hover .sw {
  animation: march 0.5s linear infinite;
}
@keyframes march {
  to {
    background-position: 16px 0;
  }
}
.t-wind .sw {
  background: var(--rain);
  transform-origin: left;
}
.t-wind:hover .sw {
  animation: gust 0.45s ease-in-out infinite alternate;
}
@keyframes gust {
  to {
    transform: scaleX(0.8) skewX(-14deg);
  }
}
.t-day .sw {
  background: linear-gradient(90deg, var(--line), var(--sun), var(--line));
  background-size: 300% 100%;
}
.t-day:hover .sw {
  animation: daylight 1.6s ease-in-out infinite alternate;
}
@keyframes daylight {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}
.t-sun .sw {
  background: var(--sun);
}
.t-sun:hover .sw {
  animation: glow 0.9s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    box-shadow: 0 0 14px var(--sun);
  }
}
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.facts li {
  padding-left: 22px;
  position: relative;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.tile-example {
  position: relative;
  width: min(320px, 100%);
  justify-self: center;
  padding-top: 28px;
}
.tile-example canvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
}
.tile-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
} /* product photo in "The tile" */
.note-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
}

/* micro interactions: sections slide up the first time they scroll into view
   (the class is added by script.js, so without JS everything just shows) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.pill-btn .arr {
  display: inline-block;
}
.pill-btn:hover .arr {
  animation: nudge 0.8s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateY(4px);
  }
}

.site-foot {
  padding: 24px var(--gut);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* dark layer behind the pop-up */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 24, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 40;
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
} /* pop-up title row */
.drawer-head h3 {
  font-size: 26px;
  font-weight: 800;
}
.x-btn {
  border: 0;
  background: var(--soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.3s;
}
.x-btn:hover {
  transform: rotate(90deg);
}

/* pop-up (modal) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}
.modal.on {
  pointer-events: auto;
}
/* while the pop-up is open the page behind it doesn't scroll (class set in openAdded()) */
html.modal-open {
  overflow: hidden;
}
html.modal-open body {
  padding-right: var(--scrollbar, 0px);
} /* fills the gap the hidden scrollbar leaves */
.modal .sheet {
  width: min(760px, 100%);
  max-height: calc(100% - 32px);
  overflow-y: auto;
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.3, 1.3, 0.5, 1);
  box-shadow: var(--shadow);
}
.modal.on .sheet {
  opacity: 1;
  transform: none;
}

/* responsive */
@media (max-width: 980px) {
  .b-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .info-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .readouts {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
  .cart-btn {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- LIVE SITE ADDITIONS ---------------- */

/* nav stays at the top while scrolling */

/* place search with results dropdown */
.place-field {
  position: relative;
}
.place-results {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 2px;
  animation: dropIn 0.2s ease-out;
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.pr-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
}
.pr-item:hover,
.pr-item:focus-visible {
  background: var(--soft);
}
.pr-item b {
  font-weight: 600;
}
.pr-item span {
  font-size: 13px;
  color: var(--muted);
}
/* "No town found": the dropdown loses its white card, only the message box shows (its light red fill still covers what is under it) */
.place-results.empty {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  top: 80px;
}
.place-results .upcoming-box {
  margin: 0;
}
.chip.small {
  padding: 5px 10px;
  font-size: 13px;
}

/* "asking the sky" loading state */
.stage.loading canvas,
.stage.loading .big-product {
  opacity: 0.35;
  filter: blur(2px);
  transition:
    opacity 0.2s,
    filter 0.2s;
}
.loading-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
}
.loading-msg svg {
  width: 20px;
  height: 20px;
  animation: roll 1.4s linear infinite;
}
.add-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* where the weather data came from */

/* Editor in three steps (Day → Look → Order), preview on the left. The form takes a little under half the box (at
   most 490px), still wide enough for its fields two by two (380px holds the 370px pairs below) and, from a 1280px
   window, for the styles on one line (the palettes share their row in three at any width); the preview takes the
   rest. */
.ed-layout {
  grid-template-columns: minmax(0, 1fr) clamp(380px, 44%, 490px);
  column-gap: 40px;
}
.ed-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 22px;
  align-content: start;
  min-width: 0;
  container-type: inline-size; /* its fields go side by side by its own width (.ed-pair, .row-field) */
}
.ed-step {
  display: grid;
  gap: 16px;
}
/* the look's two rows of chips get more air between them, the step's heading keeps the usual gap */
#step2 .row-field + .row-field {
  margin-top: 8px;
}
/* two fields in one row (Place | Date) once the form is wide enough for both */
.ed-pair {
  display: grid;
  gap: 16px;
  align-items: start;
}
/* Each layout goes side by side by what its own content needs: halves of 180px hold a town and a date, so a small
   laptop's form (about 400px at 1024px) pairs them too. */
@container (min-width: 370px) {
  .ed-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Style and Palette: the label in front of its chips, on the line of their first row when they wrap */
  .row-field {
    grid-template-columns: 72px minmax(0, 1fr); /* the longest label (Kleuren, Palette) is 65px */
    align-items: baseline;
    column-gap: 12px;
  }
}
.ed-panel .pick-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
} /* narrow panel: 2 products per row */
@media (max-width: 980px) {
  .ed-layout {
    grid-template-columns: 1fr;
  } /* preview on top, steps below */
}
/* the Pattern / On product switch sits at the top of the blue preview box */
.stage .seg {
  justify-self: center;
  margin-bottom: 16px;
  background: var(--card);
}
/* in the middle of the pattern: the pill takes the pattern's grid cell (row 2, under the switch) as its frame */
.stage .forecast-flag {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
  top: 50%; /* both lines needed: without an end line the frame runs into the padding */
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 64px);
  text-align: center;
} /* one line when it fits, else two centred lines */
/* Message boxes (25 Nov 2026, Sojung picked idea C): every message in the editor looks the same:
   no outline (removed 25 Nov 2026), a speech-bubble point at the top (pointing up at the field or button it belongs to),
   the icon + bold title on one line, and the text under it; filled light blue (info) or light red (problems).
   Info (Surprise me story, Upcoming day, Weather still coming in) = light blue; heads-up (.note-msg: Upcoming day, Weather still coming in) = light yellow; problems (.editor-msg, No town found) = light red. */
.upcoming-box {
  --box: var(--msg-info);
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: start;
  margin-top: 14px;
  padding: 13px 16px 14px;
  background: var(--box);
  color: var(--ink); /* top 13px, sides 16px, bottom 14px (were 10 / 12 / 10px) */
  border-radius: 12px;
  animation: msg-in 0.35s ease-out;
}
.upcoming-box.editor-msg {
  --box: var(--msg-alert);
}
.upcoming-box.note-msg {
  --box: var(--msg-note);
} /* heads-up: Upcoming day, Weather still coming in */ /* the fill (--box) also fills the speech-bubble point */
.ed-dark .upcoming-box {
  color: var(--ink);
} /* navy text on the light fill, also in the navy editor */
/* the speech-bubble point: a small turned square in the box's fill, half sticking out above the top edge */
.upcoming-box::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 21px;
  width: 14px;
  height: 14px; /* 14px (tried 12 and 16px) */
  background: var(--box);
  transform: rotate(45deg);
}
/* the title: icon + bold text, no pill (removed 25 Nov 2026), lined up on the left with the text under it */
.upcoming-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  position: relative;
  top: 1px; /* the text 1px down... */
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
} /* 15px (was 14px) */
.upcoming-note svg {
  width: 18px;
  height: 18px;
  flex: none;
  position: relative;
  top: -1px;
} /* ...and the icon back up, so only the text moves: it sits a bit high in its line */
.future-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
} /* 13px (was 14px) */
/* message under "Surprise me": which random day was picked */
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
/* big mug drawn on a canvas (see drawMug in script.js) */
.stage .big-product .mug-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
/* Back / Next buttons at the bottom of a step */
.step-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.back-btn {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.15s;
}
.back-btn:hover {
  border-color: var(--ink);
  transform: translateX(-3px);
}

/* Pop-up after "Add to cart" */
.modal .added-sheet {
  width: min(740px, 100%);
} /* wide enough for the 6 product cards in one row */
.added-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 14px 10px 10px;
}
.added-item svg {
  width: 64px;
  height: 64px;
  display: block;
  background: var(--card);
  border-radius: 8px;
}
.added-item b {
  display: block;
  font-family: var(--f-display);
  font-size: 17px;
}
.added-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.added-item .mono {
  color: var(--ink);
  font-size: 14px;
}
.more h4 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
}
.more .note {
  margin: 2px 0 12px;
}
/* The product cards: a slider. 4 cards show at a time (phones: 2 and a bit, below); swipe, scroll sideways or use
   the round arrows over the left and right edge. Each step snaps to a card. */
.more-slider {
  position: relative;
}
.more-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 10px) / 4);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 6px 0 10px;
  scroll-behavior: smooth;
} /* a little room so a card can pop without being cut off */
.more-grid::-webkit-scrollbar {
  display: none;
}
.more-grid > .more-pick {
  scroll-snap-align: start;
  grid-template-rows: auto auto auto 1fr auto; /* the "+ Add" buttons in one line, a card with safety words or not */
}
.more-pick .add-label {
  grid-row: 5; /* the last row on every card: a card without safety words has no empty row (and gap) under it */
  align-self: end;
}
.more-warn {
  align-self: start;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--muted);
}
.slide-arrow {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(20, 33, 58, 0.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.slide-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slide-arrow.prev {
  left: -14px;
}
.slide-arrow.next {
  right: -14px;
}
.slide-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}
.slide-arrow:focus-visible {
  outline: 2px solid var(--rain);
  outline-offset: 2px;
}
.slide-arrow[hidden] {
  display: grid;
  opacity: 0;
  pointer-events: none;
} /* at the start / end: fades out */
@media (prefers-reduced-motion: reduce) {
  .more-grid {
    scroll-behavior: auto;
  }
  .slide-arrow,
  .slide-arrow:hover {
    transition: none;
    transform: translateY(-50%);
  }
}
/* the card is a plain box (no hover tilt); its picture opens the preview, "+ Add" is the button */
.more-pick {
  cursor: default;
}
.more-pick:hover {
  transform: none;
}
/* the picture, with a round magnifier button in its bottom-right corner: a click anywhere on it opens the
   full-screen preview */
.more-thumb {
  position: relative;
  cursor: zoom-in;
}
.more-pick .zoom-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 33, 58, 0.25);
  transition: transform 0.15s;
}
.more-pick .zoom-btn svg {
  width: 16px;
  height: 16px;
  aspect-ratio: auto;
  background: none;
  border-radius: 0;
}
.more-pick .zoom-btn:hover {
  transform: scale(1.12);
}
.more-pick .zoom-btn:focus-visible {
  outline: 2px solid var(--rain);
  outline-offset: 2px;
}
/* "+ Add": a small pill button across the card, blue outline; filled blue on hover */
.more-pick .add-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  padding: 6px 10px;
  border: 1.5px solid var(--rain);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  color: var(--rain);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.more-pick .add-label span {
  font: inherit;
  color: inherit;
} /* not the small grey mono of other card text */
@media (hover: hover) {
  /* only with a mouse (on phones a tap would leave it blue) */
  .more-pick .add-label:not(.no-hover):hover {
    background: var(--rain);
    color: #fff;
  }
}
.more-pick .add-label:focus-visible {
  outline: 2px solid var(--rain);
  outline-offset: 2px;
}
/* "✓ Added" (pressed): soft and quiet; click it again to take the product out */
.more-pick .add-label[aria-pressed='true'] {
  background: var(--soft);
  border-color: transparent;
  color: var(--ink);
}
@media (hover: hover) {
  .more-pick .add-label[aria-pressed='true']:hover {
    background: var(--line);
    color: var(--ink);
  }
}
.more-pick.added {
  border-color: var(--rain);
}
.added-actions {
  justify-content: flex-end;
}
.added-actions #keepBtn {
  margin-right: auto;
} /* "Go back to design" on the left, "Add to cart" stays on the right */
@media (max-width: 520px) {
  /* phones: 2 cards and a bit (the next one peeks in at the edge), the slider runs to the pop-up's edges */
  .more-grid {
    grid-auto-columns: 42%;
    margin-inline: -24px;
    padding: 6px 24px 10px;
    scroll-padding-inline: 24px;
  }
  .slide-arrow {
    width: 32px;
    height: 32px;
  }
  .slide-arrow.prev {
    left: -8px;
  }
  .slide-arrow.next {
    right: -8px;
  }
  .added-actions {
    justify-content: stretch;
  }
  .added-actions button {
    flex: 1;
    justify-content: center;
  }
}

/* Editor ("ed-flat" on .ed-panel): all sections show at once, each with a numbered title */
.ed-flat .ed-step::before {
  content: attr(data-title);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: -2px;
}
.ed-flat .ed-step + .ed-step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
/* the form is long without steps: keep the preview in view while scrolling (wide screens only). The tile "On
   product" keeps a thin edge of its box on either side, so the stage's clipping doesn't cut its 1px rim */
@media (min-width: 981px) {
  .ed-layout:has(.ed-flat) .stage-wrap {
    position: sticky;
    top: 16px;
  }
  .ed-layout:has(.ed-flat) .stage .big-product.tile {
    width: min(100% - 28px, 520px);
  }
}
/* Phones and tablets (preview above the form): the preview sticks to the top of the screen, smaller,
   so it stays in view while the form scrolls underneath. The navy background hides the form behind it. */
@media (max-width: 980px) {
  .ed-layout:has(.ed-flat) .stage-wrap {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--ink);
    margin: 0 calc(clamp(16px, 3vw, 32px) * -1); /* full width of the navy box (its padding) */
    padding: 14px clamp(16px, 3vw, 32px) 10px; /* air above the Pattern / On product switch */
    box-shadow: 0 10px 14px -10px rgba(0, 0, 0, 0.45); /* a soft edge where the form slides under */
  }
  .ed-layout:has(.ed-flat) .stage {
    min-height: 0;
    padding: 0;
  }
  .ed-layout:has(.ed-flat) .stage .seg {
    margin-bottom: 14px; /* and under it */
  }
  /* the pattern (or product) about 30% of the screen high */
  .ed-layout:has(.ed-flat) .stage canvas,
  .ed-layout:has(.ed-flat) .stage .big-product {
    width: min(100%, 30vh, 520px);
    width: min(100%, 30svh, 520px);
  }
  /* a field the browser scrolls to (tapping it, the keyboard opening) stays clear of the sticky preview */
  .ed-panel input,
  .ed-panel button,
  .ed-panel .chips {
    scroll-margin-top: calc(30svh + 102px); /* the preview with its switch, paddings and shadow */
  }
}
/* hero tile without the wooden stand: less room needed underneath */
.tile-scene.no-stand {
  padding-bottom: 3%;
}

/* weather of the day: one small line under the preview */
.weather-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}
.weather-line .k {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.weather-line .v {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.weather-line .v small {
  font-size: inherit;
  font-weight: 400;
  color: var(--ink);
}

/* Summary: plain text (no box) and one big "Add to cart" button */
.summary-box {
  display: grid;
  gap: 14px;
}
.summary-box .what {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
} /* the product's name and its place · date on one line, wrapping only when they don't fit */
.summary-box .what b {
  font-family: var(--f-display);
  font-size: 17px; /* a line under the step's own title (22px), not a second title */
  font-weight: 600;
}
.summary-box .what span {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}
.cta-btn {
  width: 100%;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(30, 58, 95, 0.28);
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.34);
  background: #16304f;
}
.buy-note {
  font-size: 12px;
  white-space: nowrap;
  justify-self: end;
  margin: -6px 0 0;
} /* small line under the options */
/* 1 tile / 2 tiles with a round "radio" dot: one under the other, full width */
.qty-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qty-opt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 52px;
  text-align: left; /* same height for both rows */
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.qty-opt::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.5;
}
.qty-opt b {
  font-weight: 700;
  font-size: 15px;
}
/* the second option: its − n + lies over the button, in the room .qty-room keeps after the dot, so more than two
   tiles can be picked right there */
.qty-more {
  display: grid;
}
.qty-more > * {
  grid-area: 1 / 1;
}
.qty-more .qty {
  align-self: start; /* on the first row, where .qty-room is, also when the price wraps under it */
  justify-self: start;
  margin: 10px 0 0 40px; /* centred on the 52px button (32px high); left: its 14px padding, 16px dot and 10px gap */
}
.qty-room {
  width: 85px; /* the − n +'s width: two 30px buttons, the 22px count and its border */
  height: 25px; /* the 52px button's content height, so its first row stays centred under the − n + */
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
} /* read out, not shown */
.qty-more .qty-opt b {
  margin-left: -4px;
}
/* "You saved €4!" pill under the options, on the right (light yellow, like the pop-up label, so the yellow sun shows) */
.save-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--sun) 35%, var(--paper));
  padding: 3px 10px;
  border-radius: 999px;
  justify-self: end;
  margin: -4px 0 0;
}
.save-note.off {
  display: none;
} /* not shown and takes no space while 1 tile is picked */
.save-note .yay {
  width: 16px;
  height: 16px;
  flex: none;
}
.save-note.bounce {
  animation: save-bounce 0.6s cubic-bezier(0.3, 1.7, 0.5, 1);
  transform-origin: right center;
}
.save-note.bounce .yay {
  animation: yay-spin 0.8s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@media (prefers-reduced-motion: reduce) {
  .save-note.bounce,
  .save-note.bounce .yay {
    animation: none;
  }
}
.btn-price::before {
  content: '·';
  margin-right: 10px;
} /* "Put it on a tile · €29,95" (10px = the button's gap, so the dot sits in the middle) */
.opt-price {
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
} /* price on the right of each option */
.opt-price s {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.6;
  margin-right: 4px;
} /* original price, struck through */
.qty-opt[aria-pressed='true'] {
  border-color: var(--rain);
}
.qty-opt[aria-pressed='true']::before {
  opacity: 1;
  border-color: var(--rain);
  background: radial-gradient(circle, var(--rain) 0 40%, transparent 45%);
}
.ed-dark .qty-opt {
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--paper);
}
.ed-dark .qty-opt:hover {
  border-color: var(--on-ink);
}
.ed-dark .qty-opt[aria-pressed='true'] {
  border-color: var(--sun);
  background: color-mix(in srgb, var(--sun) 12%, transparent);
}
.ed-dark .qty-opt[aria-pressed='true']::before {
  border-color: var(--sun);
  background: radial-gradient(circle, var(--sun) 0 40%, transparent 45%);
}
/* price on its own, to the right of the product name */
.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
/* quantity − 1 + */
.qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.qty-row .lab {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.qty button {
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  border-radius: 50%;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.qty button:hover:not(:disabled) {
  background: var(--soft);
}
.qty button:disabled {
  color: var(--line);
  cursor: default;
}
.qty output {
  min-width: 28px;
  text-align: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ================= FUN STYLE ================= */

/* Hero sky: the background follows the weather of the example day (paintSky in script.js).
   @property lets the browser fade smoothly from one sky to the next. */
@property --sky1 {
  syntax: '<color>';
  inherits: true;
  initial-value: #cfe6fa;
}
@property --sky2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #f4faff;
}
:root {
  transition:
    --sky1 1.4s ease,
    --sky2 1.4s ease;
} /* the sky fades to the next colour */
.sky-hero {
  background: linear-gradient(180deg, var(--sky1), var(--sky2));
}

/* Cloud bands: white sections with a bumpy cloud edge on top and bottom */
:root {
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 22'%3E%3Cpath d='M0 22V14a20 14 0 0 1 40 0a20 14 0 0 1 40 0v8z'/%3E%3C/svg%3E");
}
.band {
  position: relative;
  background: var(--card);
  border-top: 0;
}
.band::before,
.band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: var(--card);
  pointer-events: none;
  -webkit-mask: var(--cloud) 0 0 / 80px 22px repeat-x;
  mask: var(--cloud) 0 0 / 80px 22px repeat-x;
}
.band::before {
  top: -21px;
}
.band::after {
  bottom: -21px;
  transform: scaleY(-1);
}
.band + section,
.band + .site-foot {
  border-top: 0;
  padding-top: 64px;
} /* room for the bumps */

/* Dark editor box: navy with light text. Same layout (preview left, form right). */
.ed-dark {
  --on-ink: rgba(238, 246, 252, 0.72);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.2);
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(16px, 3vw, 32px);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.28);
}
.ed-dark .stage {
  background: var(--glass);
}
.ed-dark .stage-hint {
  color: var(--on-ink);
}
.ed-dark .weather-line {
  color: var(--on-ink);
}
.ed-dark .weather-line .v,
.ed-dark .weather-line .v small {
  color: var(--paper);
}
.ed-dark .ed-panel {
  background: transparent;
  border: 0;
  padding: 0;
}
.ed-dark .ed-step + .ed-step {
  border-top-color: var(--glass-line);
}
.ed-dark .field label,
.ed-dark .field .lab,
.ed-dark .qty-row .lab,
.ed-dark .field-note,
.ed-dark .note,
.ed-dark .summary-box .what span {
  color: var(--on-ink);
}
/* form labels (Place, Date, Caption, Style, Palette): brighter than the notes so they read easily */
.ed-dark .field label,
.ed-dark .field .lab,
.ed-dark .qty-row .lab {
  color: rgba(238, 246, 252, 0.95);
  font-weight: 600;
  font-size: 13px;
} /* was 11px */
.ed-dark .field input {
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--paper);
  color-scheme: dark;
}
/* "(optional)" after a label: quieter than the label itself */
.field label .optional {
  font-weight: 400;
  opacity: 0.6;
}
.ed-dark .field input::placeholder {
  color: rgba(238, 246, 252, 0.5);
}
.ed-dark .field input:focus {
  border-color: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.25);
}
.ed-dark .place-results {
  color: var(--ink);
} /* the dropdown stays white with dark text */
.ed-dark .chip {
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--paper);
}
.locate-chip {
  gap: 5px;
} /* "Near me" chip with a pin icon */
#placeChips:not(:empty) {
  margin-top: 6px;
} /* a little air between the town field and "Near me" */
.locate-chip:disabled {
  opacity: 0.7;
  cursor: progress;
}
.ed-dark .chip:hover {
  border-color: var(--paper);
}
.ed-dark .chip[aria-pressed='true'] {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}
/* "No day in mind yet?" above the Surprise me button, its story under them */
.dice-group {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.dice-group .dice-msg {
  align-self: stretch;
}
.dice-lead {
  margin: 0;
} /* looks like the date note (.field-note), just without its top margin */
/* checkbox row: "Print the place and date on the tile" */
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.check-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--sun);
  cursor: pointer;
}
.ed-dark .check-row {
  color: var(--paper);
}
.ed-dark .qty {
  background: transparent;
  border-color: var(--glass-line);
}
.ed-dark .qty button {
  color: var(--paper);
}
.ed-dark .qty button:hover:not(:disabled) {
  background: var(--glass);
}
.ed-dark .qty button:disabled {
  color: rgba(255, 255, 255, 0.25);
}
.ed-dark .cta-btn {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.ed-dark .cta-btn:hover {
  background: var(--sun);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.ed-dark .seg button {
  color: var(--ink);
} /* the white switch keeps dark text */
.ed-dark .seg button[aria-pressed='true'] {
  color: var(--paper);
}
/* plain white section, straight edges */
/* second section: continues the hero sky and fades into the page colour of the next section */
.blend {
  background: linear-gradient(180deg, var(--sky2), var(--paper));
  border-top: 0;
}
.blend + section {
  border-top: 0;
} /* no line where the blend ends */
/* bigger, calmer cloud edge: three large bumps of different sizes per 240px */
:root {
  --cloud-big: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 40V32A50 28 0 0 1 100 32A35 20 0 0 1 170 32A35 24 0 0 1 240 32V40z'/%3E%3C/svg%3E");
}
.band.big-cloud::before,
.band.big-cloud::after {
  height: 40px;
  -webkit-mask: var(--cloud-big) 0 0 / 240px 40px repeat-x;
  mask: var(--cloud-big) 0 0 / 240px 40px repeat-x;
}
.band.big-cloud::before {
  top: -39px;
}
.band.big-cloud::after {
  bottom: -39px;
}
.band.big-cloud + .site-foot {
  padding-top: 72px;
}

/* Hero city · date and data source: plain text under the tile */
.hero-art .where-when {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero-art .where-when #heroDate {
  flex-basis: auto;
}
.hero-art .data-source a {
  color: var(--muted);
  text-decoration-color: currentColor;
} /* underline in the same grey as the text */
.hero-art .tile-tag {
  justify-content: center;
  text-align: center;
} /* city · date and data source aligned center */
.hero-art #heroCity {
  font-weight: 400;
} /* city in regular weight, not bold */
.hero-art #heroDate {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
} /* same style as the city */
/* "Surprise me": a calm secondary button (outline, only as wide as its text), so "Add to cart" stays the main action */
.dice {
  justify-self: start;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
}
.dice:hover {
  border-color: var(--ink);
}
.ed-dark .dice {
  border-color: var(--glass-line);
  color: var(--paper);
}
.ed-dark .dice svg {
  color: var(--sun);
} /* yellow calendar icon on the navy box */
.ed-dark .dice:hover {
  border-color: var(--paper);
  background: var(--glass);
}
/* Number the form sections: a yellow circle with 1, 2, 3 in front of each title (CSS counter) */
.ed-flat {
  counter-reset: step;
}
.ed-flat .ed-step {
  counter-increment: step;
  position: relative;
}
.ed-flat .ed-step::before {
  padding-left: 40px;
  line-height: 30px;
}
.ed-flat .ed-step::after {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
}
.ed-flat .ed-step + .ed-step::after {
  top: 23px;
} /* below the divider line and its padding */

/* Footer like the Onlyonery shop: centred link row, then the "made by" line, then the weather credit */
.site-foot {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  padding: 28px var(--gut) 36px;
}
.site-foot p {
  margin: 0;
}
.foot-links {
  line-height: 1.8;
}
.foot-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-credit {
  font-size: 12px;
}
.foot-credit a {
  color: var(--muted);
  text-decoration-color: currentColor;
} /* same as the hero link: grey text, grey underline */
/* bigger "Find your day" button in the hero */
.hero-cta .pill-btn {
  padding: 16px 30px;
  font-size: 18px;
  gap: 10px;
}
/* phones and tablets can't hover: hide the hover hint and the space kept for it */
@media (hover: none) {
  .stage-hint {
    display: none;
  }
  .stage {
    padding-bottom: clamp(12px, 3vw, 28px);
  }
}
/* small blue icons: a pin for the place, a calendar for the date */
.hero-art .where-when {
  align-items: center;
  gap: 16px;
}
.hero-art .where-when #heroCity,
.hero-art .where-when #heroDate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-art .where-when #heroCity::before,
.hero-art .where-when #heroDate::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background: currentColor; /* same colour as the city and date text */
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.hero-art .where-when #heroCity {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.hero-art .where-when #heroDate {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zM5 9h14v11H5z'/%3E%3C/svg%3E");
}

/* ---- Livelier editor ---- */

/* big soft sun in the top-right corner of the hero (its centre sits on the corner, so a quarter shows): it does not move, but fades in and out with the weather,
   brightness (--sun-strength) follows the weather of the example day (paintSky in script.js) */
.hero-bigsun {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(48%, -48%) rotate(10deg);
  width: 300px;
  height: 300px;
  z-index: 0;
  pointer-events: none;
  opacity: var(--sun-strength, 0.6);
  transition: opacity 1.2s ease;
  filter: drop-shadow(0 0 40px rgba(255, 201, 60, 0.45));
}
.hero > .hero-copy,
.hero > .hero-art {
  position: relative;
  z-index: 1;
} /* text and tile in front of the sun */
@media (max-width: 640px) {
  .hero-bigsun {
    width: 300px;
    height: 300px;
  }
}
/* "Forecast gift" note under the date field (same look as the flag on the preview) */

/* Onlyonery discount: every extra product is €4 off */
/* bounce + spinning sun, used by the "You saved" label in the pop-up */
@keyframes save-bounce {
  0% {
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes yay-spin {
  0% {
    transform: rotate(-90deg) scale(0.4);
  }
  60% {
    transform: rotate(20deg) scale(1.35);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}
.more-pick s {
  opacity: 0.6;
}
/* step 2 (style and palette): the chosen option is white (80%) with dark text instead of yellow */
.ed-dark #step2 .chip[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
  color: var(--ink);
}
/* more room under the editor so its shadow isn't covered by the cloud edge below */
.builder.band {
  padding-bottom: 88px;
}

/* Your turn: no cloud edge at the bottom; white footer continues the white section */
.builder.band::after {
  display: none;
}
.site-foot {
  background: var(--card);
}
.band.big-cloud + .site-foot {
  padding-top: 28px;
} /* no bumps to make room for */

/* Stage: no background box, the pattern sits straight on the navy editor */
.ed-dark .stage {
  background: none;
}

/* Desktop: the Pattern / On product switch starts at the same height as step 1, and the pattern takes the column's
   whole width (the navy box's own padding is its edge) */
@media (min-width: 981px) {
  .ed-dark .stage {
    padding-top: 0;
    padding-inline: 0;
  }
}

/* Open-Meteo links (hero tag and footer): thin underline */
.hero-art .data-source a,
.foot-credit a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Stall header: see-through white bar with a cloud edge hanging into the hero sky.
   Bar and clouds are ONE shape (::after), so there is no seam line between them. */
:root {
  --cloud-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath transform='matrix(1 0 0 -1 0 40)' d='M0 40V32A50 28 0 0 1 100 32A35 20 0 0 1 170 32A35 24 0 0 1 240 32V40z'/%3E%3C/svg%3E");
} /* the big cloud shape, bumps pointing down */
.stallbar {
  position: relative;
  z-index: 2;
  background: none;
  border-bottom: 0;
}
.stallbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: -40px;
  z-index: -1;
  pointer-events: none;
  --white: color-mix(in srgb, var(--card) 75%, transparent); /* 75% white: a bit transparent */
  background:
    linear-gradient(var(--white), var(--white)),
    linear-gradient(var(--sky1), var(--sky1)) top / 100% calc(100% - 40px) no-repeat; /* sky colour behind the bar part, so it matches the clouds */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 36px) no-repeat,
    var(--cloud-down) -20px bottom / 240px 40px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 36px) no-repeat,
    var(--cloud-down) -20px bottom / 240px 40px repeat-x;
}
/* The hero sky (and its sun) continues under the see-through bar, so the sun isn't cut at the bar */
:root {
  --bar-h: 56px;
} /* height of the stall header */
.stallbar {
  margin-bottom: calc(var(--bar-h) * -1);
} /* hero slides up under the bar */
.stallbar + .hero {
  padding-top: calc(48px + var(--bar-h));
} /* content stays in the same place */
.stallbar + .hero .hero-bigsun {
  top: var(--bar-h);
} /* sun stays in the same place, now visible behind the bar */
.stallbar::after {
  background: var(--white);
} /* the real sky is behind the bar now, no extra colour needed */
/* bar + clouds fade from almost white at the top to see-through at the cloud bottoms */
.stallbar::after {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card) 99%, transparent),
    color-mix(in srgb, var(--card) 90%, transparent)
  );
}
.stallbar::after {
  bottom: -28px;
} /* cloud edge 12px higher (was -40px); a bigger number moves it down */

/* Add-to-cart pop-up: the €4 discount as the headline, and a running total at the bottom */
.added-deal {
  display: flex;
  gap: 12px;
  align-items: center;
  background: color-mix(in srgb, var(--sun) 22%, var(--card));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.added-deal svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.added-deal b {
  display: block;
  font-family: var(--f-display);
  font-size: 19px;
}
.added-deal span {
  font-size: 13px;
  color: var(--muted);
}
/* "2 products" on the first line; "you save €4,00" left and "total €55,90" right on the second */
.added-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0;
}
.added-total .total-wrap {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin-left: auto;
} /* "You saved €4,00!" on top, the total under it */
.added-total .saved-label {
  background: color-mix(in srgb, var(--sun) 35%, var(--card));
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
} /* "You saved €4,00!" on the total */
.added-total .total {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.added-total .count {
  color: var(--muted);
} /* "2 products" on the left */
.added-total .total-word {
  font-size: 16px;
} /* "total" a bit smaller than the price */
.added-total .vat-note {
  font-size: 12px;
  margin-top: -2px;
} /* "Prices incl. VAT and shipping" under the total */

/* Pop-up title: a small sun before "It's in your cart" (instead of a check mark) */
#addedTitle {
  display: flex;
  align-items: center;
  gap: 10px;
}
#addedTitle .title-sun {
  width: 30px;
  height: 30px;
  flex: none;
}
/* Each time the pop-up opens, the sun blooms: it pops up from nothing, grows a bit too big
   while turning, then settles back to its normal size */
@keyframes sun-bloom {
  0% {
    transform: scale(0) rotate(-90deg);
  }
  60% {
    transform: scale(1.4) rotate(15deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
#addedModal.on .title-sun {
  animation: sun-bloom 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both;
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  #addedModal.on .title-sun {
    animation: none;
  }
}

/* Pop-up cart list: every item in the cart, with its price and a small − qty + on the right */
.added-list {
  display: grid;
  gap: 8px;
}
.added-list .empty {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.added-right {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.qty.small button {
  width: 30px;
  height: 30px;
  font-size: 17px;
}
.qty.small output {
  min-width: 22px;
  font-size: 14px;
}
@media (max-width: 440px) {
  .added-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .added-item svg {
    width: 48px;
    height: 48px;
  }
}

/* Pop-up cart list, simpler and thinner: no background box, a hairline between rows,
   small picture, name and place · date on the left, − qty + and price in one row on the right */
#addedList {
  gap: 0;
}
#addedList .added-item {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  background: none;
  border-radius: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
#addedList .added-item:first-child {
  border-top: 1px solid var(--line);
}
#addedList .added-item svg {
  width: 40px;
  height: 40px;
  background: var(--soft);
  border-radius: 6px;
}
#addedList .added-item b {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
}
#addedList .added-item span {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#addedList .added-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
#addedList .added-right .mono {
  order: 2;
  min-width: 58px;
  text-align: right;
} /* price after the − qty + */
#addedList .row-price s {
  display: block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
} /* the price before the €4 off, small above it */
#addedList .qty.small {
  border-width: 1px;
}

/* Full-screen preview of one order item (above the pop-up) */
.preview {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 14, 24, 0.82);
  animation: preview-in 0.2s ease-out;
}
.preview[hidden] {
  display: none;
}
.preview-box {
  width: min(100%, calc(100vh - 140px), 760px);
  display: grid;
  gap: 12px;
}
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--paper);
}
.preview-head .x-btn {
  flex: none;
  color: var(--ink);
} /* dark ✕ on the light circle (the head's text is light) */
.preview-head b {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
}
.preview-head span {
  display: block;
  font-size: 13px;
  opacity: 0.8;
}
.preview-stage {
  background: var(--paper);
  border-radius: 16px;
  padding: 3%;
  display: grid;
  place-items: center;
} /* small padding: the picture itself is zoomed in on the product (fitMockups) */
.preview-stage svg {
  width: 100%;
  height: auto;
  display: block;
}
.preview-stage .big-tile {
  width: 88%;
}
/* the 3D mug in the preview: drag (or arrow keys) to turn it */
.preview-stage.mug {
  position: relative;
}
.preview-stage .mug-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  cursor: grab;
  touch-action: none;
  border-radius: 12px;
}
.preview-stage .mug-canvas:active {
  cursor: grabbing;
}
.preview-stage .mug-canvas:focus-visible {
  outline: 2px solid var(--rain);
  outline-offset: 4px;
}
@keyframes preview-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview {
    animation: none;
  }
}
#addedList .qty.small button {
  width: 26px;
  height: 26px;
  font-size: 15px;
}
@media (max-width: 440px) {
  #addedList .added-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
  }
  #addedList .added-item svg {
    width: 36px;
    height: 36px;
  }
  #addedList .added-right {
    gap: 8px;
  }
}

/* Pop-up "Add to cart" with nothing selected: just faded, not a loading cursor */
#addOrderBtn:disabled {
  cursor: default;
}

/* Pop-up "You saved €4,00!": a small sun in the label, and the same bounce + spinning sun as the editor's note */
.added-total .saved-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.added-total .saved-label .yay {
  width: 16px;
  height: 16px;
  flex: none;
}
.added-total .saved-label.bounce {
  animation: save-bounce 0.6s cubic-bezier(0.3, 1.7, 0.5, 1);
  transform-origin: right center;
}
.added-total .saved-label.bounce .yay {
  animation: yay-spin 0.8s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@media (prefers-reduced-motion: reduce) {
  .added-total .saved-label.bounce,
  .added-total .saved-label.bounce .yay {
    animation: none;
  }
}

/* ---------- Button micro-interactions (all off with reduced motion) ---------- */
/* Hover rain: script.js drops a few small .hover-drop drops onto a button's top edge on hover */
.hover-drop {
  position: fixed;
  width: 4px;
  height: 7px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--rain);
  pointer-events: none;
  z-index: 90;
}
/* "Add to cart →": the arrow slides on hover; after a click the button says "✓ Added" */
#addOrderBtn .arr {
  display: inline-block;
  transition: transform 0.2s;
}
#addOrderBtn:hover .arr {
  transform: translateX(4px);
}
#addOrderBtn.done {
  animation: save-bounce 0.5s cubic-bezier(0.3, 1.7, 0.5, 1);
}
#addOrderBtn.done .arr {
  display: none;
} /* "✓ Added" stands on its own */

/* "+ Add" on a product card: the card pops and the + turns into a ✓ */
.more-pick .add-label .ic {
  display: inline-block;
}
.more-pick.just-added {
  animation: card-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.more-pick.just-added .add-label .ic {
  animation: plus-to-check 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes card-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06) translateY(-4px);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes plus-to-check {
  from {
    transform: rotate(-90deg) scale(0.3);
  }
  to {
    transform: rotate(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #addOrderBtn.done,
  .more-pick.just-added,
  .more-pick.just-added .add-label .ic {
    animation: none;
  }
  .more-pick .zoom-btn:hover {
    transform: none;
  }
  #addOrderBtn:hover .arr {
    transform: none;
  }
}

/* Pop-up "Go back to design": no sideways shift on hover (only the border darkens) */
#keepBtn:hover {
  transform: none;
}

/* Phones: "Go back to design" and "Add to cart" stay pinned to the bottom of the pop-up
   while the products and the list scroll behind them, so they're always in view */
@media (max-width: 520px) {
  .added-actions {
    position: sticky;
    bottom: -24px;
    z-index: 2;
    margin: 0 -24px -24px;
    padding: 12px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 18px rgba(30, 58, 95, 0.08);
    flex-wrap: nowrap;
  }
  .added-actions button {
    justify-content: center;
    padding: 12px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .added-actions .add-btn {
    flex: 1;
  } /* "Add to cart" takes the rest of the row, both stay on one line */
  #addOrderBtn .arr {
    display: none;
  } /* no room for the arrow next to "Add 2 items to cart" on phones */
}
/* small phones: slightly smaller buttons so "Go back to design" and "Add 10 items to cart" fit on one row */
@media (max-width: 400px) {
  .added-actions {
    gap: 8px;
  }
  .added-actions button {
    padding: 12px 8px;
    font-size: 13px;
  }
}

/* Confetti when "Add to cart" turns into "✓ Added" (script.js confetti()); above the pop-up */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}
.confetti-bit {
  position: fixed;
  width: 8px;
  height: 12px;
  border-radius: 2px;
}

/* An order's own page (body.on-order, from the shop's email): one white card, everything else of the page hidden */
.order-page {
  display: none;
}
body.on-order .order-page {
  display: block;
}
body.on-order .hero,
body.on-order .info:not(.order-page),
body.on-order .builder {
  display: none;
}
.order-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 10px;
}
.order-card h2 {
  font-size: 28px;
}
.order-card p {
  margin: 0;
}
.order-ref {
  color: var(--muted);
  font-size: 13px;
}
.order-links a {
  margin-right: 14px;
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.order-actions:empty {
  display: none;
}
/* a refused order or tap: the page's own alert box (the pop-up's, under its button, and the order page's) */
.order-error {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--msg-alert);
  color: var(--ink);
  font-size: 14px;
}
.add-btn[aria-busy='true'] {
  cursor: progress;
  opacity: 0.75;
}
/* the order kit's buttons on the order page (order.js actions: btn, ghost), in the page's pill look */
.order-actions .btn,
.order-actions .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.order-actions .btn {
  background: var(--ink);
  color: var(--paper);
}
.order-actions .ghost {
  background: transparent;
  color: var(--ink);
}
