/* ==========================================================================
   Pumping Along - site.css
   Warm, calm, credible. Blue-led (the diabetes blue circle) with a coral accent.
   Built for WCAG 2.2 AA. No external CSS. House rule: plain, no em-dashes.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand */
  --blue: #15629b;          /* primary, safe for white text (AA) */
  --blue-deep: #0d436e;     /* hover / headings-on-light */
  --blue-bright: #2a82c4;   /* accents on dark */
  --blue-tint: #e7f1f8;     /* light wash */
  --blue-tint-2: #d3e6f4;
  --coral: #ec7350;         /* warm accent */
  --coral-deep: #ad4420;    /* accessible coral text (AA on paper/sand/tint) */
  --coral-tint: #fceae1;
  --green: #2f9268;         /* progress / checks, used sparingly */
  --green-tint: #e4f1ea;

  /* Neutrals (warm) */
  --paper: #fbf8f3;         /* page background */
  --sand: #f3ece1;          /* alt section */
  --surface: #ffffff;       /* cards */
  --ink: #16313d;           /* body text */
  --ink-soft: #2c4753;
  --muted: #56666d;         /* secondary text, AA on paper */
  --line: rgba(22, 49, 61, 0.14);
  --line-soft: rgba(22, 49, 61, 0.08);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Spacing (8px scale) */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4rem;
  --s8: 6rem;

  /* Shell */
  --container: 1120px;
  --container-narrow: 760px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(13, 67, 110, 0.06), 0 2px 8px rgba(13, 67, 110, 0.05);
  --shadow-md: 0 6px 20px rgba(13, 67, 110, 0.10);
  --shadow-lg: 0 18px 48px rgba(13, 67, 110, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-deep); text-underline-offset: 2px; }
a:hover { color: var(--coral-deep); }

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 1.55rem + 2.9vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); color: var(--ink); }
h4 { font-size: 1.125rem; color: var(--ink); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.38rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 0.75rem;
}

strong { font-weight: 600; color: var(--ink); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }

.section { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.section--sand { background: var(--sand); }
.section--blue { background: var(--blue-tint); }
.section--ink { background: var(--blue-deep); color: #eaf3fa; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: #cfe2f1; }
.section--tight { padding-block: clamp(2rem, 1.4rem + 3vw, 3.5rem); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-deep); color: #fff; padding: 0.75rem 1rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.28rem; color: var(--blue-deep); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand:hover { color: var(--blue-deep); }
.brand .mark { width: 30px; height: 30px; flex: none; }

.nav-spacer { flex: 1 1 auto; }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.nav-links a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--coral); margin-top: 3px;
}

.nav-cta { display: inline-flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform 0.2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.7rem 1.25rem; border-radius: var(--r-md); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-coral { background: var(--coral); color: #4a1c0c; }
.btn-coral:hover { background: var(--coral-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-deep); border-color: var(--blue-tint-2); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.section--ink .btn-ghost { color: #eaf3fa; border-color: rgba(255,255,255,0.35); }
.section--ink .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 2rem + 6vw, 6rem);
  background:
    radial-gradient(48rem 30rem at 85% -10%, var(--blue-tint) 0%, transparent 60%),
    radial-gradient(36rem 26rem at 5% 110%, var(--coral-tint) 0%, transparent 55%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.75rem; max-width: 34rem; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.75rem;
  overflow: hidden;
}
.hero-card h2 { font-size: 1.35rem; color: var(--blue-deep); }

/* reassurance chips under hero */
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.75rem; }
.trust-item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; flex: none; color: var(--green); }

/* ---- Grids & cards ---- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.5rem; height: 100%;
}
.card h3 { margin-bottom: 0.15rem; }
.card--link { text-decoration: none; color: inherit; transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.card--link .more { color: var(--blue-deep); font-weight: 600; margin-top: auto; }
.card--link:hover .more { color: var(--coral-deep); }

.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue-deep); margin-bottom: 0.4rem;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.coral { background: var(--coral-tint); color: var(--coral-deep); }
.icon-badge.green { background: var(--green-tint); color: var(--green); }

/* ---- Steps (numbered journey) ---- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-deep); color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
}
.step h3 { margin: 0.15rem 0 0.35rem; font-size: 1.15rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---- Feature list with checks ---- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; }
.check-list li svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }

/* ---- Callout / note boxes ---- */
.callout {
  border-left: 4px solid var(--blue); background: var(--blue-tint);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-soft);
}
.callout.coral { border-left-color: var(--coral); background: var(--coral-tint); }
.callout strong { color: var(--blue-deep); }

/* Prominent medical disclaimer block */
.disclaimer-block {
  border: 1px solid var(--coral); background: var(--coral-tint);
  border-radius: var(--r-md); padding: 1.25rem 1.4rem; color: var(--ink-soft);
}
.disclaimer-block h3 { color: var(--coral-deep); font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }

/* Draft note (visible in local build, remove before launch) */
.editor-note {
  border: 1.5px dashed var(--coral-deep); background: #fff7f3; color: var(--coral-deep);
  border-radius: var(--r-sm); padding: 0.6rem 0.85rem; font-size: 0.88rem; margin: 0.75rem 0;
}
.editor-note::before { content: "Draft note (replace before launch): "; font-weight: 700; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; color: var(--blue-deep);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--coral-deep); line-height: 1; flex: none;
  font-family: var(--font-body);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); }

/* ---- Forms ---- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0.7rem 0.85rem;
  width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint-2); outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field .req { color: var(--coral-deep); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---- Stat / highlight ---- */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--blue-deep); font-weight: 600; font-size: 0.85rem; }
.pill.coral { background: var(--coral-tint); color: var(--coral-deep); }

/* prose blocks (privacy, terms, articles) */
.prose { max-width: var(--container-narrow); }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .meta { color: var(--muted); font-size: 0.9rem; }

/* ---- Footer ---- */
.site-footer { background: var(--blue-deep); color: #cfe2f1; padding-block: 3rem 2rem; }
.footer-disclaimer {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-md); padding: 1rem 1.25rem; margin-bottom: 2.5rem;
  color: #e7f1f8; font-size: 0.95rem;
}
.footer-disclaimer strong { color: #fff; }
.footer-disclaimer a { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .mark circle { stroke: #eaf3fa; }
.footer-brand p { color: #a9c8de; font-size: 0.95rem; margin-top: 0.75rem; max-width: 24rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.85rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: #cfe2f1; text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  align-items: center; margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14); color: #a9c8de; font-size: 0.88rem;
}
.footer-bottom a { color: #eaf3fa; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.maxw-40 { max-width: 40rem; }
.text-muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Illustrations (decorative, aria-hidden) ---- */
svg.illus { display: block; width: 100%; height: auto; }
.card-art {
  display: block; width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.4rem;
}
.art-panel {
  background: var(--sand); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 1.25rem;
}
.art-panel.flush { padding: 0; overflow: hidden; }
.art-panel.blue { background: var(--blue-tint); }
.art-panel.coral { background: var(--coral-tint); }
.spot { display: block; margin-inline: auto; width: 100%; }
.spot-sm { max-width: 190px; }
.spot-md { max-width: 260px; }
.grid-top { align-items: start; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 0.5rem;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 0.7rem 0.85rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav { position: relative; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-card { display: none; }
  body { background: #fff; color: #000; }
}
