/* ============================================================
   SKIN ON SKIN - NX Newcastle - signup
   Palette sampled from the poster: icy blue duotone on near-black.
   The poster's label system carries the page: ice-on-black bar for
   the lead line, black-on-ice outlined bar for the payoff (same
   headliner/support-act split as the artwork).
   Display + body: Archivo (echoes the poster's bold grotesque).
   ============================================================ */

:root {
  --ice:        #CDEAFB;
  --ice-bright: #DFF2FE;
  --sky:        #5FA9D9;
  --blue-deep:  #15578A;
  --ink:        #0A0C10;
  --navy:       #101A24;
  --navy-2:     #16232F;
  --line:       #2A3E4F;
  --muted:      #93A9BA;
  --danger:     #ff6b5e;
  --whatsapp:   #25D366;

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

  --maxw: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

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

/* ---------- blurred poster background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--ink);
  background-image: url("/assets/images/bg-mobile.jpg");
  background-image: image-set(
    url("/assets/images/bg-mobile.webp") type("image/webp"),
    url("/assets/images/bg-mobile.jpg")  type("image/jpeg"));
  background-position: center;
  background-size: cover;
  transform: scale(1.04); /* hide blur-edge bleed */
}
@media (min-width: 880px) {
  .bg {
    background-image: url("/assets/images/bg-desktop.jpg");
    background-image: image-set(
      url("/assets/images/bg-desktop.webp") type("image/webp"),
      url("/assets/images/bg-desktop.jpg")  type("image/jpeg"));
  }
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 22% 12%, rgba(205,234,251,.10), transparent 55%),
    linear-gradient(180deg, rgba(7,10,14,.55) 0%, rgba(7,10,14,.78) 52%, rgba(7,10,14,.93) 100%);
}

/* ---------- film grain (the poster is pure grain, lean in) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- the poster ---------- */
.poster {
  justify-self: center;
  width: 100%;
  max-width: 600px;
}
.poster__frame {
  position: relative;
  box-shadow:
    0 10px 16px rgba(0,0,0,.5),
    0 34px 52px rgba(0,0,0,.55);
  animation: posterIn .9s cubic-bezier(.16,.84,.36,1) both;
}
.poster img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes posterIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SIGNUP PANEL
   ============================================================ */
.panel {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(16,26,36,.94), rgba(9,13,18,.96));
  border: 1px solid var(--line);
  border-top: 3px solid var(--ice);
  box-shadow: 0 30px 64px -28px rgba(0,0,0,.8);
  animation: panelIn .9s .12s cubic-bezier(.16,.84,.36,1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.panel__inner { padding: clamp(26px, 3.4vw, 40px); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow span {
  flex: 0 0 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky));
}
.eyebrow span:last-child { background: linear-gradient(90deg, var(--sky), transparent); }
/* text span inside the eyebrow (JS swaps it per success state) must not
   inherit the hairline styling above */
.eyebrow span.eyebrow__text { flex: 0 1 auto; height: auto; background: none; }

/* ---------- title: the poster's label-bar system ---------- */
.panel__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  font-size: clamp(2rem, 5.6vw, 2.85rem);
}
.bar {
  display: inline-block;
  padding: .14em .22em .16em;
  white-space: nowrap;
}
.bar--dark {
  background: var(--ink);
  color: var(--ice);
}
.bar--ice {
  background: var(--ice);
  color: var(--ink);
  border: 3px solid var(--ink);
  margin-top: -3px;
  margin-left: .55em; /* staggered like the poster's act boxes */
}

/* visually hidden but kept for screen readers + SEO (h1 lives here since
   the client asked for no visible display title) */
.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;
}

