/* ============================================================
   SOLID GROOVES LONDON - "The Home Coming" sign-up (solid-grooves.uk). 2 Dec 2026.
   Look: the approved "Liquid" mock-up (direction 3). The marbled artwork (generated by us:
   ultramarine, tangerine, cream) is the page's own ground and drifts slowly (scene.js);
   the lockup sits straight on it in white, tight Inter Tight caps as on Solid Grooves' 2026
   posters; the sign-up lives in one cream panel.
   Layout: WIDE (>= 900px and >= 7/10) = centred lockup over a wide form strip.
            STACKED (everything else) = lockup, then a single-column panel.
            LANDSCAPE PHONE (<= 520px tall) = lockup left, compact panel right.
   Contrast: navy on cream 15.6:1, navy on orange 5.9:1, white on navy 17.6:1,
   error red on cream 6.5:1.
   ============================================================ */
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-var-latin.woff2?v=20261202-6") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:   #0a0f4a;
  --blue:   #1b2bd8;
  --cream:  #f6ebd6;
  --orange: #ff5a1f;
  --white:  #ffffff;
  --field:  #ffffff;            /* OPAQUE on purpose: the autofill rule paints this exact colour */
  --error:  #a8141c;
  --wa:     #128c4b;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* html carries the base colour; body stays transparent so it never paints over .bg (gotcha 16). */
html { background: var(--navy); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- the liquid ground ----------
   Phones: absolute against the body, so the picture runs the full document height and under
   Safari's floating toolbar (gotcha 39). Wide: fixed. */
.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--blue) url("/assets/images/bg-mobile.webp?v=20261202-6") center / cover no-repeat;
}
.bg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.bg__canvas.is-live { opacity: 1; }

.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 5vw, 34px);
  padding: clamp(28px, 7vw, 44px) var(--gutter) clamp(28px, 6vw, 44px);
}

/* ---------- lockup ---------- */
.lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
/* a soft navy pool behind the type so white always reads on the cream bands */
.lockup::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(10,15,74,.66), rgba(10,15,74,0));
  pointer-events: none;
}
/* Emblem large, wordmark small (Adam 2 Dec 2026: "logo motif bigger and the text smaller"), as on versions 2 and 3. */
.lockup__mark { width: min(29vw, 150px); height: auto; aspect-ratio: 1; color: var(--white); margin-bottom: clamp(10px, 3vw, 16px); }
.lockup__name {
  margin: 0;
  font-weight: 700;
  font-size: min(12.4vw, 64px);
  line-height: .92;
  letter-spacing: -.06em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 3px 24px rgba(10,15,74,.5);
}
.lockup__brk { display: block; }
.lockup__name .lockup__brk { display: inline; }
.lockup__tag {
  margin: clamp(6px, 1.8vw, 10px) 0 0;
  font-weight: 600;
  font-size: min(7.2vw, 36px);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(10,15,74,.5);
}
.lockup__city {
  margin: clamp(8px, 2.4vw, 12px) 0 0;
  font-weight: 600;
  font-size: clamp(16px, 4.6vw, 20px);
  line-height: 1.3;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(10,15,74,.65);
}

/* ---------- panel ---------- */
.signup { width: 100%; display: flex; justify-content: center; }
.panel {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--cream);
  color: var(--navy);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(10,15,74,.35);
}
.panel__inner { padding: 24px 20px 22px; }

/* exactly one state visible */
.panel__state { display: none; }
.panel[data-form-state="idle"]    .panel__idle,
.panel[data-form-state="otp"]     .panel__otp,
.panel[data-form-state="success"] .panel__success { display: block; }

