/* =====================================================================
   boohooMAN Ambassador — BASE
   Shared layout + components. Theme tokens are set per direction in
   themes.css via [data-dir="a|b|c"]. Defaults below = Direction A.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- tokens (defaults: Direction A — BLACKOUT) ---- */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8c8c8c;
  --accent: #ffffff;
  --accent-ink: #000;
  --line: rgba(255,255,255,.18);
  --line-strong: rgba(255,255,255,.85);
  --surface: #0d0d0d;
  --surface-ink: #fff;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 72px);
}

/* ---- type helpers ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.005em;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: clamp(11px, 1vw, 13px);
}
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* the themed surface lives on .app (tokens are set per-direction here) */
.app { background: var(--bg); color: var(--fg); min-height: 100vh; }

/* =====================================================================
   Direction switcher (always-visible compare control)
   ===================================================================== */
.switcher {
  position: fixed; z-index: 200;
  left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: stretch; gap: 0;
  background: #fff; color: #000;
  border: 2px solid #000;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  font-family: var(--font-body);
  user-select: none;
}
.switcher__label {
  display: flex; align-items: center;
  padding: 0 12px 0 16px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .2em;
  font-size: 10px; color: #000;
  border-right: 2px solid #000;
}
.switcher__btn {
  padding: 12px 16px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; color: #000;
  border-right: 1px solid rgba(0,0,0,.15);
  transition: background .12s ease, color .12s ease;
  white-space: nowrap;
}
.switcher__btn:last-child { border-right: 0; }
.switcher__btn small { display: block; font-size: 9px; letter-spacing: .12em; opacity: .55; margin-top: 2px; font-weight: 700; }
.switcher__btn:hover { background: #f0f0f0; }
.switcher__btn.is-active { background: #000; color: #fff; }
.switcher__btn.is-active small { opacity: .65; }
@media (max-width: 560px) {
  .switcher__label { display: none; }
  .switcher__btn { padding: 10px 12px; }
  .switcher__btn small { display: none; }
}

/* =====================================================================
   Header
   ===================================================================== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .25s ease, padding .25s ease, color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: var(--bg);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.02em;
  text-transform: lowercase;
  line-height: 1;
}
.logo b { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.hdr__right { display: flex; align-items: center; gap: 20px; }
.hdr__link {
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
}
.hdr__link::after { content:''; display:block; height:2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.hdr__link:hover::after { transform: scaleX(1); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 38px;
  font-family: var(--font-body);
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  font-size: 14px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: var(--fg); border-color: currentColor;
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--lg { padding: 22px 52px; font-size: 16px; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(5px); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero__media image-slot { width: 100%; height: 100%; display: block; background: #141414; color: rgba(255,255,255,.6); }
.hero__media image-slot::part(frame) { background: #141414; }
.hero__media image-slot::part(ring) { border-color: rgba(255,255,255,.22); }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 32%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.85) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 7vw, 96px); padding-top: 140px; }
.hero__eyebrow { color: #fff; opacity: .85; margin-bottom: 18px; }
.hero h1 { font-size: clamp(58px, 13.5vw, 230px); color: #fff; }
.hero h1 .l2 { display: block; }
.hero__sub {
  max-width: 640px; margin: 26px 0 34px;
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.45; color: rgba(255,255,255,.92); font-weight: 500;
}
.hero__sub b { font-weight: 800; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(40px,7vw,96px); z-index: 2;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  font-weight: 800; color: rgba(255,255,255,.8);
}
@media (max-width: 720px){ .hero__scroll{ display:none; } }

/* =====================================================================
   Marquee (used heavily in Direction C, as accent elsewhere)
   ===================================================================== */
.marquee { overflow: hidden; white-space: nowrap; border-block: 2px solid var(--fg); padding: 14px 0; background: var(--bg); }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 26s linear infinite; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px,3vw,40px);
  padding: 0 26px; display: inline-flex; align-items: center; gap: 26px;
}
.marquee__track span::after { content: '★'; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track{ animation: none; } }