.panel__lede {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 44ch;
}
.panel__lede strong { color: var(--ice-bright); font-weight: 600; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown { margin: 0 0 24px; }
.countdown__label {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ice);
}
.countdown__clock {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cdseg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 9px;
  background: linear-gradient(180deg, var(--navy-2), #0d151d);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.cdseg b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.55rem, 5.2vw, 2rem);
  line-height: 1;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}
.cdseg i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cdsep {
  align-self: center;
  margin-top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 -7px 0 var(--sky);
}
.countdown__live {
  display: none;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--ice);
  border: 3px solid var(--ink);
  padding: 10px 16px;
}
.countdown.is-live .countdown__clock { display: none; }
.countdown.is-live .countdown__label { color: var(--ice-bright); }
.countdown.is-live .countdown__live { display: inline-block; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__optional {
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: none;
  color: #6b8093;
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ice-bright);
  background: #0d141b;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: #52677a; }
.form__input:focus {
  outline: none;
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(205,234,251,.16);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,107,94,.16);
}

/* ---------- honeypot (spam trap) ----------
   display:none, NOT left:-9999px: off-screen honeypots get autofilled by
   Chrome/Edge and silently block real signups. display:none is skipped by
   autofill and by screen readers. */
.hp-field { display: none; }

/* ---------- consent ---------- */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--ice);
}
.form__consent a { color: var(--ice); text-underline-offset: 2px; }

/* ---------- submit: ice box that flips to the dark bar on hover ---------- */
.btn-signup {
  display: block;
  width: 100%;
  cursor: pointer;
  background: var(--ice);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: 0;
  box-shadow: 0 10px 24px -10px rgba(205,234,251,.45);
  transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.btn-signup .btn__face {
  display: block;
  padding: 15px 18px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-signup:hover {
  background: var(--ink);
  color: var(--ice);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.7);
}
.btn-signup:active { transform: translateY(0); }
.btn-signup:disabled {
  background: #8fa4b3;
  color: #1c2630;
  cursor: default;
  transform: none;
}

/* ---------- success state ---------- */
.panel__success { text-align: left; }
.panel__success .panel__lede { margin-bottom: 18px; }

.wa-note {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
  max-width: 44ch;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #06130a;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 13px 20px;
  border-radius: 4px;
  box-shadow: 0 10px 24px -10px rgba(37,211,102,.5);
  transition: transform .12s ease, filter .12s ease;
}
.btn-whatsapp:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-whatsapp svg { flex: 0 0 auto; }

/* ============================================================
   intl-tel-input (v25) - dark theme + searchable dropdown
   ============================================================ */
.iti { width: 100%; display: block; }
.iti__selected-country {
  background: #0a1017;
  border-radius: 4px 0 0 4px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: #121c26; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--ice-bright); }
.iti__dropdown-content {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.85);
  color: var(--ice-bright);
}
.iti__search-input {
  background: #0d141b;
  color: var(--ice-bright);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}
.iti__search-input::placeholder { color: #52677a; }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--ice); }
.iti__search-icon { display: none; }              /* remove magnifying-glass icon */
.iti__search-input { padding-left: 14px; }        /* reclaim the space it left */
.iti__country-list { background: var(--navy); }
.iti__country { color: var(--ice-bright); }
.iti__country:hover,
.iti__country.iti__highlight { background: #1e3040; }
.iti__dial-code { color: var(--muted); }
.iti__country-name { color: var(--ice-bright); }
/* the dropdown must sit above the panel */
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }

/* ============================================================
   FOOTER (full width, basslayerz design)
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(7,10,14,.62);
  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(--muted); letter-spacing: .02em; }
.foot__legal a { color: var(--muted); text-decoration: none; }
.foot__legal a:hover { color: var(--ice); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--ice); color: var(--ice-bright); }
.site-built img { display: block; opacity: .9; }

/* ============================================================
   RESPONSIVE - two columns on wider screens
   ============================================================ */
@media (min-width: 880px) {
  .stage__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
  .poster { justify-self: end; max-width: 540px; }
  .panel  { justify-self: start; }
  .foot { justify-content: space-between; }
}

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

/* very narrow screens: let the title bars shrink instead of overflowing */
@media (max-width: 360px) {
  .panel__title { font-size: 1.7rem; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.iti__selected-country:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .poster__frame, .panel { animation: none; }
  * { scroll-behavior: auto; }
}
