/* ============================================================
   Document & Rosado present PACO OSUNA
   Document, Bristol - Friday 11 December 2026
   Sign-up. Client: Louder Entertainment & Document.

   DIRECTION
   The artwork is a long-exposure photograph shot under a darkroom
   safelight: Rosado's butterfly-R and a face smeared sideways into
   red. The client supplied it as LAYERS (plate per aspect ratio,
   type lockup, corner logos), so the poster is rebuilt as the page
   instead of being boxed: the plate is the full-bleed ground, the
   lockup is the <h1>, and the composition follows the poster's own -
   image up top, billing low on the left over the plate's dark lower
   band, the sign-up panel in the near-black right third.

   COLOUR - literal pixels from the supplied layers:
     #050101  plate black     (desktop_background.png, darkest third)
     #E10303  safelight red   (the plate's top 2% of reds)
     #FFFFFF  poster type     (text.png)
   The red measures 4.12:1 on the panel: enough for the large panel
   titles, NOT for body-size text, so small red text uses a lifted
   ember (#FF5247, 6.40:1). White on the red button is 4.98:1.

   TYPE - the poster's billing face is a wide grotesk, present on the
   page as the lockup image. Archivo Expanded echoes that width for the
   live chrome, and it re-sets the DATE: the artwork prints "FRIDAY 12TH
   DECEMBER", but 12 Dec 2026 is a Saturday and the show is Friday 11th
   (Adam, 2026-09-29). The live date is sized off the artwork's own date
   line - 3.4% of the lockup width, measured with Pillow against the
   woff2 - so the corrected line sits in the lockup's rhythm. The artwork
   face is Titling Gothic FB Wide Bold (Font Bureau, commercial, we hold no
   licence); Adam 2026-09-29: use a free lookalike. Archivo Expanded 700 is
   that stand-in, same wide straight-sided grotesk at the named weight.

   MOTION - one moment only: the billing arrives as a sideways smear and
   settles into focus, the way the photograph was taken. Nothing else
   animates on load. Off under prefers-reduced-motion.
   ============================================================ */

@font-face {
  font-family: "Archivo Exp";
  src: url("/assets/fonts/ArchivoExp.woff2?v=20260929-2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-var.woff2?v=20260929-2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void:      #050101;   /* plate black - page ground */
  --panel:     #0B0202;   /* panel base */
  --field:     #170505;   /* form field - OPAQUE on purpose, see autofill note */
  --safelight: #E10303;   /* artwork red - button fill, structure, large titles */
  --ember:     #FF5247;   /* lifted red for SMALL red text (6.40:1 on panel) */
  --paper:     #FFFFFF;   /* poster type */
  --ash:       #BBACAA;   /* reading copy (9.37:1 on panel) */
  --ash-dim:   #8F817F;   /* secondary copy + placeholders (5.30:1 on field) */
  --danger:    #FF7A70;
  --whatsapp:  #25D366;
  --line:      rgba(225,3,3,.34);

  --display: "Archivo Exp", "Helvetica Neue", Arial, sans-serif;
  --body:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
}

*, *::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 and the
   element stays on screen with no error anywhere. Keep this rule ABOVE
   everything that sets display, and never remove it. */
[hidden] { display: none !important; }

/* Ground colour lives on html, NOT body: an opaque body background paints over
   the z-index:-2 .bg layer and the artwork disappears. */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--body);
  color: var(--ash);
  background: transparent;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- the artwork, rebuilt as the page ground ----------
   Four plates, chosen by aspect ratio rather than width alone: width-only
   breakpoints leave a gap at squarish window shapes where neither the phone
   nor the desktop plate applies. The <link rel=preload> conditions in the
   head mirror these four rules exactly, so nothing preloads unused.
   Both plates are the client's own, resized only. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--void);
  background-image: url("/assets/images/bg-mobile-sm.webp?v=20260929-2");
  background-position: center top;
  background-size: cover;
}
@media (max-aspect-ratio: 7/10) and (min-width: 501px) {
  .bg { background-image: url("/assets/images/bg-mobile.webp?v=20260929-2"); }
}
@media (min-aspect-ratio: 7/10) {
  /* top-anchored: the butterfly-R sits in the upper half and the billing
     goes in the dark band below it, as on the poster */
  .bg { background-image: url("/assets/images/bg-desktop-sm.webp?v=20260929-2"); background-position: 40% top; }
}
@media (min-aspect-ratio: 7/10) and (min-width: 1501px) {
  .bg { background-image: url("/assets/images/bg-desktop.webp?v=20260929-2"); }
}

