/* korzio.hu: the product's landing (hu at /, en at /en/). Static, no build.
   Direction: a split stage. One half holds a still picture (an archive
   photograph of a Hungarian strand, or the guest's ticket), the other is
   the reading column. Type: Clash Grotesk (self-hosted, no outside calls).
   Colours: the favicon's teal on limestone paper. */

@font-face {
  font-family: "Clash Grotesk";
  src: url("/fonts/clash-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("/fonts/clash-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #e3e3df;
  --surface: #f3f3f0;
  --bright: #ffffff;
  --ink: #16404d;
  --muted: #4b6670;
  --accent: #16404d;
  --accent-ink: #f3f3f0;
  --field: #16404d;
  --field-ink: #eef4f2;
  --field-muted: #b8d0d4;
  --stage: #d7d8d3;
  --ok: #1f6b43;
  /* The venue's colour in the ticket preview; the visitor picks it. */
  --venue: #1d4f9c;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-head: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-display: clamp(2.5rem, 1rem + 3.4vw, 4rem);

  --gap: 12px;
  --radius: 16px;
  --pad: clamp(20px, 4vw, 64px);
  --font: "Clash Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1b1f;
    --surface: #12272d;
    --bright: #1a343b;
    --ink: #e4eeec;
    --muted: #a3bcc0;
    --accent: #8cc7d6;
    --accent-ink: #0c2a31;
    --field: #16404d;
    --field-ink: #eef4f2;
    --field-muted: #b8d0d4;
    --stage: #0f2227;
    --ok: #2f8a5a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--ink);
  color: var(--surface);
}

.skip {
  position: absolute;
  left: var(--gap);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
}
.skip:focus {
  top: var(--gap);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: screen-reader-only text */
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.small {
  font-size: var(--step-small);
}
.muted {
  color: var(--muted);
}

/* One button shape: a flat, fully round pill in the accent. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: var(--step-lead);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark svg {
  width: 32px;
  height: 32px;
  flex: none;
}

/* ---------- Hero: menu-card sheet, sticky photograph ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  min-height: 100svh;
}

.sheet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - 2 * var(--gap));
  padding: clamp(20px, 3vw, 36px) var(--pad);
  background: var(--surface);
  border-radius: var(--radius);
  text-align: center;
}

.topnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: var(--step-small);
}
.topnav a:not(.wordmark) {
  padding: 10px 4px;
  font-size: var(--step-body);
  white-space: nowrap;
}
.topnav > :first-child {
  justify-self: start;
}
.topnav > :last-child {
  justify-self: end;
}

.hero-copy {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-block: 48px 12svh;
}
.hero h1 {
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero-copy p {
  max-width: 40ch;
}

.hero-foot {
  font-size: var(--step-small);
  color: var(--muted);
}

.stage {
  position: sticky;
  top: var(--gap);
  height: calc(100svh - 2 * var(--gap));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stage);
}
.stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.stage > img.on {
  opacity: 1;
}
.hero .ticket [data-hero] {
  transition: opacity 400ms var(--ease);
}
.hero .ticket.swap [data-hero] {
  opacity: 0;
}
.pause {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
.pause[hidden] {
  display: none;
}
.pause:hover {
  transform: scale(1.06);
}
.pause svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pause .i-play,
.pause[aria-pressed="true"] .i-pause {
  display: none;
}
.pause[aria-pressed="true"] .i-play {
  display: inline;
  fill: currentColor;
}
.stage .bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 20px;
  background: var(--surface);
  font-size: var(--step-small);
}
.bar .url {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero .ticket {
  position: absolute;
  left: clamp(20px, 6%, 64px);
  bottom: calc(56px + clamp(24px, 6svh, 72px));
  transform: rotate(-3deg);
  transform-origin: bottom left;
}

/* ---------- The guest's screens (product fragments, data-ui) ---------- */

[data-ui] {
  font-family: var(--font);
  color: #10242b;
  background: #ffffff;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
[data-ui] .band {
  padding: 14px 18px;
  background: var(--venue);
  color: #ffffff;
  border-radius: 14px 14px 0 0;
  font-weight: 500;
  font-size: 17px;
  transition: background-color 300ms var(--ease);
}
[data-ui] .body {
  display: grid;
  gap: 12px;
  padding: 18px;
}
[data-ui] .kind {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
[data-ui] .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
[data-ui] .soft {
  color: #4f6168;
}
[data-ui] .qr {
  width: 132px;
  height: 132px;
  justify-self: center;
  color: #10242b;
}
[data-ui] .code {
  justify-self: center;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
[data-ui] .foot {
  padding: 12px 18px;
  background: #f1f3f3;
  border-radius: 0 0 14px 14px;
  font-size: 13px;
  color: #4f6168;
}
[data-ui] .uibtn {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--venue);
  color: #ffffff;
  text-align: center;
  font-weight: 500;
  transition: background-color 300ms var(--ease);
}

.ticket {
  width: 280px;
}

.pass-dots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.pass-dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e3e8e9;
}
.pass-dots span.used {
  background: var(--venue);
  opacity: 0.35;
}
.pass-dots span.left {
  background: var(--venue);
}
.uses {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mail .head {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: #f1f3f3;
  border-radius: 14px 14px 0 0;
  font-size: 13px;
}
.mail .head strong {
  font-size: 15px;
  font-weight: 500;
}
.slot {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 10px;
  background: #f1f3f3;
}
.slot strong {
  font-size: 20px;
  font-weight: 500;
}

.gate {
  background: #0f1d21;
  color: #ffffff;
}
.gate .verdict {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 40px 18px 34px;
  background: var(--ok);
  border-radius: 14px 14px 0 0;
  text-align: center;
}
.gate .verdict svg {
  width: 56px;
  height: 56px;
}
.gate .verdict strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.gate .body {
  color: #dfe9eb;
}
.gate .soft {
  color: #a9bcc0;
}
.gate .uibtn {
  background: #ffffff;
  color: #0f1d21;
}

/* ---------- Preview: names on the left, the screen on a stage ---------- */

.preview {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(72px, 9vw, 128px) var(--gap) 0;
}
.preview-controls {
  grid-column: 1 / span 6;
  display: grid;
  align-content: start;
  gap: 40px;
  padding: 0 var(--pad);
}
.preview h2 {
  font-size: var(--step-lead);
  max-width: 22ch;
}
.venue-field {
  display: grid;
  gap: 10px;
}
.venue-field label,
.swatches legend {
  font-size: var(--step-small);
  color: var(--muted);
}
.venue-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bright);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-lead);
}
.venue-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
/* One aligned row of equal segments; three columns where five don't fit. */
.chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.chips legend {
  width: 100%;
  margin-bottom: 10px;
  font-size: var(--step-small);
  color: var(--muted);
}
.chips legend {
  grid-column: 1 / -1;
}
.chips label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 1rem;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--stage);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}
.chips label:hover {
  transform: translateY(-1px);
}
.chips input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chips label:has(input:checked) {
  background: var(--accent);
  color: var(--accent-ink);
}
.chips label:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.swatches legend {
  width: 100%;
  margin-bottom: 10px;
}
.swatches label {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
.swatches label:hover {
  transform: scale(1.08);
}
.swatches input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.swatches label:has(input:checked)::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
}
.swatches label:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 7px;
}

