/* ==========================================================================
   RunFitCoach — Marketing site shared styles
   Dark-mode-first. Inspired by the app's tokens (colors_and_type.css).
   ========================================================================== */


* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout primitives ───────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }
@media (max-width: 760px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-block;
  font: 700 11px/1 var(--font-sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
  background: hsla(162 62% 48% / 0.1);
  padding: 6px 12px; border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em;
  color: #fff; margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 88px); line-height: 0.95; }
h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; }
h4 { font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
p  { color: var(--fg-muted); line-height: 1.6; font-size: 16px; }
p.lede { font-size: 20px; color: rgba(255,255,255,0.75); line-height: 1.5; max-width: 640px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,18,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.site-header .logo img { height: 36px; width: auto; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
  transition: color 150ms;
}
.site-header nav a:hover { color: #fff; }
.site-header nav a.active { color: var(--primary); }
.site-header .auth { display: flex; align-items: center; gap: 10px; }

/* ── Mobile hamburger ────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  margin-left: 8px;
  border-radius: 8px;
  transition: background 150ms;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.06); }
.mobile-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  position: relative;
  transition: all 200ms;
}
.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 200ms;
}
.mobile-menu-btn span::before { top: -7px; }
.mobile-menu-btn span::after  { top:  7px; }
.mobile-menu-btn.is-open span { background: transparent; }
.mobile-menu-btn.is-open span::before { top: 0; transform: rotate(45deg); }
.mobile-menu-btn.is-open span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav-panel {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(10,10,18,0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 99;
  padding: 24px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  animation: mobNavSlide 220ms ease-out;
}
@keyframes mobNavSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-panel.is-open { display: block; }
.mobile-nav-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px;
  font-size: 18px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav-panel a:last-of-type { border-bottom: 0; }
.mobile-nav-panel a:hover, .mobile-nav-panel a:focus { color: var(--primary); }
.mobile-nav-panel a::after {
  content: "→"; color: rgba(255,255,255,0.3); font-weight: 400;
}
.mobile-nav-panel .mob-cta {
  margin-top: 16px;
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.mobile-nav-panel .mob-cta a {
  border: 0; padding: 14px;
  border-radius: 10px;
  text-align: center; justify-content: center;
  font-size: 14px;
}
.mobile-nav-panel .mob-cta a::after { display: none; }
.mobile-nav-panel .mob-cta .btn-ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.mobile-nav-panel .mob-cta .btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

@media (max-width: 900px) {
  .site-header nav.main-nav { display: none; }
  .site-header .auth { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 12px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font-sans); letter-spacing: -0.01em;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 4px 14px hsla(162 77% 57% / 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px hsla(162 77% 57% / 0.45);
}
.btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.8); }
.btn-ghost:hover { color: #fff; }
.btn-lg { height: 56px; padding: 0 28px; border-radius: 14px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 56px 0 32px; margin-top: 64px;
}
.site-footer .container {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer h5 {
  font: 700 10px/1 var(--font-sans); letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-size: 14px; color: rgba(255,255,255,0.6); }
.site-footer ul a:hover { color: var(--primary); }
.site-footer .brand-col img { height: 28px; width: auto; margin-bottom: 14px; }
.site-footer .brand-col p { font-size: 13px; color: rgba(255,255,255,0.5); max-width: 280px; margin: 0; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

/* ── Ambient background blooms ──────────────────────────── */
.bloom {
  position: absolute; pointer-events: none; border-radius: 999px;
  filter: blur(100px); opacity: 0.25;
}
.bloom-mint   { background: hsla(162 62% 48% / 0.5); }
.bloom-teal   { background: hsla(190 82% 38% / 0.4); }
.bloom-indigo { background: hsla(239 84% 67% / 0.3); }

/* ── Card (reused everywhere) ───────────────────────────── */
.card {
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

/* ── Utility ────────────────────────────────────────────── */
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: rgba(255,255,255,0.5); }
.center { text-align: center; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-md { display: flex; flex-direction: column; gap: 24px; }

/* ── Hero page padding ──────────────────────────────────── */
.page-hero {
  padding: 80px 0 64px;
  position: relative; overflow: hidden;
}

/* ── Sections with divider lines ────────────────────────── */
.divided { border-top: 1px solid rgba(255,255,255,0.05); }


/* ── Quote strip — reusable text-only social proof ─────── */
.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 64px 0;
}
@media (max-width: 900px) { .quote-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quote-strip { grid-template-columns: 1fr; } }
.quote-strip .qs-card {
  padding: 28px 26px 24px;
  border-radius: 20px;
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}
.quote-strip .qs-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.6;
  color: var(--primary);
  margin-bottom: 12px;
}
.quote-strip .qs-card blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
  flex: 1;
}
.quote-strip .qs-card .nm { font-weight: 600; color: #fff; font-size: 14px; }
.quote-strip .qs-card .meta { font-size: 12px; color: var(--primary); margin-top: 2px; letter-spacing: 0.04em; }

/* ── Inline article images (hero + 2 inline body images per blog post) ───
   Uses a real <img> child so Google can index it. CSS preserves the
   rounded card look + 16:9 aspect ratio via object-fit cover. */
figure.inline-image {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #1a2030;
  position: relative;
  padding: 0;
}
figure.inline-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
figure.inline-image figcaption {
  position: absolute; bottom: 12px; left: 16px;
  font-size: 12px; color: rgba(255,255,255,0.85);
  background: rgba(10,10,18,0.65); backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 6px;
}
