/* ============================================================
   K MOTIONZ LIVE
   KOKO, London. Saturday 13 March 2027, 16:00-21:00.
   Sign-up. Client: Louder Entertainment (named party K Motionz Music Ltd).

   DIRECTION - the poster, dissolving into the dark.
   The artwork is a single photograph: K Motionz in a silver shell jacket
   behind a table of hardware synths, a navy curtain behind him rippled by
   a glitch moire, heavy mono grain over all of it. Expanded cyan type top
   and bottom (K MOTIONZ / KOKO 13.03.27), LIVE in striped olive, and two
   rows of small caps spread edge to edge.
   - Round 3: the page IS the poster. The photo fills the screen (him large
     on the left on desktop, centred on phones), the poster's own type
     layers sit over it, the right side falls to the ground for the panel.
     Brief: the left column is not boxed - there is no column box at all.
   - The panel borrows the photo's glitch: a square slab with a cyan
     hairline and an olive copy of it knocked 4px out of register.
   - Titles set their second line in LIVE's own striped olive.

   COLOUR - literal pixels of the PSD:
     #111113  ground   poster edges, all four sides
     #0B141D  slab     the curtain's navy, sunk (panel)
     #86E7E8  cyan     K MOTIONZ type, median - CTA, focus, step marker
     #BECE89  olive    LIVE type, median - title second line, done steps
     #C2D3D4  mist     the small spread rows - reading text
   Ink #06121A on cyan (CTA) 13.0:1. Cyan on slab 12.6:1. Olive on slab
   11.0:1. Mist on slab 11.9:1. Mist-dim #8A9CA3 on the field 6.4:1.

   TYPE - Archivo variable (OFL), one family, two widths: wdth 125 / wght
   850 caps for titles and the CTA (the free face nearest the poster's
   expanded display type), wdth 100 for reading text.

   MOTION - one moment: the poster locks on, a brief slice jitter on load.
   Off under prefers-reduced-motion.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-wdth.woff2?v=20261104-23") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground:   #111113;
  --ink:      #0B141D;   /* panel slab */
  --panel:    #0A1219;   /* country dropdown */
  --field:    #060C12;   /* form field - OPAQUE on purpose, see autofill note */
  --cyan:     #86E7E8;
  --cyan-hi:  #A3FFFF;   /* the type's own highlight */
  --olive:    #BECE89;
  --paper:    #EEF5F6;
  --mist:     #C2D3D4;
  --mist-dim: #8A9CA3;
  --danger:   #FFA897;
  --whatsapp: #25D366;
  --line:     rgba(194,211,212,.18);

  /* engine form-block names, mapped onto this palette */
  --yellow:    var(--cyan);
  --yellow-hi: var(--cyan-hi);
  --peach:     var(--olive);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --panel-w: 420px;
  --gap: clamp(28px, 5vw, 96px);
}

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

/* The `hidden` attribute is only display:none in the UA stylesheet, the weakest
   layer of the cascade, so ANY author rule that sets display beats it. Keep this
   rule ABOVE everything that sets display, and never remove it. */
[hidden] { display: none !important; }

/* Ground colour lives on html, NOT body (gotcha 16). */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-stretch: 100%;
  color: var(--paper);
  background: transparent;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The ground: the photo itself, full screen (round 3, Adam's reference
   kmotionz-bg-desktop.png). Rendered from the PSD plate with the type hidden;
   the poster's type is overlaid as separate layers (.bill).
   Phones/portrait = 9x16 render, him centred, cover. Desktop + landscape
   phones = 16x9 render, him at 28% of the image width, and the image is
   HEIGHT-fitted and slid so he sits under the centre of the left column
   (--cx, set with the grid in style.css). Its left edge and right side fade
   to the ground colour, so any offset meets the ground seamlessly.
   Preloads in index.html mirror these queries exactly. */
/* Phones/portrait: the photo SCROLLS with the page (absolute, one screen
   tall), so the title, his face and the date stay locked together like a
   printed poster (Adam 16:02: fixed bg let the date ride up over his face).
   Its foot fades into the ground colour the rest of the page sits on. */
