/* The six product pages and their demos, on the tokens site.css defines.
   Nothing here names a colour, a curve or a duration of its own. */

/* ── Hero ─────────────────────────────────────────────────────────────── */

.product-hero {
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px));
  padding-bottom: clamp(48px, 8vw, 120px);
}
.product-hero__grid { display: grid; gap: clamp(40px, 6vw, 56px); align-items: center; }
.product-hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.product-hero__title {
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: -.022em;
}
.product-hero--stacked .product-hero__copy { margin-bottom: clamp(40px, 6vw, 64px); }
/* The designs page exists to show its groups, so its words take one short
   band and the first group tiles stand on the first screen. */
.product-hero--groups {
  padding-top: calc(var(--header-h) + clamp(12px, 2vw, 28px));
  padding-bottom: clamp(20px, 2.5vw, 32px);
}
.product-hero--groups .product-hero__copy { gap: 10px; max-width: none; }
/* Nothing stands beside these words, so they run the page's width (Stefan, 11 November 2026: "why is it shortened, instead to let it on the full screen"). */
.product-hero--groups .lede { max-width: none; }
.product-hero--groups .product-hero__title { font-size: var(--text-2xl); line-height: 1.1; }
/* Where the hero stacks, as on a phone, its first screen says what the page
   sells, what it costs and how to start, before any demo. A wide screen keeps
   the prototype's hero, with the price at the page's close. */
.product-hero__price { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.1; }
@media (min-width: 960px) {
  .product-hero__price, .product-hero__buy { display: none; }
}
/* Side by side the copy starts at the top and stays beside a tall demo as it
   scrolls. Centred against the kids page's phone and its 23 worlds, the
   headline began below the first screen and jumped further down when the
   demo grew. */
@media (min-width: 960px) {
  .product-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px; align-items: start; }
  .product-hero__copy { grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + 24px); }
  .product-hero__grid > :last-child { grid-column: 7 / span 6; }
  /* A stacked hero has nothing beside its words, so pinned they stayed at the top of the screen while the demo rose over the eyebrow and the headline, and a family's chip rested over the words (seating page at 1440, 29 November 2026). */
  .product-hero--stacked .product-hero__copy { position: static; }
}

.product-sample { font-size: var(--text-xs); line-height: 1.6; color: var(--muted); max-width: 420px; }
.product-link {
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-block: 10px 2px;
}

/* ── The phone every demo sits in ─────────────────────────────────────── */

.phone {
  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--phone);
  box-shadow: var(--site-lift);
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  outline: 1px solid var(--imgline);
  outline-offset: -1px;
}

/* ── Points, steps and split sections ─────────────────────────────────── */

.product-section {
  padding-block: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.product-points {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  counter-reset: point;
}
/* A flex item is not a list item, so the list keeps its own count. */
.product-points > li {
  counter-increment: point;
  display: flex;
  gap: 16px;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.product-points > li::before {
  content: counter(point, lower-roman);
  flex: 0 0 1.6em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  line-height: 1.2;
  color: var(--accent);
}
@media (min-width: 720px) {
  .product-points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
  .product-points--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-points--single { grid-template-columns: minmax(0, 1fr); }
}
.product-points__title { font-size: var(--text-lg); margin-bottom: 18px; }

.product-split { display: grid; gap: 32px; }
.product-split__head { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin-bottom: clamp(28px, 4vw, 44px); }
.product-split .product-split__head { margin-bottom: 0; }
.product-split__title { font-size: var(--text-2xl); line-height: 1.04; letter-spacing: -.02em; }
@media (min-width: 960px) {
  .product-split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px; align-items: start; }
  .product-split > :first-child { grid-column: 1 / span 5; }
  .product-split > :last-child { grid-column: 7 / span 6; }
}

.product-parts { display: grid; gap: 32px 26px; }
.product-part { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.product-part__title { font-size: var(--text-xl); line-height: 1.1; }
.product-part__body { font-size: var(--text-sm); line-height: 1.7; color: var(--ink2); }
@media (min-width: 720px) {
  .product-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-parts--single { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .product-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-parts--single { grid-template-columns: minmax(0, 1fr); }
  /* Four parts stay two by two, so the last one is never left alone on its row. */
  .product-parts--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.product-upgrade { font-size: var(--text-sm); line-height: 1.7; color: var(--ink); max-width: 560px; }
.product-alone { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(32px, 5vw, 56px); max-width: 640px; }

.product-faq__list { border-top: 1px solid var(--line); }

/* ── How every page ends ──────────────────────────────────────────────── */

.product-close { padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); background: var(--bg2); }
.product-close__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.product-close__title { max-width: 18ch; font-size: var(--text-4xl); line-height: 1; letter-spacing: -.02em; }
.product-close__price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; margin-top: 8px; }
.product-close__label { font-size: var(--text-2xs); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.product-close__figure { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.1; }
.product-close__figure .proposed { font-family: var(--font-body); font-size: var(--text-2xs); color: var(--muted); vertical-align: middle; }
.product-close__note { max-width: 520px; font-size: var(--text-sm); line-height: 1.6; color: var(--ink2); }
.product-close__small { font-size: var(--text-xs); color: var(--muted); }
.product-close__all { font-size: var(--text-xs); color: var(--muted); border-bottom: 1px solid var(--line); padding-block: 12px 2px; }

/* ── Kids: the live world ─────────────────────────────────────────────── */

.world-demo { display: grid; gap: 28px; justify-items: center; }
.world-demo__stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.world-demo__greeted { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 320px; text-align: center; }
.world-demo__greeted[hidden] { display: none; }
.world-demo__greeted-line { font-size: var(--text-sm); line-height: 1.6; color: var(--ink2); }
.world-demo__phone { width: min(300px, 78vw); }
.world-stack { aspect-ratio: 1 / 2; background: var(--bg2); }
.world-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.world-frame.is-shown { opacity: 1; pointer-events: auto; }
.world-frame.is-front { z-index: 1; }
.world-demo__side { display: flex; flex-direction: column; gap: 18px; width: 100%; min-width: 0; }
/* Neither box narrows below its own example, "për shembull 5" and "на пример
   Леон" being the longest: side by side where both fit, one above the other
   where they do not. Fixed at 1.5 to 1, the age box narrowed to about 108
   pixels on a wide screen and cut its number off in every language. */
.world-demo__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); gap: 12px; align-items: end; }
.world-demo__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: var(--text-xs); font-weight: 600; }
.world-demo__show { grid-column: 1 / -1; justify-self: start; min-height: 46px; }
.world-demo__error { grid-column: 1 / -1; min-height: 1.4em; font-size: var(--text-xs); color: var(--accent); }
.world-demo__kept { grid-column: 1 / -1; }
.world-demo__field input, .seat-finder__input {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-base);
  font-weight: 400;
}
/* The seat finder's own example name, "на пример Мила Петровска", is the
   longest placeholder either input shows and clipped against the phone
   mockup's fixed, narrow width at the input's own 16px (kept there to stop
   iOS zooming in on focus); shrinking only the placeholder's size leaves
   that font-size untouched while giving the example room to fit. */
