/* Strava to Data: GPX & Stats — site styles. No external dependencies. */

:root {
  --midnight: #0B2A4A;
  --deep-teal: #0E7C86;
  --teal: #12A4AF;
  --coral: #FF6B4A;
  --warm: #FFF7F2;

  --bg: #FFF7F2;
  --surface: #FFFFFF;
  --surface-2: #FBEFE7;
  --ink: #0B2A4A;
  --muted: #4A5D70;
  --line: rgba(11, 42, 74, 0.12);
  --accent: #0B6F78;
  --accent-soft: rgba(18, 164, 175, 0.12);
  --shadow: 0 1px 2px rgba(11, 42, 74, 0.06), 0 12px 32px rgba(11, 42, 74, 0.10);
  --radius: 20px;
  --max: 1120px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071726;
    --surface: #0D2337;
    --surface-2: #0A1E31;
    --ink: #EAF4F5;
    --muted: #A9BBC8;
    --line: rgba(234, 244, 245, 0.12);
    --accent: #5FD3DB;
    --accent-soft: rgba(95, 211, 219, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: inherit; text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav .nav-cta {
  opacity: 1; padding: 8px 14px; border-radius: 999px; font-weight: 600;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
}
.nav .nav-cta:hover { background: rgba(255, 255, 255, 0.22); text-decoration: none; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }
.brand span, .nav a { white-space: nowrap; }
@media (max-width: 360px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 30px; height: 30px; border-radius: 7px; }
  .nav { font-size: 14px; }
  .nav .nav-cta { padding: 7px 12px; }
}

/* Light header for the document pages */
.doc-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.doc-header .nav .nav-cta { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; color: #FFF7F2;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(18, 164, 175, 0.55), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(14, 124, 134, 0.45), transparent 60%),
    linear-gradient(160deg, #08213B 0%, #0B2A4A 45%, #0D4F66 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("contours.svg") center / cover no-repeat; opacity: 0.18;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  padding: 28px 0 0;
}
.hero-copy { text-align: center; max-width: 620px; margin: 0 auto; }
.hero-icon {
  width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 16px 40px rgba(0, 0, 0, 0.35);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #9FE3E8; margin-bottom: 12px;
}
.hero h1 { font-size: clamp(34px, 7.5vw, 58px); font-weight: 800; }
.hero h1 .amp { color: #FFB39F; }
.hero .tagline { font-size: clamp(18px, 2.6vw, 21px); color: rgba(255, 247, 242, 0.85); margin: 18px auto 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { font-size: 14px; color: rgba(255, 247, 242, 0.7); margin: 16px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-store { background: var(--coral); color: #0B2A4A; box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35); }
.btn-store:hover { background: #FF7D60; }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.btn-store .two-line { display: flex; flex-direction: column; text-align: left; }
.btn-store .two-line small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.btn-ghost { color: #FFF7F2; border: 1px solid rgba(255, 247, 242, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.hero-phones {
  display: flex; justify-content: center; align-items: flex-end; gap: 18px;
  margin: 0 auto; max-width: 560px;
  /* Phones are cut off by the bottom edge of the hero. */
  height: 430px; overflow: hidden;
}
.hero-phones .phone { width: 250px; flex: none; }
.hero-phones .phone.side { width: 210px; transform: translateY(60px); display: none; }

@media (min-width: 560px) {
  .hero-phones .phone.side { display: block; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-top: 40px; }
  .hero-copy { text-align: left; margin: 0; padding-bottom: 72px; }
  .hero-icon { margin: 0 0 24px; }
  .hero .tagline { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
  .hero-phones { height: 600px; max-width: none; }
  .hero-phones .phone { width: 290px; }
  .hero-phones .phone.side { width: 240px; transform: translateY(90px); }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative; border-radius: 40px; padding: 9px;
  background: linear-gradient(145deg, #1D2A38, #05090E);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 30px 60px rgba(4, 14, 26, 0.35);
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px rgba(0, 0, 0, 0.5); }
  .plan-pro { box-shadow: 0 0 0 1px rgba(95, 211, 219, 0.25), var(--shadow); }
}
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 600 / 1304; background: #F2F2F7; }

/* ---------- Sections ---------- */

section { scroll-margin-top: 16px; }
.section { padding: 80px 0; }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.kicker {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 22px 76px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #FFF7F2; background: linear-gradient(135deg, var(--deep-teal), var(--teal));
}
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
  padding: 36px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature .phone { width: min(280px, 78vw); margin: 0 auto; }
.feature h3 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2312A4AF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.badge-free {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: rgba(18, 164, 175, 0.16); color: var(--accent);
  margin-bottom: 12px;
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; padding: 56px 0; }
  .feature.flip .feature-media { order: 2; }
  .feature .phone { width: 300px; }
}

/* Report gallery */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(220px, 62vw); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 24px; margin: 0 -20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .phone { border-radius: 32px; padding: 7px; }
.gallery .phone img { border-radius: 26px; }
.gallery figcaption { margin-top: 14px; text-align: center; }
.gallery figcaption strong { display: block; font-size: 17px; }
.gallery figcaption span { color: var(--muted); font-size: 15px; }
@media (min-width: 960px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 4px 0 0; }
}

/* Cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }

/* Pricing */
.pricing { display: grid; gap: 22px; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 800px) { .pricing { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 26px; box-shadow: var(--shadow);
}
.plan h3 { font-size: 24px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 0; line-height: 1.1; }
.plan .price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .alt-price { color: var(--muted); margin: 6px 0 0; font-size: 16px; }
.plan .ticks { margin-top: 22px; flex: 1; }
.plan .plan-foot { margin-top: 24px; font-size: 14px; color: var(--muted); }
.plan-pro {
  color: #FFF7F2; border: none;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(18, 164, 175, 0.55), transparent 70%),
    linear-gradient(160deg, #0B2A4A, #0D4F66);
}
.plan-pro .price small, .plan-pro .alt-price, .plan-pro .plan-foot { color: rgba(255, 247, 242, 0.78); }
.plan-pro .ticks li::before { background-color: rgba(255, 255, 255, 0.12); }
.plan-pro .ribbon {
  position: absolute; top: -13px; right: 22px;
  background: var(--coral); color: #0B2A4A; font-size: 13px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(255, 107, 74, 0.35);
}
.plan-pro .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.plan-pro .pill {
  font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18);
}
.plan-pro .pill strong { color: #FFB39F; }
.fineprint { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 18px;
  padding: 18px 32px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA band */
.cta-band {
  text-align: center; color: #FFF7F2; padding: 72px 0;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(18, 164, 175, 0.45), transparent 70%),
    linear-gradient(160deg, #0B2A4A, #0D4F66);
}
.cta-band img { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 18px; }
.cta-band h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.cta-band p { color: rgba(255, 247, 242, 0.8); margin: 12px 0 26px; font-size: 18px; }

/* Footer */
.site-footer { padding: 40px 0 48px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 800; margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc .summary {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 14px; padding: 18px 20px; margin: 0 0 8px;
}
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc .contact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow);
}
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.doc .toc a {
  display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.doc .faq { margin: 0; }
.doc code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.notfound img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 20px; }
.notfound h1 { font-size: 40px; margin-bottom: 10px; }
.notfound p { color: var(--muted); }

@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}
