/* =========================================================
   Coach Ty — Design System
   Theme: Light blue + white, clean / modern / cutting-edge
   Accent palette mirrors the Coach Ty app:
     Run   #00BFFF   Lift  #FF6B35   Cross #34C759
   ========================================================= */

:root {
  /* Brand */
  --blue:        #00BFFF;   /* primary accent (run) */
  --blue-deep:   #0093C7;   /* darker hover */
  --blue-dark:   #007BA8;
  --blue-soft:   #E8F7FE;   /* tints / section bg */
  --blue-soft-2: #F4FBFF;
  --orange:      #FF6B35;   /* lift */
  --green:       #34C759;   /* cross-train */

  /* Neutrals */
  --bg:          #ffffff;
  --bg-alt:      #F6FAFD;
  --card-bg:     #ffffff;
  --text:        #0E2A38;
  --text-muted:  #4A6575;
  --text-subtle: #7C93A0;
  --border:      #E2ECF2;
  --divider:     #EEF3F6;

  /* Effects */
  --shadow-sm:  0 2px 8px rgba(14, 42, 56, 0.06);
  --shadow-md:  0 10px 30px rgba(0, 145, 199, 0.10);
  --shadow-lg:  0 24px 60px rgba(0, 145, 199, 0.18);
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --maxw:       1140px;

  --grad-blue: linear-gradient(135deg, #00BFFF 0%, #0093C7 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, #E8F7FE 0%, rgba(232,247,254,0) 60%),
               linear-gradient(180deg, #FBFEFF 0%, #ffffff 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--text-muted); }

.text-grad {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: #fff;
  color: var(--blue-deep);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand span { letter-spacing: -0.02em; }
.brand .tag { color: var(--blue-deep); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: .25s;
}
.nav-toggle span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); padding: 86px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-note { font-size: 14px; color: var(--text-subtle); }
.hero-note strong { color: var(--blue-deep); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 22px;
  z-index: 2;
}
.hero-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-glow {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,191,255,0.22), rgba(0,191,255,0) 70%);
  border-radius: 50%;
  filter: blur(6px);
}
.hero-mascot {
  width: 300px; height: auto;
  filter: drop-shadow(0 30px 50px rgba(0,123,168,0.28));
  position: relative; z-index: 2;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* Mini workout cards (mirrors the app day cards) */
.day-row { display: flex; flex-direction: column; gap: 10px; }
.day-card {
  border-radius: 14px;
  padding: 13px 15px;
  color: #fff;
}
.day-card .t { font-size: 14px; font-weight: 700; }
.day-card .s { font-size: 12px; color: rgba(255,255,255,0.9); margin-top: 2px; }
.run  { background: var(--blue); }
.lift { background: var(--orange); }
.cross{ background: var(--green); }
.rest {
  background: var(--divider);
  border: 1px solid var(--border);
  color: var(--text);
}
.rest .s { color: var(--text-subtle); }

/* ---------- Logo strip ---------- */
.logos {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.logos p {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 700;
  margin-bottom: 20px;
}
.logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
}
.logo-pill .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Feature cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6E8F2; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: var(--blue-soft);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: left; }
.step .num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Split / integrations feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.split p { font-size: 16.5px; color: var(--text-muted); margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 8px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15.5px; color: var(--text); padding: 9px 0;
}
.check-list .ic {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-deep);
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  margin-top: 1px;
}
.split-visual {
  background: var(--grad-blue);
  border-radius: var(--radius-lg);
  padding: 38px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.sync-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}
.sync-row:last-child { margin-bottom: 0; }
.sync-row .name { font-weight: 700; font-size: 15px; }
.sync-row .meta { font-size: 12.5px; color: rgba(255,255,255,0.82); margin-top: 1px; }
.sync-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  background: rgba(255,255,255,0.95); color: var(--blue-deep);
  padding: 5px 11px; border-radius: 999px; text-transform: uppercase;
}
.sync-badge.soon {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(2px);
}

/* ---------- App store CTA ---------- */
.cta-band {
  background: var(--grad-blue);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -30%, rgba(255,255,255,0.25), transparent 70%);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; position: relative; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.92); margin-bottom: 30px; position: relative; }

.store-row {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  position: relative;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 13px;
  background: #0E2A38; color: #fff;
  padding: 13px 24px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: left;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14,42,56,0.35); }
.store-btn .ic { font-size: 28px; line-height: 1; }
.store-btn .lines { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .small { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.store-btn .big { font-size: 17px; font-weight: 700; }
.store-btn .soon {
  margin-left: 6px; font-size: 10px; font-weight: 800;
  background: var(--orange); color: #fff;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- Pricing ---------- */
.page-head { text-align: center; padding: 72px 0 8px; background: var(--grad-hero); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.page-head p { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 26px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-blue); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-md);
}
.price-name { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-deep); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price-amount .amt { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; }
.price-amount .per { font-size: 16px; color: var(--text-subtle); font-weight: 600; }
.price-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.price-card .btn { width: 100%; margin-bottom: 26px; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.feat-list .ic {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-deep);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 2px;
}
.feat-list .muted { color: var(--text-subtle); }
.feat-list .muted .ic { background: var(--divider); color: var(--text-subtle); }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 14px;
  background: #fff;
}
.faq-item h4 { font-size: 16.5px; margin-bottom: 7px; }
.faq-item p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 90px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap .updated { font-size: 14px; color: var(--text-subtle); margin-bottom: 36px; }
.legal-wrap h2 {
  font-size: 23px; margin: 38px 0 12px; padding-top: 8px;
}
.legal-wrap h3 { font-size: 17px; margin: 22px 0 8px; font-weight: 700; }
.legal-wrap p { font-size: 15.5px; color: var(--text-muted); margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 16px 22px; }
.legal-wrap li { font-size: 15.5px; color: var(--text-muted); margin-bottom: 8px; }
.legal-wrap a { color: var(--blue-deep); font-weight: 600; }
.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.legal-toc strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); margin-bottom: 12px; }
.legal-toc ol { margin-left: 20px; }
.legal-toc li { font-size: 15px; margin-bottom: 6px; }
.callout {
  background: var(--blue-soft);
  border: 1px solid #CFEDFA;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 22px;
}
.callout p { color: var(--text); margin: 0; font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  background: #0E2A38;
  color: #B9CDD8;
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand .tag { color: var(--blue); }
.footer-about { font-size: 14.5px; color: #8FA8B5; max-width: 300px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .04em; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer a { font-size: 14.5px; color: #B9CDD8; transition: color .15s; }
.footer a:hover { color: var(--blue); }
.footer-soon {
  font-size: 11px; font-weight: 800; color: #fff;
  background: var(--orange); padding: 3px 8px; border-radius: 999px;
  margin-left: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: #7C93A0;
}
.footer-bottom a { color: #7C93A0; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: minmax(0, 460px); }

  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px;
  }
  .nav.open .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--divider); width: 100%; }
}

@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 22px; }
  .hero { padding: 56px 0 64px; }
  .footer-bottom { flex-direction: column; }
}