.world-demo__field input::placeholder, .seat-finder__input::placeholder { color: var(--muted); font-size: var(--text-sm); }
.world-picker {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.world-picker::-webkit-scrollbar { display: none; }
.world-pick {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
  padding: 12px 8px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, transform;
  transition-duration: var(--dur-hover), var(--dur-press);
  transition-timing-function: ease, var(--ease-out);
}
.world-pick:active { transform: scale(.96); }
.world-pick[aria-pressed="true"] { background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line); }
.world-pick[aria-busy="true"] .world-pick__art { opacity: .5; }
@media (hover: hover) and (pointer: fine) {
  .world-pick:hover { background: var(--surface-raised); }
}
.world-pick__art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg2);
  object-fit: contain;
  padding: 6px;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.world-pick__name { min-width: 0; font-family: var(--font-display); font-size: var(--text-base); line-height: 1.15; overflow-wrap: normal; }
@media (min-width: 960px) {
  /* The picker takes its own row under the phone and the form. Two to a row
     beside the phone left a name about 85 pixels, which broke the longer
     ones mid word (диносауру, сите) once the composed themes joined the
     worlds. */
  .world-demo {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "stage form" "picker picker";
    align-items: start; justify-items: stretch; gap: 32px;
  }
  .world-demo__stage { grid-area: stage; }
  .world-demo__side { display: contents; }
  .world-demo__form { grid-area: form; }
  .world-demo__side > :not(.world-demo__form):not(.world-picker) { grid-column: 1 / -1; }
  .world-picker {
    grid-area: picker;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .world-pick { flex-direction: row; width: auto; padding: 8px 10px; text-align: left; gap: 12px; }
  .world-pick__art { width: 44px; height: 44px; }
}

/* ── Seating: the hall and the finder ─────────────────────────────────── */

.seat-demo { display: grid; gap: 32px; align-items: start; }
.seat-plan { border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--site-lift); overflow: hidden; }
.seat-plan__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-xs);
}
.seat-plan__bar span { color: var(--muted); }
.seat-plan__body { display: grid; gap: 16px; padding: 16px; }
.seat-plan__waiting { border-radius: var(--radius-md); background: var(--bg2); padding: 14px; }
.seat-plan__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: var(--text-2xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.seat-plan__label b { letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.seat-plan__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.seat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--text-2xs);
  font-weight: 600;
  white-space: nowrap;
}
.seat-chip.is-seated { opacity: 0; }
.seat-hall { display: block; width: 100%; height: auto; border-radius: var(--radius-md); background: var(--bg2); }
.seat-hall__head { fill: var(--line); }
.seat-hall__head-label { fill: var(--ink2); font-family: var(--font-body); font-size: var(--text-xs); }
.seat-table__top { fill: var(--surface-raised); stroke: var(--line); stroke-width: 1.5; }
.seat-table__lit {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 3;
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.seat-table.is-lit .seat-table__lit { opacity: 1; }
.seat-table__label { fill: var(--ink); font-family: var(--font-body); font-size: var(--text-md); font-weight: 700; }
.seat-table__count { fill: var(--muted); font-family: var(--font-body); font-size: var(--text-2xs); font-variant-numeric: tabular-nums; }
.seat-chair { fill: var(--line); }
.seat-guest { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.seat-guest.is-seated { opacity: 1; }
.seat-guest.is-before { fill: var(--ink2); }
.seat-demo__side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.seat-demo__phone { width: min(300px, 100%); }
.seat-demo__after { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 300px; text-align: center; font-size: var(--text-sm); color: var(--ink2); }
.seat-demo__after[hidden] { display: none; }
.seat-finder { display: flex; flex-direction: column; gap: 10px; min-height: 560px; padding: 40px 16px 18px; }
.seat-finder__title { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.15; }
.seat-finder__find { min-height: 44px; }
.seat-finder__label { font-size: var(--text-xs); font-weight: 600; }
.seat-finder__hint { font-size: var(--text-2xs); color: var(--muted); }
.seat-finder__answer { min-height: 1.6em; font-size: var(--text-sm); font-weight: 600; }
.seat-finder__choices { display: flex; flex-wrap: wrap; gap: 6px; }
.seat-choice {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--bg2);
  font-size: var(--text-2xs);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out);
}
.seat-choice:active { transform: scale(.96); }
.seat-hall--mini { margin-top: auto; }
.seat-hall--mini .seat-table__label { font-size: var(--text-lg); }
.seat-hall--mini .seat-hall__head-label { display: none; }
.seat-finder__note { font-size: var(--text-2xs); text-align: center; color: var(--muted); }
@media (min-width: 720px) {
  .seat-plan__body { grid-template-columns: 190px minmax(0, 1fr); align-items: start; }
  .seat-plan__chips { flex-direction: column; align-items: stretch; }
  .seat-chip { justify-content: center; }
}
@media (min-width: 1100px) {
  .seat-demo { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}

/* ── Photos: one guest found in three photos ──────────────────────────── */

.faces-demo { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.faces-demo__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); margin: 0; padding: 0; list-style: none; }
.face-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-photo);
  outline: 1px solid var(--imgline);
  outline-offset: -1px;
}
.face-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Where her face is in each photo, measured on the square picture as a share
   of its width and height, and how wide the ring around it is. These three
   photos are the same p-mila-toast/-sparkler/-arch crops home.css's own
   .face-ring uses for its face-match section, so the fractions and the 26%
   ring width are copied from there rather than re-measured. */
