/*
 * ActivityX marketing site — www.activityx.app (CA-79)
 *
 * Glacier Teal brand tokens from branding/activityx/ (CA-78):
 * accent #0E9C8F on light / #1FBFAF on dark, ink #1E1612, warm #F8F5F2.
 * Contrast notes (measured, WCAG AA):
 *   #0E9C8F on white  = 3.4:1 → large text / graphics / fills only
 *   #1FBFAF on ink    = 7.75:1 → fine at any size on the dark bands
 *   #0A7B71 on white  = 5.14:1 → the text-link teal (--brand-text)
 *   ink on #0E9C8F    = 5.24:1 → primary button label
 */

:root {
  --brand: #0E9C8F;
  --brand-dark: #1FBFAF;
  --brand-text: #0A7B71;
  --brand-text-hover: #0A7068;
  --ink: #1E1612;
  --ink-soft: #4A403A;
  --muted: #6B6159;
  --warm: #F8F5F2;
  --surface: #FFFFFF;
  --border: #E7E0D9;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  color: var(--ink);
  background: var(--warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

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

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* ---- header (sits on the ink hero band) ---- */
.site-header {
  background: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-lockup { display: block; width: 150px; height: auto; }

.site-nav {
  display: none;
  gap: 22px;
  margin-left: auto;
}
.site-nav a {
  color: #D9D2CB;
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover { color: #fff; }

.header-inner .btn { margin-left: auto; }

@media (min-width: 720px) {
  .site-nav { display: flex; }
  .header-inner .btn { margin-left: 0; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-lg { font-size: 17px; padding: 14px 26px; }

.btn-primary {
  background: var(--brand-dark);
  color: var(--ink); /* 7.75:1 on #1FBFAF */
}
.btn-primary:hover { background: #3AC7B9; }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { border-color: #fff; }

/* --brand-text (#0A7B71) clears 3:1 non-text contrast on both the warm
   and white surfaces; the ink bands override with --brand-dark
   (7.75:1 on ink). */
:focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--brand-dark);
}

/* ---- hero ---- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 72px;
}
.hero-inner { text-align: center; }
.hero-mark {
  display: block;
  width: 88px;
  margin: 0 auto 20px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero-sub {
  color: #CFC7BF;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
/* CA-139 F12 — the never-store-Strava-data line, quiet under the CTAs. */
.hero-note {
  color: #A79D94;
  font-size: 0.9rem;
  max-width: 520px;
  margin: 22px auto 0;
}

@media (min-width: 720px) {
  .hero { padding: 84px 0 104px; }
  .hero-mark { width: 112px; }
}

/* ---- sections ---- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }

.section h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  max-width: 640px;
}
.section-lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 620px;
  margin: 0 0 32px;
}
.section-lede.wide { max-width: 760px; }

/* LA-1136: the plan-section footnote (Strava-credit allowance) —
   quieter than a lede, sits under the cards. */
.section-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 20px 0 0;
}

/* ---- cards ---- */
.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.section-alt .card { background: var(--warm); }

.card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 12px;
}
.card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card p + p { margin-top: 8px; }
.card-tag {
  color: var(--brand-text);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card a {
  color: var(--brand-text);
  text-decoration-color: rgba(10, 123, 113, 0.4);
  text-underline-offset: 2px;
}
.card a:hover { color: var(--brand-text-hover); }

@media (min-width: 600px) {
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .cards.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 0; }
}

/* ---- demo cards (CA-139 F11) ---- */
.demo-grid {
  display: grid;
  gap: 18px;
}
.demo-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.demo-card img {
  display: block;
  width: 100%;
  height: auto;
}
.demo-card figcaption {
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.demo-card figcaption strong { color: var(--ink); }

@media (min-width: 900px) {
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
}
.cta-inner { text-align: center; }
.cta-mark { display: block; width: 64px; margin: 0 auto 16px; }
.cta-inner h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 10px;
}
.cta-inner p { color: #CFC7BF; margin: 0 0 26px; }
/* CA-139 F3 — the request-access (mailto) primary + hub ghost pair,
   and the honesty line under it. */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cta-inner p.cta-note {
  color: #A79D94;
  font-size: 0.88rem;
  margin: 18px 0 0;
}

/* ---- footer ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-lockup { width: 140px; height: auto; display: block; }
.footer-tag { color: var(--ink-soft); margin: 10px 0 0; font-size: 0.95rem; }
.footer-org { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }
.footer-org a { color: var(--brand-text); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-decoration-color: rgba(74, 64, 58, 0.35);
  text-underline-offset: 2px;
}
.footer-links a:hover { color: var(--ink); }

.footer-copy { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* CA-139 F5 — the official 'Compatible with Strava' mark, kept small
   and clearly subordinate to the aX lockup (Strava brand rule). */
.strava-compat { display: block; height: 22px; width: auto; margin-top: 18px; }

/* CA-80 review: WCAG 2.5.8's 24px floor applies on fine pointers too —
   prose/footer links get a light base pad, thumbs get ~44px. */
main p a, .footer-org a { padding: 4px 0; }

@media (pointer: coarse) {
  .brand { padding: 6px 0; }
  .site-nav a { padding: 12px 8px; }
  .footer-links a { padding: 14px 8px; }
  /* Prose links keep their metrics — vertical padding paints without
     reflowing the line but grows the tap rect to ~44px. */
  main p a, .footer-org a { padding: 13px 0; }
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer-links { padding-top: 6px; }
  .footer-copy { align-self: flex-end; }
}
