/* ============================================================
   Dub Pistols present Mucky Weekender Festival 2027
   Sign-up. Client: Mucky Weekender (CBD Festivals Limited).

   DIRECTION
   The artwork is a mirrored photograph of a festival big top,
   toned to one copper-brown, with a white showbill lockup: a
   didone "Mucky", a script "Weekender" on a ribbon, "2027" in
   copper. It is an old-circus bill set over a modern rave, so the
   page takes the bill's side: warm, lit from below, serif-led,
   rather than the cold grotesque most sign-up pages default to.

   COLOUR - literal pixels from the supplied files:
     #140A02  plate shadow, 25th percentile  (Desktop_background.jpg)
     #2C1704  plate midtone at the edges     (Desktop_background.jpg)
     #CC9562  the lockup's copper            (Overlay 27.png: "2027", PRESENT)
     #FFFFFF  the lockup's white             (Overlay 27.png)
   Copper measures 7.49:1 on #140A02, so it can carry text AND the
   button face (dark ink on copper is also 7.49:1). The whole UI
   runs on those two colours plus a warm sand for reading copy.

   TYPE
   Bodoni Moda (OFL) for titles: the lockup's "2027" and its own
   serif are high-contrast didones, and Bodoni Moda has a TRUE
   italic, so the house two-line title keeps its hook in real
   italic instead of a colour-only reset. Barlow Semi Condensed
   (OFL) for everything else: it answers the narrow poster type of
   the "DUB PISTOLS" mark without competing with the serif.

   SIGNATURE
   The step rail. The supplied overlay draws a rule broken by a
   dot beneath "2027"; the panel reuses that exact device as the
   three-step progress (sign up, verify, confirm). It is a real
   sequence, so it earns the dots. Everything else stays quiet.
   ============================================================ */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin.woff2?v=20260914-3") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-ext.woff2?v=20260914-3") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-italic-latin.woff2?v=20260914-3") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("/assets/fonts/barlow-sc-400.woff2?v=20260914-3") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("/assets/fonts/barlow-sc-500.woff2?v=20260914-3") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("/assets/fonts/barlow-sc-600.woff2?v=20260914-3") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("/assets/fonts/barlow-sc-700.woff2?v=20260914-3") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --pit:        #140A02;   /* plate shadow - page ground */
  --plate:      #2C1704;   /* plate midtone */
  --panel-top:  rgba(38,20,5,.90);
  --panel-foot: rgba(20,10,2,.95);
  --field:      #231306;   /* OPAQUE on purpose - see the autofill rule */
  --copper:     #CC9562;   /* lockup copper - accent, text AND button (7.49:1) */
  --copper-hot: #D9A878;
  --copper-deep:#A9754A;   /* structure + button foot (dark ink 5.2:1) */
  --line:       rgba(204,149,98,.38);
  --white:      #FFFFFF;   /* lockup white - titles */
  --sand:       #E6D5C3;   /* typed text, strong copy */
  --sand-dim:   #BFA58A;   /* reading copy, 8.1:1 on the panel */
  --sand-mute:  #8F7A64;   /* placeholders, 4.66:1 */
  --danger:     #F0A08C;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans:  "Barlow SC", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
}

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

/* The `hidden` attribute is only display:none in the UA stylesheet, so ANY
   author rule that sets display beats it and the element stays visible with no
   error. Keep this ABOVE every rule that sets display. */
[hidden] { display: none !important; }

