/*
Theme Name: CalculaFit
Theme URI: https://calculafit.com
Author: CalculaFit
Author URI: https://calculafit.com
Description: Tema WordPress a medida para CalculaFit, un hub de calculadoras de salud y nutrición en español. Construido para SEO técnico (datos estructurados, silos de contenido, Core Web Vitals) y para presentar calculadoras interactivas con una identidad visual propia de "instrumento de medición".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calculafit
Tags: custom-background, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   DESIGN TOKENS
   Identity: "instrument panel" — the site is a set of measurement tools,
   so the visual language borrows from lab instruments / analog dials
   rather than generic cards. Tabular numerals, hairline rules, gauge
   arcs, and short instrument "tags" (BMI, TDEE, AGUA) instead of
   decorative 01/02/03 numbering.
   ========================================================================== */

:root {
  /* Color */
  --bg: #F3F4EE;              /* paper, cool sage-grey, not cream/terracotta */
  --surface: #FFFFFF;
  --surface-2: #ECEFE8;
  --ink: #16231C;             /* deep forest-charcoal */
  --muted: #5C6960;
  --line: #D8DBD1;
  --primary: #1F7A5C;         /* clinical green */
  --primary-dark: #163F31;
  --primary-tint: #E3F0EA;
  --accent: #FF5A36;          /* warm coral — needle / CTA */
  --accent-tint: #FFE7DF;
  --zone-under: #4FA3D1;
  --zone-normal: #1F7A5C;
  --zone-over: #E8A23A;
  --zone-obese: #D14B3D;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-data: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;

  /* Scale */
  --step-1: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --step0: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --step1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step3: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step4: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
  --container: 1180px;
  --shadow-card: 0 1px 2px rgba(22,35,28,0.04), 0 8px 24px -12px rgba(22,35,28,0.12);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step4); }
h2 { font-size: var(--step3); }
h3 { font-size: var(--step2); }
h4 { font-size: var(--step1); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

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

/* Eyebrow / instrument tag — short label naming the measurement, not a decorative number */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-data); font-size: var(--step-1); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary);
  background: var(--primary-tint); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,244,238,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.site-logo:hover { color: var(--ink); }
