/* Mozey UK Tour 2027. Palette sampled from literal pixels of text.png: lime #D8EC30,
   magenta #FC00DC. Plate is near-black, so lime carries text and the CTA.
   Layers rebuilt live, no boxed poster. tools/build_images.py makes the images.
   Fonts: Anton (display, OFL), League Gothic (dates + venues, OFL), system body. */
@font-face { font-family: "Anton"; src: url("../fonts/Anton.woff2?v=20261105-1") format("woff2"); font-display: swap; }
@font-face { font-family: "League Gothic"; src: url("../fonts/LeagueGothic.woff2?v=20261105-1") format("woff2"); font-stretch: 75% 100%; font-display: swap; }

:root {
  --ink: #050312;
  --lime: #D8EC30;
  --mag: #FC00DC;
  --white: #F6F3FF;
  --soft: #D6D0EC;
  --field: #150D2E;      /* dropdown + tick box ground */
  --well: #2A1B5E;       /* inputs: the hat's violet, sampled family. Opaque on purpose: the autofill shadow must equal it */
  --line: #51448A;
  --err: #FF8BEE;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --cond: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 18px;
  --foot: 56px;
  --panel-w: clamp(430px, 37vw, 560px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
/* body stays transparent: an opaque body paints over the z-index:-1 plate */
body { margin: 0; color: var(--white); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); }
.bg { position: fixed; inset: 0; z-index: -1; background: var(--ink) url("../images/bg-mobile.webp?v=20261105-1") center top / cover no-repeat; }
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
.stage { flex: 1 0 auto; }

/* ---------- left: lockup + sky (phones first: stacked) ---------- */
.hero { padding-top: 14px; }
.hero__inner { position: relative; }
.hero__lockup { width: min(76vw, 430px); margin: 0 auto; }
.hero__lockup img { width: 100%; }

.sky {
  --x: 52; --y: -26; --dir: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 524;
  margin-top: min(21vw, 170px);
}
.sky__strip, .sky__lit {
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
          mask-image: linear-gradient(180deg, #000 86%, transparent);
}
.sky__strip { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.sky__lit {
  position: absolute; inset: 0; z-index: 2;
  background: url("../images/skyline-lit.webp?v=20261105-1") 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 var(--r) 0 var(--l));
  opacity: 0;
  transition: opacity .4s ease;
}
.sky__lit.is-on { opacity: 1; }

/* the beam: reaches from the hat's belly to the ground, screen-blended over the landmark */
.sky__beam {
  position: absolute; z-index: 3;
  left: calc(var(--x) * 1%);
  top: calc((var(--y) + 18) * 1%);
  bottom: 0;
  width: 27%;
  overflow: hidden;
  clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(216,236,48,.9), rgba(216,236,48,.34) 58%, rgba(252,0,220,.26));
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
  transform-origin: 50% 0;
  transition: transform .34s cubic-bezier(.2,.8,.3,1), opacity .18s ease;
}
.sky__beam::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40px; bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.22) 0 2px, transparent 2px 20px);
  animation: rise 1.1s linear infinite;
}
.sky.is-beaming .sky__beam { opacity: 1; transform: translateX(-50%) scaleY(1); }

/* the ship: hat + trail share one canvas (2027x1623); 65.1% 27.1% is the hat's centre,
   so left/top address the HAT, wherever the canvas falls */
