/* ============================================================
   Cal360 marketing site — brand tokens mirrored from the app
   ============================================================ */
:root {
  --bg: #f5f7f6;
  --fg: #1a2e2a;
  --card: #ffffff;
  --primary: #5dbea3;
  --primary-dark: #4aa88e;
  --primary-soft: #eaf7f2;
  --secondary: #eef5f2;
  --muted: #e8eeeb;
  --muted-fg: #5f7a72;
  --border: #d8e4df;
  --accent: #f0faf6;
  --lavender: #8b7ec8;
  --coral: #e87e7e;
  --radius: 1rem;
  --font-heading: var(--font-dm-sans, "DM Sans"), system-ui, sans-serif;
  --font-body: var(--font-inter, "Inter"), system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(26, 46, 42, 0.06);
  --shadow-md: 0 6px 24px rgba(26, 46, 42, 0.09);
  --shadow-lg: 0 16px 48px rgba(26, 46, 42, 0.14);
  --max-w: 72rem;
}

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

html {
  scroll-behavior: smooth;
  /* Keep in-page anchors (#sources, #faq, etc.) clear of the fixed navbar. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

[id] {
  scroll-margin-top: 5.5rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary-dark);
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

@media (min-width: 860px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

@media (min-width: 860px) {
  .section-head {
    margin-bottom: 3rem;
  }
}

.section-head p {
  color: var(--muted-fg);
  font-size: 1.075rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  touch-action: manipulation;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.95rem 2.1rem;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(93, 190, 163, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1.15rem 2.75rem;
  font-size: 1.2rem;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
  padding: 0.9rem 1.9rem;
  font-size: 1.05rem;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.navbar-logo img {
  height: 2rem;
  width: auto;
}

.navbar-links {
  display: none;
  gap: 1.6rem;
  align-items: center;
}

.navbar-links a {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.navbar-links a:hover {
  color: var(--fg);
}

.navbar .btn-primary {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  box-shadow: none;
}

@media (min-width: 860px) {
  .navbar-links {
    display: flex;
  }
}

main {
  padding-top: 4.2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding: 2.25rem 0 3rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: -22rem;
  left: 50%;
  transform: translateX(-50%);
  width: 68rem;
  height: 42rem;
  background: radial-gradient(closest-side, rgba(93, 190, 163, 0.24), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy {
  text-align: center;
}

@media (min-width: 960px) {
  .hero-copy {
    text-align: left;
  }
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-sub {
  color: var(--muted-fg);
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}

@media (min-width: 960px) {
  .hero-sub {
    margin-left: 0;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* Full-width, thumb-friendly CTAs on phones */
@media (max-width: 639px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-ctas .btn-lg {
    min-height: 3.5rem;
    font-size: 1.15rem;
  }
}

@media (min-width: 960px) {
  .hero-ctas {
    justify-content: flex-start;
  }
}

.hero-trust {
  margin-top: 1.4rem;
  color: var(--muted-fg);
  font-size: 0.9rem;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.hero-phones .phone {
  width: min(42vw, 15rem);
}

.hero-phones .phone:last-child {
  transform: translateY(1.25rem);
}

@media (min-width: 960px) {
  .hero-phones {
    gap: 1rem;
  }

  .hero-phones .phone:last-child {
    transform: translateY(2.2rem);
  }
}

.phone {
  border-radius: 2rem;
  border: 2px solid rgba(26, 46, 42, 0.1);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

/* ---------- Logging methods pills ---------- */
.log-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 720px) {
  .log-methods {
    grid-template-columns: repeat(4, 1fr);
  }
}

.log-method {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.log-method .icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.65rem;
  border-radius: 0.85rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.log-method h3 {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.log-method p {
  color: var(--muted-fg);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Download ---------- */
.download-box {
  background: linear-gradient(135deg, #1a2e2a 0%, #24443c 100%);
  color: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.download-box h2 {
  color: #fff;
}

.download-box p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin: 0 auto 1.6rem;
}

.store-badge img {
  height: 3.4rem;
  width: auto;
  margin: 0 auto;
}

.store-badge[aria-disabled="true"] {
  cursor: default;
}

.coming-soon-pill {
  display: inline-block;
  margin-top: 0.9rem;
  background: rgba(93, 190, 163, 0.18);
  border: 1px solid rgba(93, 190, 163, 0.5);
  color: #9fdcc9;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.notify-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Screenshots gallery ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(58vw, 15rem);
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 1.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: center;
}

.gallery figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-top: 0.6rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--muted-fg);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Meal plan cards ---------- */
.meals {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 860px) {
  .meals {
    grid-template-columns: repeat(3, 1fr);
  }
}

.meal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.meal-card img {
  aspect-ratio: 800 / 545;
  object-fit: cover;
  width: 100%;
}

.meal-card .meal-body {
  padding: 0.9rem 1rem 1.1rem;
}

.meal-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.45rem;
}

.meal-card h3 {
  font-size: 0.98rem;
  margin: 0 0 0.3rem;
}

.meal-macros {
  color: var(--muted-fg);
  font-size: 0.82rem;
  margin: 0;
}

/* ---------- Guides grid ---------- */
.guides-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(93, 190, 163, 0.55);
  transform: translateY(-2px);
}

.guide-card .guide-kicker {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.guide-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.guide-card p {
  color: var(--muted-fg);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.guide-card .guide-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary-dark);
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 1.4rem 1.25rem;
  color: var(--muted-fg);
  font-size: 0.96rem;
}

.faq-item .faq-body a {
  font-weight: 600;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 5rem 0;
}

.final-cta .hero-trust {
  margin-top: 1.1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 2.25rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer .footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  margin: 0 0 0.8rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.93rem;
}

.footer a:hover {
  color: var(--primary-dark);
}

.footer-brand img {
  height: 1.9rem;
  width: auto;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  color: var(--muted-fg);
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ---------- Guide article pages ---------- */
.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--muted-fg);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
}

.article-meta {
  color: var(--muted-fg);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.article h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.article h3 {
  margin-top: 1.9rem;
}

.article p,
.article li {
  color: #33504a;
  font-size: 1.02rem;
}

.article ul,
.article ol {
  padding-left: 1.4rem;
}

.article li {
  margin-bottom: 0.5rem;
}

.article .lede {
  font-size: 1.15rem;
  color: var(--muted-fg);
}

.article-figure {
  margin: 2.25rem auto;
  max-width: 17rem;
}

.article-figure img {
  border-radius: 1.6rem;
  border: 2px solid rgba(26, 46, 42, 0.1);
  box-shadow: var(--shadow-md);
}

.article-figure figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-top: 0.7rem;
}

/* Wide 16:9 figures (diagrams, food photos) */
.article-figure-wide {
  margin: 2.25rem 0;
}

/* Square diagrams: cap width so they don't dominate the column */
.article-figure-square {
  max-width: 27rem;
  margin-left: auto;
  margin-right: auto;
}

/* Logging methods: swipeable cards on mobile, grid on wide screens */
.method-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76%, 15rem);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.25rem 1rem;
  margin: 2rem 0 0.25rem;
  scrollbar-width: thin;
}

