/* ==========================================================================
   PepTrack — site design system
   --------------------------------------------------------------------------
   Single stylesheet for all indexable pages (home, guides, blog, tools).
   Funnel/ad landing pages keep their own styles on purpose.

   To retheme the site, you should only need to touch TOKENS below.
   Components are written against tokens, never against raw values.
   ========================================================================== */

/* Self-hosted so the font is not a render-blocking request to a third party.
   Variable weight 300-700 — anything heavier in the CSS clamps to 700. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Surfaces — neutral charcoal, matched to the iOS app (AppTheme.swift) */
  --bg:            #0d0d0f;
  --bg-raised:     #17171a;
  --surface:       #17171a;
  --surface-hover: rgba(255,255,255,.07);

  /* Lines */
  --border:        rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.16);

  /* Text — app uses white at 100 / 55 / 30 */
  --text:          #ffffff;
  --text-body:     rgba(255,255,255,.72);
  --text-muted:    rgba(255,255,255,.55);
  --text-faint:    rgba(255,255,255,.30);

  /* Brand — white is the accent. Blue is a signal, used sparingly. */
  --accent:        #ffffff;
  --accent-end:    #e6e6e6;
  --accent-fg:     #0d0d0f;
  --accent-line:   rgba(255,255,255,.24);

  /* #0080e5 is the app signal; lightened here for contrast on dark text sizes */
  --signal-soft:   #3aa5f0;
  --signal-wash:   rgba(0,128,229,.12);
  --signal-line:   rgba(0,128,229,.30);

  /* Status (used by tool validation) */
  --warn:          #f5a623;
  --warn-wash:     rgba(245,166,35,.10);
  --warn-line:     rgba(245,166,35,.32);

  /* Typography */
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --step--1: 13px;
  --step-0:  15px;
  --step-1:  17px;
  --step-2:  clamp(20px, 2.4vw, 25px);
  --step-3:  clamp(26px, 4vw, 40px);
  --step-4:  clamp(32px, 5.5vw, 58px);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Layout */
  --w-wide:  1080px;
  --w-page:  960px;
  --w-prose: 760px;
  --gutter:  24px;
  --nav-h:   60px;
}

/* ---------- 2. Reset ----------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 3. Layout ---------------------------------------------------- */

.shell  { width: min(100% - (var(--gutter) * 2), var(--w-page));  margin-inline: auto; }
.shell--wide  { max-width: var(--w-wide); }
.shell--prose { max-width: var(--w-prose); }

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* Ambient blue wash behind a section — the web read of OnboardingAmbientGlow.
   Oversized radial circles at low opacity keep a near-monochrome screen from
   going flat. Purely decorative, so it never takes pointer events. */
.glow-host { position: relative; isolation: isolate; }
.glow-host > * { position: relative; z-index: 1; }
.glow-host::before {
  content: '';
  position: absolute; inset: -10% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 460px at 72% 8%,  rgba(0,128,229,.17), transparent 70%),
    radial-gradient(circle 380px at 12% 58%, rgba(0,128,229,.11), transparent 70%),
    radial-gradient(circle 340px at 78% 96%, rgba(0,128,229,.09), transparent 70%);
}

/* ---------- 4. Navigation ------------------------------------------------ */

.nav {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 42px; width: 42px; }
.nav-logo span { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.58);
  font-size: 14px; font-weight: 500;
  padding: 6px 11px; border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.08); }

.nav-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  color: var(--accent-fg);
  font-size: 14px; font-weight: 700;
  padding: 8px 18px; border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,255,255,.10);
  transition: box-shadow .2s, transform .15s;
}
.nav-cta:hover { box-shadow: 0 6px 18px rgba(255,255,255,.18); transform: translateY(-1px); }

/* ---------- 5. Typography ------------------------------------------------ */

