/* Shared Ramp4x4 article + component styles, mirrored from the Norwegian 4x4 hub page so the
   supporting pages share one look. Layered on top of the global /styles.css. */
:root {
  --ramp-green: #1f9d57;
  --ramp-green-bg: #e7f7ee;
  --ramp-red: #c8324a;
  --ramp-blue: #2d6cc0;
  --accent: #08763f;
  --warn-bg: #fff7e6;
  --warn-border: #f1d9a6;
}

/* Article shell */
.article { padding-top: 2.5rem; padding-bottom: 3.5rem; max-width: 52rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1.25rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.article h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.18; margin: 0 0 0.5rem; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--text-muted); margin: 0 0 1.5rem; }
.article h2 { font-size: clamp(1.35rem, 3.5vw, 1.65rem); margin: 2.75rem 0 0.9rem; scroll-margin-top: 1.5rem; line-height: 1.25; }
.article h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.article p { margin: 0 0 1rem; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.article li { margin-bottom: 0.5rem; }
.article strong { color: var(--text); }
.updated { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 2rem; }

/* CTA buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.official-app-store-badge { display: inline-block; margin: .35rem 0 1rem; line-height: 0; border-radius: 10px; }
.official-app-store-badge img { display: block; width: 168px; height: auto; }
.official-app-store-badge:focus-visible { outline: 3px solid #1f9d57; outline-offset: 4px; }
.btn { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 3px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
/* White on #1f9d57 fails AA (3.5:1); #147d43 clears it at 5.2:1. */
.btn-primary { background: #147d43; color: #fff; }
.btn-primary:hover { background: #0f6635; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

/* Key facts callout */
.keyfacts { background: var(--ramp-green-bg); border: 1px solid #bfe6cd; border-radius: 3px; padding: 1.25rem 1.4rem; margin: 1.75rem 0; }
/* Doubled selector outranks the later `.article h2` size override. */
.keyfacts h2, .article .keyfacts h2 { margin: 0 0 0.7rem; color: #137343; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.14em; }
.keyfacts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.keyfacts dt { font-weight: 600; color: var(--text); }
.keyfacts dd { margin: 0; color: var(--text); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 30rem; }
table.data caption { text-align: left; color: var(--text-muted); font-size: 0.85rem; padding-bottom: 0.5rem; }
table.data th, table.data td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); }
table.data thead th { background: var(--surface); border-bottom: 2px solid var(--border); }
table.data tbody tr:nth-child(even) { background: #f4f5f7; }

/* Phase timeline */
.phasebar { display: flex; gap: 4px; margin: 1.25rem 0 0.5rem; flex-wrap: wrap; }
.phase { flex: 1 1 auto; min-width: 2.1rem; text-align: center; border-radius: 6px; padding: 0.55rem 0.2rem; font-size: 0.78rem; font-weight: 700; color: #fff; }
.phase small { display: block; font-weight: 500; opacity: 0.85; font-size: 0.66rem; }
.phase.warm { background: var(--ramp-blue); }
.phase.hard { background: var(--ramp-red); }
.phase.rec  { background: #6b7480; }
.phase.cool { background: var(--ramp-green); }
.legend { font-size: 0.82rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.legend span { display: inline-block; margin-right: 1rem; white-space: nowrap; }
.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; vertical-align: -1px; margin-right: 0.35rem; }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 1.5rem; margin: 1.25rem 0 1.25rem; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.field input, .field select { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 3px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text); }
.field .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-out { margin-top: 1.5rem; }
.zone-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.zone { border-radius: 10px; padding: 1.1rem 1.2rem; border: 1px solid var(--border); }
.zone.interval { background: #fdeef0; border-color: #f1c4cc; }
.zone.recovery { background: #eef4fc; border-color: #c6daf3; }
.zone.vo2 { background: #eef7f0; border-color: #bfe6cd; }
.zone .z-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--text-muted); margin: 0 0 0.3rem; }
.zone .z-bpm { font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin: 0; }
.zone.interval .z-bpm { color: var(--ramp-red); }
.zone.recovery .z-bpm { color: var(--ramp-blue); }
.zone.vo2 .z-bpm { color: var(--ramp-green); }
.zone .z-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0.3rem 0 0; }
.calc-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }
.calc-karvonen { font-size: 0.9rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }

/* The HR formula needs more room than the three numeric fields. Keep this layout scoped so the
   other calculators can continue using the generic auto-fit grid above. */
.heart-rate-calc { border-top: 3px solid var(--ramp-green); }
.heart-rate-calc .calc-grid {
  grid-template-columns: minmax(7.5rem, 0.65fr) minmax(16rem, 1.45fr) repeat(2, minmax(9.5rem, 1fr));
  align-items: start;
}
.heart-rate-calc .field { min-width: 0; }
.heart-rate-calc .field label { margin-bottom: 0.4rem; }
.heart-rate-calc .field .optional {
  display: block;
  margin-top: 0.05rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}
.heart-rate-calc .field input,
.heart-rate-calc .field select {
  min-height: 3.1rem;
  border-color: #b9c4bd;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.heart-rate-calc .field input:hover,
.heart-rate-calc .field select:hover { border-color: #7f9187; }
.heart-rate-calc .field .hint { margin-bottom: 0; line-height: 1.45; }
.heart-rate-calc .calc-out {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 491px) {
  .heart-rate-calc .field label { min-height: 2.85rem; }
}

/* Contextual calculator CTA */
.calc-cta { background: var(--ramp-green-bg); border: 1px solid #bfe6cd; border-radius: 10px; padding: 1.1rem 1.3rem; margin: 0 0 1.5rem; }
.calc-cta p { margin: 0 0 0.85rem; }
.calc-cta .cta-row { margin: 0; }
.comparison-preview-cta { margin: 1.5rem 0 3rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--ramp-green); background: var(--ramp-green-bg); }
.comparison-preview-cta p { margin: 0; }

/* Mistakes / callout list */
.mistakes { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.mistakes li { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ramp-red); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; }
.mistakes li strong { display: block; margin-bottom: 0.2rem; }

/* Feature list with square bullets */
.features { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.features li { position: relative; padding: 0 0 0 1.6rem; margin-bottom: 0.6rem; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--ramp-green); }

/* Screenshot gallery */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1.1rem; margin: 1.25rem 0 1rem; }
.shot { text-align: center; margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: #000; display: block; }
.shot figcaption { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }
.shots.phone { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); max-width: 40rem; }
.shots.real-app-phone-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
.real-app-phone-gallery .shot img { aspect-ratio: 720 / 1565; object-fit: cover; object-position: top; background: #020504; }
.carousel-hint {
  margin: 1.5rem 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.shots.watch-state-gallery {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 17.5rem;
  gap: 1rem;
  max-width: none;
  margin-top: 0;
  padding: 0.15rem 0.1rem 0.9rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ramp-green) rgba(15, 23, 19, 0.12);
}
.watch-state-gallery .shot { scroll-snap-align: start; }
.watch-state-gallery .shot img { aspect-ratio: 416 / 496; object-fit: contain; background: #020403; }
.shots.marketing-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.marketing-proof-grid .shot img { aspect-ratio: 880 / 1912; object-fit: cover; object-position: top; background: #fff; }

/* Clickable product story */
.preview-story { margin: clamp(3rem, 8vw, 5rem) 0; }
.preview-story-heading { max-width: 43rem; }
.preview-story-heading .eyebrow { margin: 0; }
.preview-story-heading h2 { margin-top: 0.3rem; }
.preview-story-heading > p:last-child { color: var(--text-muted); font-size: 1.05rem; }
.preview-carousel {
  width: min(72rem, calc(100vw - 3rem));
  margin-left: 50%;
  transform: translateX(-50%);
}
.preview-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0.35rem;
}
.preview-carousel-instruction {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.preview-carousel-instruction strong { color: var(--text); font-size: 0.95rem; }
.preview-carousel-controls { display: flex; align-items: center; gap: 0.65rem; }
.preview-carousel-arrow,
.preview-carousel-dot {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.preview-carousel-arrow {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border-radius: 3px;
  box-shadow: none;
}
.preview-carousel-arrow svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.preview-carousel-arrow:hover:not(:disabled) { border-color: var(--ramp-green); color: #14713c; }
.preview-carousel-arrow:disabled { opacity: 0.32; cursor: default; }
.preview-carousel-arrow:focus-visible,
.preview-carousel-dot:focus-visible { outline: 3px solid var(--ramp-green); outline-offset: 3px; }
.preview-carousel-dots { display: flex; align-items: center; gap: 0.42rem; }
.preview-carousel-dot {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.preview-carousel-dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #cbd2ce;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, background-color 180ms ease;
}
.preview-carousel-dot.is-active::before { width: 1.25rem; background: var(--ramp-green); }
.preview-story-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  max-width: none;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.35rem 0 1.2rem;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}
.preview-story-grid::-webkit-scrollbar { display: none; }
.preview-story-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; text-align: left; border-radius: 0; transition: transform 180ms ease, color 180ms ease; }
.preview-story-card:hover { transform: translateY(-5px); color: #14713c; }
.preview-story-card:focus-visible { outline: 3px solid var(--ramp-green); outline-offset: 6px; }
.preview-story-card { scroll-snap-align: start; }
.preview-story-card img { aspect-ratio: 1320 / 2868; object-fit: cover; object-position: top; background: #030805; }
.preview-story-copy { display: grid; gap: 0.28rem; padding: 1rem 0.2rem 0; }
.preview-story-copy strong { font-size: 1.02rem; }
.preview-story-copy strong::after { content: " →"; color: var(--ramp-green); }
.preview-story-copy span { color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 8px; padding: 0 1.1rem; margin-bottom: 0.7rem; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.95rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--text-muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details > p { padding: 0.9rem 0; margin: 0; }

/* Disclaimer / references */
.disclaimer { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 8px; padding: 1rem 1.2rem; font-size: 0.9rem; margin: 1.5rem 0; }
.refs { font-size: 0.88rem; color: var(--text-muted); }
.refs li { margin-bottom: 0.6rem; }

/* Dark app callout */
.app-callout { background: #0e1116; color: #f3f5f7; border-radius: 14px; padding: 1.6rem 1.6rem; margin: 2rem 0; }
.app-callout h2 { color: #fff; margin: 0 0 0.5rem; }
.app-callout p { color: #c3c9d2; margin: 0 0 0.9rem; }
.app-callout .btn-secondary { background: transparent; color: #8ef0b3; border-color: #2b6b46; }
.app-callout .btn-secondary:hover { border-color: #8ef0b3; }
.app-links { font-size: 0.88rem; color: var(--text-muted); margin: 0.5rem 0 0; }

/* Browser demo timer (matches the app: dark + neon green) */
.demo { background: #0d1014; color: #f3f5f7; border: 1px solid #20272f; border-radius: 16px; padding: 1.6rem 1.4rem 1.4rem; margin: 1.25rem 0 0.6rem; text-align: center; }
.demo-phase { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 0.95rem; color: #cdd4dd; margin-bottom: 1rem; }
.demo-ring-wrap { position: relative; width: 220px; max-width: 72%; margin: 0 auto 1rem; aspect-ratio: 1 / 1; }
.demo-ring { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.demo-ring-bg { fill: none; stroke: #232a32; stroke-width: 12; }
.demo-ring-fg { fill: none; stroke: #43e08a; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 565.49; stroke-dashoffset: 565.49; transition: stroke-dashoffset 0.2s linear, stroke 0.3s ease; }
.demo-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; }
.demo-time { font-size: clamp(2.3rem, 9vw, 3.3rem); font-weight: 800; line-height: 1; }
.demo-cue { font-size: 0.82rem; color: #97a0ac; }
.demo-hr { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; justify-content: center; align-items: baseline; margin-bottom: 1rem; }
.demo-hr-now { font-size: 1.45rem; font-weight: 800; }
.demo-hr-now small { font-size: 0.68rem; color: #97a0ac; font-weight: 600; }
.demo-hr-target { color: #cdd4dd; font-size: 0.95rem; }
.demo-zone { font-weight: 700; font-size: 0.95rem; }
.demo-zone.inzone { color: #43e08a; }
.demo-zone.under { color: #4aa3e0; }
.demo-zone.over { color: #ff5a6e; }
.demo-timeline { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.demo-seg { flex: 0 0 auto; min-width: 1.7rem; padding: 0.3rem 0; border-radius: 5px; font-size: 0.72rem; font-weight: 700; background: #232a32; color: #8b95a1; }
.demo-seg.done { background: #2a3b32; color: #9fd9b6; }
.demo-seg.active.warm, .demo-seg.active.rec { background: #4aa3e0; color: #04121d; }
.demo-seg.active.hard { background: #ff5a6e; color: #1d0307; }
.demo-seg.active.cool { background: #43e08a; color: #04130b; }
.demo-controls { display: flex; gap: 0.6rem; justify-content: center; }
.demo-btn { padding: 0.7rem 1.4rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 1px solid #2f3a44; background: #1b222a; color: #e7ebf0; font-family: inherit; }
.demo-btn.primary { background: #43e08a; color: #04130b; border-color: #43e08a; }
.demo-btn:focus-visible { outline: 2px solid #43e08a; outline-offset: 2px; }
.demo-done { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid #20272f; }
.demo-done p { color: #cdd4dd; margin: 0 0 0.9rem; }
.demo-note { font-size: 0.8rem; color: var(--text-muted); margin: 0.4rem 0 1.5rem; }
/* Demo refinements (v2) */
.demo-head { display: flex; align-items: center; justify-content: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.demo-phase { margin-bottom: 0; }
.demo-effort { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.18rem 0.5rem; border-radius: 999px; }
.demo-effort.warm, .demo-effort.rec { background: rgba(74,163,224,0.18); color: #7bc0f0; }
.demo-effort.hard { background: rgba(255,90,110,0.2); color: #ff8a98; }
.demo-effort.cool { background: rgba(67,224,138,0.18); color: #6fe0a6; }
.demo-center { padding: 0 1rem; }
.demo-hr { align-items: center; }
.demo-hr-now { display: flex; align-items: baseline; gap: 0.15rem; }
.demo-bpm { font-size: 1.6rem; font-weight: 800; }
.demo-bpm-unit { font-size: 0.8rem; font-weight: 700; color: #cdd4dd; }
.demo-bpm-sim { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #79828e; margin-left: 0.3rem; }
.demo-hr-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.demo-hr-target { font-size: 0.88rem; }
.demo-timeline { flex-wrap: nowrap; }
.demo-seg { flex: 1 1 0; min-width: 0; text-align: center; }
.demo-controls { flex-wrap: wrap; }
.demo-cta { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.3rem; margin: 0 0 1.5rem; }
.demo-cta-q { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.3rem; color: var(--text); }
.demo-cta-sub { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 0.9rem; }
.demo-cta .cta-row { margin: 0; }

/* Cross-link cards between the hub + supporting pages */
.linkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.25rem 0 1.5rem; }
.linkcard { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text); }
.linkcard:hover { border-color: var(--accent); }
.linkcard strong { display: block; color: var(--accent); margin-bottom: 0.25rem; }
.linkcard span { font-size: 0.9rem; color: var(--text-muted); }

/* Trust, source, and comparison components */
.source-note { display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: center; font-size: 0.84rem; color: var(--text-muted); margin: -0.65rem 0 1.5rem; }
.source-note a { color: var(--text-muted); }
.source-note a:hover { color: var(--accent); }
.answer-box { background: #f4fbf7; border: 1px solid #bfe6cd; border-left: 4px solid var(--ramp-green); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.25rem 0 1.75rem; }
.answer-box p:last-child { margin-bottom: 0; }
.answer-label { display: block; color: #137343; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.9rem; margin: 1.25rem 0 1.75rem; }
.fact-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 1rem 1.1rem; }
.fact-card dt { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.25rem; }
.fact-card dd { color: var(--text); font-weight: 650; margin: 0; }
.comparison-table td:first-child, .comparison-table th:first-child { font-weight: 700; }
.comparison-table .yes { color: #137343; font-weight: 700; }
.comparison-table .depends { color: #8a5a00; font-weight: 700; }
.comparison-table .no { color: #7d3540; }
.editorial-box { border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; background: var(--surface); }
.editorial-box h2, .editorial-box h3 { margin-top: 0; }
.citation-link { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .source-note { display: block; line-height: 1.6; }
  .fact-grid { grid-template-columns: 1fr; }
}

/* 2026 editorial redesign: high-readability, interval-inspired system */
:root {
  --ramp-green: #18a957;
  --ramp-green-bg: #eefaf3;
  --ramp-red: #cc314a;
  --ramp-blue: #2575c4;
}

.article {
  max-width: 58rem;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.breadcrumb {
  margin-bottom: 1.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

/* Space Grotesk is wide and compact; it needs smaller sizes and far less negative tracking
   than the system stack these values were originally tuned for. */
.article h1 {
  max-width: 20ch;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 46rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.14rem, 2.4vw, 1.38rem);
  line-height: 1.55;
}

.source-note,
.updated {
  margin: 0 0 2.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.article h2 {
  margin: clamp(3.75rem, 8vw, 5.75rem) 0 1.15rem;
  font-size: clamp(1.65rem, 3.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article h3 {
  margin-top: 2.4rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.article p,
.article li { color: #293239; }

.article p { max-width: 48rem; }
.article li { margin-bottom: 0.75rem; }

.btn {
  min-height: 3.05rem;
  padding: 0.9rem 1.5rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary,
.btn-primary:visited { background: #147d43; color: #fff; }
.btn-primary:hover,
.btn-primary:focus-visible { background: #0f6635; color: #fff; }
.btn-secondary { border-color: #b9c4bd; color: var(--green-dark); }
.btn-secondary:hover { border-color: #147d43; }

.answer-box {
  position: relative;
  margin: 2.25rem 0 2.5rem;
  padding: 1.1rem 0 1.5rem;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--ramp-green);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* The skewed-bars motif here mimicked the old faked wordmark; the real mark replaced that,
   so the label speaks for itself in the shared mono voice. */
.answer-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #137343;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.answer-box p { font-size: 1.1rem; line-height: 1.62; }

.fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.75rem;
  margin: 1rem 0 1.75rem;
  border-top: 2px solid var(--ramp-green);
}

.fact-card {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.35fr);
  align-items: baseline;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.fact-card dt { margin: 0; font-size: 0.7rem; }
.fact-card dd { font-size: 1.02rem; line-height: 1.35; }
.fact-grid-secondary { max-width: 48rem; border-top-color: var(--ink); }

.keyfacts,
.calc,
.calc-cta,
.demo-cta,
.editorial-box {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 3px;
  box-shadow: none;
}

.keyfacts { border-top: 3px solid var(--ramp-green); }

.toc {
  margin: 2.25rem 0 3.25rem;
  padding: 0.2rem 0 0.2rem 1.4rem;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--ramp-green);
  border-radius: 0;
}

.table-wrap { margin: 1.5rem 0 2.25rem; border-top: 2px solid var(--ink); }
table.data th, table.data td { padding: 0.9rem 0.75rem; }
table.data thead th { background: #f5f8f6; }
table.data tbody tr:nth-child(even) { background: #f8faf9; }

.features { margin-top: 1.5rem; }
.features li { padding-left: 1.8rem; margin-bottom: 1rem; }
.features li::before { top: 0.58rem; width: 0.58rem; height: 0.58rem; border-radius: 2px; }

.mistakes li {
  padding: 1.05rem 0 1.05rem 1.2rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--ramp-red);
  border-radius: 0;
}

.linkcards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  border-top: 2px solid var(--ink);
}

.linkcard {
  min-height: 8rem;
  padding: 1.35rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.linkcard:hover { border-color: var(--ramp-green); transform: translateX(3px); }
.linkcard strong { color: var(--green-dark); }

.faq details {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.faq summary { padding: 1.15rem 0; }
.faq details[open] summary { border-bottom: 0; }
.faq details > p { padding: 0 0 1.15rem; }

.shots { gap: 1.5rem; margin: 2rem 0 2.5rem; }
.shot img { border-radius: 14px; border-color: #cad2ce; box-shadow: 0 12px 30px rgba(5, 15, 9, 0.07); }

.app-callout {
  position: relative;
  overflow: hidden;
  margin: 4.5rem 0 1rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  background: #0e1116;
  border-top: 4px solid var(--ramp-green);
  border-radius: 2px;
}
.app-callout::after { content: none; }
.app-callout > * { position: relative; z-index: 1; }
.article .app-callout h2 {
  max-width: 18ch;
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.article .app-callout p {
  max-width: 43rem;
  margin: 0 0 1.25rem;
  color: #cbd3d8;
}
.app-callout .cta-row { margin-top: 1.4rem; }
.app-callout .btn-primary,
.app-callout .btn-primary:visited { color: #fff; }

.disclaimer { border-radius: 2px; }

@media (max-width: 760px) {
  .article { padding-top: 2.5rem; }
  .article h1 { font-size: clamp(2rem, 9.4vw, 2.75rem); }
  .source-note { display: block; line-height: 1.75; }
  .source-note span { display: none; }
  .source-note span:nth-of-type(3) { display: inline; }
  .source-note span:nth-of-type(3)::after { content: " · "; }
  .fact-grid, .linkcards { grid-template-columns: 1fr; }
  .preview-carousel { width: calc(100vw - 1.5rem); }
  .preview-carousel-toolbar { flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 1rem; }
  .preview-carousel-instruction { justify-content: space-between; gap: 1rem; }
  .preview-carousel-instruction span { min-width: 0; text-align: right; font-size: 0.82rem; }
  .preview-carousel-controls { justify-content: space-between; gap: 0.5rem; padding-inline: 0.75rem; }
  .preview-carousel-arrow { width: 2.6rem; height: 2.6rem; }
  .preview-carousel-dots { gap: 0.32rem; }
  .preview-carousel-dot { width: 1.5rem; height: 1.5rem; }
  .preview-carousel-dot::before { width: 0.48rem; height: 0.48rem; }
  .preview-carousel-dot.is-active::before { width: 1.05rem; }
  .preview-story-grid { grid-auto-columns: 100%; gap: 0.75rem; }
  .shots.real-app-phone-gallery,
  .shots.marketing-proof-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15rem, 80vw);
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.25rem 0.1rem 1rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }
  .real-app-phone-gallery .shot,
  .marketing-proof-grid .shot { scroll-snap-align: start; }
  .shots.watch-state-gallery { grid-auto-columns: minmax(14rem, 78vw); }
  .fact-card { grid-template-columns: 7rem minmax(0, 1fr); }
  .cta-row { display: grid; grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .toc ol { columns: 1 !important; }
  .heart-rate-calc .calc-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .heart-rate-calc .field-age { grid-column: span 2; }
  .heart-rate-calc .field-formula { grid-column: span 4; }
  .heart-rate-calc .field-measured,
  .heart-rate-calc .field-resting { grid-column: span 3; }
}

@media (max-width: 490px) {
  .heart-rate-calc .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .heart-rate-calc .field-age,
  .heart-rate-calc .field-formula,
  .heart-rate-calc .field-measured,
  .heart-rate-calc .field-resting { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .linkcard, .preview-story-card { transition: none; }
}