.method-slider .log-method {
  scroll-snap-align: center;
  padding: 1.5rem 1.25rem;
}

.method-slider .icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  margin-bottom: 0.85rem;
}

.method-slider .icon svg {
  width: 28px;
  height: 28px;
}

.method-slider .log-method dl {
  margin: 0.35rem 0 0;
  text-align: left;
}

.method-slider .log-method dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-top: 0.7rem;
}

.method-slider .log-method dd {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  text-wrap: pretty;
}

.method-slider-hint {
  font-size: 0.85rem;
  color: var(--muted-fg);
  text-align: center;
  margin: 0 0 2rem;
}

@media (min-width: 700px) {
  .method-slider {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-columns: auto;
    overflow-x: visible;
  }

  .method-slider-hint {
    display: none;
  }
}

.article-figure-wide img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-figure-wide figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-top: 0.7rem;
}

.callout {
  background: var(--primary-soft);
  border: 1px solid rgba(93, 190, 163, 0.45);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}

.callout p {
  margin: 0;
}

.cta-box {
  background: linear-gradient(135deg, #1a2e2a 0%, #24443c 100%);
  border-radius: calc(var(--radius) * 1.25);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.75rem;
  margin: 3rem 0 1rem;
}

.cta-box h2 {
  color: #fff;
  margin-top: 0;
  font-size: 1.6rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 30rem;
  margin: 0 auto 1.4rem;
}

.related {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
}

.related h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.related a {
  font-weight: 600;
  text-decoration: none;
}

.related a:hover {
  text-decoration: underline;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 55;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(26, 46, 42, 0.1);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.1rem;
}

.sticky-cta .sticky-cta-note {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

@media (min-width: 860px) {
  .sticky-cta {
    display: none;
  }
}

/* Keep the footer reachable under the sticky bar on phones */
@media (max-width: 859px) {
  .footer {
    padding-bottom: 7.5rem;
  }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.center {
  text-align: center;
}

/* ============================================================
   Science / methodology page (ported from science.html <style>)
   ============================================================ */
.formula {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: nowrap;
}
.formula .var { color: var(--primary-dark); font-weight: 600; }
table.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.96rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.spec th, table.spec td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
table.spec th {
  background: var(--primary-soft);
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.spec tr:last-child td { border-bottom: 0; }
sup.cite { font-size: 0.72em; line-height: 0; }
sup.cite a { text-decoration: none; font-weight: 600; }
.refs { padding-left: 1.4rem; }
.refs li { margin-bottom: 0.9rem; font-size: 0.92rem; color: #33504a; }
.refs li a { word-break: break-word; }
.jump-sources {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-soft);
  border: 1px solid rgba(93, 190, 163, 0.45);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.example-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}
.example-box h3 { margin-top: 0; }
.example-box ol { padding-left: 1.3rem; }
.disclaimer {
  background: #fdf6ec;
  border: 1px solid #ecd9b8;
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.disclaimer p { margin-bottom: 0.6rem; }
.disclaimer p:last-child { margin-bottom: 0; }

/* Legal pages — brand-aligned on marketing tokens (not a redesign) */
.legal-main {
  padding-top: 6.5rem;
  padding-bottom: 3rem;
  max-width: 48rem;
}

.legal-article h1 {
  margin-bottom: 0.5rem;
}

.legal-article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.legal-article section {
  margin-top: 1.5rem;
}

.legal-article h2 {
  font-size: 1.35rem;
  margin-top: 0.5rem;
}

.legal-article h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}

.legal-article h4 {
  font-size: 1rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.legal-page .sticky-cta {
  display: none !important;
}