.eyebrow {
  display: block;
  color: var(--signal-soft);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: var(--step-4); letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

.page-head { padding: 68px 0 44px; }
.page-head h1 { max-width: 800px; margin-bottom: 16px; }
.page-head p  { max-width: 680px; color: var(--text-muted); font-size: var(--step-1); }

.breadcrumbs { color: var(--text-muted); font-size: var(--step--1); margin-bottom: 28px; }
.breadcrumbs a { color: var(--signal-soft); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- 6. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-size: var(--step-0); font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, opacity .15s, transform .1s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  color: var(--accent-fg);
  box-shadow: 0 10px 20px rgba(255,255,255,.12);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(255,255,255,.18); }
.btn--ghost { background: transparent; color: var(--text-body); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--accent-line); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- 7. Cards ----------------------------------------------------- */

/* The app's `cardShine`: a diagonal gradient hairline plus a soft white glow,
   so surfaces read as lit from the top-left rather than flatly outlined.
   The border is drawn by a masked pseudo-element — CSS `border` can't hold a
   gradient and keep the corner radius. */
.shine { position: relative; }
.shine::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.18),
    rgba(255,255,255,.06) 45%,
    rgba(255,255,255,.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background .2s;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 8px rgba(255,255,255,.04);
  transition: transform .2s, box-shadow .2s;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.18),
    rgba(255,255,255,.06) 45%,
    rgba(255,255,255,.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background .2s;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,.07); }
a.card:hover::before {
  background: linear-gradient(135deg,
    rgba(255,255,255,.34),
    rgba(255,255,255,.12) 45%,
    rgba(255,255,255,.04));
}
.card .tag {
  color: var(--signal-soft);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.card h2, .card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14px; flex: 1; }
.card p a { color: var(--signal-soft); text-decoration: underline; text-underline-offset: 3px; }
.card .read, .card .meta { font-size: 14px; font-weight: 700; color: var(--signal-soft); margin-top: 20px; }
.card .meta { font-weight: 400; color: var(--text-muted); }
.card .meta + .read { margin-top: 8px; }

.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 8. Prose / article ------------------------------------------- */

.article { width: min(100% - (var(--gutter) * 2), var(--w-prose)); margin-inline: auto; padding: 52px 0 88px; }
.article h1 { margin-bottom: 18px; }
.article .dek {
  color: var(--text-body); font-size: var(--step-1);
  padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.article h2 { font-size: var(--step-2); margin: 42px 0 14px; }
.article h3 { font-size: var(--step-1); margin: 28px 0 8px; }
.article p  { color: var(--text-body); margin-bottom: 17px; }
.article ul, .article ol { color: var(--text-body); padding-left: 22px; margin: 0 0 20px; }
.article li { margin-bottom: 9px; padding-left: 5px; }
.article strong { color: var(--text); }
.article a:not(.btn) { color: var(--signal-soft); text-decoration: underline; text-underline-offset: 3px; }

.answer-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 22px 24px; margin: 26px 0;
}
.answer-box h2 { margin: 0 0 10px; font-size: 20px; }
.answer-box p:last-child { margin-bottom: 0; }

.disclaimer {
  color: var(--text-muted);
  background: var(--signal-wash);
  border: 1px solid var(--signal-line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: var(--step--1);
  line-height: 1.65;
  margin: 0 0 32px;
}
.disclaimer strong { color: rgba(255,255,255,.82); }

/* ---------- 8b. Blog post components ------------------------------------- */

.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.meta-tag {
  color: var(--signal-soft);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.meta-date { color: var(--text-muted); font-size: var(--step--1); }

.article-intro {
  color: var(--text-body); font-size: var(--step-1);
  padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}

.takeaways {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 22px 26px; margin: 28px 0;
}
.takeaways h3 { font-size: 15px; margin: 0 0 12px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { color: var(--text-body); font-size: 14px; margin-bottom: 7px; }
.takeaways li:last-child { margin-bottom: 0; }

.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 30px 0;
  font-size: var(--step-1); line-height: 1.6;
  color: var(--text); font-weight: 500;
}

/* ---------- 8c. Stat row ------------------------------------------------
   Headline numbers for a reference page. Reads better than a two-column
   table at any width and gives a prose page some structure without
   needing a sidebar. */

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 30px; }
.stat {
  position: relative;
  background: var(--surface); border-radius: var(--r-md); padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(255,255,255,.04);
}
.stat::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.18), rgba(255,255,255,.06) 45%, rgba(255,255,255,.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.stat > * { position: relative; }
.stat .k {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--signal-soft); margin-bottom: 8px;
}
.stat .v {
  display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat .s { display: block; font-size: 12px; color: var(--text-faint); margin-top: 5px; }

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat { padding: 15px 17px; }
  .stat .v { font-size: 21px; }
}

/* Lets one wide element (a data table, usually) exceed the prose column
   without widening the text around it. Centred on the parent, capped so it
   never exceeds the viewport. */