/* =====================================================================
   Section scaffolding
   ===================================================================== */
.section { padding-block: clamp(72px, 9vw, 150px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.section__title { font-size: clamp(40px, 8vw, 124px); }
.section__kicker { color: var(--muted); max-width: 30ch; font-weight: 600; font-size: 15px; line-height: 1.5; }

/* ---- How it works: steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.step { display: flex; flex-direction: column; }
.step__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface); }
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,0,0,1); }
.step__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.step:hover .step__media img { transform: scale(1.04); }
.step__n {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 96px); line-height: .8;
  padding: 10px 16px; color: var(--accent-ink); background: var(--accent);
}
.step__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px,2.2vw,32px); line-height: .95; margin: 22px 0 12px; }
.step__body { color: var(--muted); line-height: 1.55; font-size: 15.5px; max-width: 42ch; }
@media (max-width: 860px){ .steps{ grid-template-columns: 1fr; gap: 40px; } .step__media{ aspect-ratio: 16/11; } .step__body{ max-width: none; } }

/* ---- Instagram strip ---- */
.insta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(28px,3vw,44px); border-block: 2px solid var(--line); flex-wrap: wrap; }
.insta__handle { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px,4vw,64px); line-height: .9; display: inline-flex; align-items: center; gap: 18px; }
.insta__handle .at { color: var(--accent); }
.insta__cta { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; display: inline-flex; gap: 10px; align-items: center; }
.insta-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.insta-grid .cell { aspect-ratio: 3/4; overflow: hidden; background: var(--surface); position: relative; }
.insta-grid .cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.insta-grid .cell image-slot { width: 100%; height: 100%; display: block; }
.insta-grid .cell:hover img { transform: scale(1.06); }
.insta-grid .cell .ig { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s ease; background: rgba(0,0,0,.35); }
.insta-grid .cell:hover .ig { opacity: 1; }
@media (max-width: 720px){ .insta-grid{ grid-template-columns: repeat(3, 1fr); } .insta-grid .cell:nth-child(n+7){ display:none; } }

