:root {
  --green: #34a853;
  --mkt-primary: #006c49;
  --ink: #ffffff;
  --danger: #dc2626;
  --ok: #006c49;
  --font: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #000;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-gradient {
  background: linear-gradient(160deg, #000 0%, #121212 42%, #1a3d28 72%, #34a853 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.intro {
  min-width: 0;
  order: 2;
}

.form-panel {
  order: 1;
  width: 100%;
  min-width: 0;
  background: #fff;
  color: #111;
  border-radius: 1rem;
  padding: 1.15rem 1rem 1.1rem;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.5);
}

.form-panel::before {
  content: "";
  display: block;
  height: 4px;
  margin: -1.15rem -1rem 1rem;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(90deg, var(--green), rgba(52, 168, 83, 0.55));
}

.brand-mark {
  width: min(100%, 220px);
  margin: 0 auto 1.1rem;
  object-fit: contain;
  background: transparent;
}

.event-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: #0b0b0b;
}

.event-logo {
  width: min(100%, 150px);
  object-fit: contain;
  background: transparent;
  filter: brightness(1.05);
}

.eyebrow {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 1.25rem;
  height: 1px;
  flex-shrink: 0;
  background: var(--green);
}

h1 {
  margin: 0 0 0.75rem;
  text-align: center;
}

.h1-brand {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.h1-sub {
  display: block;
  font-size: clamp(1.05rem, 4.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  text-wrap: balance;
}

.accent {
  color: var(--green);
}

.lede {
  margin: 0 auto 1rem;
  max-width: 28rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

.bullets {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 28rem;
  display: grid;
  gap: 0.55rem;
}

.bullets li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.4;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 2px;
  height: 1em;
  background: var(--green);
  border-radius: 1px;
}

.form-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mkt-primary);
}

.form-panel h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.form-sub {
  margin: 0.4rem 0 1rem;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f2937;
}

input {
  width: 100%;
  margin-top: 0.3rem;
  border-radius: 0.7rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  color: #111;
  font: inherit;
  font-size: 16px;
  padding: 0.8rem 0.85rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  border-color: rgba(52, 168, 83, 0.65);
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.2);
  background: #fff;
}

button[type="submit"] {
  margin-top: 0.15rem;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0.8rem;
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  touch-action: manipulation;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.status {
  min-height: 1.2rem;
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
}

.status.is-error {
  color: var(--danger);
}

.status.is-ok {
  color: var(--ok);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Tablet+ : form first on mobile is intentional; desktop side-by-side */
@media (min-width: 768px) {
  .page {
    padding: 2.25rem 1.5rem 2rem;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
  }

  .intro,
  .form-panel {
    order: initial;
  }

  .brand-mark {
    margin: 0 0 1.35rem;
    width: min(100%, 300px);
  }

  .eyebrow,
  h1,
  .lede {
    text-align: left;
    justify-content: flex-start;
  }

  .lede,
  .bullets {
    margin-left: 0;
    margin-right: 0;
  }

  .event-logo {
    width: min(100%, 180px);
  }

  .form-panel {
    padding: 1.35rem 1.25rem 1.25rem;
  }

  .form-panel::before {
    margin: -1.35rem -1.25rem 1rem;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: 3.25rem 2rem 2.5rem;
  }

  .hero {
    gap: 2.75rem;
  }

  .brand-mark {
    width: 360px;
  }

  .h1-brand {
    font-size: 3.1rem;
  }

  .h1-sub {
    font-size: 1.9rem;
  }

  .lede {
    font-size: 1.05rem;
  }

  .bullets li {
    font-size: 0.95rem;
  }

  .event-logo {
    width: 200px;
  }

  .form-panel {
    border-radius: 1.15rem;
    padding: 1.5rem 1.35rem 1.35rem;
  }

  .form-panel::before {
    margin: -1.5rem -1.35rem 1.15rem;
    border-radius: 1.15rem 1.15rem 0 0;
  }
}
