:root {
  --bg: #0f1012;
  --panel: #18191d;
  --panel-2: #212228;
  --text: #f3f2ee;
  --muted: #a4a39f;
  --fire: #ff5a1f;
  --fire-2: #ff8a3d;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.02rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { overflow-x: clip; } /* the tilted ticker is wider than the screen on purpose */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1232px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; font: 700 0.95rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; border: 2px solid transparent; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-fire { background: var(--fire); color: #111; }
.btn-fire:hover { background: var(--fire-2); }
.btn-line { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.btn-line:hover { background: var(--text); color: #111; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(15, 16, 18, 0.96); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; font: 900 2rem/1 var(--display); letter-spacing: 0.04em; text-decoration: none; color: var(--text); }
.logo small { font: 600 0.72rem/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--fire); }
.logo.small { font-size: 1.6rem; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.88rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }
.nav-btn { display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-btn span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform 0.25s; }
.nav-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; filter: grayscale(0.4) contrast(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 16, 18, 0.96) 0%, rgba(15, 16, 18, 0.82) 45%, rgba(15, 16, 18, 0.35) 100%), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero-in { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.kick { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--fire); }
.hero h1 { font-size: clamp(4rem, 12vw, 9rem); font-weight: 900; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.lead { font-size: 1.15rem; color: #d2d1cc; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 36px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font: 900 2.8rem/1 var(--display); color: var(--text); }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Ticker */
.ticker { overflow: hidden; background: var(--fire); color: #111; padding: 14px 0; transform: rotate(-1.2deg); margin: 0 -10px; }
.ticker-track { display: flex; gap: 26px; width: max-content; animation: tick 26s linear infinite; }
.ticker span, .ticker i { font: 900 2rem/1 var(--display); text-transform: uppercase; font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Heads */
.head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.head h2, .bmi h2, .join h2 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900; }

/* Plans */
.plans { padding: 110px 0 90px; }
.switch { display: inline-flex; padding: 5px; background: var(--panel); border: 1px solid var(--line); }
.switch button { padding: 10px 18px; border: 0; background: transparent; color: var(--muted); font: 700 0.9rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--text); color: #111; }
.switch em { font-style: normal; color: var(--fire); margin-left: 4px; }
.switch button[aria-pressed="true"] em { color: #c2410c; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 30px 26px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 2rem; font-weight: 800; }
.amt { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.amt span { font: 900 3.4rem/1 var(--display); }
.amt small { color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: #d2d1cc; }
.plan li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--fire); clip-path: polygon(0 0, 100% 50%, 0 100%); flex: none; }
.plan .btn { align-self: stretch; }
.plan.hot { background: linear-gradient(160deg, #2a1a12, var(--panel) 60%); border-color: var(--fire); }
.badge { position: absolute; top: -13px; left: 26px; background: var(--fire); color: #111; font: 700 0.75rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.1em; padding: 7px 12px; }

/* Classes */
.classes { padding: 40px 0 90px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.days button { flex: none; min-width: 64px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font: 700 1rem/1 var(--body); text-transform: uppercase; cursor: pointer; }
.days button[aria-selected="true"] { background: var(--fire); color: #111; border-color: var(--fire); }
.sched { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sched li { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.sched time { font: 800 1.4rem/1 var(--display); color: var(--fire); font-variant-numeric: tabular-nums; }
.sched strong { display: block; font: 800 1.6rem/1.05 var(--display); text-transform: uppercase; }
.sched div span { color: var(--muted); font-size: 0.92rem; }
.lvl { display: inline-flex; gap: 4px; }
.lvl i { width: 8px; height: 22px; background: var(--panel-2); transform: skewX(-12deg); }
.lvl i.on { background: var(--fire); }

/* Gallery */
.gallery { padding: 0 0 90px; }
.g-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.3fr; gap: 14px; }
.g-grid img { width: 100%; height: 340px; object-fit: cover; filter: grayscale(0.3); transition: filter 0.4s; }
.g-grid img:hover { filter: none; }

/* BMI */
.bmi { padding: 90px 0; background: var(--panel); border-block: 1px solid var(--line); }
.bmi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bmi-grid > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sub { color: var(--muted); max-width: 46ch; }
.bmi-card { background: var(--bg); border: 1px solid var(--line); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field input, .field select { width: 100%; padding: 14px; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text); font: 600 1.05rem/1.2 var(--body); }
.field input:focus, .field select:focus { outline: none; border-color: var(--fire); }
.result { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.val { display: flex; flex-direction: column; align-items: center; padding: 14px 18px; background: var(--fire); color: #111; }
.val span { font: 900 3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.val small { font-weight: 700; letter-spacing: 0.14em; }
.result strong { font: 800 1.7rem/1 var(--display); text-transform: uppercase; }
.result p { color: var(--muted); margin-top: 6px; }
.scale { position: relative; height: 10px; background: linear-gradient(90deg, #4ea8de 0 17.5%, #3ccf8e 17.5% 40%, #f5b83d 40% 50%, #ff5a1f 50% 100%); }
.scale i { position: absolute; top: -6px; width: 4px; height: 22px; background: var(--text); transform: translateX(-50%); transition: left 0.4s; box-shadow: 0 0 0 2px var(--bg); }
.scale-labels { position: relative; height: 18px; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.scale-labels span { position: absolute; transform: translateX(-50%); }
.scale-labels span:nth-child(1) { left: 17.5%; } .scale-labels span:nth-child(2) { left: 40%; } .scale-labels span:nth-child(3) { left: 50%; }

/* Join */
.join { padding: 100px 0; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.join-grid > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.info { margin: 0; display: grid; gap: 12px; }
.info div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.info dt { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--fire); padding-top: 2px; }
.info dd { margin: 0; color: #d2d1cc; }
.trial { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--fire); padding: clamp(20px, 4vw, 34px); display: flex; flex-direction: column; gap: 16px; }

.foot { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 0.9rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .nav-btn { display: flex; position: relative; z-index: 80; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 70;
    flex-direction: column; align-items: stretch; gap: 0; padding: calc(96px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 24px 24px;
    background: var(--panel); border-left: 2px solid var(--fire);
    transform: translateX(100%); visibility: hidden; transition: transform 0.35s, visibility 0.35s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font: 800 1.8rem/1 var(--display); color: var(--text); }
  .nav .btn { margin-top: 20px; }
  .p-grid, .bmi-grid, .join-grid { grid-template-columns: 1fr; }
  .plan.hot { order: -1; }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .g-grid img:first-child { grid-column: 1 / -1; }
  .g-grid img { height: 220px; }
}
@media (max-width: 560px) {
  .hero { padding: 72px 0 64px; }
  .cta .btn-lg { width: 100%; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 2.2rem; }
  .sched li { grid-template-columns: 84px 1fr; }
  .sched .lvl { grid-column: 2; }
  .f2 { grid-template-columns: 1fr; }
  .ticker span, .ticker i { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker-track { animation: none; } .btn { transition: none; } }
