/* Rep Collective site. Shared by every page; palette matches the app. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F0EDE8;
  --surface: #FFFFFF;
  --surface2: #F8F7F5;
  --text: #1C1C1A;
  --text2: #55534D;
  --text3: #8A877E;
  --border: #E0DDD8;
  --accent: #1A6B4A;
  --accent-hover: #155A3D;
  --accent-bg: rgba(26, 107, 74, 0.1);
  --bg2: #E6E1D8;
  --accent-light: #5FC79A;
  --race-bg: #0E0E0D;
  --race-amber: #F5C842;
  --race-dim: #C8C4B8;
  --radius: 14px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Announcement bar ── */
.announce {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
}
.announce a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }

/* ── Header + nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 237, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo .logo-icon { width: 38px; height: 38px; }
.logo .logo-text { height: 20px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-btn, .nav-link {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-btn:hover, .nav-link:hover, .nav-btn[aria-expanded="true"] { background: rgba(28, 28, 26, 0.06); }
.nav-btn .chev { width: 10px; height: 10px; transition: transform 0.15s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(28, 28, 26, 0.12);
  padding: 8px;
  display: none;
}
.nav-item.open .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.dropdown a:hover { background: var(--surface2); }
.dropdown strong { display: block; font-size: 15px; }
.dropdown span { display: block; font-size: 13px; color: var(--text3); margin-top: 1px; }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.header-cta .btn { white-space: nowrap; }
.header-cta { flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-ghost:hover { background: rgba(28, 28, 26, 0.05); }
.btn-sm { font-size: 14px; padding: 9px 18px; }
.btn-amber { background: var(--race-amber); color: var(--race-bg); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #F0EDE8; }

/* ── Type ── */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text2); max-width: 640px; }

/* ── Hero ── */
.hero { text-align: center; padding: 72px 0 0; overflow: hidden; }
.hero .lede { margin: 20px auto 0; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { font-size: 13px; color: var(--text3); margin-top: 14px; }
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  margin-top: 56px;
  margin-bottom: -220px; /* phones rise out of the hero; .hero clips the bottom */
}
.hero-phones .phone:nth-child(2) { width: 300px; }
.hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(3) { width: 250px; margin-bottom: 40px; }

/* Desktop: copy left, phones right, all on one screen */
@media (min-width: 861px) {
  .hero { text-align: left; padding: 56px 0 0; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .hero .lede { margin: 20px 0 0; }
  .hero .hero-ctas { justify-content: flex-start; }
  .hero-phones { margin: 0 0 -60px; gap: 0; position: relative; height: 640px; align-items: flex-start; }
  .hero-phones .phone { position: absolute; }
  .hero-phones .phone:nth-child(2) { width: 300px; left: 50%; transform: translateX(-50%); top: 0; z-index: 2; }
  .hero-phones .phone:nth-child(1) { width: 250px; left: 0; top: 80px; margin: 0; z-index: 1; }
  .hero-phones .phone:nth-child(3) { width: 250px; right: 0; top: 80px; margin: 0; z-index: 1; }
  .hero + .section { padding-top: 64px; }
}

/* ── Phone frame ── */
.phone {
  width: 260px;
  border-radius: 38px;
  border: 7px solid #1C1C1A;
  background: #1C1C1A;
  box-shadow: 0 30px 60px rgba(28, 28, 26, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}
.phone img { width: 100%; border-radius: 31px; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg2); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 16px; }


/* Feature cards (home) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28, 28, 26, 0.08); }
.card p { color: var(--text2); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); font-size: 14px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon svg { width: 22px; height: 22px; }

/* Screenshot strip */
.strip { display: flex; gap: 24px; overflow-x: auto; padding: 8px 24px 32px; scroll-snap-type: x mandatory; }
.strip .phone { width: 250px; scroll-snap-align: center; box-shadow: 0 16px 34px rgba(28, 28, 26, 0.14); }
.strip-caption { text-align: center; font-size: 14px; color: var(--text3); margin-top: 6px; }
.strip figure { flex-shrink: 0; }

/* Fixed-count card grids */
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }

/* Text + phone rows (feature pages) */
.row { display: grid; grid-template-columns: 1fr 340px; gap: 72px; align-items: center; }
.row + .row { margin-top: 72px; }
.row.flip { grid-template-columns: 340px 1fr; }
.row.even { grid-template-columns: 1fr 1fr; align-items: start; }
.row.flip .row-media { order: -1; }
.row .phone { width: 340px; }
.row h2 { font-size: clamp(28px, 3.4vw, 40px); }
.row .lede { margin-top: 14px; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text2); }
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A6B4A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks strong { color: var(--text); }

/* Page header (inner pages) */
.page-head { padding: 56px 0 8px; }
.page-head .lede { margin-top: 18px; }

/* Race (dark) */
.race { background: var(--race-bg); color: var(--race-dim); }
.race h2, .race h3, .race .ticks strong { color: #fff; }
.race .eyebrow { color: var(--race-amber); }
.race .lede, .race .ticks li { color: var(--race-dim); }
.race .ticks li::before {
  background: rgba(245, 200, 66, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5C842' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.race .phone { border-color: #2A2A28; background: #2A2A28; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }

/* Dark band (breaks up the light sections) */
.dark { background: var(--text); color: #C9C6BD; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--accent-light); }
.dark .lede { color: #C9C6BD; }
.dark .phone { border-color: #34322C; background: #34322C; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.dark .strip-caption { color: #8A877E; }
.dark .card { background: #262624; border-color: #34322C; }
.dark .card p { color: #C9C6BD; }

/* Audience split (athletes / coaches) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  border-radius: 22px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
}
.panel p { color: var(--text2); }
.panel .btn { align-self: flex-start; margin-top: auto; }
.panel-athlete { background: var(--surface); border: 1px solid var(--border); }
.panel-coach { background: var(--accent); color: #fff; }
.panel-coach p { color: #D3E9DE; }
.panel-coach .eyebrow { color: #fff; }
.panel-coach .badge { background: rgba(255, 255, 255, 0.16); color: #fff; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.18);
  color: var(--race-amber);
  align-self: flex-start;
}

/* CTA band */
.cta-band { text-align: center; padding: 56px 0 64px; }
.section + .cta-band:not(.section-alt) { padding-top: 0; }
.cta-band .hero-ctas { margin-top: 28px; }

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  max-width: 620px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--text3); }
.field input, .field select {
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-size: 15px; font-weight: 600; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #C0392B; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 0;
  font-size: 18px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 18px;
  font-size: 26px; font-weight: 400; color: var(--text3);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--text2); padding: 0 0 22px; max-width: 680px; }

/* Release notes */
.release { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; max-width: 760px; }
.release + .release { margin-top: 20px; }
.release-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.release-head span { color: var(--text3); font-size: 14px; }
.release h4 { font-size: 16px; margin-top: 16px; }
.release p { color: var(--text2); }

/* Footer */
.site-footer { background: var(--text); color: #C9C6BD; padding: 64px 0 36px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h5 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; padding: 4px 0; color: #C9C6BD; }
.footer-grid a:hover { color: #fff; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid #34322C; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8A877E; font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta .btn { display: none; }
  .header-inner { gap: 12px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .site-header.menu-open .nav { display: flex; }
  .nav-btn, .nav-link { width: 100%; justify-content: space-between; font-size: 17px; padding: 14px 8px; }
  .dropdown { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 8px; min-width: 0; }
  .nav .nav-download { display: flex; margin-top: 12px; }
  .row, .row.flip, .row.even { grid-template-columns: 1fr; gap: 40px; }
  .cards.three { grid-template-columns: 1fr; }
  .row.flip .row-media { order: 0; }
  .row-media { display: flex; justify-content: center; }
  .row .phone { width: 290px; }
  .split { grid-template-columns: 1fr; }
  .hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(3) { display: none; }
  .hero-phones .phone:nth-child(2) { width: 290px; }
  .hero-phones { margin-bottom: -200px; }
}
@media (min-width: 861px) { .nav .nav-download { display: none; } }
@media (max-width: 560px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .header-inner { padding: 12px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .panel { padding: 26px; }
  .hero-ctas .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
