/* ============================================================
   MAC Fitness — Marketing landing page styles
   Builds on colors_and_type.css tokens.
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #050506;
  color: var(--text-light);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* glow helpers */
.glow-indigo { position: absolute; border-radius: 50%; filter: blur(90px); background: rgba(89,83,241,.5); pointer-events: none; z-index: 0; }
.glow-gold   { position: absolute; border-radius: 50%; filter: blur(90px); background: rgba(232,178,46,.32); pointer-events: none; z-index: 0; }

/* ---------------- Display type ---------------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.012em;
  margin: 0;
}
.accent { color: var(--mac-primary); }
.ital { font-style: italic; }
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mac-primary);
  margin: 0 0 18px;
}
.eyebrow--gold { color: var(--gold); }
.lead { color: var(--text-medium); font-size: 18px; line-height: 1.55; margin: 0; }
.muted { color: var(--text-dark); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,6,.72); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo img { height: 26px; width: auto; }
.nav__logo .mk { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { font-size: 15px; color: var(--text-medium); font-weight: 500; transition: color .18s; }
.nav__links a:hover { color: var(--text-light); }
.nav__spacer { flex: 1; }

/* ---------------- App Store button (official-style) ---------------- */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #000; border-radius: 13px;
  padding: 10px 18px 10px 16px; transition: transform .15s, box-shadow .15s;
  border: 1px solid rgba(255,255,255,.5);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.appstore svg { width: 26px; height: 26px; }
.appstore .as-t { display: flex; flex-direction: column; line-height: 1.05; }
.appstore .as-t small { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.appstore .as-t span { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.appstore--sm { padding: 7px 14px 7px 12px; border-radius: 11px; }
.appstore--sm svg { width: 20px; height: 20px; }
.appstore--sm .as-t small { font-size: 9px; }
.appstore--sm .as-t span { font-size: 14px; }

/* ---------------- Sections ---------------- */
section { position: relative; z-index: 1; }
.feat { padding: 120px 0; }
.feat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat__grid.rev .feat__copy { order: 2; }
.feat__copy h2 { font-size: clamp(38px, 4.4vw, 64px); margin: 0 0 22px; color: var(--text-light); }
.feat__copy .lead { max-width: 33ch; }
.feat__media { display: flex; justify-content: center; align-items: center; position: relative; }
.section-tag { font-size: 14px; color: var(--text-dark); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; }
.section-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--mac-primary); }

/* feature bullet list */
.fbullets { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.fbullets li { display: flex; gap: 13px; align-items: flex-start; }
.fbullets .fi { width: 34px; height: 34px; border-radius: 10px; background: var(--mac-primary-ghost); display: flex; align-items: center; justify-content: center; flex: none; color: var(--mac-primary); }
.fbullets b { display: block; font-size: 16px; color: var(--text-light); margin-bottom: 2px; }
.fbullets span { font-size: 14.5px; color: var(--text-dark); line-height: 1.45; }

/* ---------------- HERO ---------------- */
.hero { padding: 70px 0 90px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(52px, 7vw, 104px); margin: 0 0 26px; }
.hero .lead { max-width: 40ch; margin-bottom: 34px; }
.hero__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__rating { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-dark); }
.hero__rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.hero__phones { position: relative; display: flex; justify-content: center; }

/* hero stat strip */
.strip { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.strip__in { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; flex-wrap: wrap; }
.strip__item { display: flex; align-items: center; gap: 12px; color: var(--text-medium); font-size: 15px; font-weight: 600; }
.strip__item .n { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--text-light); }
.strip__item .accent { color: var(--mac-primary); }

/* ---------------- Device (phone) frame ---------------- */
.device {
  position: relative; width: 300px; flex: none;
  background: #0b0b0d; border-radius: 44px; padding: 9px;
  border: 1px solid #232327;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.device__scr {
  position: relative; border-radius: 36px; overflow: hidden; background: var(--surface-800);
  aspect-ratio: 300/650;
}
.device__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 98px; height: 24px; background: #000; border-radius: 0 0 16px 16px; z-index: 5; }
.device--tilt { transform: rotate(-4deg); }
.device--tilt2 { transform: rotate(5deg); }