.panel__title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(27px, 7.4vw, 34px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.panel__lede { margin: 0 0 16px; font-size: 16px; line-height: 1.4; }
.panel__lede--small { font-size: 14px; }
.panel__success-note { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.panel__otp, .panel__success { text-align: center; }
.panel__otp .panel__lede, .panel__success .panel__lede { max-width: 34em; margin-left: auto; margin-right: auto; }

/* ---------- form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__fields { display: flex; flex-direction: column; gap: 13px; }
.form__row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form__label { font-size: 14px; font-weight: 600; line-height: 1.2; }
.form__input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 2px solid var(--navy);
  border-radius: 27px;
  background: var(--field);
  color: var(--navy);
  font: inherit;
  font-size: 17px;                 /* >= 16px: no iOS zoom on focus */
  -webkit-appearance: none;
          appearance: none;
}
.form__input::placeholder { color: #5b608d; opacity: 1; }
.form__input:focus { outline: none; }
.form__input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.form__input--otp { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .3em; padding: 0 12px 0 calc(12px + .3em); }

/* Chrome paints autofilled inputs pale lavender and IGNORES background on
   :-webkit-autofill; a huge inset box-shadow is the only override. The field is an
   opaque white (--field), so the shadow is that same white. */
.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 #ffffff inset !important;
          box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0a0f4a !important;
  caret-color: #0a0f4a;
  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: 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--error); }
.form__error--global { text-align: center; }

