/* Posehaus customer web (plan v3 S1). Mobile-first, dark/gold like the gallery
   page, no external fonts or frameworks: it has to load on mall wifi. */
:root {
  --ink: #0b0b0f;
  --surface: #15151c;
  --raised: #1d1d26;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --muted: #9a968e;
  --gold: #e8b86d;
  --ok: #7bd389;
  --danger: #e86d6d;
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--text); }
body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; }
.brand { text-align: center; margin-bottom: 20px; }
.brand .mark { display: block; letter-spacing: 0.32em; text-transform: uppercase; font-size: 13px; color: var(--gold); }
.brand .tagline { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card.center { text-align: center; }
.card.sticky { position: sticky; bottom: 8px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 20px 0 8px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  font-size: 15px;
}
.status.ok { border-color: rgba(123, 211, 137, 0.4); }
.status.warn { border-color: rgba(232, 109, 109, 0.4); color: var(--danger); }
.status.ready { border-color: var(--gold); color: var(--gold); font-weight: 700; letter-spacing: 0.04em; }
ul { list-style: none; margin: 0; padding: 0; }
.packages li, .choices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.packages li:last-child, .choices li:last-child { border-bottom: 0; }
.choices label { display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.choices label > span { display: flex; flex-direction: column; flex: 1; }
.choices .muted { font-size: 13px; }
.price { color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type="text"], input[type="tel"], input[type="number"] {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 16px; /* never smaller: iOS zooms in below 16px */
}
input.qty { width: 72px; text-align: center; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--gold);
  color: #241a05;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button[disabled] { opacity: 0.4; cursor: not-allowed; }
.button.ghost { background: transparent; border: 1px solid var(--hairline); color: var(--text); }
.link { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 14px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.lines li.discount { color: var(--ok); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 18px; }
.total-row b { color: var(--gold); font-variant-numeric: tabular-nums; }
.codes li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--gold); }
.codes button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.amount { font-size: 28px; color: var(--gold); font-variant-numeric: tabular-nums; }
.queue-number { font-size: 64px; line-height: 1; margin: 8px 0 16px; color: var(--gold); font-variant-numeric: tabular-nums; }
.access { margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--raised); border: 1px dashed var(--gold); }
.access .code { font-size: 40px; letter-spacing: 0.24em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--hairline);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ------------------------------------------------------------------ gallery
   What the booth's QR opens. Wider than the booking pages: it is a grid of
   photos. The consent question sits above the first download link. */