.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
          mask-image: linear-gradient(#000 78%, transparent);
  background-color: transparent;
  background-image: url("/assets/images/bg-mobile.jpg?v=20261104-23");
  background-image: image-set(url("/assets/images/bg-mobile.webp?v=20261104-23") type("image/webp"), url("/assets/images/bg-mobile.jpg?v=20261104-23") type("image/jpeg"));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
@media (min-aspect-ratio: 1/1), (min-width: 560px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  .bg {
    /* desktop + landscape phones: one screen / sticky type, so the photo stays fixed */
    position: fixed;
    inset: 0;
    height: auto;
    -webkit-mask-image: none;
            mask-image: none;
    background-image: url("/assets/images/bg-desktop.jpg?v=20261104-23");
    background-image: image-set(url("/assets/images/bg-desktop.webp?v=20261104-23") type("image/webp"), url("/assets/images/bg-desktop.jpg?v=20261104-23") type("image/jpeg"));
    background-size: auto 100%;
    /* 28% of a 16:9 image that is 100vh tall = 49.78vh */
    background-position: calc(var(--cx, 30vw) - 49.78vh) center;
  }
}

/* clip, not hidden: hidden on one axis forces the other to auto and would
   clip the country dropdown. */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ============================================================
   STAGE - base = phones / portrait: poster, then the sign-up below.
   ============================================================ */
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 10px 0 var(--gutter);
}

/* The poster's type, overlaid on the photo: the top block (LOUDER PRESENTS
   KOKO LONDON / K MOTIONZ / LIVE) above his head, the date block (KOKO
   13.03.27 / SATURDAY ... 16:00-21:00) below. Same width, so they line up
   as on the poster. A soft dark shadow keeps them legible over the jacket. */
.bill {
  width: calc(100% - 2 * var(--gutter));
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bill__top, .bill__date { margin: 0; width: 100%; }
.bill__top img, .bill__date img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.6));
}
.bill__top { margin-top: 6px; }
/* phones: the gap between the blocks is where his face and chest show */
.bill__date { margin-top: 38vh; margin-top: 38svh; margin-bottom: 16px; }
/* phones: the date lands on his silver jacket, so sit it in a soft dark wash */
.bill__date { position: relative; }
.bill__date::before {
  content: "";
  position: absolute;
  inset: -40% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(8,10,14,.72), rgba(8,10,14,0));
}

/* The one load moment: the type locks on - three horizontal slips, as the
   photo's own glitch slices, then still. */
.bill__top img { animation: lock .75s steps(1, end) .05s both; }
/* the date block locks on just after, so the two read as one signal */
.bill__date img { animation: lock .75s steps(1, end) .2s both; }
@keyframes lock {
  0%   { opacity: 0; }
  10%  { opacity: .55; transform: translateX(-2.2%); clip-path: inset(0 0 58% 0); }
  24%  { opacity: .8;  transform: translateX(1.6%);  clip-path: inset(30% 0 22% 0); }
  38%  { opacity: .9;  transform: translateX(-.8%);  clip-path: inset(62% 0 0 0); }
  52%  { opacity: 1;   transform: translateX(.4%);   clip-path: inset(0); }
  66%, 100% { opacity: 1; transform: none; clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bill__top img, .bill__date img { animation: none; }
}

/* ============================================================
   SIGN-UP PANEL - a square slab, its hairline frame printed twice:
   cyan in register, olive knocked 4px out (the photo's glitch).
   The frames live on ::before/::after BEHIND the content, never as a
   clip-path or overflow on .panel itself: that would clip the country
   dropdown (gotcha 5: isolation + z-index -1 frames + z-index 1 content).
   ============================================================ */
.signup {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--panel-w);
  position: relative;
  z-index: 2;
}
.panel {
  width: 100%;
  position: relative;
  isolation: isolate;
  color: var(--mist);
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.panel::before { border: 1px solid var(--cyan); }
.panel::after {
  border: 1px solid rgba(190,206,137,.55);
  transform: translate(4px, 4px);
}
.panel__inner {
  position: relative;
  z-index: 1;
  padding: 24px clamp(22px, 3vw, 34px) 28px;
}

/* --- state machine (app.js flips data-form-state on .panel) --- */
.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; }

/* ============================================================
   STEP SPINE - numbered because it IS a sequence:
   form -> SMS code -> email confirm.
   ============================================================ */
