/* ──────────────────────────────────────────────────────────────────────────
   Shared page styles for the "content" pages on www.getetapa.com — the
   intent landing pages (/cycling-app-for-beginners, /ai-cycling-coach, …),
   the beginner plan pages (/plans/*) and the organiser badge page.

   index.html / events.html keep their own bespoke inline styles; this file
   exists so every NEW content page reads as the same site without copying
   400 lines of CSS into each one. Pair it with /mobile.css + /mobile-nav.js
   (the shared hamburger drawer) — nav + footer markup must match the pattern
   in events.html for the drawer to pick it up.

   Tokens (match src/theme + the homepage): bg #000 / surfaces #0A0A0A,
   borders #1A1A1A, muted text #999, accent #F6237D (hover #F472B6).
   ────────────────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: inherit; }

/* ── Nav (same pattern as every other page) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 600; text-decoration: none; color: #fff;
}
.nav-logo-icon { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: #999; text-decoration: none; font-size: 15px; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.nav-active { color: #fff; }
.nav-social { display: inline-flex; align-items: center; justify-content: center; color: #888 !important; transition: color 0.2s; }
.nav-social:hover { color: #F6237D !important; }
.nav-social svg { display: block; }
.nav-cta {
  background: #F6237D !important; color: #000 !important;
  padding: 10px 24px; border-radius: 100px; font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #F472B6 !important; }

/* ── Page shell ── */
main { flex: 1; }
.page { max-width: 1100px; margin: 0 auto; padding: 140px 48px 80px; width: 100%; }
.page-narrow { max-width: 780px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #999; margin-bottom: 24px; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #F6237D; margin-bottom: 14px;
}
.page-head h1 { font-size: 44px; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 820px; }
.page-head h1 span { color: #F6237D; }
.page-head .lede {
  color: #aaa; font-size: 18px; font-weight: 300; max-width: 680px;
  margin-top: 18px; line-height: 1.7;
}
.page-head .btn-row { margin-top: 28px; }

/* ── Long-form text ── */
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 48px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 30px 0 10px; }
.prose p { font-size: 16px; line-height: 1.8; color: #ccc; font-weight: 300; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #ccc; font-weight: 300; line-height: 1.75; font-size: 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: #F6237D; }
.prose strong { color: #fff; font-weight: 500; }
.prose a { color: #F6237D; text-decoration: none; border-bottom: 1px solid rgba(246,35,125,0.35); }
.prose a:hover { border-bottom-color: #F6237D; }
.prose blockquote {
  border-left: 3px solid #F6237D; padding: 6px 0 6px 18px; margin: 20px 0 24px;
  color: #ddd; font-style: italic; font-weight: 300;
}
.callout {
  background: #0a0a0a; border: 1px solid rgba(246,35,125,0.3); border-radius: 16px;
  padding: 20px 22px; margin: 24px 0 28px;
}
.callout-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #F6237D; margin-bottom: 8px; }
.callout p { margin: 0; color: #ddd; }
.callout p + p { margin-top: 10px; }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 28px 0; }
.card {
  background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
a.card:hover { border-color: rgba(246,35,125,0.5); transform: translateY(-2px); }
.card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.card p { font-size: 14px; color: #999; font-weight: 300; line-height: 1.65; margin: 0; }
.card .card-more { font-size: 13px; font-weight: 500; color: #F6237D; margin-top: auto; }
.card-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(246,35,125,0.12); color: #F6237D; margin-bottom: 4px;
}
.card-icon svg { width: 20px; height: 20px; }

/* ── Chips + directory bits (used by the server-rendered event hubs) ── */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0a0a0a; border: 1px solid #2a2a2a; border-radius: 100px;
  padding: 5px 12px; font-size: 12px; color: #bbb; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
a.chip:hover { color: #fff; border-color: #555; }
.chip b { color: #999; font-weight: 500; }
.chip-row-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #999; font-weight: 600; margin: 26px 0 10px; }
.card-kicker {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: rgba(246,35,125,0.12); color: #F6237D; border: 1px solid rgba(246,35,125,0.3);
  border-radius: 100px; padding: 4px 11px; font-size: 12px; font-weight: 600;
}
.card-place { font-size: 13px; color: #888; margin: 0; }
.card .chip-row { margin: 0; }
.empty { padding: 32px 0; color: #999; font-weight: 300; line-height: 1.7; }
.empty a, .more-note a, .hub-links a { color: #F6237D; text-decoration: none; }
.more-note, .hub-links { font-size: 14px; color: #888; line-height: 1.8; margin-top: 18px; }

/* ── Steps ── */
.steps { counter-reset: step; list-style: none; margin: 28px 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 64px;
  background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 16px;
  color: #ccc; font-weight: 300; line-height: 1.7; font-size: 15px;
}
.steps li strong { display: block; color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; background: #F6237D; color: #000;
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}

/* ── Tables (plan weeks) ── */
.table-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid #1a1a1a; border-radius: 14px; }
table.week-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.week-table th, .week-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #161616; vertical-align: top; }
.week-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #888; font-weight: 600; background: #070707; }
.week-table td { color: #ccc; font-weight: 300; line-height: 1.55; }
.week-table td:first-child { color: #fff; font-weight: 500; white-space: nowrap; }
.week-table tr:last-child td { border-bottom: none; }

/* ── Buttons ── */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; cursor: pointer;
}
.btn-primary { background: #F6237D; color: #000; }
.btn-primary:hover { background: #F472B6; }
.btn-secondary { background: transparent; color: #fff; border: 1px solid #333; }
.btn-secondary:hover { border-color: #fff; }

/* ── Store badges (same markup as the homepage hero) ── */
.store-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; border: 1px solid #333; border-radius: 12px;
  padding: 10px 18px 10px 14px; text-decoration: none; color: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.store-badge:hover { border-color: #fff; transform: translateY(-1px); }
.store-badge svg { width: 27px; height: 27px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-badge-text small { font-size: 11px; font-weight: 400; color: #bbb; text-transform: uppercase; letter-spacing: 0.04em; }
.store-badge-text strong { font-size: 16px; font-weight: 600; }

/* ── CTA band ── */
.cta-band {
  margin: 56px 0 8px; padding: 40px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(246,35,125,0.12) 0%, #0a0a0a 100%);
  border: 1px solid rgba(246,35,125,0.3);
}
.cta-band h2 { font-size: 28px; font-weight: 600; line-height: 1.2; margin-bottom: 10px; }
.cta-band p { color: #aaa; font-weight: 300; font-size: 16px; line-height: 1.7; max-width: 560px; margin: 0 auto 22px; }
.cta-band .store-badges, .cta-band .btn-row { justify-content: center; }
.cta-band .fine { font-size: 12px; color: #999; margin: 16px 0 0; }

/* ── FAQ ── */
.faq { margin: 40px 0 8px; border-top: 1px solid #1a1a1a; }
.faq-item { border-bottom: 1px solid #1a1a1a; padding: 22px 0; }
.faq-q { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.faq-a { font-size: 15px; color: #bbb; font-weight: 300; line-height: 1.75; }
.faq-a a { color: #F6237D; text-decoration: none; }

/* ── Related links ── */
.related { margin: 40px 0 0; }
.related h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.related ul { list-style: none; display: grid; gap: 8px; }
.related a { color: #ccc; text-decoration: none; font-size: 15px; font-weight: 300; }
.related a:hover { color: #F6237D; }

/* ── Footer ── */
footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 48px; border-top: 1px solid #111;
  color: #999; font-size: 13px; flex-wrap: wrap; gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; align-items: center; }
.footer-links a { color: #999; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { text-align: center; padding: 16px 48px 32px; border-top: 1px solid #111; }
.footer-disclaimer p { font-size: 11px; color: #999; line-height: 1.7; max-width: 680px; margin: 0 auto; font-weight: 300; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 720px) {
  .page { padding: 120px 20px 60px; }
  .page-head h1 { font-size: 32px; }
  .page-head .lede { font-size: 16px; }
  .prose h2 { font-size: 22px; margin-top: 36px; }
  .cta-band { padding: 28px 20px; }
  .cta-band h2 { font-size: 23px; }
  footer { padding: 28px 20px; }
  .footer-disclaimer { padding: 16px 20px 28px; }
}
