/* ============================================================
   Mall Grab - Sheffield · Electric Studios · 04.09.26
   Visual language from the supplied artwork: grainy flash
   portrait on near-black, mint neo-grotesque type set tight.
   The artwork is shown whole (its type is baked in); the page
   echoes it - same mint, same Helvetica voice, film grain.
   Mint #A9D2BA and ink #080805 sampled from the artwork.
   ============================================================ */

:root {
  --ink:        #080805;
  --mint:       #A9D2BA;
  --mint-page:  #8FB89D;  /* page background green (deepened from client's #B1D1BC, 2026-07-23) */
  --mint-soft:  rgba(169, 210, 186, 0.42);
  --mint-hair:  rgba(169, 210, 186, 0.26);
  --white:      #ffffff;
  --muted:      rgba(255, 255, 255, 0.66);
  --panel-bg:   rgba(10, 12, 10, 0.93);
  --err:        #ff8577;
  /* the artwork's own face is a plain neo-grotesque: match it honestly */
  --font:       "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html { background: var(--mint-page); }
/* body stays transparent: an opaque body background paints OVER the
   z-index:-1 .bg layers and turns the page solid colour */
body {
  position: relative;
  background: transparent;
  min-height: 100svh;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot — display:none only (off-screen positioning gets autofilled) */
.hp-row { display: none !important; }

/* ============================================================
   BACKGROUND — the artwork's mint, with a very slight vertical
   gradient (stays close to #B1D1BC throughout) + film grain
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, #9ac2a8 0%, var(--mint-page) 45%, #81ab90 100%),
    var(--mint-page);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ============================================================
   PAGE SHELL — content column + full-width footer at the base
   ============================================================ */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.stage__inner {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(22px, 4.5vw, 56px) clamp(16px, 4.5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-content: start;
  align-items: center;
}

/* Two columns only in landscape-ish shapes; portrait stacks and centres.
   Aspect-ratio threshold (not width alone) so squarish windows don't gap. */
@media (min-width: 768px) and (min-aspect-ratio: 7/10) {
  .stage__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
  }
  .showcase { justify-self: end; }
  .signup   { justify-self: start; width: 100%; }
}

/* ============================================================
   SHOWCASE — the artwork poster, whole, on a hairline mount
   ============================================================ */
.showcase {
  margin: 0;
  width: 100%;
  max-width: min(520px, 100%);
  justify-self: center;
  /* slight tilt: the poster sits like a print laid on the green */
  transform: rotate(-1.5deg);
}
.showcase__art {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(8, 8, 5, 0.3);
  /* deep layered shadow: the near-black artwork lifts off the green */
  box-shadow:
    0 10px 22px -8px rgba(10, 24, 16, 0.45),
    0 30px 60px -18px rgba(10, 24, 16, 0.5),
    0 70px 130px -40px rgba(10, 24, 16, 0.55);
}

/* ============================================================
   SIGNUP COLUMN — the artwork's date-stamp voice + the panel
   ============================================================ */
.signup { width: 100%; }

/* --- Panel ---------------------------------------------------- */
.panel {
  position: relative;
  isolation: isolate;            /* nothing decorative covers form children */
  width: 100%;
  max-width: 480px;
  margin: 0 auto;                /* keep auto at EVERY breakpoint */
  background: var(--panel-bg);
  border: 1px solid rgba(8, 8, 5, 0.35);
  border-top: 2px solid var(--ink);
  box-shadow:
    0 24px 50px -18px rgba(10, 24, 16, 0.45),
    0 54px 110px -36px rgba(10, 24, 16, 0.5);
}
.panel__inner {
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3.4vw, 32px) clamp(26px, 4vw, 36px);
}
.panel__inner > * { position: relative; z-index: 1; }

/* --- state machine ------------------------------------------- */
.panel__state { display: none; }
.panel[data-form-state="idle"]    .panel__idle    { display: block; }
.panel[data-form-state="success"] .panel__success { display: block; }

/* --- panel type ---------------------------------------------- */
.panel__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.panel__eyebrow-hair {
  flex: 1;
  height: 1px;
  background: var(--mint-hair);
}
.panel__title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.panel__title em {
  font-style: normal;   /* the mint IS the emphasis */
  color: var(--mint);
}
.panel__lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}
.panel__lede strong { color: var(--white); font-weight: 500; }
.panel__success-note {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 15px;
}