/* ---- Reward ---- */
.reward { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.reward__amt { font-family: var(--font-display); line-height: .82; }
.reward__amt .big { display: block; font-size: clamp(96px, 17vw, 290px); }
.reward__amt .lede { display: block; font-size: clamp(15px,1.4vw,19px); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; line-height: 1.4; max-width: 34ch; margin-top: 22px; color: var(--muted); }
.reward__kicker { display: block; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .28em; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tiers { display: flex; flex-direction: column; }
.tier { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 8px; align-items: center; padding: clamp(22px,2.6vw,34px) 2px; border-top: 2px solid var(--fg); }
.tier:last-child { border-bottom: 2px solid var(--fg); }
.tier__label { grid-column: 1; grid-row: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; color: var(--muted); }
.tier__desc { grid-column: 1; grid-row: 2; font-weight: 600; font-size: clamp(15px,1.5vw,20px); line-height: 1.3; max-width: 24ch; }
.tier__amt { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; font-family: var(--font-display); font-size: clamp(56px,7.5vw,108px); line-height: .82; }
@media (max-width: 860px){ .reward{ grid-template-columns: 1fr; } }

/* ---- Guidelines ---- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2px, 1vw, 2px); }
.guide { padding: clamp(28px,3vw,44px); border: 2px solid var(--line); margin: -1px 0 0 -1px; min-height: 280px; display: flex; flex-direction: column; transition: background .2s ease, color .2s ease; }
.guide:hover { background: var(--accent); color: var(--accent-ink); }
.guide:hover .guide__body { color: inherit; opacity: .75; }
.guide__glyph { font-size: 30px; line-height: 1; }
.guide__label { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px,3vw,44px); margin: auto 0 14px; }
.guide__body { color: var(--muted); line-height: 1.55; font-size: 15.5px; }
@media (max-width: 860px){ .guides{ grid-template-columns: 1fr; } .guide{ min-height: 0; } }

/* ---- FAQ ---- */
.faq { border-top: 2px solid var(--fg); }
.faq__item { border-bottom: 2px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px,2.4vw,30px) 4px; text-align: left;
  font-family: var(--font-display); text-transform: uppercase; font-size: clamp(20px,2.6vw,38px); line-height: 1;
  transition: color .15s ease;
}
.faq__q:hover { color: var(--accent); }
.faq__sign { flex: 0 0 auto; font-family: var(--font-body); font-weight: 400; font-size: clamp(26px,3vw,40px); line-height: 1; transition: transform .3s cubic-bezier(.2,0,0,1); }
.faq__item.is-open .faq__sign { transform: rotate(45deg); }
.faq__panel { overflow: hidden; height: 0; transition: height .32s cubic-bezier(.2,0,0,1); }
.faq__inner { padding: 0 4px clamp(24px,3vw,36px); max-width: 70ch; }
.faq__body { color: var(--muted); line-height: 1.6; font-size: 16px; }
.faq__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.faq__list li { color: var(--muted); line-height: 1.55; font-size: 16px; padding-left: 26px; position: relative; }
.faq__list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.faq strong, .faq b { color: var(--fg); font-weight: 800; }

/* ---- CTA band ---- */
.cta-band { text-align: center; padding-block: clamp(80px, 11vw, 180px); }
.cta-band h2 { font-size: clamp(44px, 11vw, 180px); }
.cta-band p { color: var(--muted); max-width: 46ch; margin: 22px auto 38px; font-size: 18px; line-height: 1.5; }

/* ---- Footer ---- */
.ftr { border-top: 2px solid var(--line); padding-block: clamp(40px,5vw,64px); }
.ftr__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.ftr__logo { font-family: var(--font-body); font-weight: 900; font-size: clamp(40px,7vw,110px); letter-spacing: -.03em; text-transform: lowercase; line-height: .85; }
.ftr__social { display: flex; gap: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; flex-wrap: wrap; }
.ftr__social a:hover { color: var(--accent); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; flex-wrap: wrap; }
.ftr__bottom .powered b { color: var(--fg); }

/* =====================================================================
   Apply modal
   ===================================================================== */
.modal-root { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal-root[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(2px); }
.modal {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: var(--bg); color: var(--fg); border: 2px solid var(--fg);
  padding: clamp(28px, 4vw, 52px);
  animation: pop .28s cubic-bezier(.2,0,0,1);
}
@keyframes pop { from { transform: translateY(18px) scale(.985); } }
.modal__close { position: absolute; top: 16px; right: 16px; font-size: 26px; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .15s ease, color .15s ease; }
.modal__close:hover { background: var(--fg); color: var(--bg); }
.modal__eyebrow { color: var(--accent); margin-bottom: 14px; }
.modal h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(34px,5vw,56px); line-height: .9; margin: 0 0 10px; }
.modal__lede { color: var(--muted); line-height: 1.5; margin: 0 0 28px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; margin-bottom: 8px; }
.field input {
  width: 100%; padding: 15px 16px; font: inherit; font-size: 16px;
  background: var(--surface); color: var(--fg);
  border: 2px solid var(--line);
  transition: border-color .15s ease;
}
.field input::placeholder { color: #6a6a6a; }
.field input:focus { outline: none; border-color: var(--accent); }
.field.has-error input { border-color: #ff4d4d; }
.field__err { color: #ff6b6b; font-size: 12px; margin-top: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: none; }
.field.has-error .field__err { display: block; }
.modal .btn { width: 100%; margin-top: 8px; }
.modal__fine { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 18px; text-transform: uppercase; letter-spacing: .04em; }
.modal__success { text-align: center; padding: 14px 0; }
.modal__success .check { width: 76px; height: 76px; border: 3px solid var(--accent); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-size: 38px; color: var(--accent); animation: pop .3s ease; }

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