.form__row--check { gap: 8px; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.form__check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--navy);
}
.form__check input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.form__note { margin: 0; font-size: 13px; line-height: 1.4; }
.form__note a, .form__check a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 28px;
  font: inherit;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .12s ease;
}
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--navy); color: var(--cream); }
.btn--primary:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--whatsapp { background: var(--wa); color: #ffffff; max-width: 360px; }
.btn--whatsapp:hover { background: #0c6b39; color: #ffffff; }
.btn__icon { width: 24px; height: 24px; flex: none; }

.form--otp { max-width: 340px; margin: 0 auto; }
.form__resend { margin: 0; font-size: 14px; text-align: center; }
.form__resend-btn { padding: 0; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.form__resend-btn:hover { color: var(--blue); }
.form__resend-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wa-hook { margin: 4px 0 12px; font-size: 16px; line-height: 1.35; }

/* ---------- intl-tel-input (v25) ---------- */
.iti { width: 100%; display: block; }
.iti input.form__input { padding-left: calc(52px + .7rem); }   /* repadPhone() in app.js re-measures */
.iti__country-container { z-index: 3; }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }
/* hidden state lives in the vendor stylesheet; without this the list flashes open on first paint */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  margin-top: 6px;
  border: 2px solid var(--navy);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(10,15,74,.3);
}
/* keep the vendor's horizontal reservation for the search icon + clear button (gotcha 33) */
.iti__search-input {
  width: 100%;
  padding: 11px 30px 11px 34px;
  border: 0;
  border-bottom: 1px solid rgba(10,15,74,.2);
  border-radius: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
}
.iti__search-input::placeholder { color: #5b608d; }
.iti__search-input:focus { outline: none; }
.iti__search-icon-svg, .iti__search-clear-svg { color: var(--navy); }
.iti__country-list { background: #ffffff; max-height: 230px; }
.iti__country { padding: 9px 12px; font-family: var(--font); font-size: 15px; color: var(--navy); }
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(27,43,216,.12); }
.iti__dial-code { color: #4a4f80; }
.iti__country-name { color: var(--navy); font-weight: 600; }
.iti__selected-country { border-radius: 27px 0 0 27px; }
.iti__selected-country-primary { padding-left: 16px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(10,15,74,.06); }
.iti__selected-dial-code { color: var(--navy); font-family: var(--font); font-size: 16px; padding-right: 2px; }
.iti__arrow { border-top-color: var(--navy); }
.iti__arrow--up { border-bottom-color: var(--navy); }

/* ---------- footer: house pattern, on a solid navy band so it reads on any part of the art ---------- */
.foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  color: #d5d8f2;
}
.foot__right { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.foot__legal { margin: 0; font-size: 13px; line-height: 1.3; }
.foot__legal a, .foot__legal button { color: #ffffff; text-decoration: none; font: inherit; }
.foot__legal a:hover, .foot__legal button:hover { color: var(--orange); text-decoration: underline; }
.foot__links a + a,
.foot__legal [data-louder-consent-open] { margin-left: .75em; padding-left: .85em; border-left: 1px solid rgba(255,255,255,.28); }
.site-built { margin: 0; font-size: 12px; line-height: 1; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #d5d8f2;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}
.site-built a:hover, .site-built a:focus-visible { border-color: var(--orange); color: #ffffff; }
.site-built img { display: block; width: 64px; height: 14px; opacity: .9; }
@media (max-width: 480px) {
  .foot, .foot__right { flex-direction: column; justify-content: center; text-align: center; }
}

/* ============================================================
   WIDE: centred lockup over a wide form strip (the approved desktop board)
   ============================================================ */
@media (min-width: 900px) and (min-aspect-ratio: 7/10) {
  .bg { position: fixed; background-image: url("/assets/images/bg-desktop.webp?v=20261202-6"); }
  .stage {
    justify-content: center;
    gap: clamp(26px, 5svh, 54px);
    padding: clamp(28px, 5svh, 64px) max(32px, env(safe-area-inset-left, 0px)) clamp(28px, 5svh, 56px);
  }
  .lockup::before { inset: -18% 8%; }
  .lockup__mark { width: clamp(110px, 19svh, 200px); margin-bottom: clamp(10px, 1.8svh, 18px); }
  .lockup__name { font-size: min(5.8vw, 10svh, 92px); }
  .lockup__brk { display: inline; }
  .lockup__tag { margin-top: clamp(6px, 1svh, 10px); font-size: min(3.2vw, 5.4svh, 48px); white-space: nowrap; }
  .lockup__city { margin-top: clamp(8px, 1.4svh, 14px); font-size: clamp(18px, 2.7svh, 24px); }

  .panel { max-width: 1200px; }
  .panel__inner { padding: 30px 34px 26px; }
  .panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 18px; }
  .panel__head .panel__title { margin: 0; white-space: nowrap; }
  .panel__head .panel__lede { margin: 0; flex: 1 1 22em; text-align: right; text-wrap: balance; }
  .form { gap: 16px; }
  /* three equal tracks, labels on top, button on the fields' own line */
  .form__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .form__row--btn { padding-top: calc(14px * 1.2 + 6px); }   /* label line + gap, so the button sits level with the inputs */
  .form__input, .btn { height: 56px; }
  .form__check { align-items: center; }
  .panel__otp .panel__title, .panel__success .panel__title { margin-bottom: 12px; }
}

/* ============================================================
   LANDSCAPE PHONES and other short, wide windows: lockup left, compact panel right.
   After the wide block so it wins at equal specificity (gotcha 27).
   ============================================================ */
@media (min-width: 640px) and (min-aspect-ratio: 7/10) and (max-height: 520px) {
  .bg { position: fixed; background-image: url("/assets/images/bg-desktop.webp?v=20261202-6"); }
  .stage {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 16px max(18px, env(safe-area-inset-left, 0px)) 18px max(18px, env(safe-area-inset-right, 0px));
  }
  .lockup { flex: 1 1 0; min-width: 0; align-self: center; }
  .lockup::before { inset: -10% -4%; }
  .lockup__mark { width: min(22svh, 96px); margin-bottom: 8px; }
  .lockup__name { font-size: min(5.6vw, 13svh); }
  .lockup__brk { display: block; }
  .lockup__tag { margin-top: 6px; font-size: min(3vw, 7.4svh); white-space: normal; }
  .lockup__city { margin-top: 6px; font-size: 15px; }
  .signup { flex: 0 0 min(400px, 50%); width: auto; }
  .panel { max-width: none; border-radius: 22px; }
  .panel__inner { padding: 16px 16px 14px; }
  .panel__head { display: block; margin: 0; }
  .panel__head .panel__title, .panel__title { margin: 0 0 6px; font-size: 22px; white-space: normal; }
  .panel__head .panel__lede, .panel__lede { margin: 0 0 10px; font-size: 13.5px; }
  .form { gap: 10px; }
  .form__fields { display: flex; flex-direction: column; gap: 9px; }
  .form__row--btn { padding-top: 0; }
  .form__row { gap: 4px; }
  .form__label { font-size: 12.5px; }
  .form__input, .btn { height: 46px; min-height: 46px; }
  .form__check { font-size: 12px; align-items: flex-start; }
  .form__note { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .site-built a, .bg__canvas { transition: none; }
}