/* No scrim: removed at Adam's request 2026-09-29, the plate shows at full
   strength. White billing on the brightest red is still 4.98:1, and the panel
   carries its own near-opaque ground. */

/* ============================================================
   STAGE
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;                 /* auto at EVERY breakpoint - never plain 0 */
  padding: clamp(22px, 4vw, 54px) clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
}
.stage__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

/* ---------- the bill: lockup + live date + promoter logos ----------
   .bill is a size container so the date can be sized in cqw of the lockup's
   own width. Safe here (gotcha 35) because .bill always has a definite width:
   width:100% of its column, and the sibling panel track is a fixed-max
   minmax(0, 500px), never auto. The lockup is width:100% in every layout, so
   container width == lockup width and 3.4cqw is the artwork's ratio exactly. */
.bill {
  container-type: inline-size;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.bill__h1 {
  margin: 0;
  font-weight: inherit;
  animation: smear 1.1s cubic-bezier(.2,.75,.25,1) both;
}
.bill__lockup {
  display: block;
  width: 100%;
  height: auto;
}
/* "Full lineup TBA": its own layer, at its native share of the lockup width
   (440/841 = 52.3%) and the artwork's 74px gap (8.8cqw). Centred by default
   (phones, Adam 2026-09-29); left-aligned in the wide layouts below. */
.bill__tba {
  display: block;
  width: 52.3%;
  height: auto;
  margin: 8.8cqw auto 0;
}
.bill__date {
  display: block;
  margin-top: 6.5cqw;
  font-family: var(--display);
  font-weight: 700;                /* Titling Gothic FB Wide BOLD stand-in */
  font-size: max(11px, 3.4cqw);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;      /* sentence case in the markup for screen readers */
  color: var(--paper);
}
/* Promoter logos: own grid item (see the RESPONSIVE areas). Under the
   billing on wide screens, below the sign-up panel on phones. */
.logos { justify-self: center; width: min(62%, 250px); }
.bill__logos { display: block; width: 100%; height: auto; opacity: .92; }
/* The one load moment: a sideways smear resolving to sharp, like the shot. */
@keyframes smear {
  0%   { opacity: 0; filter: blur(9px); transform: translateX(-3%) scaleX(1.08); }
  55%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0);   transform: none; }
}

/* ============================================================
   SIGNUP PANEL
   ============================================================ */
.signup {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  /* Load-bearing. The logos come AFTER this section in the DOM (they sit below
     the panel on phones) and carry opacity < 1, which gives them their own
     stacking layer - painted over the whole panel, country dropdown included,
     whose z-index only counts inside the panel's isolated stack. Lifting the
     section above its later siblings keeps the dropdown on top. */
  position: relative;
  z-index: 2;
}
.panel {
  width: 100%;
  position: relative;
  isolation: isolate;             /* keeps the country dropdown above the panel chrome */
  background: rgba(11,2,2,.9);
  border: 1px solid var(--line);
  border-top: 2px solid var(--safelight);
  border-radius: 2px;
  box-shadow: 0 34px 80px -30px rgba(0,0,0,.95);
  overflow: visible;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.panel__inner { position: relative; z-index: 1; padding: clamp(24px, 3.2vw, 36px); }

/* --- 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
   Three cells driven by the same data-form-state the form logic
   sets. Numbered because it genuinely is a sequence: form -> SMS
   code -> email confirm, and OTP drop-off is worst when people
   cannot see how much is left.
   ============================================================ */
.spine {
  display: flex;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(5,1,1,.6);
}
.spine__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 6px 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ash-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: 16px; height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
}
.spine__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* current step */
.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(225,3,3,.16);
}
.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(--safelight);
  border-color: var(--safelight);
  color: var(--paper);
}
/* completed steps: the numeral is replaced by a tick */
.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(--ember);
}
.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(--ember);
  background: rgba(225,3,3,.18);
}
.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(--ember);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
@media (max-width: 400px) {
  .spine__step { font-size: 9.5px; letter-spacing: .02em; gap: 5px; padding: 8px 3px 7px; }
  .spine__n { width: 14px; height: 14px; }
}