.outputs {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.outputs button {
  display: inline-flex;
  align-items: baseline;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--step-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
  transition:
    color 200ms var(--ease),
    transform 200ms var(--ease);
}
.outputs button:hover {
  color: var(--ink);
  transform: translateX(6px);
}
.outputs button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.preview-controls {
  grid-row: span 2;
}
.screen-stage {
  grid-column: 7 / -1;
  display: grid;
  place-items: center;
  padding: clamp(32px, 5vw, 72px) 20px;
  border-radius: var(--radius);
  background: var(--stage);
}
.screen-stage > [data-screen] {
  grid-area: 1 / 1;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 220ms var(--ease),
    transform 320ms var(--ease),
    visibility 0s 220ms;
}
.screen-stage > [data-screen].on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 220ms var(--ease),
    transform 320ms var(--ease);
}
.screen-stage .ticket,
.screen-stage .pass {
  width: 360px;
}
.screen-stage .mail {
  width: 440px;
}
.screen-stage .gate {
  width: 300px;
}
.preview-note {
  grid-column: 7 / -1;
  align-self: start;
  padding: 4px 4px 0;
  color: var(--muted);
  font-size: var(--step-small);
}

/* ---------- Where we are: two-ended rows beside a still photograph ---------- */

.progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: clamp(80px, 10vw, 136px) var(--gap) 0;
}
.progress-list {
  order: 2;
  padding: 0 var(--pad);
  max-width: 600px;
  justify-self: start;
  width: 100%;
}
.progress h2 {
  font-size: var(--step-head);
  letter-spacing: -0.03em;
  line-height: 1;
}
.progress-list > p {
  margin-top: 20px;
  max-width: 40ch;
}
.group {
  --dot: var(--ink);
  margin-top: 72px;
}
.group h3 {
  font-size: var(--step-body);
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 12px;
}
.group ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.group li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  padding: 9px 0;
}
.group li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  align-self: center;
}
.group li span:last-child {
  font-size: var(--step-small);
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.photo-stage {
  position: sticky;
  top: var(--gap);
  height: calc(100svh - 2 * var(--gap));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stage);
}
.photo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.photo-stage img.on {
  opacity: 1;
}
.photo-stage figcaption {
  position: absolute;
  inset: auto 0 0 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--surface);
  font-size: var(--step-small);
}

