/* StrideWell — mobile-first movement health */
:root {
  --bg: #f0f7fb;
  --surface: #ffffff;
  --ink: #152028;
  --muted: #5a6b78;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --mint: #0284c7;
  --mint-soft: #e0f2fe;
  --line: #bae6fd;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(21, 32, 40, 0.08);
  --tap: 48px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --bottom-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
}
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 2px solid var(--mint);
  border-radius: 12px;
  z-index: 200;
  font-weight: 700;
  box-shadow: var(--shadow);
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 247, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--mint); }
.nav-details summary {
  list-style: none;
  cursor: pointer;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-details summary::-webkit-details-marker { display: none; }
.nav-details[open] summary { border-color: var(--mint); }
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(100vw - 32px, 20rem);
  max-height: min(70vh, 440px);
  overflow-y: auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 60;
}
.nav-details {
  position: relative;
}
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 10px 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.nav-panel a:last-child { border-bottom: 0; }
.nav-panel a:hover, .nav-panel a:active { background: var(--mint-soft); }
.nav-panel a[aria-current="page"] {
  background: var(--mint-soft);
  border-left: 4px solid var(--mint);
}
.nav-section {
  padding: 8px 18px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 16px 16px 24px;
}
.hero { padding: 8px 0 20px; }
.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin: 0 0 8px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 5.5vw, 2.05rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 28px 0 12px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--mint);
}
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.2rem; }
li { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 0.94rem; }
a.text-link {
  color: var(--mint);
  font-weight: 700;
  text-underline-offset: 3px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-grid { display: grid; gap: 12px; }
@media (min-width: 480px) {
  .card-grid.two { grid-template-columns: 1fr 1fr; }
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--mint-soft);
  color: var(--mint);
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 0 var(--accent-dark);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-dark);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
hr.soft { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 14px;
  background: var(--mint-soft);
  border-radius: 12px;
  margin-top: 20px;
}
.table-scroll {
  overflow-x: auto;
  margin: 14px 0;
  -webkit-overflow-scrolling: touch;
}
table.simple {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.simple th, table.simple td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.simple th {
  background: var(--mint-soft);
  font-weight: 800;
}
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 2px solid var(--line);
  box-shadow: 0 -4px 24px rgba(21, 32, 40, 0.06);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  min-height: var(--bottom-h);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a span.ico { font-size: 1.15rem; line-height: 1; }
.bottom-nav a[aria-current="page"] {
  color: var(--mint);
  background: var(--mint-soft);
}
.site-footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px 16px 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
@media print {
  .bottom-nav, .site-header { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}