.wrap.wide { max-width: 960px; }
.lang-switch { display: flex; justify-content: flex-end; gap: 4px; font-size: 13px; margin: -8px 0 8px; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; }
.lang-switch a.on { color: var(--text); border-color: var(--hairline); }
.gallery-head { text-align: center; margin: 0 0 20px; }
.gallery-head h1 { font-size: clamp(24px, 5vw, 36px); font-weight: 600; margin: 0 0 6px; }
/* Two photos a row on a phone, as many as fit on a desktop. */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
.media-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; overflow: hidden; margin: 0 0 16px; display: flex; flex-direction: column; }
.gallery-grid .media-card { margin: 0; border-radius: 18px; }
.media-card img, .media-card video { width: 100%; display: block; background: #000; }
/* A video keeps its own shape: the memory film is the camera's landscape frame
   since 2026-10-21 (recorded clips joined), a moving strip is tall. */
.media-card video { height: auto; max-height: 70vh; object-fit: contain; }
.media-card .button { width: auto; margin: 12px; padding: 14px 18px; border-radius: 999px; }
.gallery-grid .media-card .button { margin: 8px; padding: 10px 12px; font-size: 14px; }
.until { margin: -4px 12px 12px; font-size: 12px; color: var(--muted); text-align: center; }
.gallery-grid .until { margin: -2px 8px 10px; }
.filebox { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: var(--muted); background: var(--raised); }
.filebox .filetag { font-weight: 700; letter-spacing: 0.12em; color: var(--gold); border: 1px solid rgba(232, 184, 109, 0.4); border-radius: 8px; padding: 6px 10px; }
.filebox p { margin: 0; font-size: 12px; }

/* How long the gallery stays: calm while there is time, gold when there is not. */
.expiry { display: block; width: fit-content; max-width: min(100%, 560px); margin: -6px auto 20px; padding: 10px 16px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); color: #d9d4c9; font-size: 14px; line-height: 1.4; text-align: center; font-variant-numeric: tabular-nums; }
.expiry .clock { color: var(--gold); vertical-align: -3px; margin-right: 6px; }
.expiry.soon { border-color: rgba(232, 184, 109, 0.6); background: rgba(232, 184, 109, 0.09); color: var(--gold); }
.expiry .left { color: var(--text); font-weight: 600; white-space: nowrap; }
.expiry.soon .left { color: var(--gold); }
.expiry-hint { display: block; font-size: 12px; opacity: 0.85; margin-top: 2px; }
/* On a phone the time left gets a line of its own rather than breaking mid-phrase. */
@media (max-width: 599px) { .expiry .sep { display: none; } .expiry .left { display: block; } }

/* Sections: strip → film + GIF → photos → AI → originals. */
.kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.kicker .count { font-size: 11px; letter-spacing: 0; color: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 8px; }
.kicker .until { margin: 0 0 0 auto; font-size: 12px; letter-spacing: 0; text-transform: none; }
.hero .kicker { margin-top: 8px; }
.hero-card { border-color: rgba(232, 184, 109, 0.28); padding: 16px; background: radial-gradient(120% 70% at 50% 0%, rgba(232, 184, 109, 0.10), transparent 60%), var(--surface); }
.hero-frame { display: flex; justify-content: center; }
.hero-frame img { width: auto; max-width: 100%; max-height: 72vh; background: transparent; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.hero-frame .filebox { width: 100%; border-radius: 12px; }
.hero-card .button { margin: 16px 0 0; width: 100%; }
.hero-card .until { margin: 10px 0 0; }
.hero .more { margin-top: 12px; }
.motion-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
.motion .media-card .button { margin: 12px; }
.media-card.gif img { background: var(--raised); }
@media (min-width: 880px) {
  .showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .showcase > :only-child { grid-column: 1 / -1; }
  .showcase .motion-row { grid-template-columns: 1fr; }
  .showcase .motion-row > .motion:first-child .kicker { margin-top: 8px; }
}

/* Still on its way: a quiet shimmer with words, never a blank square. */
.placeholder { position: relative; overflow: hidden; border-style: dashed; border-color: rgba(232, 184, 109, 0.28); background: var(--surface); }
.placeholder.tile { aspect-ratio: 3 / 4; }
.placeholder.hero-card { min-height: 360px; padding: 0; }
.placeholder.film-card { min-height: 300px; }
.placeholder.gif-card { min-height: 220px; }
.placeholder .shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgba(232, 184, 109, 0.10) 45%, rgba(255, 255, 255, 0.05) 52%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.9s ease-in-out infinite; }
.placeholder figcaption { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; }
.placeholder figcaption b { font-weight: 600; font-size: 15px; color: var(--text); }
.placeholder.tile figcaption { padding: 12px; gap: 8px; }
.placeholder.tile figcaption b { font-size: 12px; font-weight: 500; color: var(--muted); }
.placeholder .spinner { width: 22px; height: 22px; border-width: 2px; }
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* The originals, folded away once edited versions exist. */
.originals { margin-top: 28px; }
.originals summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); }
.originals summary::-webkit-details-marker { display: none; }
.originals summary .kicker { margin: 0 0 4px; }
.originals .summary-text { display: flex; flex-direction: column; min-width: 0; }
.originals summary .until { display: block; margin: 2px 0 0; font-size: 13px; text-align: left; color: #d9d4c9; }
.originals summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform 0.2s; }
.originals[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.originals .gallery-grid { margin-top: 12px; }
.locked-grid { margin-top: 28px; }
.media-card.locked { border-style: dashed; }
.lockbox { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 16px; text-align: center; }
.lockbox .lock { font-size: 26px; opacity: 0.8; }
.lockbox p { margin: 0; font-size: 13px; }
.empty { text-align: center; padding: 48px 0; }
.pending { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.pending .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.gallery-foot { text-align: center; margin-top: 24px; }

/* Social media consent: two answers of equal weight, never a pre-ticked box. */
.consent { border-color: rgba(232, 184, 109, 0.35); }
.consent.answered { border-color: var(--hairline); padding: 14px 20px; }
.consent-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.consent-q { font-size: 18px; line-height: 1.35; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0 0 6px; font-weight: 600; }
.consent-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.consent-choices .button { margin-top: 0; padding: 14px 10px; }
.button.choice[aria-pressed="true"] { border-color: var(--text); }
.consent-handle { margin-top: 12px; }
.handle-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.handle-row .at { color: var(--muted); font-size: 16px; }
.handle-row input { flex: 1; min-width: 0; }
.handle-row .small-button { width: auto; margin: 0; padding: 12px 16px; font-size: 15px; }
.consent-status { margin: 0; color: var(--muted); }
.consent-status b { color: var(--text); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.consent-message { margin: 8px 0 0; color: var(--muted); }
.consent-message:empty { display: none; }
.consent-message.error { color: var(--danger); }
.consent.nudge { animation: nudge 0.5s ease-in-out 2; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.downloads-locked a[data-download] { opacity: 0.55; }
@media (prefers-reduced-motion: reduce) { .consent.nudge, .pending .dot, .placeholder .shimmer, .placeholder .spinner { animation: none; } }