.face-photo--toast { --face-x: 43%; --face-y: 43%; --face-size: 26%; --i: 0; }
.face-photo--sparkler { --face-x: 46%; --face-y: 43%; --face-size: 26%; --i: 1; }
.face-photo--friends { --face-x: 49%; --face-y: 42%; --face-size: 26%; --i: 2; }
.face-ring {
  position: absolute;
  left: var(--face-x);
  top: var(--face-y);
  width: var(--face-size);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  box-shadow: 0 0 0 2px var(--on-photo), 0 0 0 4px var(--accent);
  opacity: 0;
}
.faces-demo__say { display: grid; min-height: 1.6em; font-family: var(--font-display); font-size: var(--text-lg); }
.faces-demo__before, .faces-demo__after { grid-area: 1 / 1; }
.faces-demo__after { opacity: 0; }
.faces-demo__caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.faces-demo__sent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--text-2xs);
  font-weight: 600;
  opacity: 0;
}
.faces-demo__sent::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.faces-demo__example { font-size: var(--text-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.faces-demo.is-playing .face-ring {
  animation: face-ring-settle var(--dur-reveal) var(--ease-out) calc(300ms + var(--i) * 450ms) both;
}
/* She is named first, the rings settle one photo at a time, and only then
   does the line say where she was found and her photos go out. */
.faces-demo.is-playing .faces-demo__before { animation: face-say-out var(--dur-ui) var(--ease-out) 1.6s both; }
.faces-demo.is-playing .faces-demo__after { animation: face-found var(--dur-reveal) var(--ease-out) 1.7s both; }
.faces-demo.is-playing .faces-demo__sent { animation: face-found var(--dur-reveal) var(--ease-out) 2.3s both; }
@keyframes face-say-out { to { opacity: 0; } }
@keyframes face-ring-settle { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes face-found { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Digital: the real invitation ─────────────────────────────────────── */

.invite-demo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.invite-demo__phone { width: min(320px, 82vw); }
.invite-demo__screen { aspect-ratio: 9 / 19.5; background: var(--paper); }
.invite-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.invite-frame.is-shown { opacity: 1; }
.invite-demo .product-sample { text-align: center; }

/* ── Printed: the envelope, papers and designs ────────────────────────── */

.envelope-demo .ev-frame { max-width: 520px; margin-inline: auto; box-shadow: var(--site-lift); }
.envelope-demo__next {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  min-height: 40px;
  font-size: var(--text-2xs);
  /* Dark glass, since it sits on a cream envelope and white satin rather than
     on the home hero's dark photo, where the white glass it wore read as
     near-white words on near-white paper. */
  color: var(--on-photo);
  background: color-mix(in oklab, var(--night) 62%, transparent);
  --chip-line: var(--on-photo-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (hover: hover) and (pointer: fine) {
  .envelope-demo__next:hover { background: color-mix(in oklab, var(--night) 74%, transparent); }
}

.paper-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .paper-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.paper { display: flex; flex-direction: column; gap: 12px; }
.paper__face {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-photo);
  outline: 1px solid var(--imgline);
  outline-offset: -1px;
}
.paper__face img { width: 100%; height: 100%; object-fit: cover; }
/* A band of light crosses the paper under the pointer, as it would when the
   sheet is tilted toward a lamp. */
.paper__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, color-mix(in oklab, var(--on-photo) 45%, transparent) 50%, transparent 62%);
  transform: translateX(-100%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .paper:hover .paper__face::after { transform: translateX(100%); transition: transform var(--dur-reveal) var(--ease-in-out); }
}

.design-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 18px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 24px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.design-strip::-webkit-scrollbar { display: none; }
/* Seven columns of at least 140 pixels overflowed the page between 960 and
   about 1230 wide, which made a phone showing the desktop site zoom the whole
   page out. They share the width instead, which is what they already did
   wherever they fitted. */
@media (min-width: 960px) { .design-strip { grid-auto-columns: minmax(0, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
/* Narrower, the designs wrap into rows rather than scroll, so every one of
   them shows without a sideways drag. */
@media (max-width: 959px) {
  .design-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-inline: 0;
    padding: 0 0 24px;
    overflow: visible;
  }
}

/* ── Designs page ─────────────────────────────────────────────────────── */

/* The page opens on the groups alone. A wedding leads, two places wide, a set beside a hand
   of invitations, and the other eight take one place each (Stefan, 11 November 2026: "merged
   under one that will take 2 places, and we let other cards be as is"). */
.design-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 0 0 clamp(48px, 7vw, 88px);
  padding: 0;
  list-style: none;
}
.design-group--wedding { grid-column: span 2; }
.design-group__pair { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 2vw, 24px); }
.design-group__pair > * { flex: 1 1 0; min-width: 0; }
@media (min-width: 960px) {
  .design-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The search's own rules are frontend/shared/designSearch.css; the occasion tabs and what they show stay here. */
/* The occasions of what is found, the studio gallery's pictured tabs with a line under the chosen one. */
/* Every occasion is in view at once, never behind a sideways scroll (Stefan, 11 November 2026: "i need to scroll on
   the side to see other. that is not good. all of them must be visible"): one row of equal tabs on a wide screen, a
   long name taking a second line, and two rows of five on a phone. */
/* The kit draws every search input as a field of its own, but here the pill around it is the field. */
[data-look] .design-search .design-search__input {
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.design-search__tabs {
  /* Equal columns in every language, three on a phone, four on a tablet and five on a desktop, so the rows are the same length however long a language's words run and a label always has the same room: two lines of it, never three with a lone "and" between (second round of 29 November 2026; the first let each tab take what its longest word needed, which made rows of four, five and six). */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 8px;
  margin: 0 0 20px;
  scroll-margin-top: 96px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) {
  .design-search__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .design-search__tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .design-search__tabs .design-search__tab { padding: 6px 4px 12px; font-size: var(--text-2xs); }
}
.design-search__tabs[hidden], .design-search__tab[hidden] { display: none; }
.design-search__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 4px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  hyphens: manual;
  cursor: pointer;
  transition: color 150ms ease;
}
.design-search__tab:hover, .design-search__tab[aria-pressed="true"] { color: var(--ink); }
.design-search__tab[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: var(--radius-hair);
  background: var(--ink);
}
.design-search__tab-pic { width: 34px; height: 34px; transition: scale 160ms var(--ease-out); }
.design-search__tab:active .design-search__tab-pic { scale: .96; }
.design-search__results { margin-bottom: clamp(48px, 7vw, 88px); }
.design-index__group { margin-bottom: clamp(48px, 7vw, 88px); }
.design-index__group[hidden], .design-search__results[hidden], .design-groups[hidden], .design-tile[hidden], .design-grid[hidden], .design-family__holds[hidden] { display: none; }

/* A wedding's single invitations follow its sets on the same page, a clear gap apart. */
.design-grid--sets:not([hidden]) + .design-grid { margin-top: clamp(40px, 6vw, 72px); }
.design-group__open {
  display: block;
  height: 100%;
  text-align: center;
  padding: clamp(14px, 2vw, 24px);
  /* The home page's card corner and its cool paper, in place of the event colour's pink wash. */
  border-radius: var(--home-r-24px);
  background: var(--surface-sunken);
  color: inherit;
  text-decoration: none;
  transition: scale 160ms var(--ease-out);
}
.design-group__open:active { scale: .98; }
.design-group__name {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  /* A tile's name can be one long word, as German writes Kindergeburtstag, so fit.js takes the size down until it fits the tile, and the word is never broken inside itself. */
  hyphens: manual;
  overflow-wrap: normal;
}
.design-group__count { display: block; margin-top: 4px; font-size: var(--text-sm); color: var(--muted); }
/* A hand of five of the group's own cards, held from below. */
.group-fan { display: block; position: relative; container-type: inline-size; aspect-ratio: 1; }
.group-fan__card { position: absolute; display: block; width: 46cqw; line-height: 0; top: 18cqw; left: 27cqw; transform-origin: 50% 130%; }
.group-fan__card:nth-child(1) { z-index: 5; }
.group-fan__card:nth-child(2) { z-index: 4; rotate: -12deg; }
.group-fan__card:nth-child(3) { z-index: 3; rotate: 12deg; }
.group-fan__card:nth-child(4) { z-index: 2; rotate: -24deg; }
.group-fan__card:nth-child(5) { z-index: 1; rotate: 24deg; }

.design-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.design-group-page { padding-block: calc(var(--header-h) + clamp(8px, 1.5vw, 20px)) clamp(48px, 7vw, 88px); }
.design-band {
  display: block;
  margin-bottom: 28px;
  padding: 18px 22px;
  border-radius: var(--home-r-24px);
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  font-weight: 600;
}
.design-family__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.design-family__name { font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -.02em; }
.design-family__line { font-size: var(--text-sm); color: var(--muted); max-width: 520px; }
/* What every wedding set holds, on its own line under the name and the count. */
.design-family__holds { flex-basis: 100%; margin: 0; font-size: var(--text-base); line-height: 1.5; color: var(--muted); }
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 42vw), 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.design-tile { scroll-snap-align: start; }
.design-tile-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: inherit; cursor: pointer; }
.design-tile img, .design-viewer-img, .design-tile .card-composed {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 900;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-hair);
  box-shadow: var(--shadow-lift);
}
/* A set: its five cards laid out together as they lie on a table, the invitation in
   front with the menu and the table number fanned behind it and the folded place
   card and the place card beside it. Each is the set's own card at one scale, 0.36
   of the container's width per millimetre, so a place card is as small next to the
   invitation as it is in a hand. cqw keeps every offset in the same unit as the
   widths whatever the tile's width. */
/* Two to a row even on a phone, because the single invitations follow all 110 sets and one
   to a row put them a long way down. */
.design-grid--sets { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(28px, 3vw, 44px); }
@media (min-width: 960px) { .design-grid--sets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .design-grid--sets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.set-fan { display: block; position: relative; container-type: inline-size; aspect-ratio: 1; transition: opacity 200ms ease-out; }
/* design-search.js holds a fan back until its five pictures are ready, so it never shows one card alone. */
.set-fan.is-loading { opacity: 0; }
.design-tile .set-fan__card {
  position: absolute;
  display: block;
  line-height: 0;
  border-radius: var(--radius-hair);
  box-shadow: var(--shadow-lift);
}
.design-tile .set-fan__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
  border-radius: inherit;
  box-shadow: none;
}
/* The unmarked picture is what shows. The marked one lies over it in the same box and
   is invisible, so a saved copy, a dragged one or a long press takes the marked file. */
.marked-copy { opacity: 0; }
/* iOS's long press on a picture is its own menu, which the script cannot cancel, so it is switched off here. */
.design-tile img, .design-viewer-img { -webkit-touch-callout: none; }
.design-tile .set-fan__card .marked-copy { position: absolute; inset: 0; height: 100%; }
.design-tile .set-fan__card--invitation { left: 0; top: 8cqw; width: 53.3cqw; z-index: 4; }
.design-tile .set-fan__card--menu { left: 38cqw; top: 1cqw; width: 35.6cqw; z-index: 2; rotate: 3deg; }
.design-tile .set-fan__card--table { left: 58.5cqw; top: 9cqw; width: 37.8cqw; z-index: 1; rotate: 7deg; }
.design-tile .set-fan__card--folded { left: 62cqw; top: 60cqw; width: 30.6cqw; z-index: 5; rotate: -2deg; }
.design-tile .set-fan__card--place { left: 38cqw; top: 80cqw; width: 30.6cqw; z-index: 6; rotate: -4deg; }
.design-tile__set { display: block; margin-top: 2px; font-size: var(--text-xs); line-height: 1.35; color: var(--accent); }
.design-strip--sets { margin-bottom: 8px; }
.design-strip__label { margin: 0 0 12px; font-size: var(--text-sm); font-weight: 600; }
.design-strip--sets + .design-strip__label { margin-top: 20px; }
/* Three sets and four single cards are fewer than the seven the strip was sized for, so
   their tiles keep the width they had instead of stretching across the page. */
@media (min-width: 960px) {
  .design-strip--sets { grid-template-columns: repeat(3, minmax(0, 280px)); grid-auto-flow: row; }
  .design-strip--singles { grid-auto-columns: minmax(0, 170px); }
}
@media (max-width: 959px) { .design-strip--sets { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* designs.js's own viewer: a design opened full size. Dark regardless of the
   page's own theme, the way a slide viewer is, so the picture reads the same
   whoever is looking at it. */
.design-viewer {
  position: fixed;
  inset: var(--viewer-top, 0) 0 auto;
  height: var(--viewer-height, 100dvh);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  /* Opaque, not a scrim: at 0.92 the page's own fixed bar and headings still read through
     behind the card row, which is the one place the viewer has no picture to hide them. */
  background: var(--night);
}
.design-viewer-img {
  width: auto;
  max-width: min(70vh, 100%);
  max-height: calc(100dvh - 2 * var(--gutter));
  aspect-ratio: auto;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
}
/* A set's viewer keeps the card large and puts the five cards as a row of small
   pictures under it. The stage takes what the row leaves. */
.design-viewer--set { grid-template-rows: minmax(0, 1fr) auto auto; gap: 16px; }
.design-viewer--set .design-viewer-img { max-width: 100%; max-height: 100%; min-height: 0; }
/* A set's card is two pictures in one cell, the clean one and the marked one over it. Both
   take the same sizing rule from design-viewer-img, so their boxes are the same box. */
.design-viewer-stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
/* Filling the cell, so every design opens at one size whatever the pixels of its picture. A
   square card is centred in the cell, and the cell casts no shadow, which would outline the
   empty part of it. */
.design-viewer-stage > .design-viewer-img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; object-position: center; box-shadow: none; }
/* The set's cards stand bare, as the studio's gallery shows them, with no name over them (Stefan, 11 November 2026:
   "can u make this card changing form modern as we modernized it everywhere", "we dont show the names"). The card in
   the stage is the bright one with a short rule under it, the others wait dimmed. */
.design-viewer-cards { display: flex; justify-content: center; }
.design-viewer-card-row { display: flex; align-items: flex-end; gap: 16px; transition: opacity var(--dur-ui) var(--ease-out); }
.design-viewer.is-loading .design-viewer-stage, .design-viewer.is-loading .design-viewer-card-row { opacity: 0; }
.design-viewer-card {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 0 0 12px;
  border: 0;
  background: none;
  opacity: .5;
  cursor: pointer;
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.design-viewer-card img {
  max-width: 54px;
  max-height: 64px;
  width: auto;
  height: auto;
  border-radius: var(--radius-hair);
  outline: 1px solid color-mix(in srgb, var(--on-photo) 10%, transparent);
  -webkit-user-select: none;
  user-select: none;
}
.design-viewer-card:hover { opacity: .8; }
.design-viewer-card[aria-pressed="true"] { opacity: 1; }
.design-viewer-card[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: var(--radius-hair);
  background: var(--on-photo);
}
.design-viewer-card:active { transform: scale(.96); }
.design-viewer-card:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 4px; border-radius: var(--radius-xs); }

/* The form under an opened set (set-try.js): the details in one rounded panel, each with its name inside, the way the
   search pill above the designs holds its words, and a pill that takes the set to sign-up. On a phone it sits under
   the cards and the stage gives up the height. From 900 pixels the card stands on the left and the cards and the form
   on the right, so the card keeps the whole height. */
.set-try { display: grid; gap: 14px; width: min(100%, 360px); justify-self: center; }
.set-try[hidden] { display: none; }
/* Beside a set's other cards the form keeps its room unseen, so the row of cards stays where it was (Stefan, 11 November
   2026: "when i click on the menu, the position of the other cards should remain where they were. there will be just no form"). */
.design-viewer--set .set-try[hidden] { display: grid; visibility: hidden; }
.set-try__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--on-photo) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-photo) 16%, transparent);
  overflow: hidden;
}
.set-try__field {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 18px 8px;
  border-top: 1px solid color-mix(in srgb, var(--on-photo) 12%, transparent);
  font-size: var(--text-2xs);
  line-height: 1.3;
  color: var(--on-photo-soft);
  cursor: text;
  transition: background-color var(--dur-ui) var(--ease-out);
}
.set-try__field:nth-child(-n + 2) { border-top: 0; }
.set-try__field:nth-child(odd):not(:last-child) { border-right: 1px solid color-mix(in srgb, var(--on-photo) 12%, transparent); }
.set-try__field:nth-child(odd):last-child { grid-column: 1 / -1; }
.set-try__field:nth-child(odd):last-child:nth-child(1) { border-top: 0; }
/* The cell shows the focus, so the box inside it draws no ring of its own. */
.set-try__field:focus-within { background: color-mix(in srgb, var(--on-photo) 10%, transparent); box-shadow: inset 0 0 0 1px var(--on-photo-line); color: var(--on-photo); }
/* 16 pixels, so a phone does not zoom the page when a name is tapped. */
.set-try__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-photo);
  font: inherit;
  font-size: var(--text-base);
  line-height: 28px;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
}
.site .set-try__input:focus-visible { outline: none; }
/* The kit draws every text input as a field of its own, but here the cell around it is the field. */
[data-look] .set-try__field .set-try__input,
[data-look] .set-try__field .set-try__input:focus {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--on-photo);
}
.set-try__input::placeholder { color: color-mix(in srgb, var(--on-photo) 42%, transparent); opacity: 1; }
/* The hour is typed, so the browser's clock and its list are not shown. */
.set-try__input::-webkit-calendar-picker-indicator { display: none; }
.set-try__input::-webkit-date-and-time-value { text-align: left; }
.set-try__field[data-empty="true"] .set-try__input, .set-try__date[data-empty="true"] { color: color-mix(in srgb, var(--on-photo) 42%, transparent); }
/* The date is a button that opens the site's own month (date-pop.js), reading like the fields beside it. */
.set-try__date { display: block; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-try__panel { position: relative; }
.date-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--night);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-photo) 16%, transparent), 0 18px 40px color-mix(in srgb, var(--shadow-color) 50%, transparent);
  color: var(--on-photo);
  transform-origin: top center;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  @starting-style { opacity: 0; transform: scale(.97); }
}
.date-pop[hidden] { display: none; }
/* Opened above the fields when the window has no room for the month below them (date-pop.js measures it). */
.date-pop[data-side="above"] { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.date-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.date-pop__month { margin: 0; font-size: var(--text-sm); font-weight: 600; }
.date-pop__step, .date-pop__day {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--on-photo);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.date-pop__step { width: 36px; height: 36px; font-size: var(--text-base); }
.date-pop__step:hover, .date-pop__day:hover { background: color-mix(in srgb, var(--on-photo) 10%, transparent); }
.date-pop__step:active, .date-pop__day:active { transform: scale(.96); }
.date-pop__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.date-pop__weekday { display: grid; place-items: center; height: 28px; font-size: var(--text-2xs); color: var(--on-photo-soft); }
.date-pop__day { justify-self: center; width: 36px; height: 36px; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.date-pop__day[data-today] { box-shadow: inset 0 0 0 1px var(--on-photo-line); }
.date-pop__day[aria-pressed="true"] { background: var(--on-photo); color: var(--night); font-weight: 600; }
.date-pop__step:focus-visible, .date-pop__day:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 1px; }
[data-look] .set-try__field .set-try__input[aria-invalid="true"],
.set-try__input[aria-invalid="true"] { color: var(--err); }
.time-pop { left: auto; right: 0; width: min(100%, 220px); padding: 12px; display: grid; gap: 10px; }
.time-pop[data-side="above"] { bottom: auto; }
.time-pop[hidden] { display: none; }
.time-pop__wheels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.time-pop__wheel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.time-pop__step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-photo) 8%, transparent);
  color: var(--on-photo-soft);
  font: inherit;
  font-size: var(--text-base);
  line-height: 1;
  transform: rotate(90deg);
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.time-pop__step:hover { background: color-mix(in srgb, var(--on-photo) 16%, transparent); color: var(--on-photo); }
.time-pop__step:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 1px; }
.time-pop__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 40px;
  transform: translateY(-50%);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--on-photo) 12%, transparent);
  pointer-events: none;
}
.time-pop__sep {
  position: relative;
  z-index: 1;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--on-photo);
  padding: 0 2px;
}
.time-pop__col {
  width: 100%;
  height: 200px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  padding-block: 80px;
  mask-image: linear-gradient(to bottom, transparent, black 28%, black 72%, transparent);
}
.time-pop__col::-webkit-scrollbar { width: 5px; }
.time-pop__col::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-photo) 6%, transparent);
}
.time-pop__col::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-photo) 32%, transparent);
}
.time-pop__col::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--on-photo) 52%, transparent);
}
.time-pop__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--on-photo) 52%, transparent);
  font: inherit;
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
  scroll-snap-align: center;
  cursor: pointer;
  transition: color var(--dur-ui) var(--ease-out);
}
.time-pop__item[aria-selected="true"] { color: var(--on-photo); font-weight: 600; }
.time-pop__item:focus-visible { outline: 2px solid var(--on-photo); outline-offset: -2px; border-radius: var(--radius-md); }
.time-pop__done {
  justify-self: center;
  min-width: 92px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--on-photo);
  color: var(--night);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-ui) var(--ease-out);
}
.time-pop__done:active { transform: scale(.96); }
.time-pop__done:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 2px; }
/* An empty status takes no room, so the two buttons stand one gap apart (Stefan, 12 November 2026: "they are not equally
   placed from each other"). A refusal arrives only after "Show changes" is pressed and opens below it, so it moves nothing
   under the finger. */