/* ============================================================
   PANEL COPY
   ============================================================ */
.panel__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.32rem, 3.4vw, 1.62rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--paper);
  text-wrap: balance;
}
/* House pattern across the fleet: the second line carries the accent. Large
   bold text, so the raw safelight red is enough here (4.12:1 vs the 3:1 large
   text bar). Reset from italic: the face has no true italic. */
.panel__title em { font-style: normal; color: var(--safelight); }
.panel__lede {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ash);
  max-width: 46ch;
}
.panel__lede--last { margin-bottom: 20px; }
.panel__lede strong { color: var(--paper); font-weight: 600; }
.panel__success-note { margin: 0 0 12px; color: var(--ember); font-size: 14.5px; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 13px; }
/* 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(--body);
  font-size: 16px;                /* 16px minimum or iOS zooms the page on focus */
  color: var(--paper);
  background: var(--field);       /* OPAQUE - see the autofill rule below */
  border: 1px solid rgba(225,3,3,.32);
  border-radius: 2px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: var(--ash-dim); opacity: 1; }
.form__input:focus {
  outline: none;
  border-color: var(--safelight);
  box-shadow: 0 0 0 3px rgba(225,3,3,.22);
}
.form__input--otp {
  font-family: var(--display);
  font-weight: 600;
  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 /
   background-color on :-webkit-autofill - a huge inset box-shadow is the only
   reliable override. A box-shadow cannot be semi-transparent, so the colour
   must be the FLATTENED OPAQUE equivalent of the field's rendered stack. That
   is trivially --field here because the field was made opaque on purpose; keep
   it opaque, or this value has to be recomputed by compositing field over
   panel over the background plate. */
.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: 17px 0 19px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ash);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--safelight);
  cursor: pointer;
}
.form__check a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.form__check a:hover { color: var(--ember); }

.form__resend {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ash-dim);
  text-align: center;
}
.form__resend-btn {
  font: inherit;
  color: var(--ember);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.form__resend-btn:disabled { color: var(--ash-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(--display);
  font-weight: 800;
  font-size: clamp(.8rem, 2.9vw, .92rem);
  letter-spacing: clamp(.03em, .3vw, .07em);
  text-transform: uppercase;
  white-space: nowrap;            /* shrink the type before it can ever wrap */
  text-align: center;
  text-decoration: none;          /* <a class="btn"> needs this, <button> doesn't */
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .12s ease, filter .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
/* White on the safelight: 4.98:1. */
.btn--primary {
  color: var(--paper);
  background: var(--safelight);
  box-shadow: 0 14px 32px -14px rgba(225,3,3,.8);
}
.btn--primary:hover:not(:disabled) { filter: brightness(1.1); }
.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(--ash); }
.wa-hook strong { color: var(--paper); font-weight: 600; }

/* ============================================================
   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(225,3,3,.55);
  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 clears the
     absolutely positioned search icon, 28px right clears the clear button. A
     padding SHORTHAND that drops them puts the magnifier on top of the
     placeholder text. Set the vertical values, keep the horizontal ones. */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--body);
  font-size: 14px;
  color: var(--paper);
  background: var(--field);
  border: 0;
  border-bottom: 1px solid rgba(225,3,3,.4);
}
.iti__search-input::placeholder { color: #8F817F; }
.iti__search-input:focus { outline: none; background: #1F0707; }
.iti__country-list { background: var(--panel); max-height: 240px; }
.iti__country {
  padding: 9px 12px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--paper);
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(225,3,3,.18); }
.iti__dial-code { color: var(--ash-dim); }
.iti__country-name { color: var(--paper); }
.iti__selected-country { border-radius: 2px 0 0 2px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(225,3,3,.14); }
.iti__selected-dial-code { color: var(--paper); font-family: var(--body); font-size: 15px; }
.iti__arrow { border-top-color: var(--ash-dim); }
.iti__arrow--up { border-bottom-color: var(--ash-dim); }

/* ============================================================
   FOOTER - standard fleet band (basslayerz pattern), credit in a pill
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(5,1,1,.78);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--ash-dim); letter-spacing: .02em; }
.foot__legal a { color: var(--ash-dim); text-decoration: none; }
.foot__legal a:hover { color: var(--ember); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ash-dim);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { color: var(--paper); border-color: var(--safelight); }
/* the credit logo is teal-on-dark artwork: dark band, so a bare opacity only */
.site-built img { display: block; opacity: .9; }

/* ============================================================
   RESPONSIVE
   Aspect-ratio thresholds, not width alone.
   Grid areas carry the logo move: phones stack bill / signup / logos
   (logos below the panel, Adam 2026-09-29); wide screens put the logos
   under the billing in the left column and the panel spans both rows.
   ============================================================ */
.stage__inner { grid-template-areas: "bill" "signup" "logos"; }
.bill   { grid-area: bill; }
.signup { grid-area: signup; }
.logos  { grid-area: logos; }

/* --- two column: billing left, panel right ---
   Billing + logos are centred as a group against the panel: the panel spans
   both rows, the bill sits at the bottom of row 1 and the logos at the top of
   row 2, so the pair meets at the panel's midline. (First pass pinned the
   billing to the viewport bottom like the poster; Adam 2026-09-29: "weirdly
   low down". Do not reinstate.) */
@media (min-width: 900px) and (min-aspect-ratio: 7/10) {
  .stage__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    grid-template-rows: auto auto;
    grid-template-areas: "bill signup" "logos signup";
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 26px;
    align-items: center;
  }
  .bill   { justify-self: start; align-self: end; max-width: 540px; text-align: left; }
  .logos  { justify-self: start; align-self: start; width: min(46%, 250px); }
  .signup { justify-self: end; }
  .bill__tba  { margin-left: .6cqw; }   /* re-adds the 5px bearing cropped off the ink */
  .bill__date { margin-left: .4cqw; }
}

