/* FitCheck - AI Fitness Coach (fitcheckfitness.com)
   Production stylesheet v8 — Fraunces + Schibsted Grotesk editorial typography,
   cobalt + warm gold color pop, and always-on bottom App Store dock */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #eef3ff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --dark: #0b1530;
  --dark-2: #142552;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #0ea5e9;
  --gold: #d97706;
  --gold-bright: #f59e0b;
  --gold-soft: #fef3c7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-bottom: 84px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Header & Navigation ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-links {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.nav-links.is-open {
  display: flex;
}

.nav-links a:not(.appstore-badge) {
  color: #334155;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 4px;
  transition: color 0.15s ease;
}

.nav-links a:not(.appstore-badge):hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:not(.appstore-badge)[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.nav-links .btn,
.nav-links a.appstore-badge {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ─── Apple App Store Download Badge ─── */
.appstore-badge,
.nav-links a.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 9px 18px;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.appstore-badge:hover,
.nav-links a.appstore-badge:hover {
  background: #1e293b;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.appstore-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.appstore-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.appstore-badge-sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.appstore-badge-main {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.appstore-badge-sm,
.nav-links a.appstore-badge-sm {
  padding: 6px 13px;
  border-radius: 10px;
  gap: 8px;
}

.appstore-badge-sm svg {
  width: 18px;
  height: 18px;
}

.appstore-badge-sm .appstore-badge-sub {
  font-size: 0.56rem;
}

.appstore-badge-sm .appstore-badge-main {
  font-size: 0.88rem;
}

.appstore-badge-on-dark {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-dark {
  background-color: #ffffff;
  color: var(--dark);
}

.btn-dark:hover {
  background-color: #e2e8f0;
  color: var(--dark);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ─── Typography & Sections ─── */
.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
  flex-shrink: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 34, 'WONK' 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.45rem, 5.8vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.32rem, 2.4vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

p {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.lead {
  font-size: clamp(1.06rem, 2.1vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 660px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

/* ─── Hero & Auto-Sliding iPhone Showcase ─── */
.hero {
  padding: 56px 0 72px;
  background: radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.14), transparent 46%),
    radial-gradient(circle at 12% 78%, rgba(245, 158, 11, 0.10), transparent 42%),
    linear-gradient(180deg, #edf2ff 0%, #f6f8fc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-subtle);
}

.hero-carousel-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-viewport {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #ffffff;
}

.hero-phone-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.hero-phone-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.hero-phone-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ─── Clean Side-by-Side Feature Splits & iPhone Mockup ─── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.feature-split:last-of-type {
  border-bottom: 0;
}

.feature-split-copy ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink-muted);
}

.feature-split-copy li {
  margin-bottom: 10px;
}

.iphone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.10), transparent 70%),
    linear-gradient(180deg, #eff6ff 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.iphone-mockup {
  width: 100%;
  max-width: 288px;
  margin: 0 auto;
  background: #0b1224;
  padding: 11px;
  border-radius: 42px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.20), 0 0 0 2px rgba(148, 163, 184, 0.30) inset;
  overflow: hidden;
}

.iphone-mockup > img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  display: block;
  background: #ffffff;
}

/* ─── Exact FitCheck ExerciseFigure Motion Cards ─── */
.motion-row {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.motion-row-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 18px;
}

.movement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.movement-stage {
  width: 100%;
  height: 168px;
  border-radius: 14px;
  background: #eef2fb;
  border: 1px solid #dbe4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.movement-stage svg {
  width: 100%;
  height: 100%;
  max-width: 220px;
  display: block;
}

.movement-card h4 {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--ink);
}

.movement-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.movement-cue-pill {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.movement-card p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

/* ─── Cards & Grids ─── */
.grid-2,
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card p:last-child {
  margin-bottom: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.summary-box {
  background: var(--surface-alt);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 20px;
}

.summary-box strong {
  color: var(--ink);
}

/* ─── FAQ Accordion ─── */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 840px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--ink-muted);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: radial-gradient(45% 65% at 15% 20%, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 72%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 10px;
}

.cta-banner h2 em {
  color: #fbbf24;
}

.cta-banner p {
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 0;
}

/* ─── Prose / Legal Pages ─── */
.page-header {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.5rem;
}

.prose ul {
  padding-left: 22px;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 8px;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 56px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-footer h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* ─── Responsive Breakpoints ─── */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    gap: 24px;
  }

  .nav-links .btn,
  .nav-links a.appstore-badge {
    width: auto;
    margin-top: 0;
  }

  .feature-split {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    padding: 56px 0;
  }

  .feature-split.is-reversed .feature-split-copy {
    order: 2;
  }

  .feature-split.is-reversed .feature-split-media {
    order: 1;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-banner {
    flex-direction: row;
    align-items: center;
    padding: 48px 44px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 84px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .section {
    padding: 80px 0;
  }
}

/* ─── Always-On Bottom Download Dock (inspired by rootedword.org) ─── */
.dockbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(11, 21, 48, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -10px 32px rgba(11, 21, 48, 0.22);
  padding: 11px 0;
}

.dockbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dockbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dockbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dockbar-slogan {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 34, 'WONK' 0;
  font-size: clamp(0.96rem, 2.2vw, 1.18rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.dockbar-slogan em {
  font-style: italic;
  color: #fbbf24;
  font-weight: 500;
}

@media (max-width: 520px) {
  body {
    padding-bottom: 76px;
  }

  .dockbar-icon {
    display: none;
  }

  .dockbar-slogan {
    font-size: 0.9rem;
  }
}
