/* Campaign landing pages (build.py: CAMPAIGNS / build_campaign).
   One stylesheet for every campaign. A campaign brings its colours
   (--accent, --accent-dark, --pop, set in the page) and its photos;
   everything else is shared, so a new campaign never needs new CSS.

   The page sells a day out, not a product list: a hero in the campaign
   colour with confetti, the photos taking turns in a tilted frame, a date
   stamp, the selling points as stickers, a strip of real events moving
   past, and the form as an event ticket. */

:root {
  color-scheme: light dark;
  --bg: #F4F5F8;
  --surface: #FFFFFE;
  --ink: #15161C;
  --muted: #545A6B;
  --line: #D9DDE6;
  --a: var(--accent);
  --on-a: #FFFFFF;
  --on-pop: #15161C;
  --r-lg: 28px;
  --r: 14px;
  --display: 'Karantina', 'Secular One', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.175, .885, .32, 1.275);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1116;
    --surface: #191C23;
    --ink: #F1F2F5;
    --muted: #A8ADBA;
    --line: #2C313C;
    --a: var(--accent-dark);
    --on-a: #0F1116;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cp {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Rubik', 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.55;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
img { display: block; max-width: 100%; }

/* --- Hero: the campaign colour, with confetti --------------------------- */
.cp-hero {
  position: relative; color: #fff; overflow: hidden;
  border-radius: 0 0 36px 36px;
  background:
    radial-gradient(circle at 18% 22%, var(--pop) 0 4px, transparent 5px) 0 0 / 110px 120px,
    radial-gradient(circle at 72% 64%, rgb(255 255 255 / .55) 0 3px, transparent 4px) 0 0 / 86px 92px,
    radial-gradient(circle at 40% 78%, rgb(255 255 255 / .22) 0 7px, transparent 8px) 0 0 / 150px 140px,
    radial-gradient(70% 55% at 90% 0%, color-mix(in srgb, var(--pop) 40%, transparent), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgb(255 255 255 / .16), transparent 70%),
    var(--accent);
  padding-bottom: 48px;
}
.cp-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 10px 16px; min-height: 64px;
}
.cp-brand { font-family: 'Secular One', sans-serif; font-size: 20px; }
.cp-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); touch-action: manipulation;
}
.cp-hero__inner { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* The photos: a tilted frame, one photo at a time (the page's script moves
   .is-on). Each new photo fades in and settles from a slight zoom. */
.cp-show { position: relative; margin: 6px 4px 0; }
.cp-show__frame {
  position: relative; width: 100%; height: min(32svh, 320px);
  border-radius: 26px; overflow: hidden; background: rgb(0 0 0 / .15);
  border: 5px solid #fff; transform: rotate(-1.5deg);
  box-shadow: 0 26px 44px -22px rgb(0 0 0 / .55);
}
.cp-show__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .9s var(--ease), transform 5s linear;
}
.cp-show__frame img.is-on { opacity: 1; transform: scale(1); }
.cp-stamp {
  position: absolute; inset-inline-start: 8px; bottom: -26px; margin: 0;
  display: grid; justify-items: center; gap: 2px;
  padding: 10px 18px 4px; border-radius: 20px;
  background: var(--pop); color: var(--on-pop);
  transform: rotate(5deg);
  box-shadow: 0 14px 28px -14px rgb(0 0 0 / .5);
}
.cp-stamp small { font-weight: 700; font-size: 15px; }
.cp-stamp bdi {
  font-family: var(--display); font-weight: 700;
  font-size: 46px; line-height: .9; font-variant-numeric: tabular-nums;
}
.cp-hero__text { padding-top: 40px; }
.cp-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(50px, 14vw, 112px); line-height: .9; margin: 0 0 10px;
  text-shadow: 0 2px 0 rgb(0 0 0 / .08);
}
.cp-sub { color: rgb(255 255 255 / .9); font-size: 17px; margin: 0 0 18px; max-width: 34ch; }
.cp-ctas { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* --- Buttons ------------------------------------------------------------ */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 17px; white-space: nowrap;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: transform .15s var(--ease), filter .15s var(--ease);
}
.cp-btn:active { transform: scale(.97); }
.cp-btn:hover { filter: brightness(1.06); }
.cp-btn--pop { background: var(--pop); color: var(--on-pop); box-shadow: 0 10px 22px -12px rgb(0 0 0 / .6); }
.cp-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); background: transparent; }
.cp-btn--accent { background: var(--a); color: var(--on-a); }
.cp-btn--block { width: 100%; }
.cp-btn:disabled { opacity: .45; cursor: default; }