.spine {
  display: flex;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.spine__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 6px 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--mist-dim);
  transition: color .25s ease, background-color .25s ease;
}
.spine__step + .spine__step { border-left: 1px solid var(--line); }
.spine__n {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}
.spine__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel[data-form-state="idle"]    .spine__step:nth-child(1),
.panel[data-form-state="otp"]     .spine__step:nth-child(2),
.panel[data-form-state="success"] .spine__step:nth-child(3) {
  color: var(--paper);
  background: rgba(134,231,232,.10);
}
.panel[data-form-state="idle"]    .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="otp"]     .spine__step:nth-child(2) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(3) .spine__n {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1),
.panel[data-form-state="success"] .spine__step:nth-child(1),
.panel[data-form-state="success"] .spine__step:nth-child(2) {
  color: var(--peach);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(2) .spine__n {
  font-size: 0;                    /* hide the digit, keep the ring */
  border-color: var(--peach);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1) .spine__n::after,
.panel[data-form-state="success"] .spine__step:nth-child(1) .spine__n::after,
.panel[data-form-state="success"] .spine__step:nth-child(2) .spine__n::after {
  content: "";
  width: 7px; height: 4px;
  border: 1.5px solid var(--peach);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
@media (max-width: 400px) {
  .spine__step { font-size: 11px; gap: 5px; padding: 8px 3px 7px; }
  .spine__n { width: 15px; height: 15px; }
}

/* ============================================================
   PANEL COPY
   ============================================================ */
.panel__lede {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--mist);
  max-width: 46ch;
}
.panel__lede--last { margin-bottom: 20px; }
.panel__lede strong { color: var(--paper); font-weight: 700; }
.panel__success-note { margin: 0 0 12px; color: var(--peach); font-size: 14.5px; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 12px; }
/* labels stay for screen readers; placeholders carry the meaning visually */
.form__label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form__input {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 16px;                 /* 16px minimum or iOS zooms on focus */
  color: var(--paper);
  background: var(--field);        /* OPAQUE - see the autofill rule below */
  border: 1px solid rgba(194,211,212,.30);
  border-radius: 2px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: var(--mist-dim); opacity: 1; }
.form__input:focus {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(255,255,255,.22);
}
.form__input--otp {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .42em;
  text-align: center;
  text-indent: .42em;              /* re-centres text that tracking pushes left */
}

/* Chrome paints autofilled inputs pale lavender and IGNORES background on
   :-webkit-autofill - a huge inset box-shadow is the only reliable override.
   It must be the flattened OPAQUE colour of the field, which is simply --field
   because the field is opaque on purpose. Keep it opaque. */
.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 var(--field) inset !important;
          box-shadow: 0 0 0 1000px var(--field) inset !important;
  -webkit-text-fill-color: var(--paper) !important;
  caret-color: var(--paper);
  transition: background-color 9999s ease-in-out 0s;   /* stops the lavender flashing in */
}

.form__error { margin: 7px 0 0; font-size: 13px; color: var(--danger); }
.form__error--global { margin-top: 14px; }

/* Honeypot. display:none ONLY - off-screen positioning stays an autofill
   target in Chrome/Edge, which fills it and silently blocks real signups. */
.hp-row { display: none !important; }

.form__row--check { margin: 16px 0 18px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--yellow);
  cursor: pointer;
}
/* Privacy line under the marketing tick box (kept out of the consent box itself). */
.form__note { margin: 10px 0 0 29px; font-size: 12px; line-height: 1.5; color: var(--mist); }
.form__note a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--peach); }

.form__resend {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--mist-dim);
  text-align: center;
}
.form__resend-btn {
  font: inherit;
  color: var(--peach);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.form__resend-btn:disabled { color: var(--mist-dim); cursor: default; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  font-family: var(--font);
  font-weight: 700;
  white-space: nowrap;             /* shrink the type before it can ever wrap */
  text-align: center;
  text-decoration: none;           /* <a class="btn"> needs this */
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, filter .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { color: var(--ink); background: var(--yellow); }
.btn--primary:hover:not(:disabled) { background: var(--yellow-hi); }
.btn--whatsapp {
  color: #06301A;                  /* 7.33:1 on the WhatsApp green */
  background: var(--whatsapp);
  margin-top: 4px;
}
.btn--whatsapp:hover { filter: brightness(1.06); }
.btn__icon { flex: 0 0 auto; width: 19px; height: 19px; }

.wa-hook { margin: 18px 0 12px; font-size: 13.5px; color: var(--mist); }
.wa-hook strong { color: var(--paper); font-weight: 700; }

/* ============================================================
   intl-tel-input v25
   ============================================================ */
.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 + 0.7rem); }
.iti__country-container { z-index: 3; }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }
/* Until the vendor stylesheet loads, the hidden state does not exist and the
   whole list plus search box flashes open on first paint. */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 3px;
  box-shadow: 0 26px 56px -18px rgba(0,0,0,.94);
  overflow: hidden;
}
.iti__search-input {
  /* Keep the vendor's horizontal padding reservation (30px left for the search
     icon, 28px right for the clear button). A padding SHORTHAND that drops them
     puts the magnifier on top of the placeholder. */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--paper);
  background: var(--field);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.30);
}
.iti__search-input::placeholder { color: var(--mist-dim); }
.iti__search-input:focus { outline: none; background: #0E1A24; }
.iti__country-list { background: var(--panel); max-height: 240px; }
.iti__country {
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--paper);
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(134,231,232,.16); }
.iti__dial-code { color: var(--mist-dim); }
.iti__country-name { color: var(--paper); }
.iti__selected-country { border-radius: 3px 0 0 3px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(134,231,232,.14); }
.iti__selected-dial-code { color: var(--paper); font-family: var(--font); font-size: 15px; }
.iti__arrow { border-top-color: var(--mist-dim); }
.iti__arrow--up { border-bottom-color: var(--mist-dim); }