@media (max-width: 899px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}

/* Phones: stack the footer rather than relying on the flex row wrapping.
   Around 390px the copyright + "built by" row is JUST wide enough to fill the
   band, so centring it reads as left-aligned. Force a centred column. */
@media (max-width: 480px) {
  .foot {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 22px;
  }
  .foot__left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  /* The lockup is wide and short (841x253), so it can take the full width
     and still leave the form near the fold. */
  .bill { max-width: 400px; }
  .stage { padding-top: clamp(18px, 5vw, 54px); }
  .stage__inner { gap: 22px; }
  .logos { width: min(66%, 230px); margin-top: 4px; }
}

/* --- landscape phones are a first-class layout ---
   A rotated phone (844x390, 932x430, 667x375) satisfies the wide conditions
   while having almost no height. Compact side-by-side: billing top-left,
   logos under it, panel right; tighter type. Placed AFTER the desktop block
   so it wins at equal specificity. The lockup is 3.3:1, so at these widths its
   WIDTH is always the binding size - no height cap needed (and none means
   container width == lockup width, which the date's cqw sizing relies on). */
@media (min-width: 640px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  .stage { padding: 14px clamp(12px, 3vw, 26px); align-items: flex-start; }
  .stage__inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "bill signup" "logos signup";
    column-gap: 22px;
    row-gap: 16px;
    align-items: start;
  }
  .bill   { justify-self: start; align-self: start; max-width: none; text-align: left; min-height: 0; }
  .bill__tba { margin-left: .6cqw; }
  .logos  { justify-self: start; width: min(56%, 190px); }
  .signup { justify-self: stretch; max-width: none; min-height: 0; }
  .panel__inner { padding: 16px 18px; }
  .spine { margin-bottom: 13px; }
  .panel__title { font-size: 1.15rem; margin-bottom: 8px; }
  .panel__lede { font-size: 13px; margin-bottom: 7px; }
  .panel__lede--last { margin-bottom: 12px; }
  .form__row { margin-bottom: 10px; }
  .form__input { padding: 10px 13px; }
  .form__row--check { margin: 12px 0 13px; }
  .btn { padding: 12px 16px; }
  .iti__country-list { max-height: 150px; }
}

/* --- small phones --- */
@media (max-width: 400px) {
  .panel__inner { padding: 22px 18px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