.site-logo__mark { width: 34px; height: 34px; flex: none; }
.site-logo__mark circle.dial { fill: none; stroke: var(--line); stroke-width: 3; }
.site-logo__mark circle.arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 62 100; transform-origin: center; transform: rotate(-90deg); }
.site-logo__mark line { stroke: var(--primary-dark); stroke-width: 3; stroke-linecap: round; }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink);
  font-size: var(--step-1); font-weight: 600; text-decoration: none;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface-2); color: var(--primary-dark); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .primary-nav { position: fixed; inset: 62px 0 0 0; background: var(--bg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease; overflow-y: auto; }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .primary-nav ul { flex-direction: column; padding: 16px 20px 40px; }
  .primary-nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #E44F2E; color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }

/* ==========================================================================
   HERO (home)
   ========================================================================== */

.hero { padding-block: 56px 40px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__eyebrow { margin-bottom: 16px; }
.hero h1 { max-width: 14ch; }
.hero__lede { font-size: var(--step1); color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero__stat b { display: block; font-family: var(--font-data); font-size: var(--step2); color: var(--primary-dark); }
.hero__stat span { font-size: var(--step-1); color: var(--muted); }

.hero__panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; box-shadow: var(--shadow-card); position: relative;
}
.hero__panel-label { font-family: var(--font-data); font-size: var(--step-1); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.hero__dial-row { display: flex; align-items: center; gap: 22px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GAUGE / DIAL (signature element used by the calculators + hero)
   ========================================================================== */

.gauge { position: relative; width: 168px; height: 168px; flex: none; }
.gauge svg { width: 100%; height: 100%; }
.gauge__track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.gauge__arc { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.gauge__value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge__number { font-family: var(--font-data); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.gauge__unit { font-size: var(--step-1); color: var(--muted); margin-top: 2px; }

.zone-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--step-1); color: var(--muted); margin-top: 14px; }
.zone-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zone-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ==========================================================================
   CALCULATOR GRID (home + archive of pillars)
   ========================================================================== */

.section { padding-block: 52px; }
.section--muted { background: var(--surface-2); }
.section__head { max-width: 62ch; margin-bottom: 34px; }
.section__head .tag { margin-bottom: 14px; }

.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow-card); transition: transform .14s ease, border-color .14s ease;
  height: 100%;
}
.calc-card:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--ink); }
.calc-card__tag { font-family: var(--font-data); font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.calc-card h3 { font-size: var(--step1); margin-bottom: 2px; }
.calc-card p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; flex-grow: 1; }
.calc-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--step-1); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.calc-card__cta { color: var(--accent); font-weight: 700; }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs { padding-block: 14px; font-size: var(--step-1); color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   PILLAR / CALCULATOR PAGE
   ========================================================================== */

.pillar-hero { padding-block: 34px 10px; }
.pillar-hero__grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pillar-hero h1 { max-width: 22ch; }
.pillar-hero__lede { color: var(--muted); font-size: var(--step1); max-width: 60ch; }

.calculator {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-card); overflow: hidden; margin-block: 30px;
}
.calculator__head { padding: 22px 28px; background: var(--primary-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calculator__head h2 { color: #fff; font-size: var(--step1); margin: 0; }
.calculator__head .tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.calculator__body { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .calculator__body { grid-template-columns: 1fr; } }

.field-group { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.field input[type="number"],
.field input[type="text"],
.field select {
  font-family: var(--font-body); font-size: 1rem; padding: 11px 12px; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--primary); background: var(--surface); }

.segmented { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); width: fit-content; }
.segmented button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: var(--step-1); font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.calc-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

.result-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); border-radius: var(--radius-m); padding: 24px; text-align: center; }
.result-panel__label { font-size: var(--step-1); color: var(--muted); }
.result-panel__note { font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
.result-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.result-table th, .result-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
.result-table th { color: var(--muted); font-weight: 600; }
.result-table td.num { font-family: var(--font-data); text-align: right; font-weight: 700; }

.food-table-tool .food-picker { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.food-picker select, .food-picker input { flex: 1; min-width: 120px; }

/* Article content area within pillar/support pages */
.content-block { max-width: 74ch; }
.content-block h2 { margin-top: 1.6em; }
.content-block h3 { margin-top: 1.3em; }
.content-block ul, .content-block ol { margin-bottom: 1.1em; }

.silo-nav {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 22px; margin-block: 40px;
}
.silo-nav h2 { font-size: var(--step1); }
.silo-nav__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
@media (max-width: 640px) { .silo-nav__list { grid-template-columns: 1fr; } }
.silo-nav__list a { display: flex; gap: 8px; padding: 8px 6px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: var(--step-1); }
.silo-nav__list a:hover { background: var(--surface-2); color: var(--primary-dark); }
.silo-nav__list a::before { content: '→'; color: var(--accent); flex: none; }
.silo-nav__list li[aria-current] a { font-weight: 700; color: var(--primary-dark); }

.faq { margin-block: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: var(--step0); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 10px; color: var(--muted); }

/* ==========================================================================
   ARTICLE / SUPPORT PAGE
   ========================================================================== */

.article-header { padding-block: 30px 6px; }
.article-header .tag { margin-bottom: 14px; }
.article-header h1 { max-width: 26ch; }
.article-meta { color: var(--muted); font-size: var(--step-1); margin-top: 10px; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 46px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.sidebar-card h2 { font-size: var(--step0); margin-bottom: 12px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-card a { display: block; padding: 7px 0; font-size: var(--step-1); text-decoration: none; color: var(--ink); border-bottom: 1px dashed var(--line); }
.sidebar-card li:last-child a { border-bottom: none; }
.sidebar-card a:hover { color: var(--primary); }
.sidebar-card .current { color: var(--primary-dark); font-weight: 700; }

.cta-card { background: var(--primary-dark); color: #fff; border-radius: var(--radius-m); padding: 22px; }
.cta-card h2 { color: #fff; font-size: var(--step0); }
.cta-card p { color: rgba(255,255,255,.8); font-size: var(--step-1); }
.cta-card .btn-accent { margin-top: 8px; width: 100%; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); padding-block: 44px 24px; margin-top: 60px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: var(--step-1); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; font-size: var(--step-1); }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.footer-disclaimer { max-width: 70ch; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ==========================================================================
   404 / MISC
   ========================================================================== */

.not-found { text-align: center; padding-block: 90px; }
.not-found .gauge { margin-inline: auto; }

/* Print */
@media print {
  .site-header, .site-footer, .sidebar, .calc-actions, .nav-toggle { display: none; }
}


/* ==========================================================================
   E-E-A-T: METHODOLOGY INFOGRAPHIC + HOW-IT-WORKS + BMI CHART
      ========================================================================== */
      
      .method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
      @media (max-width: 980px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
      @media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }
      .method-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-card); }
      .method-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 20px; }
      .method-card h3 { font-size: var(--step0); margin-bottom: 6px; }
      .method-card p { font-size: var(--step-1); color: var(--muted); margin-bottom: 0; }
      
      .steps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
      .step { flex: 1; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; text-align: center; box-shadow: var(--shadow-card); }
      .step__num { font-family: var(--font-data); font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
      .step__title { font-weight: 600; margin: 6px 0 4px; font-size: var(--step-1); }
      .step__desc { font-size: 0.8rem; color: var(--muted); }
      .step-arrow { font-size: 22px; color: var(--line); flex: none; }
      @media (max-width: 780px) { .step-arrow { display: none; } }
      
      .bmi-chart { margin-top: 30px; }
      .bmi-chart__bar { display: flex; width: 100%; height: 40px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
      .bmi-chart__seg { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-data); font-size: 0.72rem; font-weight: 700; }
      .bmi-chart__seg--under { background: var(--zone-under); flex: 14; }
      .bmi-chart__seg--normal { background: var(--zone-normal); flex: 26; }
      .bmi-chart__seg--over { background: var(--zone-over); flex: 20; }
      .bmi-chart__seg--obese { background: var(--zone-obese); flex: 40; }
      .bmi-chart__scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 6px; font-family: var(--font-data); }
      
      .eeat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
      @media (max-width: 980px) { .eeat-grid { grid-template-columns: repeat(2, 1fr); } }
      @media (max-width: 560px) { .eeat-grid { grid-template-columns: 1fr; } }
      .eeat-item { border-left: 3px solid var(--primary); padding: 4px 0 4px 14px; }
      .eeat-item strong { display: block; color: var(--primary-dark); font-family: var(--font-display); margin-bottom: 4px; }
      .eeat-item span { font-size: var(--step-1); color: var(--muted); }
      
      .sources-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
      .sources-list li { font-size: var(--step-1); color: var(--muted); padding-left: 18px; position: relative; }
      .sources-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
      
      /* ==========================================================================
         CARD DESIGN UPGRADE: icons, accent bar, hover motion
            ========================================================================== */
            
            .calc-card { position: relative; overflow: hidden; }
            .calc-card::before {
            	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
                	background: linear-gradient(90deg, var(--primary), var(--accent));
                    	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
                        }
                        .calc-card:hover::before { transform: scaleX(1); }
                        .calc-card:hover { box-shadow: 0 18px 40px -18px rgba(22,35,28,0.28); }
                        .calc-card__icon {
                        	width: 46px; height: 46px; border-radius: 12px; background: var(--primary-tint);
                            	display: flex; align-items: center; justify-content: center; font-size: 22px;
                                	margin-bottom: 2px; transition: background .16s ease, transform .16s ease;
                                    }
                                    .calc-card:hover .calc-card__icon { background: var(--accent-tint); transform: scale(1.08) rotate(-4deg); }
                                    .calc-card__tag { margin-top: 2px; }
                                    
                                    .method-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
                                    .method-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 18px 40px -18px rgba(22,35,28,0.24); }
                                    .method-card__icon { transition: transform .18s ease; }
                                    .method-card:hover .method-card__icon { transform: scale(1.1) rotate(-4deg); }
                                    
                                    .step { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
                                    .step:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 14px 32px -16px rgba(22,35,28,0.2); }
                                    
                                    .eeat-item { transition: transform .14s ease; display: flex; gap: 12px; align-items: flex-start; }
                                    .eeat-item:hover { transform: translateX(2px); }
                                    .eeat-item__icon { font-size: 22px; line-height: 1; flex: none; margin-top: 2px; }
                                    .eeat-item__body strong { display: block; color: var(--primary-dark); font-family: var(--font-display); margin-bottom: 4px; }
                                    .eeat-item__body span { font-size: var(--step-1); color: var(--muted); }