/* ============================================================
   FORM
   ============================================================ */
.form { margin: 0; }
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 6px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.form__label-optional { color: rgba(255, 255, 255, 0.45); text-transform: none; letter-spacing: 0.06em; }
.form__input {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;             /* ≥16px stops iOS zoom-on-focus */
  line-height: 1.3;
  transition: border-color 0.15s ease;
}
.form__input::placeholder { color: rgba(255, 255, 255, 0.34); }
.form__input:focus {
  outline: none;
  border-color: var(--mint);
}

.form__row--check { margin-top: 18px; }
.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.form__check input {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  margin: 2px 0 0;
  accent-color: var(--mint);
  cursor: pointer;
}
.form__check a { color: var(--mint); text-decoration: underline; }

.form__error {
  margin: 6px 0 0;
  color: var(--err);
  font-size: 13px;
}
.form__error--global { margin-top: 12px; }

/* --- buttons -------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--mint);
  border: 1px solid var(--mint);
  color: var(--ink);
}
.btn--primary:hover:not(:disabled) { background: #c2e2cf; border-color: #c2e2cf; }
.btn--primary:disabled { opacity: 0.6; cursor: wait; }
.btn__icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* ============================================================
   intl-tel-input — dark theme + styled searchable dropdown
   ============================================================ */
.iti { width: 100%; }
.iti input.form__input { padding-left: calc(52px + 0.7rem); } /* re-measured by repadPhone() */

.iti__selected-country {
  background: transparent;
  color: var(--white);
}
.iti__selected-dial-code { color: var(--muted); font-size: 15px; }
.iti__arrow { border-top-color: var(--mint); }
.iti__arrow--up { border-bottom-color: var(--mint); }

.iti__dropdown-content {
  background: #101310;
  border: 1px solid var(--mint-soft);
  border-radius: 0;
  color: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.iti__search-input {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 1px solid var(--mint-soft);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
}
.iti__search-input::placeholder { color: rgba(255, 255, 255, 0.36); }
.iti__search-input:focus { outline: none; border-bottom-color: var(--mint); }
.iti__country-list { background: transparent; }
.iti__country { padding: 9px 12px; font-size: 14.5px; }
.iti__country.iti__highlight { background: rgba(169, 210, 186, 0.16); }
.iti__country:hover { background: rgba(169, 210, 186, 0.10); }
.iti__dial-code { color: var(--muted); }

/* Hidden state must not depend on the vendor stylesheet having loaded -
   prevents the country list flashing open on first paint */
.iti__dropdown-content.iti__hide { display: none !important; }

/* ============================================================
   FOOTER — basslayerz pattern, full width
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: transparent;           /* no dark bar: footer sits on the green */
  border-top: 1px solid rgba(8, 8, 5, 0.18);
  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: rgba(8, 8, 5, 0.72); letter-spacing: 0.02em; }
.foot__legal a { color: rgba(8, 8, 5, 0.72); text-decoration: none; }
.foot__legal a:hover { color: var(--ink); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 5px 11px;
  /* small dark chip: the Furiosa logo image is white and needs it */
  background: rgba(8, 11, 8, 0.88);
  border: 1px solid rgba(8, 8, 5, 0.4);
  border-radius: 999px;
}
.site-built a:hover { background: var(--ink); color: var(--white); }
.site-built img { display: block; opacity: 0.9; }
@media (max-width: 640px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Mobile: panel runs (nearly) full width */
@media (max-width: 767px) {
  .stage__inner { padding-left: 14px; padding-right: 14px; }
  .panel { max-width: none; }
}