.set-try__status { margin: 0; font-size: var(--text-xs); line-height: 1.3; color: var(--on-photo); }
.set-try__status:empty { display: none; }
.set-try__use {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 999px;
  background: var(--on-photo);
  color: var(--night);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out);
}
.set-try__use:active { transform: scale(.96); }
.set-try__use:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 3px; }
/* Draws the card with what was typed; outlined, so the filled button that takes the design stays the page's main action. */
.set-try__show {
  min-height: 48px;
  border: 1px solid var(--on-photo-line);
  border-radius: 999px;
  background: transparent;
  color: var(--on-photo);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-ui) var(--ease-out);
}
.set-try__show:active:not(:disabled) { transform: scale(.96); }
.set-try__show:disabled { opacity: .4; cursor: default; }
.set-try__show:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 3px; }
.set-try__note { margin: 0; font-size: var(--text-xs); line-height: 1.4; color: var(--on-photo-soft); text-align: center; text-wrap: pretty; }
/* A card being drawn stays up and dims, so the picture does not jump to nothing between two names. */
.design-viewer-stage { transition: opacity var(--dur-ui) var(--ease-out); }
.design-viewer--set:has(.set-try[data-busy="true"]) .design-viewer-stage { opacity: .55; }
@media (min-width: 900px) {
  .design-viewer--set {
    grid-template-columns: minmax(0, 520px) 340px;
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
    justify-content: center;
    column-gap: 56px;
  }
  .design-viewer--set .design-viewer-stage { grid-column: 1; grid-row: 1 / -1; }
  .design-viewer--set .design-viewer-cards { grid-column: 2; grid-row: 2; }
  .design-viewer--set .set-try { grid-column: 2; grid-row: 3; }
}
.design-viewer-step--back { left: max(16px, env(safe-area-inset-left)); }
.design-viewer-step--next { right: max(16px, env(safe-area-inset-right)); }
.design-viewer-step { top: 50%; translate: 0 -50%; }
/* On a phone a set's card fills the width, so the arrows at its sides and the cross at its corner covered it. The three
   sit in a bar above it instead: the arrows together on the left, the cross on the right, and the card starts under them. */
