/* CalorieSteps.com — shared styles */
:root {
  --ink: #0F1B2D;
  --ink-2: #2A3A52;
  --ink-3: #5A6A82;
  --ink-4: #8898AE;
  --line: #E4EAF2;
  --line-2: #EFF3F8;
  --bg: #F6F9FC;
  --bg-2: #FFFFFF;
  --bg-3: #FAFCFE;
  --teal: #0EA89A;
  --teal-2: #0B8C81;
  --teal-soft: #D6F2EE;
  --teal-tint: #ECF8F6;
  --lime: #B6E948;
  --lime-soft: #EDF8D2;
  --amber: #F5A524;
  --rose: #EF6F6C;
  --shadow-sm: 0 1px 2px rgba(15,27,45,0.04), 0 1px 3px rgba(15,27,45,0.05);
  --shadow-md: 0 4px 12px rgba(15,27,45,0.06), 0 2px 4px rgba(15,27,45,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15,27,45,0.12), 0 8px 16px -8px rgba(15,27,45,0.08);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --maxw: 1180px;
  --maxw-prose: 760px;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
small, .small { font-size: 0.85rem; color: var(--ink-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-2);
  background: var(--teal-tint);
  border: 1px solid var(--teal-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.prose { width: 100%; max-width: var(--maxw-prose); margin: 0 auto; }
.prose p { font-size: 1.05rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.2em; }
.prose li { margin: 0.4em 0; }
.prose blockquote {
  border-left: 3px solid var(--teal);
  margin: 1.4em 0;
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--ink-2);
  font-style: italic;
  background: var(--teal-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

.divider {
  height: 1px; background: var(--line); border: 0; margin: 0;
}

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #14C9B8 0%, #0EA89A 50%, #0B8C81 100%);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px rgba(14,168,154,0.4);
  position: relative;
}
.brand .logo svg { width: 26px; height: 26px; }
.brand .name { display: inline-flex; align-items: baseline; gap: 1px; }
.brand .name .accent { color: var(--teal-2); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.nav-links a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--teal-2); background: var(--teal-tint); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink);
  color: white !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ink-2); text-decoration: none !important; }

.menu-btn {
  display: none;
  margin-left: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: var(--r-sm); }
  .nav-links .nav-cta { min-height: 44px; }
  .nav .brand { min-height: 44px; }
  .menu-btn { display: inline-flex; }
  .site-header { position: relative; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 6px 16px -6px rgba(15,27,45,0.4); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent  { background: var(--teal); color: white; box-shadow: 0 8px 20px -6px rgba(14,168,154,0.45); }
.btn-accent:hover { background: var(--teal-2); }
.btn-outline { background: white; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }

/* Cards */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card-soft { background: var(--bg-3); }
.card-elev { box-shadow: var(--shadow-md); }

/* Grid utilities */
.grid { display: grid; gap: 20px; }
.grid > *,
.hero-grid > *,
.layout-with-sidebar > *,
.quick-grid > *,
.calc-grid > *,
.contact-grid > * {
  min-width: 0;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(14,168,154,0.10), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, rgba(182,233,72,0.18), transparent 55%),
    linear-gradient(180deg, #FAFEFD 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 36px; }
}
.hero h1 { margin-top: 0; }
.hero .lead { margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 32px;
  color: var(--ink-3); font-size: 0.9rem;
}
.hero-trust .item { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust svg { width: 16px; height: 16px; color: var(--teal); }

/* Page header (non-home) */
.page-header {
  padding: 64px 0 32px;
  background:
    radial-gradient(700px 300px at 100% -20%, rgba(14,168,154,0.10), transparent 60%),
    linear-gradient(180deg, #FAFEFD 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb .sep { margin: 0 8px; color: var(--ink-4); }

/* Feature tile */
.feature {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal-soft); }
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal-2);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-3); font-size: 0.96rem; }

/* Stat tile */
.stat {
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat .label { color: var(--ink-3); font-size: 0.92rem; margin-top: 4px; }

/* Calculator preview card on home */
.calc-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.calc-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(14,168,154,0.4), rgba(182,233,72,0.3));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.6;
}