/* generic screen scaffolding */
.scr { position: absolute; inset: 0; padding: 30px 14px 16px; font-size: 12px; display: flex; flex-direction: column; }
.scr__nav { text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--text-light); }
.scr-card { background: var(--surface-600); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px; }
.scr-tiles { display: flex; gap: 7px; }
.scr-tile { flex: 1; background: rgba(0,0,0,.2); border: 1px solid var(--stroke-strong); border-radius: 10px; padding: 7px 4px; text-align: center; }
.scr-tile .k { font-size: 9.5px; color: var(--text-dark); }
.scr-tile .v { font-size: 16px; font-weight: 700; color: var(--text-light); font-variant-numeric: tabular-nums; }
.scr-bodymap { width: 100%; border-radius: 10px; margin: 9px 0; }
.scr-exrow { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.scr-exthumb { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(160deg,#3a378f,#2a2870); display: flex; align-items: center; justify-content: center; flex: none; }
.scr-exname { font-size: 15px; font-weight: 700; color: var(--text-light); }
.scr-exmuscle { font-size: 11px; color: var(--text-caption); }
.scr-pb { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--stroke-strong); border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 600; color: var(--text-light); }
.scr-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 9px 6px 4px; }
.scr-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-dark); font-size: 8.5px; font-weight: 600; }
.scr-tab.on { color: var(--mac-primary); }

/* progress ring small */
.ring-sm { position: relative; width: 50px; height: 50px; flex: none; }
.ring-sm .ctr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-sm .ctr b { font-size: 15px; font-weight: 700; }
.ring-sm .ctr s { font-size: 8px; text-decoration: none; font-weight: 600; }

