:root {
  --mtn-yellow: #FFCB05;
  --ink: #1B1917;
  --surface: #252220;
  --surface-2: #2E2A26;
  --text: #F6F2EA;
  --text-muted: #a8a099;
  --text-dim: #9c948a;
  --line: rgba(255, 255, 255, 0.07);
  --error: #7d1800;
  --radius-card: 20px;
  --radius-field: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Layout: one viewport, no scroll */
.promo {
  width: 100%;
  max-width: 460px;
  min-height: 640px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
}

/* Header */
.promo__header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand__logo {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; display: block;
}
.pill {
  color: var(--mtn-yellow); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(255, 203, 5, 0.35); border-radius: 999px; padding: 5px 11px;
}

/* Hero */
.hero h1 {
  margin: 0; color: var(--text); font-size: 32px; line-height: 1;
  font-weight: 900; letter-spacing: -0.03em; text-wrap: balance;
}
.hero h1 em { color: var(--mtn-yellow); font-style: normal; }
.hero p {
  margin: 8px 0 0; color: var(--text-muted); font-size: 13px;
  line-height: 1.4; text-wrap: pretty;
}

/* Artwork — absorbs the leftover height */
.artwork {
  flex: 1 1 auto; min-height: 74px; margin: 0; position: relative;
  border-radius: 18px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.artwork img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.artwork__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #6d665f; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.artwork figcaption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}
.tag {
  color: #000; background: var(--mtn-yellow); font-size: 10px; font-weight: 800;
  padding: 5px 9px; border-radius: 6px; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap;
}

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 11px; font-weight: 700;
}
.steps li { display: flex; align-items: center; gap: 5px; }
.steps li span { color: var(--mtn-yellow); }
.steps__arrow { color: #544e47; }

/* Card */
.card { background: var(--mtn-yellow); border-radius: var(--radius-card); padding: 16px 16px 14px; }
.card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.card__head h2 { margin: 0; color: #000; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.card__head span { color: rgba(0, 0, 0, 0.6); font-size: 11px; font-weight: 700; }

/* Fields */
.field {
  width: 100%; height: 48px; border-radius: var(--radius-field);
  border: 2px solid rgba(0, 0, 0, 0.12); background: #fff; color-scheme: light;
  padding: 0 14px; font-family: inherit; font-size: 16px; font-weight: 600;
  color: #111; outline: none;
}
.field::placeholder { color: #9c9691; }
.field:focus-visible { border-color: #000; }
.field--phone { display: flex; align-items: center; padding: 0; overflow: hidden; margin-top: 8px; }
.field--phone:focus-within { border-color: #000; }
.field__prefix {
  padding: 0 10px 0 14px; line-height: 44px; font-size: 15px; font-weight: 800;
  color: #111; border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.field--phone input {
  flex: 1; height: 100%; border: 0; outline: none; background: #fff; color-scheme: light;
  padding: 0 12px; font-family: inherit; font-size: 16px; font-weight: 600; color: #111;
}
.field--phone input::placeholder { color: #9c9691; }
.field.is-invalid, .field--phone.is-invalid { border-color: var(--error); }

.error {
  min-height: 16px; margin: 0; padding-top: 4px;
  color: var(--error); font-size: 11px; font-weight: 800;
}

/* Consent */
.consent {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 0 12px; cursor: pointer; user-select: none;
}
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.35); background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.consent input:checked + .consent__box { background: var(--ink); border-color: var(--ink); }
.consent input:checked + .consent__box::after {
  content: '✓'; color: var(--mtn-yellow); font-size: 12px; font-weight: 900; line-height: 1;
}
.consent input:focus-visible + .consent__box { outline: 2px solid #000; outline-offset: 2px; }
.consent__text { color: rgba(0, 0, 0, 0.72); font-size: 12px; font-weight: 600; line-height: 1.3; }

/* Button */
.btn {
  width: 100%; height: 52px; border: 0; border-radius: 14px;
  background: var(--ink); color: var(--mtn-yellow);
  font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: #33302c; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Success */
.card--success { text-align: center; padding: 18px 16px 16px; }
.card--success h2 { margin: 0 0 4px; color: #000; font-size: 21px; font-weight: 900; letter-spacing: -0.02em; }
.card--success p { margin: 0 0 14px; color: rgba(0, 0, 0, 0.7); font-size: 13px; font-weight: 600; line-height: 1.35; }
.stores { display: flex; gap: 8px; }
.stores a {
  flex: 1; display: flex; align-items: center; justify-content: center; height: 50px;
  border-radius: 13px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.stores a:hover { background: #33302c; }
.linkbtn {
  margin-top: 12px; background: none; border: 0; color: rgba(0, 0, 0, 0.6);
  font-family: inherit; font-size: 12px; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}

.legal { margin: 0; color: #6d665f; font-size: 10px; font-weight: 500; text-align: center; }

[hidden] { display: none !important; }

/* Short screens: give the form room by dropping the artwork */
@media (max-height: 660px) {
  .artwork, .steps { display: none; }
  .hero h1 { font-size: 26px; }
}