/* Focused tool pages */
.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 32px;
  align-items: start;
}
.tool-card {
  padding: 28px;
}
.tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tool-fields .field-full {
  grid-column: 1 / -1;
}
.tool-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-3);
  color: var(--ink-3);
  font-size: 0.9rem;
}
.tool-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tool-links a {
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.tool-links a span {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-weight: 400;
  font-size: 0.9rem;
}
.tool-links a:hover {
  border-color: var(--teal-soft);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) {
  .tool-shell { grid-template-columns: 1fr; }
  .tool-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tool-card { padding: 22px; }
  .tool-fields,
  .tool-links { grid-template-columns: 1fr; }
}

/* Form fields */
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px;
}
.field-label .hint { color: var(--ink-4); font-weight: 400; font-size: 0.8rem; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.select {
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  line-height: 1.4;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235A6A82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14,168,154,0.12);
}
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }

.toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.toggle button {
  border: 0; background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink-3);
  transition: all 0.15s ease;
}
.toggle button.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
}
.segmented button {
  border: 0; background: transparent;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink-3);
  transition: all 0.15s ease;
}
.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.segmented button .pace-sub { display: block; font-size: 0.72rem; font-weight: 400; color: var(--ink-4); margin-top: 2px; }
.segmented button.active .pace-sub { color: var(--ink-3); }
@media (max-width: 480px) {
  .field-label {
    align-items: flex-start;
    gap: 8px;
  }
  .toggle button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
  }
  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .segmented button {
    min-height: 48px;
  }
  #i-sex {
    grid-template-columns: 1fr !important;
  }
  .sidebar li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Result panel */
.result {
  background: linear-gradient(135deg, #0F1B2D 0%, #1A2D49 100%);
  color: white;
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.result::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,168,154,0.4), transparent 70%);
  pointer-events: none;
}
.result h3 { color: white; margin: 0 0 4px; font-size: 1rem; font-weight: 500; opacity: 0.7; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-sans); }
.result .big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: white;
  display: flex; align-items: baseline; gap: 8px;
}
.result .big .unit { font-size: 0.95rem; font-weight: 500; font-family: var(--font-sans); opacity: 0.7; letter-spacing: 0; }
.result .sub { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: 8px; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.result-grid .cell {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 14px;
}
.result-grid .cell .k { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.result-grid .cell .v { font-family: var(--font-display); font-size: 1.4rem; color: white; }
@media (max-width: 560px) {
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

.activity-bar {
  display: flex;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 8px;
  position: relative;
}
.activity-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--lime) 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.activity-tier {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,168,154,0.18);
  color: #A8E8DF;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.activity-tier .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(14,168,154,0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14,168,154,0.6); }
  100% { box-shadow: 0 0 0 8px rgba(14,168,154,0); }
}

/* (ad placeholders removed — using Google Auto Ads) */

/* Page layout with sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
}
.sidebar { position: sticky; top: 96px; }
.sidebar .card { margin-bottom: 16px; }
.sidebar h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0; }
.sidebar li a {
  display: block;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 0.93rem;
}
.sidebar li a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }

/* TOC */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin: 32px 0;
}
.toc h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.toc ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.toc a { color: var(--ink-2); }

/* FAQ */
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--teal-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { color: var(--ink-2); margin-top: 12px; }

/* Tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tbl th, .tbl td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.tbl th {
  background: var(--bg-3);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-3); }
@media (max-width: 640px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .calc-card .btn,
  .hero-cta .btn,
  .cta-band .btn {
    width: 100%;
  }
  .btn svg {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .calc-card {
    padding: 22px;
  }
  .calc-card .btn {
    padding-inline: 16px;
  }
  .hero-cta {
    width: 100%;
  }
  .hero-cta .btn {
    padding-inline: 16px;
  }
  .hero-grid > div[style*="position: relative"] {
    overflow: hidden;
    padding: 0 12px 18px;
    margin-inline: -12px;
  }
  .float-chip {
    max-width: calc(100% - 24px);
  }
  .float-chip[data-metric-chip="calories"] {
    left: 0 !important;
  }
  .float-chip[data-metric-chip="distance"] {
    right: 0 !important;
  }
  .float-chip[data-metric-chip="rate"] {
    bottom: 0 !important;
    left: 12px !important;
  }
  .metric-ring .center .v {
    font-size: clamp(2.1rem, 13vw, 3rem);
  }
}

@media (max-width: 640px) {
  .comparison-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .tbl {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
  }
  .tbl th,
  .tbl td {
    padding: 10px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .tbl th {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }
  .comparison-table {
    display: block;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table tr {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-2);
    overflow: hidden;
  }
  .comparison-table tr + tr {
    margin-top: 10px;
  }
  .comparison-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  .comparison-table td::before {
    content: attr(data-label);
    flex: 0 1 auto;
    color: var(--ink-3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
  }
  .comparison-table td:last-child {
    border-bottom: 0;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0F1B2D 0%, #0A1322 100%);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.site-footer h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 6px 0; font-size: 0.94rem; }
.site-footer a:hover { color: white; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer a { min-height: 44px; display: flex; align-items: center; }
}
.footer-brand { color: rgba(255,255,255,0.6); font-size: 0.94rem; }
.footer-brand .brand { color: white; margin-bottom: 12px; }
.footer-brand .brand .accent { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* Step illustration (CSS) */
.steps-illo {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
  border-radius: 28px;
  background:
    linear-gradient(135deg, #FFFFFF 0%, #F0FAF7 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, #0F1B2D 0%, #1A2D49 100%);
  color: white;
  border-radius: var(--r-2xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 90% 20%, rgba(14,168,154,0.3), transparent 60%),
    radial-gradient(300px 180px at 10% 80%, rgba(182,233,72,0.2), transparent 60%);
  pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block h2 { color: white; }
.cta-block p { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 28px; }
@media (max-width: 600px) { .cta-block { padding: 40px 24px; } }

/* Visual: stride / step ring on home */
.metric-ring {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.metric-ring svg { width: 78%; }
.metric-ring .center {
  position: absolute;
  text-align: center;
}
.metric-ring .center .v {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.metric-ring .center .l {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Floating step icons */
.float-chip {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  color: var(--ink-2);
}
.float-chip .ico {
  width: 32px; height: 32px;
  background: var(--teal-tint);
  color: var(--teal-2);
  border-radius: 10px;
  display: grid; place-items: center;
}
.float-chip .ico svg { width: 18px; height: 18px; }
.float-chip strong { color: var(--ink); display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; line-height: 1; }
.float-chip span { color: var(--ink-3); font-size: 0.78rem; }

/* Hero chip animations */
.float-chip {
  transition: transform .55s cubic-bezier(.6,.04,.2,1),
              box-shadow .55s ease,
              border-color .55s ease;
  will-change: transform;
}
.float-chip[data-metric-chip] {
  /* gentle ambient float */
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip[data-metric-chip="distance"] { animation-delay: -2s; }
.float-chip[data-metric-chip="rate"]     { animation-delay: -4s; }

.float-chip.is-active {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 28px -10px rgba(14, 168, 154, 0.35), 0 4px 10px -4px rgba(14, 168, 154, 0.25);
  border-color: var(--teal);
}
.float-chip.is-active .ico {
  background: var(--teal);
  color: white;
  transition: background .4s ease, color .4s ease;
}
.float-chip .ico { transition: background .4s ease, color .4s ease; }

@keyframes chipFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

/* Ring center value crossfade-ready */
.metric-ring .center .v {
  font-variant-numeric: tabular-nums;
}
.metric-ring .center .l {
  transition: opacity .35s ease;
}

/* Tiny indicator pulse on the ring */
.metric-ring svg { transition: filter .6s ease; }

@media (prefers-reduced-motion: reduce) {
  .float-chip[data-metric-chip] { animation: none; }
  .float-chip.is-active { transform: none; }
}

/* Utility */
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hide-mobile { }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }

/* Section header */
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head p { color: var(--ink-3); font-size: 1.05rem; }

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.pill svg { width: 14px; height: 14px; color: var(--teal); }

/* Numbered list (educational) */
.numbered-list { display: grid; gap: 14px; }
.numbered-list .item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}
.numbered-list .num {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal-2);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 0.95rem;
}
.numbered-list h3 { margin: 0 0 4px; font-family: var(--font-sans); font-size: 1.02rem; }
.numbered-list p { margin: 0; color: var(--ink-3); font-size: 0.95rem; }