/* Ground colour on html, NOT body: an opaque body paints over the fixed .bg. */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--pit);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--sand-dim);
  background: transparent;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- the artwork plate as the page ground ----------
   Four plates chosen by ASPECT RATIO, not width alone, so squarish windows
   never fall in a gap. The <link rel=preload> media in <head> mirror these. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--pit);
  background-image: url("/assets/images/bg-mobile-sm.webp?v=20260914-3");
  background-position: center bottom;
  background-size: cover;
}
@media (max-aspect-ratio: 7/10) and (min-width: 501px) {
  .bg { background-image: url("/assets/images/bg-mobile.webp?v=20260914-3"); }
}
@media (min-aspect-ratio: 7/10) {
  .bg { background-image: url("/assets/images/bg-desktop-sm.webp?v=20260914-3"); background-position: center; }
}
@media (min-aspect-ratio: 7/10) and (min-width: 1501px) {
  .bg { background-image: url("/assets/images/bg-desktop.webp?v=20260914-3"); }
}
/* Scrim. The plate is the client's live photo (IM_04444.jpg, supplied
   2026-09-14): a yellow-and-black striped big top with lit beams, far brighter
   than the original copper plates (95th-percentile luminance 195). A flat
   scrim strong enough for the copper "2027" (70%) turned the photo to mud, so
   it is three layers instead: a moderate even wash, a POOL of shadow behind
   wherever the lockup sits, and a foot ramp under the footer. The pool follows
   the lockup, so its position changes with the layout below. Values were
   chosen from composited mocks, not guessed. */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 22% at 50% 14%, rgba(20,10,2,.60) 0%, rgba(20,10,2,0) 100%),
    linear-gradient(180deg, rgba(20,10,2,0) 55%, rgba(20,10,2,.40) 100%),
    linear-gradient(rgba(20,10,2,.42), rgba(20,10,2,.42));
}
/* two-column: the lockup is the left column */
@media (min-width: 900px) and (min-aspect-ratio: 7/10) {
  .bg::after {
    background:
      radial-gradient(36% 48% at 33% 48%, rgba(20,10,2,.62) 0%, rgba(20,10,2,0) 100%),
      linear-gradient(180deg, rgba(20,10,2,0) 55%, rgba(20,10,2,.40) 100%),
      linear-gradient(rgba(20,10,2,.42), rgba(20,10,2,.42));
  }
}
/* landscape phones: compact side by side, lockup in the left ~45% */
@media (min-width: 640px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  .bg::after {
    background:
      radial-gradient(34% 60% at 25% 50%, rgba(20,10,2,.64) 0%, rgba(20,10,2,0) 100%),
      linear-gradient(rgba(20,10,2,.44), rgba(20,10,2,.44));
  }
}

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

/* ---------- the bill: the client's lockup is the h1 ---------- */
.bill {
  justify-self: center;
  width: 100%;
  max-width: 600px;
}
.bill__h1 { margin: 0; }
.bill__lockup {
  display: block;
  width: 100%;
  height: auto;                   /* pair with width - never trust the height attr alone */
  animation: riseIn .9s cubic-bezier(.16,.84,.36,1) both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SIGN-UP PANEL
   ============================================================ */
.signup { justify-self: center; width: 100%; max-width: 460px; }
.panel {
  width: 100%;
  position: relative;
  isolation: isolate;             /* keeps the country dropdown above panel chrome */
  background: linear-gradient(180deg, var(--panel-top), var(--panel-foot));
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow:
    0 40px 80px -36px rgba(0,0,0,.92),
    inset 0 1px 0 rgba(255,236,214,.06);
  animation: riseIn .9s .14s cubic-bezier(.16,.84,.36,1) both;
}
/* light spilling onto the top edge from the stage below the lockup:
   brightest at the centre, gone by the corners - so it reads as light,
   not as a border. Under the content layer, never catching clicks. */
.panel::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, rgba(204,149,98,0), var(--copper-hot) 50%, rgba(204,149,98,0));
  z-index: 0;
  pointer-events: none;
}
.panel__inner { position: relative; z-index: 1; padding: clamp(24px, 3.4vw, 38px); }

/* --- 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 RAIL - the signature
   The artwork's rule-and-dot ornament, used as the progress.
   Outside the state wrappers: it is panel chrome, driven by the
   same data-form-state attribute.
   ============================================================ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
/* the rule, running dot centre to dot centre */
.steps::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--line);
}
.steps__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--sand-mute);
  transition: color .25s ease;
}
.steps__dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--pit);
  border: 1px solid var(--copper-deep);
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.steps__t { white-space: nowrap; }

