/* SUPPLI-X GYM landing — one design system: Archivo (headings), Questrial (body), red #E32402 on near-black. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
}
@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/questrial-400.woff2") format("woff2");
}

:root {
  --bg: #050505;
  --bg-2: #0b0b0c;
  --card: #141416;
  --line: #232326;
  --line-2: #2e2e32;
  --text: #f4f4f2;
  --muted: #a7a7a3;
  --red: #e32402;
  --red-hi: #ff3b1f;
  --white: #ffffff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius: 28px;
  --gutter: 16px;
  --max: 1120px;
  --h: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --b: "Questrial", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--b);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--h); margin: 0; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.red { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Buttons: shop style — white pill, red outline, hover solid red ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--b); font-size: 17px; line-height: 1;
  padding: 16px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.3px solid var(--red); background: var(--white); color: #0a0a0a;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red); color: var(--white); }
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--white); border-color: #555; }
}
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(5,5,5,.9), rgba(5,5,5,0));
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.nav.solid { background: rgba(5,5,5,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { width: auto; height: 40px; mix-blend-mode: screen; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(96px + env(safe-area-inset-top)); padding-bottom: 0;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(60% 40% at 50% 30%, rgba(227,36,2,.18), transparent 70%),
    var(--bg);
}
.bloom { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-in { position: relative; z-index: 1; text-align: center; }
.mark-wrap { width: 168px; margin: 0 auto 26px; will-change: transform; }
.mark {
  width: 100%; border-radius: 26%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(227,36,2,.35), 0 0 120px rgba(227,36,2,.2);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.h1 { font-size: clamp(44px, 11vw, 92px); font-weight: 800; text-transform: uppercase; }
.lede { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta .btn { min-width: 220px; }

.hero-phone-wrap { position: relative; z-index: 1; margin-top: 54px; }
.hero-phone { width: min(78vw, 340px); margin: 0 auto; }

/* ---------- Phone frames (real screenshots) ---------- */
.px-wrap { will-change: transform; }
.px { will-change: transform; }
.frame {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 720 / 1266; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 60px rgba(227,36,2,.14);
}
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.frame-video { aspect-ratio: 9 / 16; }
.frame-video video { object-fit: cover; }
.frame-hero { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.frame-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg-2));
}
/* Ken Burns: slow drift while the frame is in view (class .live set by JS), paused otherwise */
.frame.live img, .frame.live video { animation: kb 16s var(--ease-in-out) infinite alternate; }
@keyframes kb { from { transform: scale(1) translateY(0); } to { transform: scale(1.06) translateY(-1.5%); } }

/* ---------- Facts strip ---------- */
.strip { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding-top: 28px; padding-bottom: 28px; }
.fact { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); min-width: 0; }
.fact svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--red); }

/* ---------- Feature sections ---------- */
.feat { padding: 84px 0; }
.feat-alt { background: var(--bg-2); }
.feat-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.feat-text { min-width: 0; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.h2 { font-size: clamp(34px, 8vw, 56px); font-weight: 800; text-transform: uppercase; }
.p { color: var(--muted); margin-top: 18px; max-width: 520px; }
.list { margin-top: 22px; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 22px; color: var(--text); }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(227,36,2,.6); }
.feat-media { width: min(78vw, 340px); margin: 0 auto; min-width: 0; }
.feat-media-duo { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.feat-media-duo .px-wrap:nth-child(2) { margin-top: 40px; }
.frame-sm { border-radius: 20px; }

/* ---------- Get / waitlist ---------- */
.get { padding: 96px 0 110px; background: radial-gradient(50% 35% at 50% 0%, rgba(227,36,2,.16), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.get-in { text-align: center; }
.get-head .p { margin-left: auto; margin-right: auto; }
.mark-sm { width: 84px; margin: 0 auto 20px; border-radius: 26%; box-shadow: 0 10px 40px rgba(227,36,2,.35); }
.stores { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 560px; margin: 34px auto 0; }
.store {
  display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none;
  padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card);
  transition: transform 160ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
.store:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .store:not(.store-off):hover { border-color: var(--red); background: #1a1618; } }
.store svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--white); }
.store-t { display: flex; flex-direction: column; min-width: 0; }
.store-t small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.store-t strong { font-family: var(--h); font-weight: 700; font-size: 17px; color: var(--white); }
.store-off { opacity: .7; cursor: not-allowed; }
.store-off:active { transform: none; }

.banner { max-width: 560px; margin: 28px auto 0; padding: 14px 18px; border-radius: 14px; font-size: 15px; text-align: left; border: 1px solid var(--line-2); background: var(--card); }
.banner.ok { border-color: rgba(227,36,2,.6); }
.banner strong { font-family: var(--h); display: block; margin-bottom: 2px; }

.form { max-width: 560px; margin: 28px auto 0; text-align: left; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field input {
  width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 16px 20px;
  transition: border-color 180ms ease;
}
.field input::placeholder { color: #6f6f6c; }
.field input:focus { border-color: var(--red); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--red-hi); }
.form.busy .btn { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.hint { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hint a { color: var(--muted); }
.hint.err { color: #ffb3a6; }
.hint.ok { color: var(--text); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 14px; text-align: center; }
.foot-brand { font-family: var(--h); font-weight: 800; letter-spacing: .04em; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 13px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out) var(--d, 0s), transform 700ms var(--ease-out) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .strip-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { flex-direction: row; }
  .field .btn { flex: 0 0 auto; }
  .foot-in { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: left; }
  .foot-copy { text-align: right; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .nav-in { height: 76px; }
  .brand img { height: 48px; }
  .hero { padding-top: 120px; }
  .mark-wrap { width: 220px; }
  .hero-phone { width: 420px; }
  .feat { padding: 120px 0; }
  .feat-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
  .feat-alt .feat-in .feat-text { order: 2; }
  .feat-alt .feat-in .feat-media { order: 1; }
  .feat-media { width: 380px; margin: 0 auto; }
  .feat-media-duo { width: 100%; max-width: 620px; gap: 20px; }
  .feat-media-duo .px-wrap:nth-child(2) { margin-top: 64px; }
  .h2 { font-size: 56px; }
}

/* ---------- Reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv { transform: none; transition: opacity 300ms ease; }
  .frame.live img, .frame.live video { animation: none; }
  .px, .mark-wrap { transform: none !important; }
  .bloom { display: none; }
}