:where(.cp-btn, .cp-icon, .cp-bar a, .cp-foot a, .cp-field input):focus-visible,
:where(.cp-pill, .cp-day) input:focus-visible + * {
  outline: 3px solid color-mix(in srgb, var(--pop) 80%, transparent); outline-offset: 2px;
}

/* --- Selling points as stickers ---------------------------------------- */
.cp-points {
  list-style: none; max-width: 1160px; margin: -22px auto 0; padding: 0 16px;
  position: relative; display: grid; gap: 12px;
}
.cp-points li {
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 20px;
  background: var(--surface); box-shadow: 0 12px 26px -18px rgb(0 0 0 / .45);
}
.cp-points li:nth-child(1) { background: var(--pop); color: var(--on-pop); transform: rotate(-1deg); }
.cp-points li:nth-child(2) { transform: rotate(.8deg); }
.cp-points li:nth-child(2) b { color: var(--a); }
.cp-points li:nth-child(3) {
  background: color-mix(in srgb, var(--a) 14%, var(--surface)); transform: rotate(-.6deg);
}
.cp-points b { font-size: 19px; }
.cp-points li:nth-child(1) span { color: inherit; opacity: .8; }
.cp-points span { color: var(--muted); }

/* --- "This is what it looks like": real events moving past -------------- */
.cp-strip { padding: 40px 0 8px; }
.cp-strip h2 {
  font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1;
  text-align: center; margin: 0 16px 18px;
}
.cp-strip__view {
  direction: ltr; overflow: hidden; padding: 10px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Laid out left to right (the view too, or an RTL page parks the track's
   start off-screen) so the loop's arithmetic is simple: the photos are in
   twice, and moving one copy's width brings the start back. */
.cp-strip__track { display: flex; gap: 14px; padding-right: 14px; width: max-content; }
.cp-strip__track img {
  width: 200px; height: 150px; object-fit: cover; border-radius: 18px;
  border: 4px solid var(--surface); box-shadow: 0 12px 24px -16px rgb(0 0 0 / .5);
}
.cp-strip__track img:nth-child(odd) { transform: rotate(-2deg); }
.cp-strip__track img:nth-child(even) { transform: rotate(2deg) translateY(6px); }

/* --- Ticket (the form) -------------------------------------------------- */
.cp-ticket {
  position: relative; max-width: 640px; margin: 28px 16px 36px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px color-mix(in srgb, var(--accent) 70%, black);
}
.cp-ticket__head {
  padding: 22px 22px 20px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--a); color: var(--on-a);
}
.cp-ticket__head h2 {
  font-family: var(--display); font-weight: 700; font-size: 52px; line-height: .95; margin: 0 0 4px;
}
.cp-ticket__head p { margin: 0; opacity: .9; }
/* The tear line: a dashed edge with a notch cut out on each side. */
.cp-ticket__body {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: 24px 20px 22px; border-top: 2px dashed color-mix(in srgb, var(--on-a) 45%, var(--a));
}
.cp-ticket__body::before, .cp-ticket__body::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--bg);
}
.cp-ticket__body::before { inset-inline-start: -12px; }
.cp-ticket__body::after { inset-inline-end: -12px; }

.cp-field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cp-field > label, .cp-field > legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 2px; }
.cp-req { color: var(--a); }
.cp-field input[type="text"], .cp-field input[type="tel"], .cp-field input[type="date"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r);
}
.cp-row { display: grid; gap: 20px; }

.cp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-pill, .cp-day { position: relative; cursor: pointer; touch-action: manipulation; }
.cp-pill input, .cp-day input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cp-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.cp-pill--quiet { align-self: flex-start; margin-top: 4px; }
.cp-pill--quiet span { min-height: 40px; color: var(--muted); }