/* current */
.panel[data-form-state="idle"]    .steps__step:nth-child(1),
.panel[data-form-state="otp"]     .steps__step:nth-child(2),
.panel[data-form-state="success"] .steps__step:nth-child(3) { color: var(--copper); }
.panel[data-form-state="idle"]    .steps__step:nth-child(1) .steps__dot,
.panel[data-form-state="otp"]     .steps__step:nth-child(2) .steps__dot,
.panel[data-form-state="success"] .steps__step:nth-child(3) .steps__dot {
  background: var(--copper);
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(204,149,98,.18);
}
/* done */
.panel[data-form-state="otp"]     .steps__step:nth-child(1),
.panel[data-form-state="success"] .steps__step:nth-child(1),
.panel[data-form-state="success"] .steps__step:nth-child(2) { color: var(--sand-dim); }
.panel[data-form-state="otp"]     .steps__step:nth-child(1) .steps__dot,
.panel[data-form-state="success"] .steps__step:nth-child(1) .steps__dot,
.panel[data-form-state="success"] .steps__step:nth-child(2) .steps__dot {
  background: var(--copper-deep);
  border-color: var(--copper-deep);
}

/* ============================================================
   PANEL COPY
   ============================================================ */
.panel__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--white);
  text-wrap: balance;
}
/* house pattern: the hook sits on line two. Bodoni Moda has a true italic,
   so the emphasis is real italic in the copper, not a colour-only reset. */
.panel__title em { font-style: italic; font-weight: 600; color: var(--copper); }
.panel__lede {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--sand-dim);
  max-width: 40ch;
}
.panel__lede strong { color: var(--sand); font-weight: 600; }
.panel__success-note { margin: 0 0 12px; color: var(--copper); font-size: 15px; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 12px; }
/* sr-only labels; the 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(--sans);
  font-size: 17px;                /* >= 16px or iOS zooms on focus */
  color: var(--sand);
  background: var(--field);
  border: 1px solid rgba(204,149,98,.40);
  border-radius: 3px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: var(--sand-mute); }
.form__input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 0 0 3px rgba(204,149,98,.22);
}
.form__input--otp {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .38em;
  text-align: center;
  text-indent: .38em;             /* 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 cannot be translucent, so it must be the field's OPAQUE colour - which
   is exactly --field, because the field was made opaque for this reason.
   box-shadow is one property and this rule is !important, so the recess
   shadow is re-declared here or autofilled fields lose it. */
.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, inset 0 2px 6px rgba(0,0,0,.35) !important;
          box-shadow: 0 0 0 1000px var(--field) inset, inset 0 2px 6px rgba(0,0,0,.35) !important;
  -webkit-text-fill-color: var(--sand) !important;
  caret-color: var(--sand);
  transition: background-color 9999s ease-in-out 0s;
}

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

/* Honeypot. display:none ONLY - an off-screen field stays an autofill target
   in Chrome/Edge, gets filled, and the submit handler drops a real sign-up. */
.hp-row { display: none !important; }

.form__row--check { margin: 18px 0 20px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sand-dim);
  cursor: pointer;
}
/* custom box: appearance none + an inline-SVG tick as a background image
   (pseudo-elements on checkboxes are unreliable across engines) */