/* ---------- The letter ---------- */

.letter {
  display: grid;
  justify-items: center;
  padding: clamp(96px, 11vw, 150px) 24px;
}
.letter-body {
  display: grid;
  gap: 1.1em;
  width: min(100%, 34rem);
  font-size: var(--step-body);
  line-height: 1.6;
}
.letter-body > p:first-child {
  font-size: var(--step-lead);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ---------- Questions: answers as reading text on the teal field ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0 var(--gap);
  padding: clamp(72px, 10vw, 140px) var(--pad);
  background: var(--field);
  color: var(--field-ink);
  border-radius: var(--radius);
}
.faq h2 {
  grid-column: 1 / span 3;
  font-size: var(--step-head);
  letter-spacing: -0.03em;
  line-height: 1;
}
.faq-text {
  grid-column: 5 / -1;
  columns: 2;
  column-gap: 56px;
  line-height: 1.55;
}
.faq-text p {
  break-inside: avoid;
  margin-bottom: 22px;
  color: var(--field-muted);
}
.faq-text strong {
  font-weight: 500;
  color: var(--field-ink);
}
.faq a:focus-visible {
  outline-color: var(--field-ink);
}

/* ---------- Signup: one field, the rest optional ---------- */

.signup {
  display: grid;
  justify-items: center;
  padding: clamp(96px, 10vw, 128px) 20px clamp(80px, 9vw, 112px);
}
.signup-inner {
  width: min(100%, 36rem);
  display: grid;
  gap: 28px;
}
.signup h2 {
  font-size: var(--step-lead);
  line-height: 1.25;
}
.signup h2 span {
  display: block;
  color: var(--muted);
}
.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 22px;
  min-height: 68px;
  border-radius: var(--radius);
  background: var(--bright);
}
.field-row:focus-within {
  box-shadow: /* taste-skill-ignore: focus ring inside the field */ inset 0 0 0
    2px var(--accent);
}
.field-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--step-body);
  outline: none;
}
.field-row .btn {
  flex: none;
}
.signup label {
  font-size: var(--step-small);
  color: var(--muted);
}
.signup-fields {
  display: grid;
  gap: 10px;
}
details.more summary {
  width: fit-content;
  padding: 6px 0;
  cursor: pointer;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
details.more[open] summary {
  margin-bottom: 16px;
}
.more-fields {
  display: grid;
  gap: 18px;
}
.more-fields div {
  display: grid;
  gap: 8px;
}
.more-fields input,
.more-fields textarea {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bright);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-body);
}
.more-fields textarea {
  min-height: 120px;
  resize: vertical;
}
.more-fields input:focus-visible,
.more-fields textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px; /* taste-skill-ignore: honeypot, never seen */
  overflow: hidden;
}
.contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 24px;
  margin-top: 48px;
  font-size: var(--step-small);
}
.contact dt {
  color: var(--muted);
}

/* ---------- Footer: photograph half, menu half ---------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  min-height: 100svh;
}
.site-footer > figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 60svh;
}
.site-footer > figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.footer-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
  padding: clamp(28px, 4vw, 56px) var(--pad);
  background: var(--field);
  color: var(--field-ink);
  border-radius: var(--radius);
}
.footer-panel .wordmark {
  font-size: var(--step-body);
}
.footer-menu {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-menu a {
  display: inline-block;
  padding: 4px 0;
  font-size: var(--step-head);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  transition:
    transform 200ms var(--ease),
    color 200ms var(--ease);
}
.footer-menu:hover a {
  color: var(--field-muted);
}
.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--field-ink);
  transform: translateX(12px);
}
.footer-panel :focus-visible {
  outline-color: var(--field-ink);
}
.footer-legal {
  display: grid;
  gap: 10px;
  font-size: var(--step-small);
  color: var(--field-muted);
}
.footer-legal a {
  color: var(--field-ink);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.made-by {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.made-by:hover {
  text-decoration: underline;
}
.d-mark {
  width: 16px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("/img/dendora-d.png") center / contain no-repeat;
  mask: url("/img/dendora-d.png") center / contain no-repeat;
}

/* ---------- Plain pages (privacy, 404) ---------- */

.plain {
  width: min(100% - 40px, 46rem);
  margin: 0 auto;
  padding: 32px 0 120px;
}
.plain header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
}
.plain h1 {
  font-size: var(--step-head);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.plain h2 {
  font-size: var(--step-lead);
  margin: 56px 0 14px;
}
.plain h3 {
  font-size: var(--step-body);
  margin: 28px 0 8px;
}
.plain p,
.plain ul,
.plain dl {
  margin-bottom: 14px;
  line-height: 1.6;
}
.plain ul {
  padding-left: 1.2em;
}
.plain dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 24px;
}
.plain dt {
  color: var(--muted);
}