/* ---------------- Tiers ---------------- */
.tiers { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 8px; }
.tier { background: var(--surface-700); border: 1px solid var(--stroke); border-radius: 18px; padding: 22px 14px; text-align: center; position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.tier:hover { transform: translateY(-5px); }
.tier__coin { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #1a1205; position: relative; }
.tier__coin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.tier__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }
.tier__sub { font-size: 12px; color: var(--text-caption); margin-top: 4px; }
.tier.is-you { border-color: rgba(232,178,46,.5); box-shadow: 0 0 30px rgba(232,178,46,.18); }
.tier__badge { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(232,178,46,.14); padding: 3px 7px; border-radius: 999px; }

/* leaderboard screen rows */
.lb-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.lb-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.lb-name { font-size: 14px; font-weight: 700; }
.lb-score { margin-left: auto; text-align: right; }
.lb-score b { font-size: 24px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.lb-score s { display: block; font-size: 9px; color: var(--text-caption); text-decoration: none; }
.pbar { margin-bottom: 9px; }
.pbar__row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 5px; }
.pbar__row b { color: var(--text-light); font-weight: 700; font-variant-numeric: tabular-nums; }
.pbar__t { height: 5px; border-radius: 999px; background: var(--surface-500); overflow: hidden; }
.pbar__t i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

/* program chips */
.progchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.progchip { border: 1px solid var(--stroke-strong); background: var(--surface-700); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text-medium); }
.progchip.on { background: var(--mac-primary); color: #fff; border-color: transparent; }

/* program screen */
.pg-tabs { display: flex; gap: 5px; margin-bottom: 10px; }
.pg-tab { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; font-size: 11px; font-weight: 600; background: var(--surface-600); color: var(--text-medium); }
.pg-tab.on { background: var(--mac-primary); color: #fff; }
.pg-tab.rest { color: var(--text-caption); }
.pg-stats { display: flex; justify-content: space-between; padding: 10px 4px; margin-bottom: 8px; }
.pg-stats div { text-align: center; }
.pg-stats .k { font-size: 9.5px; color: var(--text-dark); }
.pg-stats .v { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-exlist { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.pg-ex { display: flex; align-items: center; gap: 8px; background: var(--surface-600); border-radius: 11px; padding: 7px 9px; }
.pg-ex .t { font-size: 12px; font-weight: 600; }
.pg-ex .s { font-size: 9.5px; color: var(--text-caption); }

/* ---------------- Insight callout ---------------- */
.callout { display: flex; gap: 12px; background: var(--surface-700); border-left: 3px solid var(--warning); border-radius: 14px; padding: 16px 18px; margin-top: 28px; max-width: 38ch; }
.callout p { margin: 0; font-size: 15px; color: var(--text-medium); line-height: 1.5; }

/* ---------------- Chart card (strength over time) ---------------- */
.cardblock { background: var(--surface-700); border: 1px solid var(--stroke); border-radius: 22px; padding: 26px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.chart-head .e1rm { font-family: var(--font-display); font-weight: 800; font-size: 38px; }
.chart-head .e1rm small { font-size: 16px; color: var(--text-dark); font-weight: 600; }
.chart-head .delta { color: var(--success); font-size: 14px; font-weight: 700; }

/* calendar heatmap (wrapped) */
.calheat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calheat i { aspect-ratio: 1; border-radius: 5px; background: var(--surface-500); }
.calheat i.l1 { background: rgba(89,83,241,.35); }
.calheat i.l2 { background: rgba(89,83,241,.6); }
.calheat i.l3 { background: var(--mac-primary); }
.wrapped-stats { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.wrapped-stat { flex: 1; min-width: 120px; }
.wrapped-stat b { font-family: var(--font-display); font-weight: 800; font-size: 28px; display: block; }
.wrapped-stat span { font-size: 13px; color: var(--text-caption); }

/* ---------------- Social feed mini cards ---------------- */
.feedgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 8px; }
.feedcard { background: var(--surface-700); border: 1px solid var(--stroke); border-radius: 18px; padding: 16px; }
.feedcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.feedcard__head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.feedcard__head b { font-size: 14px; }
.feedcard__head span { font-size: 11px; color: var(--text-caption); display: block; }
.feedcard__body { font-size: 14px; color: var(--text-medium); line-height: 1.45; }
.feedcard__foot { display: flex; gap: 14px; margin-top: 14px; color: var(--text-dark); font-size: 13px; }
.feedcard__foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- Pro ---------------- */
.pro { padding: 120px 0; }
.pro__box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1830 0%, #14131f 60%, #0c0c14 100%);
  border: 1px solid rgba(89,83,241,.35); border-radius: 32px; padding: 60px;
}
.pro__tag { display: inline-flex; align-items: center; gap: 8px; background: var(--mac-primary); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 24px; }
.pro__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.pro__features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 24px; }
.pro__features li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text-medium); }
.pro__features .ck { color: var(--mac-primary); flex: none; }

/* ---------------- Final CTA ---------------- */
.finalcta { padding: 150px 0; text-align: center; position: relative; overflow: hidden; }
.finalcta h2 { font-size: clamp(54px, 9vw, 150px); margin: 0 0 36px; }
.finalcta .lead { margin: 0 auto 40px; max-width: 30ch; }
.finalcta__btns { display: flex; justify-content: center; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--stroke); padding: 50px 0 60px; }
.footer__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer__logo { display: flex; align-items: center; gap: 10px; }
.footer__logo img { height: 22px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: var(--text-dark); }
.footer__links a:hover { color: var(--text-light); }
.footer__copy { font-size: 13px; color: var(--text-caption); }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .hero__grid, .feat__grid, .pro__grid { grid-template-columns: 1fr; gap: 40px; }
  .feat__grid.rev .feat__copy { order: 0; }
  .hero__phones { order: -1; }
  .feat { padding: 80px 0; }
  .tiers { grid-template-columns: repeat(2,1fr); }
  .feedgrid { grid-template-columns: 1fr; }
  .pro__features { grid-template-columns: 1fr; }
  .pro__box { padding: 36px 26px; }
}