.cp-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cp-day__in {
  display: grid; justify-items: center; padding: 8px 4px 6px; border-radius: var(--r);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.cp-day__in small { font-size: 13px; color: var(--muted); line-height: 1.2; }
.cp-day__in b { font-size: 26px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }

.cp-pill:active span, .cp-day:active .cp-day__in { transform: scale(.96); }
.cp-pill input:checked + span, .cp-day input:checked + .cp-day__in {
  background: var(--a); color: var(--on-a); box-shadow: none;
}
.cp-day input:checked + .cp-day__in small { color: inherit; opacity: .85; }

/* Shared with the site's form handler (main.js). */
.qf-hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.qf-status { margin: 0; min-height: 1.2em; font-weight: 700; color: var(--muted); }
.qf-status.is-error { color: #D1294B; }
.qf-done { text-align: center; padding: 8px 0; }
.qf-done h2 { font-family: var(--display); font-size: 56px; line-height: 1; margin: 0 0 8px; color: var(--a); }
.qf-done p { color: var(--muted); margin: 0 0 6px; }
.qf-done .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  margin-top: 10px; padding: 12px 24px; border-radius: 999px;
  background: var(--pop); color: var(--on-pop); font-weight: 700; text-decoration: none;
}
/* main.js adds the site's photo viewer to every page; nothing opens it here. */
.lightbox { display: none; }

/* --- Footer and the phone's bottom bar ---------------------------------- */
.cp-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 24px; }
.cp-foot p { margin: 4px 0; }
.cp-foot a { display: inline-block; padding: 10px 6px; font-weight: 500; }

.cp-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  transition: transform .25s var(--ease);
}
.cp-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 999px; font-weight: 700; text-decoration: none;
  touch-action: manipulation;
}
.cp-bar__wa { background: var(--pop); color: var(--on-pop); }
.cp-bar__call { box-shadow: inset 0 0 0 1.5px var(--line); }
/* Hidden while the hero's own buttons or the form are on screen (the
   page's script sets bar-off), so the same two buttons never show twice. */
body.bar-off .cp-bar { transform: translateY(110%); }

/* --- Larger screens ----------------------------------------------------- */
@media (min-width: 560px) {
  .cp-days { grid-template-columns: repeat(6, 1fr); }
  .cp-row { grid-template-columns: 1fr 1fr; }
  .cp-ticket { margin-inline: auto; }
  .cp-strip__track img { width: 260px; height: 195px; }
}
@media (min-width: 900px) {
  body.cp { padding-bottom: 0; }
  .cp-bar { display: none; }
  .cp-hero { border-radius: 0 0 56px 56px; padding-bottom: 72px; }
  .cp-hero__inner {
    display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
    gap: 56px; padding: 16px 32px 0;
  }
  .cp-hero__text { grid-column: 1; grid-row: 1; padding-top: 0; }
  .cp-show { grid-column: 2; grid-row: 1; }
  .cp-show__frame { height: 460px; }
  .cp-hero h1 { font-size: clamp(72px, 7.5vw, 112px); }
  .cp-stamp bdi { font-size: 54px; }
  .cp-ctas { grid-template-columns: auto auto; justify-content: start; }
  .cp-points { grid-template-columns: repeat(3, auto); justify-content: center; gap: 18px; margin-top: -30px; }
  .cp-strip { padding-top: 64px; }
  .cp-strip h2 { font-size: 56px; }
  .cp-ticket { margin-top: 48px; margin-bottom: 64px; }
}

/* --- Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .cp-show__frame { animation: cp-settle .7s var(--ease) both; }
  .cp-stamp { animation: cp-stamp .55s var(--spring) .3s both; }
  .cp-hero h1 { animation: cp-rise .6s var(--ease) .1s both; }
  .cp-strip__track { animation: cp-marquee 60s linear infinite; }
  .cp-strip__view:hover .cp-strip__track { animation-play-state: paused; }
}
@keyframes cp-settle { from { opacity: 0; transform: rotate(-4deg) scale(.96); } }
@keyframes cp-stamp { from { opacity: 0; transform: rotate(-12deg) scale(.6); } }
@keyframes cp-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes cp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cp-btn, .cp-pill span, .cp-day__in, .cp-bar, .cp-show__frame img { transition: none; }
  .cp-strip__view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