.form__check input {
  -webkit-appearance: none;
          appearance: none;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 0;
  background: var(--field) center / 13px 13px no-repeat;
  border: 1px solid rgba(204,149,98,.62);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.form__check input:checked {
  background-color: var(--copper);
  border-color: var(--copper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23140A02' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form__check input:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.form__check a { color: var(--sand); text-decoration: underline; text-underline-offset: 2px; }
.form__check a:hover { color: var(--copper); }

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

/* ---------- button ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 18px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(.95rem, 3.6vw, 1.05rem);
  letter-spacing: clamp(.06em, .5vw, .12em);
  text-transform: uppercase;
  white-space: nowrap;            /* shrink before it can wrap */
  text-align: center;
  text-decoration: none;
  color: var(--pit);
  background: linear-gradient(180deg, var(--copper-hot) 0%, var(--copper) 48%, var(--copper-deep) 100%);
  border: 0;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,240,222,.55),
    inset 0 -2px 0 rgba(20,10,2,.28),
    0 14px 30px -14px rgba(204,149,98,.7);
  cursor: pointer;
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(20,10,2,.35), 0 8px 18px -12px rgba(204,149,98,.6);
}
.btn:disabled { opacity: .65; cursor: default; }

/* ============================================================
   intl-tel-input v25
   ============================================================ */
.iti { width: 100%; display: block; }
/* app.js re-measures and sets padding-left inline (sanity-gated); this is the
   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; }
/* The hidden state lives in the vendor stylesheet; until it loads the whole
   list and search box flash open on first paint. */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  background: #1C0E03;
  border: 1px solid rgba(204,149,98,.6);
  border-radius: 3px;
  box-shadow: 0 26px 56px -18px rgba(0,0,0,.94);
  overflow: hidden;
}
.iti__search-input {
  /* Vertical padding only changes; the 30px left / 28px right reservations
     clear the vendor's absolutely positioned search icon and clear button.
     A padding shorthand that drops them puts the magnifier over the text. */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--sand);
  background: var(--field);
  border: 0;
  border-bottom: 1px solid rgba(204,149,98,.45);
}
.iti__search-input::placeholder { color: var(--sand-mute); }
.iti__search-input:focus { outline: none; background: #2A1708; }
.iti__country-list { background: #1C0E03; max-height: 240px; }
.iti__country {
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--sand);
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(204,149,98,.16); }
.iti__dial-code { color: var(--sand-dim); }
.iti__country-name { color: var(--sand); }
.iti__selected-country { border-radius: 3px 0 0 3px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(204,149,98,.10); }
.iti__selected-dial-code { color: var(--sand); font-family: var(--sans); font-size: 17px; }
.iti__arrow { border-top-color: var(--sand-dim); }
.iti__arrow--up { border-bottom-color: var(--sand-dim); }

/* ============================================================
   FOOTER - fleet band with the credit pill
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 16px clamp(16px, 4vw, 44px) 22px;
  background: rgba(20,10,2,.72);
  border-top: 1px solid rgba(204,149,98,.28);
  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: 13px; color: var(--sand-dim); letter-spacing: .02em; }
.foot__legal a { color: var(--sand-dim); text-decoration: none; }
.foot__legal a:hover { color: var(--copper); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--sand-dim);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid rgba(204,149,98,.32);
  border-radius: 999px;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { border-color: var(--copper); color: var(--sand); }
.site-built img { display: block; opacity: .9; }   /* white wordmark on a dark band - never invert */

/* ============================================================
   RESPONSIVE - aspect-ratio thresholds, not width alone
   ============================================================ */

/* two columns: bill left, panel right */
@media (min-width: 900px) and (min-aspect-ratio: 7/10) {
  .stage__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: clamp(36px, 5vw, 80px);
  }
  .bill   { justify-self: end; }
  .signup { justify-self: start; }
}

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

/* phones: stack the footer rather than trusting the row to wrap */
@media (max-width: 480px) {
  .foot { flex-direction: column; align-items: center; gap: 10px; }
  .foot__left { flex-direction: column; align-items: center; gap: 10px; }
  /* hold the lockup back so the form starts above the fold */
  .bill { max-width: min(420px, 84vw); }
  .stage { padding-top: 18px; }
  .stage__inner { gap: 18px; }
  .panel__inner { padding: 24px 20px; }
  .panel__title { font-size: 2.05rem; }
}

@media (max-width: 360px) {
  .steps__step { font-size: 12px; }
  .panel__inner { padding: 22px 16px; }
}

/* landscape phones are a first-class layout: a rotated phone satisfies the
   two-column conditions above with almost no height. Compact side by side,
   lockup height-capped. AFTER the desktop block so it wins at equal
   specificity. max-width:100% travels with width:auto (gotcha 38). */
@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);
    gap: 22px;
    align-items: start;
  }
  .bill { justify-self: center; max-width: none; min-height: 0; align-self: center; }
  .bill__lockup { max-height: calc(100svh - 40px); width: auto; max-width: 100%; margin: 0 auto; }
  .signup { justify-self: stretch; max-width: none; min-height: 0; }
  .panel__inner { padding: 16px 18px; }
  .steps { margin-bottom: 12px; }
  .steps__step { gap: 5px; font-size: 12px; }
  .panel__title { font-size: 1.55rem; margin-bottom: 6px; }
  .panel__lede { font-size: 14px; margin-bottom: 12px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding: 10px 13px; }
  .form__row--check { margin: 11px 0 12px; }
  .form__check { font-size: 13px; }
  .btn { padding: 12px 16px; }
  .iti__country-list { max-height: 150px; }
}

/* ============================================================
   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(--copper); outline-offset: 2px; }
.form__input:focus-visible { outline: none; }   /* the copper ring on :focus is the indicator */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
