/* ===========================================================
   FANTAZIA · Open Air · 30 August · Bristol
   Editorial poster aesthetic — gradient teal background,
   artwork left + signup right on desktop, serif display.
   =========================================================== */

@import url('https://fonts.bunny.net/css?family=tinos:400,400i,700,700i&display=swap');

:root {
  /* Background gradient — top samples the artwork's lighter top,
     bottom is significantly darker for cinematic depth */
  --bg-top:     #2d7273;
  --bg-mid:     #18585a;
  --bg-bottom:  #06292c;

  --panel:      rgba(8, 35, 38, 0.78);     /* signup card — dark glass */
  --panel-line: rgba(246,239,222,0.22);
  --input-bg:   rgba(246,239,222,0.06);
  --line:       rgba(246,239,222,0.18);
  --line-dim:   rgba(246,239,222,0.08);

  --cream:      #f6efde;
  --cream-soft: #c9bf9f;
  --cream-dim:  #93886a;

  --orange:     #ee6738;
  --orange-bright: #ff7a44;
  --orange-deep:#c2501e;

  --error:      #ff6b5a;

  --serif:      "Tinos", "Times New Roman", "Times", "Liberation Serif", serif;
  --sans:       "Helvetica Neue", "Helvetica", "Arial", "Nimbus Sans", "Liberation Sans", sans-serif;

  --r-card:     14px;
  --r-input:    8px;
}

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

html, body {
  margin: 0; padding: 0;
  min-height: 100%;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { background: var(--bg-bottom); }
body {
  /* Gradient: lighter teal at top → darker teal at bottom, matching the poster's
     natural top-to-bottom shading. Long fixed gradient covers any scroll length. */
  background:
    linear-gradient(180deg,
      var(--bg-top) 0%,
      var(--bg-mid) 38%,
      var(--bg-bottom) 88%) fixed;
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; }

/* Subtle film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.86  0 0 0 0.28 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ---------- Hero: two columns on desktop, stack on mobile ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 26px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero__art {
  margin: 0;
  position: relative;
  text-align: center;
}
.hero__art picture, .hero__art img {
  display: block;
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
}
.hero__art img {
  /* Feather the top edge so the artwork blends into the gradient
     rather than terminating on a hard line. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 4%, #000 9%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 4%, #000 9%);
}

/* Date / venue chip — orange pill, matches poster */
.hero__chip {
  margin: 18px auto 0;
  display: inline-block;
  padding: 10px 22px;
  background: var(--orange);
  color: #1a1a1a;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(14px, 3.2vw, 17px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 22px -10px rgba(238,103,56,0.55), inset 0 0 0 1px rgba(0,0,0,0.05);
}
.hero__chip em { font-style: normal; }
.hero__chip-sep { margin: 0 4px; opacity: 0.55; }

.hero__col--art { text-align: center; }

/* ---------- Sign-up panel ---------- */
.signup { padding: 0 26px; }

.panel {
  /* No card chrome — form sits seamlessly on the gradient bg */
  background: transparent;
  border: 0;
  padding: 16px 8px 24px;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
}
.panel > * { position: relative; z-index: 1; }

.panel__eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.panel__eyebrow::before,
.panel__eyebrow::after {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--orange);
}

.panel__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 6.8vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.005em;
  margin: 4px 0 16px;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--cream);
}
.panel__title em {
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.005em;
  display: inline;
}
@media (max-width: 480px) {
  .panel__title { font-size: clamp(26px, 8vw, 36px); }
}
.panel__lede {
  margin: 0 0 26px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--cream-soft);
  text-align: center;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }

.form__row { position: relative; display: flex; flex-direction: column; gap: 6px; }
/* Labels visually hidden — placeholders carry the field meaning.
   Kept in DOM for screen readers. */
.form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form__input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  background: rgba(8, 35, 38, 0.55);
  border: 1px solid rgba(246,239,222,0.32);
  border-radius: var(--r-input);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: border-color .18s, box-shadow .18s, background .18s;
  caret-color: var(--orange);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form__input::placeholder { color: rgba(246,239,222,0.52); font-family: var(--sans); font-style: normal; }
.form__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238,103,56,0.22);
  background: rgba(238,103,56,0.06);
}
.form__input--otp {
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.45em;
  padding-left: 0.45em;
  height: 60px;
}

