:root {
  --bg: #060706;
  --bg-alt: #0c0e0b;
  --panel: #101210;
  --volt: #7bc74d;
  --volt-bright: #8ad655;
  --volt-ink: #0b0e06;
  --grape: #9370db;
  --cream: #f2efe6;
  --silver: #c9d1c9;
  --body: #a8afa4;
  --grey: #7e8478;
  --line: rgba(214, 224, 210, 0.12);
  --line-strong: rgba(214, 224, 210, 0.22);
  --error: #ff9b8a;
  --error-bg: rgba(255, 120, 100, 0.08);
  --font-display: "Archivo", "Inter", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
.check-card,
.radio-card,
.backup-card,
.brand-back,
.form-foot a {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--grape);
  color: #0b100a;
}

:focus-visible {
  outline: 1px solid var(--volt);
  outline-offset: 3px;
}

.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;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: 100vh;
}

.brand-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 48px);
  border-right: 1px solid var(--line);
  background: #090a08;
}

.brand-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 62%;
  animation: kenburns 28s var(--ease) infinite alternate;
  will-change: transform;
}

.brand-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 6, 0.86) 0%, rgba(6, 7, 6, 0.28) 36%, rgba(6, 7, 6, 0.54) 68%, rgba(6, 7, 6, 0.97) 100%),
    linear-gradient(90deg, rgba(6, 7, 6, 0.68) 0%, rgba(6, 7, 6, 0.12) 58%, rgba(6, 7, 6, 0.38) 100%);
}

.brand-head,
.brand-copy,
.brand-foot {
  position: relative;
  z-index: 1;
}

.brand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: block;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.82;
}

.brand-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.brand-back {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--silver);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.brand-back:hover {
  color: var(--volt);
  border-color: var(--volt);
}

.brand-copy {
  max-width: 660px;
  padding: clamp(32px, 7vh, 88px) 0;
}

.brand-kicker,
.form-kicker,
.success-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--volt);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-kicker::before,
.form-kicker::before,
.success-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.brand-copy h1 {
  margin: 0 0 24px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.2vw, 6rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
  word-spacing: 0.06em;
}

.brand-copy h1 em {
  color: var(--volt);
  font-style: italic;
}

.brand-lede {
  max-width: 44ch;
  margin: 0;
  color: #d7dbd1;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.68;
}

.brand-foot {
  max-width: 660px;
}

.brand-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 239, 230, 0.18);
}

.brand-specs dt {
  margin: 0 0 3px;
  color: var(--grey);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-specs dd {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-note {
  margin: 0;
  color: rgba(242, 239, 230, 0.48);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-panel {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(147, 112, 219, 0.09), transparent 36%),
    radial-gradient(circle at 100% 82%, rgba(123, 199, 77, 0.05), transparent 30%),
    var(--bg);
}

.form-shell {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 76px) clamp(22px, 4vw, 58px) 44px;
  animation: rise 0.7s var(--ease) both;
}

.form-head {
  margin-bottom: 34px;
}

.form-kicker {
  margin-bottom: 16px;
}

.form-head h2 {
  margin: 0 0 14px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.form-sub {
  max-width: 50ch;
  margin: 0;
  color: var(--body);
  font-size: 0.96rem;
  line-height: 1.65;
}

.form-alert {
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 155, 138, 0.35);
  border-radius: 2px;
  background: var(--error-bg);
  color: #ffc1b6;
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-alert a {
  color: #ffd9d2;
  border-bottom: 1px solid rgba(255, 217, 210, 0.45);
}

.field-group {
  margin: 0 0 36px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 20px;
}

.group-index {
  color: var(--grape);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.group-head h3 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}

.group-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  margin: 0 0 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > label,
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--silver);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.req {
  color: var(--volt);
}

.field input,
.select-wrap select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg-alt);
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.4;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field input {
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder {
  color: #6f766b;
}

.field input:hover,
.select-wrap select:hover {
  border-color: rgba(214, 224, 210, 0.32);
}

.field input:focus,
.select-wrap select:focus {
  outline: none;
  border-color: var(--volt);
  background: #0f110e;
  box-shadow: 0 0 0 3px rgba(123, 199, 77, 0.12);
}

.field input[aria-invalid="true"],
.select-wrap select[aria-invalid="true"] {
  border-color: var(--error);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 18px;
}

.field-row .field {
  margin-bottom: 0;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  color-scheme: dark;
  cursor: pointer;
}

.select-wrap select:invalid {
  color: #6f766b;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  color: var(--grey);
  pointer-events: none;
  transform: translateY(-50%);
}

.field-error {
  margin: 7px 0 0;
  color: var(--error);
  font-size: 0.74rem;
  line-height: 1.45;
}

.choice-set {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.radio-stack,
.backup-grid {
  display: grid;
  gap: 10px;
}

.radio-stack {
  grid-template-columns: 1fr 1fr;
}

.backup-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-card,
.radio-card,
.backup-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.check-card:hover,
.radio-card:hover,
.backup-card:hover {
  border-color: rgba(123, 199, 77, 0.5);
  background: #0f110e;
}

.check-card:active,
.radio-card:active,
.backup-card:active {
  transform: scale(0.995);
}

.check-card:has(input:checked),
.radio-card:has(input:checked),
.backup-card:has(input:checked) {
  border-color: var(--volt);
  background: rgba(123, 199, 77, 0.08);
}

.check-card:has(input:focus-visible),
.radio-card:has(input:focus-visible),
.backup-card:has(input:focus-visible) {
  outline: 1px solid var(--volt);
  outline-offset: 3px;
}

.check-card input,
.radio-card input,
.backup-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--volt-ink);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.check-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.check-card input:checked + .check-box {
  border-color: var(--volt);
  background: var(--volt);
}

.check-card input:checked + .check-box svg {
  opacity: 1;
  transform: scale(1);
}

.radio-dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.2s ease;
}

.radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.radio-card input:checked + .radio-dot {
  border-color: var(--volt);
}

.radio-card input:checked + .radio-dot::after {
  transform: scale(1);
}

.choice-copy {
  display: block;
  min-width: 0;
}

.choice-copy strong {
  display: block;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

.choice-copy small {
  display: block;
  margin-top: 2px;
  color: var(--grey);
  font-size: 0.68rem;
  line-height: 1.35;
}

.backup-card {
  align-items: flex-start;
  min-height: 100px;
}

.backup-card .icon {
  flex: 0 0 auto;
  color: var(--grey);
  transition: color 0.2s ease;
}

.backup-card .icon svg {
  width: 22px;
  height: 22px;
}

.backup-card input:checked ~ .icon {
  color: var(--volt);
}

.backup-card .choice-copy strong {
  font-size: 0.8rem;
}

.backup-card .choice-copy small {
  font-size: 0.66rem;
}

.field-error,
.form-alert,
.hp {
  letter-spacing: normal;
}

.submit-row {
  margin-top: 4px;
}

.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 0;
  border-radius: 2px;
  background: var(--volt);
  color: var(--volt-ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 17px 20px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
  background: var(--volt-bright);
}

.btn-submit:active {
  transform: scale(0.995);
}

.btn-submit:disabled {
  cursor: progress;
  opacity: 0.92;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.btn-submit:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(11, 14, 6, 0.25);
  border-top-color: var(--volt-ink);
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}

.is-submitting .btn-label,
.is-submitting .btn-arrow {
  opacity: 0;
}

.is-submitting .btn-spinner {
  opacity: 1;
}

.consent {
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--grey);
  font-size: 0.7rem;
  line-height: 1.55;
}

.success-panel {
  padding: clamp(18px, 4vw, 38px) 0;
  animation: rise 0.6s var(--ease) both;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid rgba(123, 199, 77, 0.45);
  border-radius: 50%;
  background: rgba(123, 199, 77, 0.08);
  color: var(--volt);
}

.success-mark svg {
  width: 24px;
  height: 24px;
}

.success-panel h2 {
  margin: 0 0 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

.success-copy {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.7;
}

.success-copy .ref {
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-reset {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--volt);
  background: none;
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-reset:hover {
  color: var(--volt);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-foot {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-foot p {
  margin: 0;
  color: var(--grey);
  font-size: 0.74rem;
}

.form-foot a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--silver);
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.form-foot a:hover {
  color: var(--volt);
  border-color: var(--volt);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    position: relative;
    height: auto;
    min-height: 330px;
    padding: 22px 20px 26px;
    padding-top: max(22px, env(safe-area-inset-top));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-bg {
    object-position: 56% 62%;
  }

  .brand-copy {
    padding: 42px 0 8px;
  }

  .brand-copy h1 {
    font-size: clamp(2.6rem, 9vw, 3.8rem);
  }

  .brand-lede {
    font-size: 0.98rem;
  }

  .brand-foot {
    display: none;
  }

  .form-panel {
    min-height: auto;
  }

  .form-shell {
    padding: 34px 20px 40px;
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(40px, calc(26px + env(safe-area-inset-bottom)));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .form-head h2 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }
}

@media (max-width: 640px) {
  .brand-panel {
    min-height: 286px;
  }

  .brand-logo img {
    height: 58px;
  }

  .brand-back {
    display: none;
  }

  .brand-copy {
    padding-top: 32px;
  }

  .brand-copy h1 {
    font-size: clamp(1.95rem, 8vw, 2.65rem);
  }

  .brand-lede {
    display: none;
  }

  .form-foot p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
  }

  .form-foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .form-foot .foot-sep {
    display: none;
  }

  .field-row,
  .radio-stack,
  .backup-grid,
  .days-grid {
    grid-template-columns: 1fr;
  }

  .backup-card {
    align-items: center;
    min-height: 64px;
  }

  .backup-card .choice-copy small {
    display: none;
  }

  .form-head {
    margin-bottom: 30px;
  }

  .field-group {
    margin-bottom: 32px;
  }

  .brand-kicker,
  .form-kicker,
  .success-kicker {
    font-size: 0.62rem;
  }
}

@media (max-width: 340px) {
  .brand-copy h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 980px) and (max-height: 540px) and (orientation: landscape) {
  .brand-panel {
    min-height: 230px;
  }

  .brand-copy {
    padding: 24px 0 0;
  }

  .brand-copy h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5.4vw, 2.6rem);
  }

  .brand-lede,
  .brand-foot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