.ship {
  position: absolute; z-index: 4;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 48%;
  aspect-ratio: 2027 / 1623;
  transform: translate(-65.1%, -27.1%);
  transition: left .85s cubic-bezier(.62,0,.22,1), top .85s cubic-bezier(.62,0,.22,1);
  animation: arrive 1.5s cubic-bezier(.14,.8,.3,1) .15s backwards;
}
.ship__bob, .ship__body, .ship__trail, .ship__hat { position: absolute; inset: 0; display: block; }
.ship__bob { animation: bob 3.6s ease-in-out infinite alternate; }
.ship__body { transform: scaleX(var(--dir)); transform-origin: 65.1% 27.1%; transition: transform .3s ease; }
.ship__trail, .ship__hat { width: 100%; height: 100%; max-width: none; transform-origin: 65.1% 27.1%; }
.ship__trail { transition: opacity .4s ease, transform .5s ease; }
.ship__hat { transition: transform .6s cubic-bezier(.3,.9,.3,1); }
.sky.is-away { --y: -18; }
.sky.is-away .ship__hat { transform: rotate(11deg) scale(.76); }
.sky.is-away .ship__trail { opacity: 0; transform: scale(.7); }
.sky.is-flying .ship__trail { opacity: 1; transform: scale(.82); }
.sky.is-gone { --x: 150; --y: -260; }
.sky.is-gone .ship { transition-duration: 1.1s; transition-timing-function: cubic-bezier(.6,0,.9,.4); }
.sky.is-gone .ship__hat { transform: none; }
.sky.is-gone .ship__trail { opacity: 1; transform: none; }

@keyframes arrive { from { transform: translate(calc(-65.1% - 62vw), calc(-27.1% + 48vh)); opacity: 0; } 40% { opacity: 1; } }
@keyframes bob { from { transform: translateY(-1.4%); } to { transform: translateY(1.4%); } }
@keyframes rise { to { transform: translateY(-20px); } }

/* ---------- right: sign-up ---------- */
.signup { position: relative; width: min(100%, 540px); margin: 0 auto; padding: 4px var(--gutter) 22px; }
.panel { isolation: isolate; }
.panel__state { display: none; }
.panel[data-form-state="idle"]    .panel__idle    { display: block; }
.panel[data-form-state="otp"]     .panel__otp     { display: block; }
.panel[data-form-state="success"] .panel__success { display: block; }