/* intl-tel-input dark overrides — all Helvetica for UI consistency */
.iti { width: 100%; display: block; }
.iti__flag-container { z-index: 2; }
.iti__selected-flag {
  background: transparent !important;
  border-right: 1px solid var(--line) !important;
  padding-left: 12px !important;
}
.iti__selected-flag:hover,
.iti--container:focus-within .iti__selected-flag,
.iti input.form__input:focus + .iti__flag-container .iti__selected-flag {
  background: rgba(238,103,56,0.08) !important;
}
.iti__selected-dial-code {
  color: var(--cream) !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-left: 6px !important;
}
.iti__arrow { border-top-color: var(--cream-soft) !important; }
.iti input.form__input,
.iti input.form__input[type="tel"] { padding-left: calc(52px + 0.7rem) !important; }

/* Country dropdown — outer wrapper around search input + country list
   (vendor CSS sets this to white; override for dark UI consistency). */
.iti__dropdown-content {
  background: #0c3a3d !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 32px rgba(0,0,0,0.55) !important;
  overflow: hidden !important;
  padding: 6px !important;
}
.iti__country-list {
  background: #0c3a3d !important;
  border: 0 !important;
  color: var(--cream) !important;
  box-shadow: none !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  max-height: 260px !important;
  padding: 2px 0 !important;
  margin: 0 !important;
}
.iti__country { color: var(--cream) !important; padding: 9px 14px !important; font-family: var(--sans) !important; }
.iti__country.iti__highlight,
.iti__country:hover { background: rgba(238,103,56,0.18) !important; }
.iti__country-name { color: var(--cream) !important; font-family: var(--sans) !important; font-size: 14px !important; }
.iti__dial-code { color: var(--cream-dim) !important; font-family: var(--sans) !important; font-size: 13px !important; }
.iti__divider { border-bottom: 1px solid var(--line) !important; margin: 4px 0 !important; padding: 0 !important; }
.iti__flag-box { margin-right: 10px !important; }

/* Search box at the top of the country dropdown.
   No outer margin — the .iti__dropdown-content padding gives the breathing room
   so there's no white gap where the wrapper bg could bleed through. */
.iti__search-input {
  width: 100% !important;
  margin: 0 0 6px !important;
  padding: 10px 12px !important;
  background: rgba(8,35,38,0.85) !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  color: var(--cream) !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  outline: none !important;
  box-sizing: border-box !important;
  caret-color: var(--orange) !important;
}
.iti__search-input::placeholder { color: rgba(246,239,222,0.45) !important; font-family: var(--sans) !important; }
.iti__search-input:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 2px rgba(238,103,56,0.22) !important;
}
.iti__search-input + .iti__country-list { border-top: 0 !important; }

/* Privacy check */
.form__row--check { margin-top: 4px; }
.form__check {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--cream-soft);
  cursor: pointer;
}
.form__check input {
  margin-top: 3px;
  width: 17px; height: 17px;
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(246,239,222,0.4);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s, background .15s;
}
.form__check input:checked {
  background: var(--orange);
  border-color: var(--orange);
}
.form__check input:checked::after {
  content: "✓";
  position: absolute; inset: 0;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.form__check a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--orange); }

.form__error {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--error);
}
.form__error--global { text-align: center; margin-top: 10px; }

.form__resend {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  margin: 16px 0 0;
  color: var(--cream-soft);
}
.form__resend-btn {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--orange);
  cursor: pointer;
}
.form__resend-btn:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: none; }

