/* GymFast marketing site. Colors follow the app's dark theme. */
:root {
  --bg: #0d0e11;
  --surface: #17191e;
  --surface-high: #20232a;
  --border: #272a31;
  --fg: #f2f3f5;
  --muted: #a3a8b1;
  --brand: #ff6a2b;
  --brand-deep: #e5531a;
  --brand-soft: #3a1f14;
  --mint: #3ddc97;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ff8a57; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
h3 a { color: var(--fg); text-decoration: none; }
h3 a:hover { color: var(--brand); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(13, 14, 17, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.logo img { border-radius: 8px; }
.logo b { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.menu-toggle, .menu-button { display: none; }

.btn { display: inline-block; background: var(--brand); color: #111 !important; font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.btn:hover { background: #ff8a57; }
.btn-small { padding: 8px 16px; font-size: .9rem; }

@media (max-width: 760px) {
  .menu-button { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .menu-button span, .menu-button span::before, .menu-button span::after {
    content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--fg); border-radius: 2px;
  }
  .menu-button span { top: 21px; }
  .menu-button span::before { left: 0; top: -7px; }
  .menu-button span::after { left: 0; top: 7px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 20px; }
  .nav a { padding: 12px 0; font-size: 1.05rem; }
  .nav .btn { text-align: center; margin-top: 8px; padding: 12px; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* Hero */
.hero { padding: 56px 0 24px; background: radial-gradient(60% 70% at 80% 30%, rgba(255, 106, 43, .18), transparent 70%); }
.hero-grid, .split-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); display: block; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.note { color: var(--muted); font-size: .9rem; margin-top: 12px; }

.phone { margin: 0 auto; max-width: 300px; padding: 10px; background: #000; border-radius: 42px; border: 1px solid #2b2e35;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px #15171c; }
.phone img { border-radius: 32px; }
.phone-hero { max-width: 320px; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--fg); color: #111; text-decoration: none; min-width: 180px; }
.store:hover { background: #fff; color: #111; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.05rem; }
.store small { font-weight: 500; font-size: .7rem; }
.store-soon { background: var(--surface-high); color: var(--muted); cursor: default; }
.store-soon:hover { background: var(--surface-high); color: var(--muted); }

/* Sections */
.band { padding: 56px 20px; }
.page-head { padding-top: 32px; padding-bottom: 32px; }
.narrow { max-width: 680px; }
.more { margin-top: 24px; font-weight: 700; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 12px; }
.steps strong, .card strong { display: block; font-size: 1.08rem; margin-bottom: 4px; color: var(--fg); }
.steps span, .card span { color: var(--muted); font-size: .97rem; }
.steps-plain { grid-template-columns: 1fr; }

.features-home { padding: 24px 20px; }
.feature-row { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; padding: 32px 0; }
.feature-row.reverse { grid-template-columns: 300px 1fr; }
.feature-row.reverse > div { order: 2; }
.feature-row p { color: var(--muted); }

.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card a { display: block; text-decoration: none; height: 100%; }
.card:has(a):hover { border-color: var(--brand); }
.cards-big { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mint); font-weight: 800; }

.faq { margin: 24px 0 0; display: grid; gap: 12px; }
.faq div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.faq dt { font-weight: 700; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--muted); }

/* Articles */
.prose { max-width: 760px; padding-top: 8px; padding-bottom: 32px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose p, .prose li { color: #d4d7dc; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--fg); background: var(--surface); }
.post header { padding: 24px 0 8px; }
.meta { color: var(--muted); font-size: .9rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); padding-top: 16px; }

.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.posts article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.posts h2 { font-size: 1.35rem; }
.posts h2 a { color: var(--fg); text-decoration: none; }
.posts h2 a:hover { color: var(--brand); }
.posts p { color: var(--muted); }
.read { font-weight: 700; }

.code { font: 800 2.2rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; background: var(--surface); border: 1px dashed var(--brand); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--brand); }

.related { padding-top: 24px; padding-bottom: 24px; }
.related h2 { font-size: 1.4rem; }

/* Closing CTA */
.cta { margin-top: 48px; background: linear-gradient(135deg, var(--brand-soft), var(--surface) 60%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.cta p { color: var(--muted); margin: 0; max-width: 34em; }
.cta .stores { margin: 0; }

/* Footer */
.foot { padding: 48px 0 24px; color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .logo { color: var(--fg); margin-bottom: 12px; }
.legal-line { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid, .split-head, .feature-row, .feature-row.reverse, .cta-inner { grid-template-columns: 1fr; }
  .feature-row.reverse > div { order: 0; }
  .feature-row .phone { max-width: 240px; }
  .split-head .phone { max-width: 240px; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 32px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .store { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