.breakout {
  width: min(1020px, calc(100vw - (var(--gutter) * 2)));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Inline SVG diagram with a caption. Scales with the column; the viewBox
   does the work so there is no fixed height to fight on mobile. */
.diagram { margin: 28px 0 32px; }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.diagram figcaption {
  margin-top: 14px; font-size: var(--step--1); color: var(--text-muted); line-height: 1.6;
}

/* ---------- 9. Data table ------------------------------------------------ */

.table-wrap { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--border); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--bg-raised);
  color: var(--text);
  text-align: left; font-weight: 700;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 16px; white-space: nowrap;
}
tbody td { padding: 12px 16px; color: var(--text-body); border-top: 1px solid var(--border); white-space: nowrap; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 10. Calculator ----------------------------------------------- */

.calc {
  display: grid; gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  margin: 32px 0 8px;
}

.calc-panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 2px 8px rgba(255,255,255,.04);
}
.calc-panel::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.18),
    rgba(255,255,255,.06) 45%,
    rgba(255,255,255,.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.calc-panel > * { position: relative; }
.calc-panel h2 { font-size: 17px; margin: 0 0 20px; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: 7px; }
.field .hint { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 4px; line-height: 1.5; }

.input-row { display: flex; gap: 8px; }
.input-row > input { flex: 1; min-width: 0; }

input[type="number"], select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
  transition: border-color .15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"]:focus, select:focus { border-color: var(--accent); outline: none; }
select { width: auto; flex-shrink: 0; cursor: pointer; }

/* Primary result */
.result-hero {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.result-hero .label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal-soft);
}
.result-hero .value {
  font-family: var(--font-mono);
  font-size: clamp(40px, 8vw, 56px); font-weight: 700; line-height: 1.1;
  letter-spacing: -.03em;
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}
.result-hero .unit { font-size: var(--step--1); color: var(--text-muted); }

.result-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.result-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 16px; background: var(--bg-raised);
  font-size: 14px;
}
.result-row dt { color: var(--text-muted); }
.result-row dd { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.calc-note {
  display: flex; gap: 10px;
  margin-top: 16px; padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: var(--step--1); line-height: 1.55;
  background: var(--warn-wash); border: 1px solid var(--warn-line); color: rgba(255,255,255,.78);
}
.calc-note[hidden] { display: none; }
.calc-note strong { color: var(--warn); }

/* Syringe visual */
.syringe { margin-top: 18px; }
.syringe-bar {
  position: relative; height: 34px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.syringe-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.9), var(--accent-end));
  transition: width .3s ease;
}
.syringe-ticks { position: absolute; inset: 0; display: flex; }
.syringe-ticks span { flex: 1; border-right: 1px solid rgba(255,255,255,.10); }
.syringe-ticks span:last-child { border-right: 0; }
.syringe-scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 6px;
}

/* ---------- 11. CTA block ------------------------------------------------ */

.cta-block {
  margin-top: 52px; padding: 34px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
}
.cta-block h2 { margin: 0 0 8px; font-size: var(--step-2); }
.cta-block p { color: var(--text-muted); margin-bottom: 18px; }

/* ---------- 12. FAQ ------------------------------------------------------ */

.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 22px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--step-0);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
/* The question stays a real heading for the document outline; the summary
   only supplies the disclosure behaviour. */
.faq summary h3 { font-size: inherit; font-weight: inherit; line-height: 1.4; margin: 0; }
.faq summary::after {
  content: '+'; color: var(--signal-soft);
  font-size: 20px; font-weight: 400; line-height: 1; flex-shrink: 0;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-body); font-size: 14px; margin: 12px 0 0; }
.faq details a { color: var(--signal-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. Related links -------------------------------------------- */

.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related h2 { font-size: var(--step-1); margin-bottom: 16px; }
.related ul { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.related a:hover { border-color: var(--accent-line); background: var(--surface-hover); }
.related a span { color: var(--text-muted); font-weight: 400; }

/* ---------- 14. Footer --------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--gutter);
  text-align: center;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }

/* ---------- 15. Responsive ----------------------------------------------- */

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .nav { height: auto; padding: 8px var(--gutter); flex-wrap: wrap; }
  .nav-links {
    order: 3; width: 100%; justify-content: center;
    padding-top: 6px; border-top: 1px solid var(--border);
    overflow-x: auto;
  }
  .nav-links a { padding: 5px 8px; font-size: 13px; }
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .page-head { padding: 44px 0 32px; }
  .section { padding: 52px 0; }
  .cta-block { padding: 26px 20px; }
}