/* House title pattern, set like the poster's display type: expanded heavy
   caps; the second line in LIVE's striped olive (2px ink, 1px gap - the
   artwork's own scanline fill, fine enough to read at title size). */
.panel__title {
  margin: 0 0 12px;
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(1.45rem, 6.4vw, 1.75rem);
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--cyan);              /* first line in the K MOTIONZ cyan (Adam 16:03) */
  text-wrap: balance;
}
.panel__title em {
  font-style: normal;
  color: #A6A555;
  /* slanted like LIVE on the artwork (~12deg). A skew, not a synthetic
     italic, so the shapes stay true. */
  display: inline-block;
  transform: skewX(-12deg);
  transform-origin: 0 100%;
}
/* 17:31 Adam: second line = OUTLINE only, matching the client's outline LIVE
   (PSD "LIVE Yellow copy", keyline #A6A555 sampled from their PNG, ~4% of cap
   height there; 0.055em here so it survives at title size). */
@supports (-webkit-text-stroke: 1px) {
  .panel__title em {
    color: transparent;
    -webkit-text-stroke: .055em #A6A555;
  }
}

/* Buttons: square, expanded caps, with an olive offset under the CTA - the
   panel's out-of-register frame, small. */
.btn {
  border-radius: 0;
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(.92rem, 3.6vw, 1rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.btn--primary { color: #06121A; box-shadow: 4px 4px 0 0 rgba(190,206,137,.55); }
.btn--primary:hover:not(:disabled) { box-shadow: 2px 2px 0 0 rgba(190,206,137,.7); transform: translate(2px, 2px); }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.form__input:focus-visible { outline: none; }
.form__resend-btn:focus-visible,
.form__note a:focus-visible,
.foot a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Louder mark under the panel (desktop) / at the foot of the page (phones). */
.signup__mark { margin: 30px 0 4px; display: flex; justify-content: center; }
.signup__mark img { display: block; width: 104px; height: auto; opacity: .92; }

/* WhatsApp button (Adam 16:06: text ran to the edge, flat green "boring").
   Built in the panel's language instead: dark slab, WhatsApp-green hairline,
   a solid green chip carrying the glyph, an out-of-register green copy of the
   outline (as the panel frame), narrower caps so the label has air. */
.btn--whatsapp {
  position: relative;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 6px;
  padding: 0 14px 0 0;
  min-height: 52px;
  color: var(--paper);
  background: #0A1A14;
  border: 1px solid var(--whatsapp);
  box-shadow: 4px 4px 0 -1px #0B141D, 4px 4px 0 0 rgba(37,211,102,.5);
  font-stretch: 100%;
  font-weight: 800;
  font-size: clamp(.8rem, 3.4vw, .92rem);
  letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn--whatsapp .btn__icon {
  align-self: stretch;
  width: 46px;
  height: auto;
  padding: 0 13px;
  color: #06301A;                  /* 7.33:1 on the WhatsApp green */
  background: var(--whatsapp);
  box-sizing: border-box;
}
.btn--whatsapp .btn__text { flex: 1 1 auto; text-align: center; padding-right: 4px; }
.btn--whatsapp:hover {
  filter: none;
  background: #0E2A1D;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 -1px #0B141D, 2px 2px 0 0 rgba(37,211,102,.7);
}
.btn--whatsapp:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
/* narrow phones: let the label wrap to two lines rather than touch the edge */
@media (max-width: 359px) {
  .btn--whatsapp { white-space: normal; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
}

/* ============================================================
   FOOTER - fleet pattern, credit in a pill, on the ground (dark build, so
   the credit logo keeps its own colours).
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 14px var(--gutter) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--mist); }
.foot__legal a { color: var(--mist); text-decoration: none; }
.foot__legal a:hover { color: var(--cyan); }
/* louder-consent.js drops "Cookie settings" in right after the privacy link
   with only a text space between them; give it a real gap and a divider. */
.foot__legal [data-louder-consent-open] {
  margin-left: .75em;
  padding-left: .85em;
  border-left: 1px solid rgba(194,211,212,.4);
}
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(194,211,212,.32);
  border-radius: 999px;
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { border-color: var(--cyan); }
.site-built img { display: block; opacity: .9; }

@media (max-width: 899px) {
  .foot { justify-content: center; text-align: center; }
  .foot__right { justify-content: center; }
}
@media (max-width: 480px) {
  .foot { flex-direction: column; align-items: center; gap: 10px; padding-bottom: 22px; }
  .foot__right { flex-direction: column; align-items: center; gap: 10px; }
}

/* Short phones (SE class): tighten the panel top so the email field is
   still on the first screen. */
@media (max-width: 559px) and (max-height: 700px) {
  .bill { max-width: 400px; }
  .bill__date { margin-top: 32svh; }
  .spine { margin-bottom: 14px; }
  .panel__inner { padding-top: 18px; }
  .panel__lede { font-size: 14px; margin-bottom: 14px; }
}

/* ============================================================
   TWO-UP (>= 860 wide, square-or-wider window): type over the photo on the
   left, sign-up right. One screen, no scroll. The panel track is DEFINITE,
   never auto (gotcha 35). --cx = centre of the left column; .bg slides the
   photo so he sits under it.
   ============================================================ */
@media (min-width: 860px) and (min-aspect-ratio: 1/1) {
  :root {
    --pl: clamp(16px, 4vw, 72px);
    --pr: clamp(24px, 7vw, 130px);
    --cx: calc(var(--pl) + (100vw - var(--pl) - var(--pr) - var(--gap) - var(--panel-w)) / 2);
  }
  .page { height: 100vh; height: 100svh; min-height: 640px; }
  .stage {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel-w);
    align-items: center;
    gap: var(--gap);
    padding: 0 var(--pr) 0 var(--pl);
  }
  .bill {
    width: min(92%, 78vh);
    max-width: none;
    height: 100%;
    justify-self: center;
    justify-content: space-between;
    padding: clamp(18px, 4vh, 44px) 0 clamp(8px, 2.5vh, 28px);
  }
  .bill__top { margin-top: 0; }
  .bill__date { margin: 0; }
  .bill__date::before { display: none; }   /* desktop: the date is on the dark foot */
  .signup { width: var(--panel-w); max-width: none; }
  .panel__title { font-size: 1.85rem; }
  .signup__mark { margin: clamp(16px, 3vh, 30px) 0 0; }
  .signup__mark img { width: clamp(84px, 9vh, 120px); }
}
/* 1280x720-class laptops: shrink the Louder mark so panel + mark still fit one screen */
@media (min-width: 860px) and (min-aspect-ratio: 1/1) and (max-height: 800px) {
  .signup__mark { margin-top: 12px; }
  .signup__mark img { width: 64px; }
}
/* short desktop windows: let the page grow rather than crush the panel */
@media (min-width: 860px) and (min-aspect-ratio: 1/1) and (max-height: 700px) {
  .page { height: auto; }
  .stage { padding-top: 16px; padding-bottom: 16px; }
  .bill { height: auto; min-height: calc(100svh - 80px); }
}

/* --- landscape phones are a first-class layout (gotcha 27) ---
   844x390, 932x430, 667x375: wide but almost no height. Type over the photo
   left (sticky, viewport-tall), the panel compact and top-aligned. Placed
   LAST so it wins at equal specificity. */
@media (min-width: 560px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  :root { --cx: calc(var(--gutter) + (100vw - 2 * var(--gutter) - 22px - 370px) / 2); }
  .page { height: auto; min-height: 100svh; }
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: 22px;
    padding: 10px var(--gutter) 12px;
  }
  .bill {
    position: sticky; top: 10px;
    width: min(100%, 72vh); max-width: none; justify-self: center;
    height: calc(100svh - 20px);
    justify-content: space-between;
  }
  .bill__top { margin-top: 0; }
  .bill__date { margin: 0; }
  .bill__date::before { display: none; }
  .signup { width: 370px; max-width: none; }
  .signup__mark { margin: 14px 0 0; }
  .signup__mark img { width: 80px; }
  .panel__inner { padding: 16px 20px 18px; }
  .spine { margin-bottom: 12px; }
  .spine__step { padding: 6px 4px 5px; font-size: 11px; }
  .panel__title { font-size: 1.3rem; margin-bottom: 8px; }
  .panel__lede { font-size: 13.5px; margin-bottom: 12px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding: 10px 12px; }
  .form__row--check { margin: 10px 0 12px; }
  .btn:not(.btn--whatsapp) { padding: 12px 16px; }   /* the WA button keeps its chip layout */
  .btn--whatsapp { min-height: 46px; }
  .foot { padding-top: 6px; }
}
