/* TriSplit landing page. Builds on styles.css (same tokens and fonts). Mobile first. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.landing [id] { scroll-margin-top: 72px; }
.wrap.wide { max-width: 1080px; }

/* Nav */
.landing header { position: sticky; top: 0; z-index: 10; }
.landing header .wrap { align-items: center; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand .name { font-size: 22px; }
.landing header nav { gap: 16px; font-size: 14px; }
.landing header nav a:hover { border-bottom-color: var(--volt); }

/* Hero */
.hero { text-align: center; padding: 48px 0 56px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.hero h1 { margin: 20px 0 8px; font-size: clamp(44px, 12vw, 72px); }
.tagline { font: 600 20px/1.3 "Bricolage Grotesque", system-ui, sans-serif; color: var(--brick); margin: 0 auto 16px; }
.hero-copy { font-size: 18px; color: var(--ink-muted); margin: 0 auto 28px; max-width: 36em; }

/* App Store button */
.appstore { display: flex; justify-content: center; min-height: 54px; }
.soon {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border-radius: 12px;
  background: var(--surface-inverse); color: var(--ink-inverse); font-weight: 600; font-size: 16px;
}
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }

/* Sections */
.band { padding: 56px 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--surface-sunken); }
.band h2 { margin: 0 0 28px; font-size: clamp(26px, 6vw, 34px); }
.band h3 { margin: 0 0 4px; }
.band p { margin: 0; color: var(--ink-muted); }

.steps, .features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li, .features li { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; padding: 20px; max-width: none; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px;
  font: 600 16px/1 "IBM Plex Mono", ui-monospace, monospace; color: #fff;
}
.num.s { background: var(--pool); } .num.b { background: var(--brick); } .num.r { background: var(--volt); color: #16161a; }
.features li { border-left: 4px solid var(--brick); }
.features li:nth-child(2) { border-left-color: var(--pool); }
.features li:nth-child(3) { border-left-color: var(--volt); }
.features li:nth-child(4) { border-left-color: var(--ink); }

/* Screenshots: horizontal scroll on phones, one row on desktop */
.shots {
  list-style: none; margin: 0; padding: 4px 16px 16px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots li { flex: 0 0 62%; max-width: 260px; scroll-snap-align: center; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.cta { text-align: center; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0 auto 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 16px; padding-top: 32px; padding-bottom: 40px; }
.foot-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.foot-brand > img { border-radius: 6px; }
.foot-name { font: 800 20px/1 "Bricolage Grotesque", system-ui, sans-serif; color: var(--ink); }
.strava { height: 12px; width: auto; opacity: 0.7; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 400; font-size: 14px; }
.foot-links a { color: inherit; }
.legal { margin: 0; max-width: none; }

@media (min-width: 720px) {
  .hero { padding: 80px 0 88px; }
  .hero-icon { width: 112px; height: 112px; border-radius: 26px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 80px 0; }
}
@media (min-width: 960px) {
  .shots { overflow: visible; justify-content: center; max-width: 1080px; margin: 0 auto; padding: 4px 16px 16px; }
  .shots li { flex: 1 1 0; max-width: 250px; }
}
