/* Family Fitness website — shared styles. Matches the app's accent and type. */
:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-soft: #EEF1FA;
  --border: #E1E6F2;
  --text: #121A33;
  --text-secondary: #5B6585;
  --accent: #3A5BF0;
  --accent-soft: rgba(58, 91, 240, 0.10);
  --green: #2BB673;
  --orange: #F29D38;
  --shadow: 0 18px 50px rgba(18, 26, 51, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1020;
    --surface: #151B31;
    --surface-soft: #1B2240;
    --border: #262F52;
    --text: #EEF1FF;
    --text-secondary: #A3ACCC;
    --accent: #6E86FF;
    --accent-soft: rgba(110, 134, 255, 0.14);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-logo-text { font-weight: 800; font-size: 16px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-link:hover { color: var(--text); }
.nav-cta {
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .nav-links .nav-link { display: none; }
}

/* ---- Layout ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.alt { background: var(--surface-soft); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--text-secondary); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 900; margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 19px; margin-bottom: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges img { height: 52px; width: auto; }
/* Google's badge PNG has a transparent margin (41 of 250 px per side); this makes the visible badge 52 px tall like Apple's. */
.badges img.play { height: 77px; margin: -13px; }
/* Smaller on phones so both badges fit on one line. */
@media (max-width: 420px) {
  .badges img { height: 44px; }
  .badges img.play { height: 65px; margin: -10.5px; }
}
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; padding: 0; list-style: none; }
.hero-points li { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.phone {
  width: min(46%, 270px);
  border-radius: 36px;
  border: 8px solid #10131f;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #10131f;
}
.phone img { display: block; width: 100%; height: auto; }
.hero-phones .phone:last-child { margin-top: 56px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}

/* ---- Leaderboard sample ---- */
.board {
  max-width: 460px;
  margin: 36px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 22px;
  box-shadow: var(--shadow);
  text-align: left;
}
.board-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.board-row:last-child { border-bottom: none; }
.board-row .medal { width: 30px; font-size: 22px; text-align: center; }
.board-row .rank { width: 30px; text-align: center; font-weight: 700; color: var(--text-secondary); }
.board-row .name { flex: 1; font-weight: 700; }
.board-row .steps { font-weight: 800; font-variant-numeric: tabular-nums; }
.board-total { display: flex; justify-content: space-between; padding: 14px 0 10px; font-weight: 700; color: var(--text-secondary); }

/* ---- Feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* ---- Screenshots ---- */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Equal columns (minmax(0, 1fr)) and no default <figure> margin, so every phone is the same size. */
.shot { margin: 0; min-width: 0; }
.shot figcaption { text-align: center; font-weight: 700; margin-top: 12px; font-size: 15px; }
.shot .phone { width: 100%; border-width: 6px; border-radius: 30px; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-secondary); }

/* ---- Privacy list ---- */
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(43, 182, 115, 0.14); color: var(--green);
  display: grid; place-items: center; font-weight: 900; font-size: 14px; margin-top: 1px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---- CTA ---- */
.cta {
  background: linear-gradient(135deg, #3A5BF0, #7339DB);
  color: #fff;
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.85); font-size: 18px; margin: 0 auto 26px; max-width: 560px; }
.cta .badges { justify-content: center; }

/* ---- Info pages (privacy, terms, support) ---- */
.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; margin-bottom: 8px; }
.page .updated { color: var(--text-secondary); margin: 0 0 32px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page h3 { font-size: 17px; margin: 22px 0 6px; }
.page p, .page li { color: var(--text-secondary); }
.page strong { color: var(--text); }
.page ul { padding-left: 22px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0;
}
.contact-card a.mail { font-size: 20px; font-weight: 800; text-decoration: none; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin: 10px 0 0; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer a { color: var(--text-secondary); }
.footer .links { margin-top: 8px; }