@media (max-width: 899px) {
  .design-viewer--set { padding-top: calc(max(16px, env(safe-area-inset-top)) + 44px + 12px); }
  .design-viewer--set .design-viewer-step { top: max(16px, env(safe-area-inset-top)); translate: none; }
  .design-viewer--set .design-viewer-step--back { left: max(16px, env(safe-area-inset-left)); }
  .design-viewer--set .design-viewer-step--next { left: calc(max(16px, env(safe-area-inset-left)) + 44px + 8px); right: auto; }
  /* The form gives the card the height it can spare: closer rows, no empty line kept for a refusal that is not there,
     and while a detail is typed the note and the set's row of cards step aside (Stefan, 11 November 2026: "it seems
     that the form is too large and the card is not very visible"). The button and the arrows come back as the keyboard
     goes, which designs.js marks on the viewer as data-keyboard, since a field keeps its focus when Android's back
     gesture lowers the keyboard and the button would otherwise stay away. */
  .design-viewer--set { gap: 12px; }
  .set-try { gap: 10px; }
  .set-try__field { padding: 7px 16px 5px; }
  .set-try__use { min-height: 48px; }
  .set-try__note { font-size: var(--text-2xs); }
  .set-try:focus-within .set-try__note,
  .design-viewer--set:has(.set-try:focus-within) .design-viewer-cards,
  .design-viewer--set[data-keyboard]:has(.set-try:focus-within) :is(.set-try__use, .design-viewer-step) { display: none; }
}
.design-viewer-close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}
/* Placed in the viewer rather than the screen, so they go with it when a phone's keyboard moves it. */
.design-viewer-close, .design-viewer-step {
  position: absolute;
  z-index: 81;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--on-photo-glass);
  color: var(--on-photo);
  box-shadow: inset 0 0 0 1px var(--on-photo-line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out);
}
.design-viewer-close:active, .design-viewer-step:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .design-viewer { animation: design-viewer-in 200ms var(--ease-out) both; }
}
@keyframes design-viewer-in { from { opacity: 0; } }

