/* Shared styles for finnfitness.app. Colors follow the app's Signature theme
   (finnfitness-app/src/constants/themes.ts, id 'daylight'). */
:root {
  --bg: #E9F1FA;
  --bg-card: #F8FBFE;
  --bg-card-2: #FFFFFF;
  --text: #10161F;
  --text-dim: #42505F;
  --text-eyebrow: #0064CA;
  --grad-start: #0B4FA0;
  --grad-end: #0072E5;
  --accent: #0072E5;
  --border: #C9D9E9;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body {
  background-image: radial-gradient(ellipse at 50% 0%, rgba(0, 114, 229, 0.10), transparent 60%);
  min-height: 100vh;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; margin: 0 auto; }
.section { padding: 80px 24px; }
.section-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 56px 32px;
  margin: 24px auto;
  max-width: 1000px;
  border: 1px solid var(--border);
}
h1, h2, h3 { margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
.gradient-text {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-eyebrow);
  margin-bottom: 16px;
  display: block;
}
p { color: var(--text-dim); font-size: 17px; margin: 0 0 20px; }
.hero { text-align: center; padding: 64px 24px 24px; }
.hero img.logo { width: 140px; height: 140px; border-radius: 28px; box-shadow: 0 20px 50px rgba(0, 80, 170, 0.25); }
.hero h1 { margin-top: 32px; }
.hero .tag { color: var(--text-eyebrow); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; font-size: 13px; margin-top: 12px; }
.hero p.desc { margin: 28px auto; max-width: 560px; font-size: 18px; color: var(--text-dim); }
.beta-label { color: var(--text-eyebrow); font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 40px 0 20px; }
.btn-row { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--border);
  min-width: 360px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #005FC0; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.qr-block { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 24px 0; }
.qr-block img { width: 220px; height: 220px; border-radius: 16px; background: white; padding: 12px; border: 1px solid var(--border); }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature.reverse { grid-template-columns: 1fr 1fr; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-img { order: 1; }
.feature-text { padding: 16px; }
.feature-text h2 { margin-bottom: 20px; }
.feature-img { display: flex; justify-content: center; }
.feature-img img { max-width: 320px; width: 100%; border-radius: 32px; box-shadow: 0 30px 70px rgba(16, 40, 80, 0.22); }
.feature.stacked { grid-template-columns: 1fr; text-align: center; gap: 32px; }
.feature.stacked .feature-text { max-width: 640px; margin: 0 auto; }
.feature.stacked .feature-img img { max-width: 280px; }
.feature-img-pair { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: flex-start; }
.feature-img-pair img { max-width: 280px; width: 100%; border-radius: 32px; box-shadow: 0 30px 70px rgba(16, 40, 80, 0.22); }
.footer {
  text-align: center;
  padding: 56px 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer p { font-size: 14px; color: var(--text-dim); margin: 8px 0; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.footer-links a { color: var(--text-eyebrow); text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-links a:hover { color: var(--text); }

/* Home: the header with the iPhone join block, then Racer Mode and Gym Mode side by side, then the maker and the links */
.hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; padding: 24px; align-items: stretch; }
.panel { min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.panel h2 { font-size: 28px; margin-bottom: 12px; }
.panel p { font-size: 15px; margin-bottom: 18px; }
.panel .eyebrow { margin-bottom: 10px; }
.mode-shot { display: block; width: 100%; max-width: 230px; height: 300px; margin: auto 0 20px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(16, 40, 80, 0.22); }
.mode-shot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 0; }
.hub-about { text-align: center; max-width: 760px; margin: 0 auto; padding: 32px 24px 0; }
.hub-about p { font-size: 15px; }
.hub-about a { color: var(--text-eyebrow); text-decoration: none; }
.footer.hub-footer { margin-top: 20px; padding: 24px 24px 32px; }
@media (max-width: 760px) {
  .hub { grid-template-columns: 1fr; max-width: 520px; }
}

/* The iPhone join block, in the header of every page */
.join-block { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 360px; margin: 0 auto 24px; }
.qr-label { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.qr-label svg { width: 16px; height: 16px; }
.join-qr { width: 100%; max-width: 160px; aspect-ratio: 1; border-radius: 14px; background: white; padding: 10px; border: 1px solid var(--border); }
.join-note { font-size: 13px; margin: 0; }
/* .btn.btn-sm, so it outranks the phone rule that gives every .btn a 280px minimum. */
.btn.btn-sm { min-width: 0; padding: 12px 22px; font-size: 12px; letter-spacing: 0.14em; }
@media (max-width: 720px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature.reverse .feature-text { order: 1; }
  .feature.reverse .feature-img { order: 2; }
  .section-card { padding: 40px 20px; }
  .btn { min-width: 280px; }
}

/* Gym and Racer pages: the way back to the homepage */
.page-top { max-width: 1000px; margin: 0 auto; padding: 20px 24px 0; }
.home-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-eyebrow); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.home-btn:hover { color: var(--text); }

/* Racer Mode page */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.tile { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.tile h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--text); }
.tile p { font-size: 15.5px; margin: 0; }
.tile ul { list-style: none; padding: 0; margin: 12px 0 0; }
.tile li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 15.5px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.fine-print { font-size: 14px; text-align: center; max-width: 720px; margin: 0 auto; }
.fine-print a { color: var(--text-eyebrow); text-decoration: none; }
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
}
