:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --surface: #15171b;
  --surface-2: #1b1e23;
  --line: #262a31;
  --text: #f4f5f7;
  --muted: #a6acb6;
  --soft: #7d838d;
  --red: #ff1f1f;
  --red-2: #ff5a5f;
  --red-dark: #2a0d10;
  --mint: #84d5b0;
  --gold: #ffcf70;
  --radius: 18px;
  --head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-2); text-underline-offset: 3px; }
a:hover { color: #ff8a8e; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.04; letter-spacing: -0.005em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  font: 700 0.78rem/1.2 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 640px; }
.fine { font-size: 0.85rem; color: var(--soft); }
.accent { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #ff3d3d; color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 9px 18px; font-size: 0.92rem; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px 10px 16px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #3a3f47; border-radius: 14px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-btn span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
.store-btn small { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.02em; color: #c9cdd4; }
.store-btn:hover { color: #fff; border-color: var(--red); transform: translateY(-1px); }
.store-btn.is-primary { background: var(--red); border-color: var(--red); }
.store-btn.is-primary small { color: #ffe1e1; }
.store-btn.is-primary:hover { background: #ff3d3d; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 13, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.35rem/1 var(--head); letter-spacing: 0.06em; }
.brand img { border-radius: 9px; }
.brand b { color: var(--red); }
.brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); content: ''; transition: transform .2s ease;
}
.nav-toggle i { top: 21px; }
.nav-toggle i::before { left: 0; top: -7px; }
.nav-toggle i::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }

/* Phones */
.phone {
  margin: 0;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #2c3038, #121418 60%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  max-width: 300px;
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 430 / 932; object-fit: cover; object-position: top; background: #0d0f12; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto 40%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 31, 31, 0.28), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--soft); font-size: 0.9rem; margin-top: 8px; padding: 0; list-style: none; }
.hero__meta li::before { content: '✓'; color: var(--mint); margin-right: 6px; font-weight: 700; }
.phone-stack { position: relative; height: 620px; }
.phone-stack .phone { position: absolute; width: 270px; }
.phone-stack .phone:nth-child(1) { left: 0; top: 70px; transform: rotate(-7deg); opacity: 0.85; }
.phone-stack .phone:nth-child(2) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: 300px; }
.phone-stack .phone:nth-child(3) { right: 0; top: 80px; transform: rotate(7deg); opacity: 0.85; }

.pill-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.pill-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; list-style: none; margin: 0; padding: 22px 0; }
.pill-strip li { font: 700 1.15rem/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pill-strip li b { color: var(--red); }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 0; overflow: hidden; display: flex; flex-direction: column; }
.step::before { counter-increment: step; content: '0' counter(step); font: 800 1rem/1 var(--head); color: var(--red); letter-spacing: 0.12em; }
.step h3 { margin-top: 10px; font-size: 1.8rem; text-transform: uppercase; }
.step p { color: var(--muted); }
.step .phone { margin: auto auto -120px; max-width: 250px; transform: translateY(0); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-dark); color: var(--red); margin-bottom: 16px; }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.45rem; text-transform: uppercase; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.feature a { font-weight: 600; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 90px; }
.showcase--flip .showcase__media { order: 2; }
.showcase__media { display: flex; justify-content: center; gap: 20px; }
.showcase__media .phone { width: 46%; max-width: 270px; }
.showcase__media .phone:nth-child(2) { margin-top: 60px; }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--muted); }
.checks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--red-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff1f1f' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks li strong { color: var(--text); }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience article { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.audience article.is-featured { border-color: rgba(255, 31, 31, 0.55); background: linear-gradient(180deg, #24100f, var(--bg)); }
.audience h3 { font-size: 1.7rem; text-transform: uppercase; }
.audience p { color: var(--muted); }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-grid--sm { grid-template-columns: repeat(2, 1fr); }
.guide-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--text); transition: border-color .15s ease, transform .15s ease;
}
.guide-card:hover { border-color: var(--red); color: var(--text); transform: translateY(-2px); }
.guide-card strong { font: 700 1.45rem/1.1 var(--head); text-transform: uppercase; }
.guide-card span:not(.guide-card__tag) { color: var(--muted); font-size: 0.95rem; }
.guide-card em { font-style: normal; color: var(--red-2); font-weight: 600; margin-top: auto; font-size: 0.92rem; }
.guide-card__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.guide-card--sm strong { font-size: 1.25rem; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust div { border-top: 2px solid var(--red); padding-top: 18px; }
.trust h3 { font-size: 1.35rem; text-transform: uppercase; }
.trust p { color: var(--muted); font-size: 0.97rem; }

/* App CTA */
.app-cta {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
  margin: 56px 0; padding: 34px 34px 0; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255, 31, 31, 0.32), transparent 55%), linear-gradient(160deg, #1c0f11, #111316 60%);
  border: 1px solid rgba(255, 31, 31, 0.35);
}
.app-cta__copy { padding-bottom: 34px; }
.app-cta__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.app-cta p { color: #c8ccd3; }
.app-cta .store-row { margin-bottom: 0; }
.phone--cta { max-width: 240px; margin: 0 auto -150px; align-self: start; }
.prose .app-cta h2 { margin-top: 0; }

/* Final CTA */
.final-cta { padding: clamp(70px, 10vw, 120px) 0; text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(255, 31, 31, 0.22), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.final-cta__inner { max-width: 720px; }
.final-cta__logo { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 20px 50px -20px rgba(255, 31, 31, 0.6); }
.final-cta p { color: var(--muted); font-size: 1.08rem; }
.final-cta .store-row { justify-content: center; }

/* Article */
.article-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 90% at 90% 10%, rgba(255, 31, 31, 0.18), transparent 70%); }
.article-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.article-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.article-hero--hub h1 { max-width: 900px; }
.phone--hero { max-width: 270px; justify-self: center; transform: rotate(3deg); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--soft); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.byline { color: var(--soft); font-size: 0.85rem; margin-top: 14px; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 56px 0 80px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 0.9rem; }
.toc p { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--soft); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--text); border-left-color: var(--red); }
.prose { max-width: 760px; }
.prose > section { margin-bottom: 48px; }
.prose h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #c4c9d1; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45em; }
.quick-answer { border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--surface); border-radius: 14px; padding: 22px 24px; margin-bottom: 44px; }
.quick-answer p:last-child, .quick-answer ul:last-child { margin-bottom: 0; }
.quick-answer .eyebrow { margin-bottom: 8px; }
.callout { border-radius: 14px; padding: 18px 20px; margin: 22px 0; background: var(--surface); border: 1px solid var(--line); }
.callout p:last-child { margin: 0; }
.callout--tip { border-color: rgba(132, 213, 176, 0.35); background: #0f1a16; }
.callout--warn { border-color: rgba(255, 207, 112, 0.35); background: #1b170e; }
.table-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.94rem; }
caption { text-align: left; padding: 12px 16px; color: var(--soft); font-size: 0.85rem; caption-side: bottom; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
tbody th { color: var(--text); font-weight: 600; }
td { color: #c4c9d1; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.workout-day h3 { display: flex; align-items: center; gap: 10px; }
.workout-day h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.workout-day > p { color: var(--muted); margin-bottom: 0; }
.disclaimer { font-size: 0.85rem; color: var(--soft); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }
.related { margin-top: 56px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 600; position: relative; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 20px 6px; color: var(--muted); }
.faq details > div p { color: var(--muted); }
.home-faq { max-width: 860px; margin-inline: auto; }

/* Hub */
.hub { padding: 56px 0 30px; }
.hub section { margin-bottom: 52px; }
.hub h2 { font-size: 1.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; background: var(--bg); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; }
.site-footer p { color: var(--soft); font-size: 0.92rem; margin-top: 14px; max-width: 340px; }
.site-footer h2 { font: 700 0.76rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 26px; }
.site-footer__grid > div:nth-child(2) ul { columns: 2; column-gap: 24px; }
.site-footer li { margin-bottom: 8px; break-inside: avoid; }
.site-footer li a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-footer li a:hover { color: var(--text); }
.site-footer__base { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.site-footer__base p { max-width: none; font-size: 0.8rem; margin: 0 0 8px; }

/* Sticky install */
.sticky-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 18px;
  background: rgba(21, 23, 27, 0.96); border: 1px solid #343842;
  box-shadow: 0 18px 50px -10px rgba(0, 0, 0, 0.8);
  transform: translateY(140%); transition: transform .3s ease;
}
.sticky-install[hidden] { display: none; }
.sticky-install.is-visible { transform: none; }
.sticky-install img { border-radius: 10px; }
.sticky-install p { flex: 1; margin: 0; display: flex; flex-direction: column; line-height: 1.2; font-size: 0.95rem; }
.sticky-install p span { color: var(--soft); font-size: 0.8rem; }
.sticky-install__close { background: none; border: 0; color: var(--soft); font-size: 1.5rem; width: 34px; height: 34px; cursor: pointer; }

@media (max-width: 1020px) {
  .feature-grid, .guide-grid, .audience, .trust { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .prose { margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
  .hero { padding-top: 40px; }
  .hero__grid, .article-hero__grid, .showcase, .app-cta { grid-template-columns: 1fr; }
  .phone-stack { height: 480px; max-width: 460px; margin: 10px auto 0; width: 100%; }
  .phone-stack .phone { width: 200px; }
  .phone-stack .phone:nth-child(2) { width: 230px; }
  .steps { grid-template-columns: 1fr; }
  .step .phone { margin-bottom: -180px; }
  .showcase--flip .showcase__media { order: 0; }
  .phone--hero { display: none; }
  .phone--cta { max-width: 220px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .sticky-install:not([hidden]) { display: flex; }
}

@media (max-width: 600px) {
  .feature-grid, .guide-grid, .guide-grid--sm, .audience, .trust { grid-template-columns: 1fr; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .phone-stack { height: 400px; }
  .phone-stack .phone { width: 165px; }
  .phone-stack .phone:nth-child(2) { width: 195px; }
  .app-cta { padding: 26px 22px 0; }
  .showcase__media .phone { width: 48%; }
}

@media (min-width: 861px) {
  .sticky-install { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