/* The envelope demo's replay chip sits over the artwork rather than beside
   it, so it is drawn smaller than the chip's own 44 pixel floor. A phone set
   to show the desktop site is still steered with a thumb at any width, so
   its floor follows the pointer rather than the viewport alone. */
@media (max-width: 699px), (hover: none) and (pointer: coarse) {
  .envelope-demo__next { min-height: 44px; font-size: var(--text-sm); }
}

/* ── On a phone ───────────────────────────────────────────────────────── */
/* The floor site.css sets for a phone, 14 pixel text, 16 pixel copy and 44
   pixel controls, applied to the product pages' own pieces, and each demo
   laid out so it can be worked with one thumb on one screen. */
@media (max-width: 699px) {
  .product-points > li, .product-part__body, .product-upgrade { font-size: var(--text-base); }
  .product-sample, .product-close__small, .world-demo__field, .world-demo__error,
  .seat-plan__bar, .seat-finder__label, .seat-finder__hint, .seat-finder__note,
  .faces-demo__sent, .faces-demo__example { font-size: var(--text-sm); }
  .product-close__label { font-size: var(--text-sm); letter-spacing: .14em; }
  .product-close__all, .product-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
    border-bottom: 0;
    font-size: var(--text-sm);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  /* The kids demo reads top to bottom as the thumb works it: the name, the
     world that greets it, then the other worlds. The phone is sized from the
     screen's height, so the boxes and the whole phone fit on one screen. */
  .world-demo__side { display: contents; }
  .world-demo__form { order: 1; width: 100%; }
  .world-demo__stage { order: 2; }
  /* The age field keeps the form's narrower column (world-demo__form's 1fr
     against the name's 1.5fr), which leaves it too little room for a full
     example phrase at the input's own 16px: Albanian's "për shembull 5" ran
     past its edge. Only the hint shrinks, so a typed age stays full size. */
  .world-demo__field--age input::placeholder { font-size: var(--text-xs); }
  /* All ten worlds show at once, two to a row, as the wide picker lays them
     out. A scrolling row showed three and hid seven. */
  .world-picker {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .world-pick { flex-direction: row; width: auto; padding: 8px; text-align: left; gap: 8px; }
  .world-pick__art { width: 40px; height: 40px; flex-shrink: 0; }
  /* Half a phone leaves a name about 100 pixels, which a thirteen letter
     word such as Роденденскиот fills only at this size. */
  .world-pick__name { font-size: var(--text-sm); }
  .world-demo__side > .product-sample { order: 4; }
  .world-demo__phone { width: min(300px, 78vw, calc((100svh - var(--header-h) - 250px) / 2)); }

  /* The guest's phone comes first, straight under the headline, because
     typing a name into it is the demo. The host's plan follows. */
  .seat-demo__side { order: -1; }
  .seat-finder { min-height: min(560px, calc(100svh - var(--header-h) - 40px)); }
  .seat-plan__label { font-size: var(--text-sm); letter-spacing: .1em; }
  .seat-chip { font-size: var(--text-sm); }
  .seat-choice { min-height: 44px; padding: 0 14px; font-size: var(--text-sm); }
  /* The hall is drawn on a 520 unit wide board and shown at about 330
     pixels, so its lettering is set larger here to read at 14 pixels. */
  .seat-hall__head-label { font-size: var(--text-lg); }
  .seat-table__label { font-size: var(--text-lg); }
  .seat-table__count { font-size: var(--text-lg); transform: translateY(8px); }
  .seat-hall--mini .seat-table__label { font-size: var(--text-xl); }

  /* One photo across the screen and two under it, so the ring on her face
     is large enough to see. */
  .faces-demo__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .face-photo:first-child { grid-column: 1 / -1; }
}

/* ── Product-page social proof quote ──────────────────────────────────── */
.product-quote {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg, 20px);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  text-align: center;
}
.product-quote p {
  margin: 0 0 12px;
  font: 500 clamp(18px, 2vw, 22px)/1.5 var(--font-display, var(--font-ui));
  color: var(--ink);
}
.product-quote footer {
  font: 500 var(--text-sm, 14px)/1.4 var(--font-ui);
  color: var(--ink-muted);
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
/* Each demo's finished still: the rings on her face, the hall full, the
   frames shown without a fade. */
@media (prefers-reduced-motion: reduce) {
  .faces-demo .face-ring, .faces-demo .faces-demo__after, .faces-demo .faces-demo__sent,
  .faces-demo.is-playing .face-ring, .faces-demo.is-playing .faces-demo__after, .faces-demo.is-playing .faces-demo__sent { opacity: 1; animation: none; }
  .faces-demo .faces-demo__before, .faces-demo.is-playing .faces-demo__before { opacity: 0; animation: none; }
  .world-frame, .invite-frame, .seat-table__lit, .world-pick__art { transition: none; }
}