.panel__title {
  margin: 0 0 4px;
  font: 400 clamp(2.2rem, 11vw, 3.1rem)/1.08 var(--display);
  text-transform: uppercase;
  color: var(--lime);
  text-shadow: 3px 3px 0 #3B1BA8;
  letter-spacing: .005em;
}
.panel__title em { font-style: normal; color: var(--mag); text-shadow: 3px 3px 0 #1C0B55; }
.panel__lede { margin: 0 0 12px; font-size: 15px; line-height: 1.35; color: var(--soft); max-width: 46ch; }
.panel__lede strong { color: var(--white); }
.panel__success-note { margin: 0 0 8px; color: var(--lime); font-weight: 700; }

/* ---------- sale dates: two slim two-line stubs (Adam 5 Nov: first version too big and busy,
   so no offset shadow, no third row). Presale is solid and carries the countdown. ---------- */
.sale { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; margin: 6px 5px 10px 4px; }
.stub { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 50px; padding: 5px 11px 6px; color: var(--lime); }
.stub::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-9deg); border: 1px solid rgba(216,236,48,.55); }
.stub--pre { color: #0A0620; }
.stub--pre::before { background: var(--lime); border-color: var(--lime); }
.stub__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font: 400 1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.stub__date { margin: 0; font: 400 1.05rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.sale__clock { display: flex; gap: 5px; }
.sale__clock span { display: flex; align-items: baseline; }
.sale__clock b { font: 400 1rem/1 var(--cond); font-variant-numeric: tabular-nums; }
.sale__clock i { font: 400 .8rem/1 var(--cond); font-style: normal; text-transform: lowercase; }
.sale__live { display: none; }
.stub.is-live .sale__clock { display: none; }
.stub.is-live .sale__live { display: inline; }

/* ---------- the date picker: the poster's own rows, tappable ---------- */
.dates { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.dates__legend { padding: 0; margin-bottom: 4px; font: 400 1.5rem/1.1 var(--cond); text-transform: uppercase; letter-spacing: .03em; color: var(--white); }
.dates__legend span { margin-left: .4em; font: 400 13px/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--soft); }
.date {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 24px 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 9px;
  min-height: 45px;
  padding: 0 12px 0 9px;
  color: var(--lime);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.date input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.date__bar {
  position: absolute; inset: 2px 3px; z-index: -1;
  transform: skewX(-9deg);
  border-bottom: 1px solid rgba(216,236,48,.26);
  transition: background-color .14s ease, box-shadow .14s ease;
}
.date:hover .date__bar { background: rgba(252,0,220,.24); }
.date input:focus-visible ~ .date__bar { outline: 2px solid var(--white); outline-offset: 1px; }
.date input:checked ~ .date__bar { background: var(--lime); border-color: transparent; box-shadow: 4px 3px 0 var(--mag); }
.date__mark { position: relative; width: 19px; height: 19px; border: 2px solid var(--lime); transform: skewX(-9deg); }
.date__mark img { position: absolute; left: 50%; top: 50%; width: 30px; max-width: none; transform: translate(-50%, -50%) skewX(9deg); opacity: 0; }
.date input:checked ~ .date__mark { border-color: transparent; }
.date input:checked ~ .date__mark img { opacity: 1; }
.date__day { font: 400 1.65rem/1 var(--cond); letter-spacing: .01em; }
.date__city { font: 400 1.3rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.date__venue { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font: 400 1.35rem/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.date__venue small { font-size: .46em; line-height: 1.02; letter-spacing: .03em; }
.date input:checked ~ .date__day,
.date input:checked ~ .date__city,
.date input:checked ~ .date__venue { color: #0A0620; }

/* ---------- fields ---------- */
.form__row { margin-bottom: 10px; }
/* Round 3 (Adam 5 Nov): dark boxes hard to see on mobile, then pale green rejected. Colours from
   the artwork only: violet ground, lime outline, white text, square corners (Adam). The frame is .field::before
   at z-index 0 under an input at z-index 1, with NO stacking context on .field, so the country
   dropdown (z-index 50) still rises over the rows below it (gotcha 5). */
.form__label { display: block; margin: 0 0 4px; font: 400 1.2rem/1.1 var(--cond); text-transform: uppercase; letter-spacing: .03em; color: var(--white); }
.field { position: relative; }
.field::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--well);
  border: 2px solid var(--lime);
  transition: border-color .15s ease, background-color .15s ease;
}
.field:focus-within::before { border-color: var(--white); background: #35247A; }
.form__input {
  position: relative; z-index: 1;
  display: block;
  width: 100%; height: 54px; padding: 0 18px;
  font: 600 18px/1.2 var(--body);
  color: var(--white);
  caret-color: var(--lime);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  -webkit-appearance: none; appearance: none;
}
.form__input::placeholder { color: #D6D0EC; opacity: 1; font-weight: 500; }
.form__input--otp { font-size: 26px; letter-spacing: .3em; text-align: center; }
/* Chrome paints autofill pale lavender and ignores background: inset shadow only. */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #2A1B5E inset !important;
          box-shadow: 0 0 0 1000px #2A1B5E inset !important;
  -webkit-text-fill-color: #F6F3FF !important;
  caret-color: #F6F3FF;
  transition: background-color 9999s ease-in-out 0s;
}
/* Honeypot. display:none ONLY: off-screen positioning stays an autofill target. */
.hp-row { display: none !important; }
.form__error { margin: 5px 0 0; font-size: 13.5px; font-weight: 600; color: var(--err); }
.form__error--global { text-align: center; margin-top: 10px; }

.form__row--check { margin: 12px 0 14px; }
.form__check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.35; color: var(--soft); cursor: pointer; }
.form__check input {
  -webkit-appearance: none; appearance: none;
  position: relative; width: 22px; height: 22px; margin: 0;
  background: var(--field); border: 2px solid var(--lime); border-radius: 0; cursor: pointer;
}
.form__check input:checked { background: var(--lime); }
.form__check input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 7px; height: 12px;
  border: solid #0A0620; border-width: 0 3px 3px 0; transform: rotate(42deg);
}
.form__check input:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.form__note { margin: 6px 0 0 32px; font-size: 12.5px; color: var(--soft); }

.btn {
  /* flex, not block: an <a> does not centre its text inside min-height the way a <button> does */
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 10px 18px;
  font: 400 1.6rem/1.1 var(--display);
  text-transform: uppercase; letter-spacing: .03em; text-align: center; text-decoration: none; white-space: nowrap;
  color: #0A0620; background: var(--lime);
  border: 0; border-radius: 0; cursor: pointer;
  transform: skewX(-9deg);
  box-shadow: 6px 5px 0 var(--mag);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn__text { display: inline-flex; align-items: center; justify-content: center; gap: 9px; transform: skewX(9deg); }
.btn:hover { transform: skewX(-9deg) translate(2px, 2px); box-shadow: 4px 3px 0 var(--mag); }
.btn:active { transform: skewX(-9deg) translate(5px, 4px); box-shadow: 1px 1px 0 var(--mag); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn--whatsapp { background: #25D366; font-size: 1.35rem; box-shadow: 6px 5px 0 #0E6B3A; }
.btn--whatsapp:hover { box-shadow: 4px 3px 0 #0E6B3A; }
.btn--whatsapp:active { box-shadow: 1px 1px 0 #0E6B3A; }
.btn__icon { width: 22px; height: 22px; flex: none; }
.wa-hook { margin: 16px 0 10px; font-size: 15px; color: var(--soft); }
.wa-hook strong { color: var(--white); }
.form__resend { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--soft); }
.form__resend-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--lime); text-decoration: underline; cursor: pointer; }
.form__resend-btn[disabled] { opacity: .6; cursor: default; }

/* ---------- intl-tel-input v25, on the dark ground ---------- */
.iti { width: 100%; display: block; }
/* app.js re-measures and sets padding-left inline; this is the sane default
   before it runs. Anything >= 80px breaks 320-390px viewports. */
.iti input.form__input { padding-left: calc(52px + .7rem); }
.iti__country-container { z-index: 3; }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }
/* Until the vendor stylesheet loads the list + search box would flash open. */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content { background: var(--field); border: 2px solid var(--lime); border-radius: 0; box-shadow: 0 22px 50px -14px #000; overflow: hidden; color: var(--white); }
/* Keep the vendor's horizontal reservation: a padding shorthand that drops it puts
   the magnifier on top of the placeholder. */
.iti__search-input { width: 100%; padding: 10px 30px 10px 32px; font: 16px var(--body); color: var(--white); background: #1F1540; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.iti__search-input::placeholder { color: #AAA2CE; }
.iti__search-input:focus { outline: none; background: #271B4D; }
.iti__country-list { background: var(--field); max-height: 230px; }
.iti__country { padding: 9px 12px; font-size: 14px; color: var(--white); }
.iti__country:hover, .iti__country.iti__highlight { background: rgba(252,0,220,.3); }
.iti__dial-code { color: var(--soft); }
.iti__country-name { color: var(--white); }
.iti__selected-country:hover, .iti__selected-country-primary:hover { background: rgba(252,0,220,.14); }
.iti__selected-dial-code { color: var(--white); font: 600 18px var(--body); }
.iti__arrow { border-top-color: var(--lime); }
.iti__arrow--up { border-top-color: transparent; border-bottom-color: var(--lime); }
.iti__country-container { padding-left: 6px; }

/* ---------- footer: fleet pattern, credit in a pill ---------- */
.foot { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px var(--gutter) 14px; min-height: var(--foot); }
.foot__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--soft); }
.foot__legal a { color: var(--soft); text-decoration: none; }
.foot__legal a:hover { color: var(--lime); }
.foot__links a + a,
.foot__legal [data-louder-consent-open] { margin-left: .75em; padding-left: .85em; border-left: 1px solid rgba(214,208,236,.45); }
.site-built { margin: 0; }
.site-built a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; font-size: 12px; color: var(--soft); text-decoration: none; background: rgba(5,3,18,.6); border: 1px solid rgba(214,208,236,.4); border-radius: 999px; transition: border-color .18s ease; }
.site-built a:hover { border-color: var(--lime); }
.site-built img { opacity: .9; }

/* Small phones: venue under the city so nothing clips (Bournemouth + O2 Academy). */
@media (max-width: 374px) {
  .sale { gap: 8px; }
  .stub { padding-left: 8px; padding-right: 8px; }
  .stub__date { font-size: .85rem; }
  .sale__clock { gap: 3px; }
  .date { grid-template-columns: 22px 2.4rem minmax(0, 1fr); padding-top: 5px; padding-bottom: 5px; }
  .date__mark { grid-row: 1 / span 2; }
  .date__day { grid-row: 1 / span 2; grid-column: 2; }
  .date__venue { grid-column: 3; justify-content: flex-start; font-size: 1.1rem; }
}
@media (max-width: 899px) {
  .foot { justify-content: center; text-align: center; }
  .foot__right { justify-content: center; }
}
@media (max-width: 480px) {
  .foot, .foot__right { flex-direction: column; align-items: center; gap: 10px; }
  .foot { padding-bottom: 20px; }
}

/* ---------- two-up: art left, sign-up right. Tracks are DEFINITE (gotcha 35);
   aspect-ratio, not width-only, so squarish windows have no gap (gotcha 20). ---------- */
@media (min-width: 760px) and (min-aspect-ratio: 11/10) {
  .bg { background-image: url("../images/bg-desktop.webp?v=20261105-5"); background-position: left center; }
  .stage { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); }
  .hero {
    position: sticky; top: 0; align-self: start;
    height: calc(100vh - var(--foot)); height: calc(100svh - var(--foot));
    padding: 0;
  }
  .hero__inner { height: 100%; max-width: 118vh; }
  .hero__lockup { position: absolute; top: clamp(14px, 3.4vh, 44px); left: 50%; transform: translateX(-50%); width: min(66%, 56vh); margin: 0; }
  .sky { --y: 6; position: absolute; left: 0; bottom: 0; margin: 0; }
  .sky.is-away { --y: -4; }
  .signup {
    width: auto; margin: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(14px, 3vh, 36px) clamp(26px, 3.2vw, 56px);
    background: linear-gradient(90deg, transparent, rgba(5,3,18,.8) 9%);
  }
  .panel__title { font-size: clamp(2.3rem, 5.6vh, 3.2rem); }
  .panel__lede { font-size: 14.5px; margin-bottom: clamp(6px, 1.3vh, 14px); }
  .date { min-height: clamp(36px, 5.1vh, 46px); }
  .dates { margin-bottom: clamp(8px, 1.5vh, 16px); }
  .form__input { height: clamp(46px, 6vh, 54px); }
  .form__label { font-size: clamp(1.05rem, 2.1vh, 1.2rem); margin-bottom: 2px; }
  .foot { padding-left: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); }
}

/* Landscape phones are a first-class layout (gotcha 27). Ship stays on screen beside the
   form as it scrolls. LAST so it wins at equal specificity. */
@media (min-width: 560px) and (min-aspect-ratio: 11/10) and (max-height: 520px) {
  :root { --foot: 0px; --panel-w: min(410px, 50vw); }
  .bg { background-image: url("../images/bg-desktop.webp?v=20261105-5"); background-position: left center; }
  .stage { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); }
  .hero { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; padding: 0; }
  .hero__inner { height: 100%; max-width: none; }
  .hero__lockup { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: min(62%, 72vh); margin: 0; }
  .sky { --y: 4; position: absolute; left: 0; bottom: 0; margin: 0; }
  .sky.is-away { --y: -2; }
  .signup { width: auto; margin: 0; display: block; padding: 8px 16px 12px; background: linear-gradient(90deg, transparent, rgba(5,3,18,.8) 7%); }
  .sale { margin: 3px 5px 5px 4px; }
  .stub { min-height: 44px; padding: 3px 10px 4px; gap: 1px; }
  .panel__title { font-size: 1.8rem; }
  .panel__lede { font-size: 13.5px; margin-bottom: 4px; }
  .dates__legend { font-size: 1.25rem; }
  .date { min-height: 36px; }
  .date__day { font-size: 1.4rem; }
  .date__city { font-size: 1.1rem; }
  .date__venue { font-size: 1.15rem; }
  .form__input { height: 44px; }
  .form__label { font-size: 1rem; margin-bottom: 2px; }
  .btn { min-height: 48px; font-size: 1.35rem; }
  .form__row { margin-bottom: 8px; }
  .form__row--check { margin: 8px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
