/* Simple Gym — site styled after the app itself:
   iOS system look, white cards on grouped-gray background,
   SF type, blue accent, colorful stat-card chips. */

:root {
  --bg: #F2F2F7;             /* systemGroupedBackground */
  --card: #FFFFFF;           /* secondarySystemGroupedBackground */
  --card-inset: #F2F2F7;     /* systemGray6 */
  --text: #1C1C1E;           /* label */
  --text-dim: #8E8E93;       /* secondaryLabel */
  --separator: rgba(60, 60, 67, 0.12);
  --blue: #007AFF;
  --green: #34C759;
  --orange: #FF9500;
  --purple: #AF52DE;
  --red: #FF3B30;
  --yellow: #FFCC00;
  --radius: 16px;
  --radius-lg: 24px;
  --max-w: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --card-inset: #2C2C2E;
    --text: #FFFFFF;
    --text-dim: #98989E;
    --separator: rgba(84, 84, 88, 0.6);
    --blue: #0A84FF;
    --green: #30D158;
    --orange: #FF9F0A;
    --purple: #BF5AF2;
    --red: #FF453A;
    --yellow: #FFD60A;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.75; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── top nav (iOS navigation-bar feel) ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-brand img {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--separator);
}
.nav-brand-name { color: var(--text); }
.nav-links { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--blue); }

/* ─── hero (large-title style, like the app's "Exercises" header) ─── */
.hero {
  text-align: center;
  padding: 56px 0 48px;
}
.hero-icon {
  width: 156px;
  height: 156px;
  border-radius: 35px;          /* iOS icon corner ratio */
  border: 1px solid var(--separator);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  margin-bottom: 26px;
  background: #fff;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
}
.hero-tag {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 30px;
}

/* App Store download button — iOS filled pill */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 122, 255, 0.36);
}

/* ─── feature grid (styled after the app's stat cards) ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 64px;
}
.feature {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.feature .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1;
}
.chip.blue   { background: rgba(0, 122, 255, 0.14);  color: var(--blue); }
.chip.green  { background: rgba(52, 199, 89, 0.14);  color: var(--green); }
.chip.orange { background: rgba(255, 149, 0, 0.14);  color: var(--orange); }
.chip.purple { background: rgba(175, 82, 222, 0.14); color: var(--purple); }
.chip.red    { background: rgba(255, 59, 48, 0.14);  color: var(--red); }
.chip.yellow { background: rgba(255, 204, 0, 0.18);  color: var(--yellow); }
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.feature p { color: var(--text-dim); font-size: 15px; }
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

/* ─── screenshots strip ─── */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 64px;
}
.shots img {
  width: 100%; height: auto;
  border-radius: 22px;
  border: 1px solid var(--separator);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
@media (max-width: 720px) {
  .shots {
    grid-template-columns: repeat(4, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .shots img { scroll-snap-align: center; }
}

/* ─── article pages (privacy + support), grouped-list feel ─── */
.article {
  padding: 28px 0 72px;
  max-width: 680px;
  margin: 0 auto;
}
.article h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.article .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 26px;
}
.article h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
  color: var(--text);
}
.article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
.article p, .article li {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 14px;
}
.article ul { padding-left: 22px; }
.article ul li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 700; }

/* ─── footer ─── */
footer {
  border-top: 1px solid var(--separator);
  padding: 30px 0 44px;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
footer .foot-links { display: flex; gap: 20px; }
footer .foot-links a { color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