/* ---------- Motion: parts rise in once; nothing hides without script ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 700ms var(--ease),
      transform 700ms var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-rise].in {
    opacity: 1;
    transform: none;
  }
  .hero .stage > img.on {
    animation: drift 8s linear both;
  }
  @keyframes drift {
    from {
      transform: scale(1.06);
    }
    to {
      transform: scale(1);
    }
  }
  .hero .ticket {
    animation: land 900ms 200ms var(--ease) both;
  }
  @keyframes land {
    from {
      opacity: 0;
      transform: translateY(40px) rotate(2deg);
    }
    to {
      opacity: 1;
      transform: rotate(-3deg);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen-stage > [data-screen],
  .photo-stage img,
  .stage > img {
    transition: none;
  }
}

/* ---------- Phones and narrow tablets: recomposed, not stacked ---------- */

@media (max-width: 1199px) {
  .chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero .stage {
    order: -1;
    height: 58svh;
    top: var(--gap);
    z-index: 0;
  }
  .hero .pause {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: transform 160ms var(--ease);
  }
  .pause[hidden] {
    display: none;
  }
  .pause:hover {
    transform: scale(1.06);
  }
  .pause svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .pause .i-play,
  .pause[aria-pressed="true"] .i-pause {
    display: none;
  }
  .pause[aria-pressed="true"] .i-play {
    display: inline;
    fill: currentColor;
  }
  .stage .bar {
    display: none;
  }
  .hero .ticket {
    width: 230px;
    bottom: 12svh;
    font-size: 14px;
  }
  .hero .ticket .qr {
    width: 96px;
    height: 96px;
  }
  .sheet {
    position: relative;
    z-index: 1;
    margin-top: -9svh;
    min-height: 0;
    gap: 8px;
  }
  .hero-copy {
    padding-block: 40px 32px;
    gap: 22px;
  }
  .hero h1 {
    font-size: clamp(2.375rem, 10vw, 3.5rem);
  }
  .hero-copy .btn {
    width: 100%;
    max-width: 420px;
  }

  .preview {
    display: block;
    padding-inline: 0;
  }
  .preview-controls {
    gap: 28px;
    padding: 0 20px;
  }
  .outputs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
  }
  .outputs button {
    min-height: 44px;
    font-size: 1.625rem;
    white-space: nowrap;
  }
  .outputs button:hover {
    transform: none;
  }
  .screen-stage {
    margin: 24px var(--gap) 0;
    padding: 24px 12px;
  }
  .preview-note {
    padding: 10px 20px 0;
  }

  .progress {
    display: flex;
    flex-direction: column;
    padding-inline: var(--gap);
  }
  .progress-list {
    order: 0;
  }
  .photo-stage {
    position: relative;
    top: 0;
    height: 56svh;
  }
  .progress-list {
    padding: 0 8px 40px;
    max-width: none;
  }
  .group {
    margin-top: 48px;
  }
  .group li {
    grid-template-columns: 16px minmax(0, 1fr);
    padding: 10px 0;
  }
  .group li span:last-child {
    grid-column: 2;
    text-align: left;
  }

  .faq {
    display: block;
    padding: 72px 20px;
  }
  .faq h2 {
    margin-bottom: 32px;
  }
  .faq-text {
    columns: 1;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
  }
  .site-footer > figure {
    min-height: 50svh;
  }
  .footer-menu a {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
}

@media (max-width: 480px) {
  .topnav a:not(.wordmark) {
    font-size: var(--step-small);
  }
  .field-row {
    flex-wrap: wrap;
    padding: 8px;
  }
  .field-row input {
    min-height: 52px;
    padding: 0 14px;
    flex-basis: 100%;
  }
  .field-row .btn {
    width: 100%;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .contact dd {
    margin-bottom: 14px;
  }
  .screen-stage .ticket,
  .screen-stage .pass,
  .screen-stage .mail {
    width: 300px;
  }
}

.wordmark svg path {
  stroke: var(--surface);
}
.footer-panel .wordmark svg path {
  stroke: var(--field);
}

/* Language switcher (top bar and footer): the current language underlined. */
.langs {
  display: inline-flex;
  gap: 2px;
}
.topnav .langs a,
.langs a {
  padding: 10px 6px;
  color: var(--muted);
  text-decoration: none;
}
.langs a:hover {
  color: var(--ink);
}
.langs a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.footer-panel .langs a {
  padding: 4px 6px;
  color: var(--field-muted);
}
.footer-panel .langs a:hover,
.footer-panel .langs a[aria-current="page"] {
  color: var(--field-ink);
}