/* Buttons */
.btn {
  appearance: none; -webkit-appearance: none;
  border: 0; cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 17px;
  padding: 0 26px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  transition: transform .12s, background .18s, box-shadow .2s, color .15s;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--orange);
  color: #1a1a1a;
  width: 100%;
  margin-top: 10px;
  box-shadow:
    0 12px 28px -12px rgba(238,103,56,0.55),
    inset 0 0 0 1px rgba(0,0,0,0.06);
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .6s ease;
}
.btn--primary:hover { background: var(--orange-bright); transform: translateY(-1px); }
.btn--primary:hover::after { transform: translateX(110%); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled {
  background: rgba(246,239,222,0.16); color: var(--cream-dim);
  cursor: not-allowed; transform: none; box-shadow: none;
}
.btn--primary:disabled::after { display: none; }

.btn--whatsapp {
  background: #25d366;
  color: #052e14;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 12px 28px -12px rgba(37,211,102,0.55);
}
.btn--whatsapp:hover { background: #1ebe5c; transform: translateY(-1px); }
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Panel state machine — each top-level block hidden by default,
   .panel[data-form-state="x"] turns on exactly one block. */
.panel__idle,
.panel__otp,
.panel__success { display: none; }

[data-form-state="idle"]    .panel__idle    { display: block; }
[data-form-state="otp"]     .panel__otp     { display: block; }
[data-form-state="success"] .panel__success { display: block; text-align: center; }

.panel__success p:not(.panel__eyebrow) {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--cream-soft);
}

/* ---------- Footer ---------- */
.foot {
  margin: 64px auto 0;
  padding: 36px 26px 14px;
  max-width: 1240px;
  text-align: center;
}
.foot__logos {
  display: inline-block;
  max-width: 360px;
  width: 100%;
  margin: 0 0 24px;
}
.foot__logos picture, .foot__logos img {
  display: block;
  width: 100%;
  height: auto;
}
.foot__copy {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
}
.foot__copy a { color: var(--cream-soft); text-decoration: underline; text-underline-offset: 2px; }
.foot__copy + .foot__copy { margin-top: 6px; }

/* Furiosa pill */
.site-built {
  text-align: center;
  padding: 22px 0 28px;
}
.site-built a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line-dim);
  border-radius: 999px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.site-built a:hover { color: var(--cream-soft); border-color: var(--line); }
.site-built img { vertical-align: middle; filter: brightness(1.4) contrast(1.1); }

/* ---------- Privacy page typography ---------- */
.legal-wrap {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 38%, var(--bg-bottom) 88%) fixed;
  min-height: 100dvh;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 26px 80px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
/* Selectors scoped via `.legal a.legal__back` (0,2,1) so they beat the
   inherited `.legal a` body-link rule (0,1,1) higher up. */
.legal a.legal__back {
  display: inline-flex;
  align-items: center;
  /* Uniform 8 px gap between the three children (chevron, "Back to", FANTAZIA).
     Bypasses inline whitespace + font-swap side-bearing irregularities. */
  gap: 8px;
  margin-bottom: 40px;
  padding: 11px 22px 11px 18px;
  background: var(--orange);
  color: var(--bg-deep);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow: 0 8px 22px -10px rgba(238,103,56,0.55);
  transition: background .18s, transform .12s, box-shadow .2s;
}
.legal a.legal__back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--bg-deep);
}
.legal a.legal__back .legal__back-text {
  color: var(--bg-deep);
  font-family: var(--sans);
}
.legal a.legal__back .legal__back-brand {
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--bg-deep);
}
.legal a.legal__back:hover {
  background: var(--orange-bright);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(238,103,56,0.6);
}
.legal a.legal__back:hover svg { transform: translateX(-3px); }
.legal a.legal__back:active { transform: translateY(0); }
.legal h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  margin: 40px 0 12px;
  color: var(--cream);
}
.legal h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--orange);
}
.legal h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  margin: 18px 0 6px;
  color: var(--cream);
}
.legal p, .legal li {
  margin: 0 0 12px;
  color: var(--cream-soft);
}
.legal ul { padding-left: 20px; }
.legal ul li { list-style: none; position: relative; }
.legal ul li::before {
  content: "·";
  position: absolute;
  left: -16px;
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
}
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.legal__meta {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--cream-dim);
}

/* ---------- Desktop two-column split (≥860) ---------- */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 56px;
    padding: 64px 32px 32px;
    align-items: center;
  }
  .signup { padding: 0; }
  .panel { padding: 24px 12px 32px; max-width: 480px; margin: 0 auto; }
  .hero__art picture, .hero__art img { max-width: 560px; }
  .foot { margin-top: 80px; padding: 40px 32px 14px; }
}

@media (min-width: 1100px) {
  .hero { padding-top: 80px; gap: 80px; }
  .hero__art picture, .hero__art img { max-width: 620px; }
}

/* Hero entrance — subtle one-shot reveal */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__art   { animation: fadeUp 1.0s 0.05s cubic-bezier(.22,.61,.36,1) both; }
.hero__chip  { animation: fadeUp 0.7s 0.4s  cubic-bezier(.22,.61,.36,1) both; }
.panel       { animation: fadeUp 0.9s 0.25s cubic-bezier(.22,.61,.36,1) both; }

@media (prefers-reduced-motion: reduce) {
  .hero__art,.hero__chip,.panel { animation: none; }
}
