/* ============================================================
   IMXTODO — Design System
   Blue/slate brand palette from existing materials.
   Mobile-first, semantic HTML, GEO-optimized.
   ============================================================ */

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

:root {
  /* Brand */
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;

  /* Slate */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --text: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-400);
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --border: var(--slate-200);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Space */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px; --sp-4xl: 96px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ───────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-lg); }
.section { padding: var(--sp-4xl) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--slate-900); color: var(--slate-200); }
.section--blue { background: var(--blue-600); color: var(--white); }

/* ─── Typography ───────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-md);
}
.section-label::before { content: ''; display: inline-block; width: 24px; height: 2px; background: currentColor; }
.section--dark .section-label { color: var(--blue-400); }

.section-title { font-size: var(--text-3xl); font-weight: 700; line-height: 1.2; margin-bottom: var(--sp-md); }
.section-subtitle { font-size: var(--text-lg); color: var(--text-secondary); max-width: 640px; line-height: 1.6; }
.section--dark .section-subtitle { color: var(--slate-400); }
.section--blue .section-subtitle { color: rgba(255,255,255,0.85); }

@media (min-width: 768px) { .section-title { font-size: var(--text-4xl); } }

/* ─── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm);
  padding: 14px 28px; font-family: inherit; font-size: var(--text-base); font-weight: 600;
  line-height: 1; border: none; border-radius: var(--radius-full); cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn--secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--accent); background: var(--blue-50); }
.btn--white { background: var(--white); color: var(--blue-700); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn--whatsapp { background: #25D366; color: var(--white); }
.btn--whatsapp:hover { background: #1fb855; transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: var(--text-lg); }
.btn--sm { padding: 10px 20px; font-size: var(--text-sm); }
.btn--full { width: 100%; }

/* ─── Navigation ───────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: background 0.3s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { font-size: var(--text-xl); font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: var(--sp-sm); }
.nav__logo img { height: 40px; }
.nav__links { display: none; list-style: none; gap: var(--sp-lg); }
.nav__links a { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav__links a:hover { color: var(--accent); }
.nav__cta { font-size: var(--text-sm); font-weight: 600; color: var(--white); background: var(--accent); padding: 10px 20px; border-radius: var(--radius-full); transition: all 0.2s; }
.nav__cta:hover { background: var(--accent-hover); }
.nav__hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__hamburger span { width: 24px; height: 2px; background: var(--slate-700); transition: all 0.3s; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__hamburger { display: none; }
}

/* Mobile menu */
.nav__mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: var(--sp-lg); z-index: 999; }
.nav__mobile.open { display: block; }
.nav__mobile a { display: block; padding: var(--sp-md) 0; font-size: var(--text-base); color: var(--text-secondary); border-bottom: 1px solid var(--slate-100); }
.nav__mobile a.btn { color: var(--white); text-align: center; border-bottom: none; }

/* ─── Cards ────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-xl); transition: all 0.2s;
}
.card:hover { border-color: var(--blue-200); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--blue-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-md);
  color: var(--accent); font-size: 24px;
}
.card__title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--sp-sm); }
.card__text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* ─── Grid ─────────────────────────────────── */
.grid { display: grid; gap: var(--sp-lg); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ─── Forms ────────────────────────────────── */
.form-group { margin-bottom: var(--sp-md); }
.form-label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--sp-xs); color: var(--text); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: var(--text-base); transition: border 0.2s; background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-feedback { text-align: center; font-size: var(--text-sm); min-height: 24px; margin-top: var(--sp-sm); }

/* ─── Steps ────────────────────────────────── */
.steps { counter-reset: step; }
.step { display: flex; gap: var(--sp-lg); padding: var(--sp-xl) 0; border-bottom: 1px solid var(--slate-100); }
.step:last-child { border-bottom: none; }
.step__number {
  counter-increment: step; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-lg); color: var(--accent);
}
.step__number::before { content: counter(step); }
.step__content { flex: 1; }
.step__title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--sp-xs); }
.step__text { font-size: var(--text-sm); color: var(--text-secondary); }
.step__cost { display: inline-block; margin-top: var(--sp-sm); font-size: var(--text-xs); font-weight: 600; color: var(--blue-600); background: var(--blue-50); padding: 4px 12px; border-radius: var(--radius-full); }

/* ─── Footer ───────────────────────────────── */
.footer { background: var(--slate-900); color: var(--slate-400); padding: var(--sp-3xl) 0 var(--sp-xl); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-xl); }
.footer__brand { color: var(--white); font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--sp-sm); }
.footer__text { font-size: var(--text-sm); line-height: 1.6; max-width: 360px; }
.footer__links h4 { color: var(--white); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--sp-md); text-transform: uppercase; letter-spacing: 0.05em; }
.footer__links a { display: block; font-size: var(--text-sm); color: var(--slate-400); padding: 4px 0; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { margin-top: var(--sp-xl); padding-top: var(--sp-lg); border-top: 1px solid var(--slate-800); font-size: var(--text-xs); text-align: center; }

@media (min-width: 768px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ─── FAQ Accordion ────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; padding: var(--sp-lg) 0; font-family: inherit;
  font-size: var(--text-base); font-weight: 600; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.faq-q::after { content: '+'; font-size: var(--text-xl); color: var(--text-muted); transition: transform 0.3s; }
.faq-q.open::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-a__inner { padding: 0 0 var(--sp-lg) 0; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; }

/* ─── Hero ─────────────────────────────────── */
.hero { padding-top: calc(72px + var(--sp-3xl)); padding-bottom: var(--sp-3xl); }
.hero__title { font-size: var(--text-4xl); font-weight: 800; line-height: 1.1; margin-bottom: var(--sp-lg); }
.hero__subtitle { font-size: var(--text-xl); color: var(--text-secondary); margin-bottom: var(--sp-xl); max-width: 560px; line-height: 1.5; }
@media (min-width: 768px) { .hero__title { font-size: var(--text-5xl); } }

/* ─── Language Switcher ────────────────────── */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-size: 0.75rem;
}
.nav__lang-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.nav__lang-link:hover,
.nav__lang-link--active {
  color: var(--accent);
}
.nav__lang-sep {
  color: var(--text-secondary);
  opacity: 0.4;
}

/* ─── Floating WhatsApp ────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: white; }

/* ─── Calculator ───────────────────────────── */
.calc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-xl); }
.calc__step { display: none; }
.calc__step.active { display: block; }
.calc__progress { display: flex; gap: 4px; margin-bottom: var(--sp-lg); }
.calc__progress-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--slate-200); }
.calc__progress-bar.done { background: var(--accent); }
.calc__progress-bar.current { background: var(--blue-400); }

/* ─── Utilities ────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.hidden { display: none !important; }

/* ─── Schema highlight (GEO) ───────────────── */
.highlight-box {
  background: var(--blue-50); border-left: 4px solid var(--accent);
  padding: var(--sp-lg); border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--sp-lg) 0;
}
.highlight-box strong { color: var(--accent); }

/* ─── Calculator Extras ───────────────────── */
.calc__table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.calc__table th {
  background: var(--slate-50); text-align: left; padding: var(--sp-sm) var(--sp-md);
  font-weight: 600; font-size: var(--text-sm); color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.calc__table th.text-right { text-align: right; }
.calc__table td { padding: var(--sp-sm) var(--sp-md); border-top: 1px solid var(--slate-100); vertical-align: middle; }
.calc__table td.text-right { text-align: right; }
.calc__table input {
  width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: var(--text-sm); background: var(--white);
}
.calc__table input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.calc__table .calc__row-remove {
  background: none; border: none; color: var(--slate-400); cursor: pointer; font-size: var(--text-lg); padding: 4px 8px; line-height: 1;
}
.calc__table .calc__row-remove:hover { color: #ef4444; }

.calc__assumptions {
  background: var(--slate-50); padding: var(--sp-lg); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr; gap: var(--sp-md);
}
@media (min-width: 768px) { .calc__assumptions { grid-template-columns: 1fr 1fr; } }

.calc__blur { filter: blur(5px); user-select: none; pointer-events: none; }

.calc__lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.35); backdrop-filter: blur(2px); border-radius: var(--radius-lg); z-index: 2;
}
.calc__lock-icon {
  width: 48px; height: 48px; color: var(--slate-400); margin-bottom: var(--sp-sm);
}
.calc__lock-text { font-weight: 600; color: var(--slate-700); font-size: var(--text-base); }

.calc__disclaimer {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
  padding: var(--sp-md); display: flex; gap: var(--sp-sm); align-items: flex-start;
}
.calc__disclaimer-icon { flex-shrink: 0; width: 20px; height: 20px; color: #d97706; margin-top: 2px; }
.calc__disclaimer-text { font-size: var(--text-xs); color: var(--slate-700); line-height: 1.5; }
.calc__disclaimer-text strong { display: block; margin-bottom: 4px; }

@keyframes calc-spin { to { transform: rotate(360deg); } }
.calc__spinner {
  display: inline-block; width: 20px; height: 20px; border: 2px solid var(--slate-200);
  border-top-color: var(--accent); border-radius: 50%; animation: calc-spin 0.8s linear infinite;
}
.calc__spinner--lg { width: 64px; height: 64px; border-width: 4px; }

.calc__processing-line {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-sm); padding: var(--sp-sm) 0;
}
.calc__processing-line.done { color: #16a34a; }
.calc__processing-line.done .calc__processing-icon::before { content: '\2713'; font-weight: 700; }
.calc__processing-line.pending { opacity: 0.5; }

.calc__services { margin-top: var(--sp-xl); padding-top: var(--sp-xl); border-top: 1px solid var(--border); }
.calc__services-title { font-size: var(--text-2xl); font-weight: 600; margin-bottom: var(--sp-sm); }
.calc__services-subtitle { font-size: var(--text-base); color: var(--text-secondary); max-width: 640px; margin: 0 auto var(--sp-lg); }

.calc__result-row {
  display: flex; justify-content: space-between; padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--slate-200); font-size: var(--text-sm);
}
.calc__result-row span:first-child { color: var(--text-secondary); }
.calc__result-row span:last-child { font-weight: 600; }
.calc__result-total {
  display: flex; justify-content: space-between; padding: var(--sp-md) 0;
  font-size: var(--text-lg); font-weight: 700; color: var(--accent);
}

.calc__step-title { font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--sp-md); color: var(--text); }
.calc__step-subtitle { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--sp-lg); }

.calc__actions { display: flex; gap: var(--sp-md); margin-top: var(--sp-lg); }
.calc__actions .btn { flex: 1; }
@media (max-width: 767px) { .calc__actions { flex-direction: column; } }

/* ─── Tabs ──────────────────────────────────── */
.calc__tabs { display: flex; border-bottom: 2px solid var(--slate-200); margin-bottom: var(--sp-lg); }
.calc__tab {
  flex: 1; padding: var(--sp-md) var(--sp-lg); background: none; border: none; font-family: inherit;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.calc__tab:hover { color: var(--text-secondary); }
.calc__tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Drop Zone ────────────────────────────── */
.calc__dropzone {
  border: 2px dashed var(--slate-300); border-radius: var(--radius-lg); padding: var(--sp-3xl) var(--sp-xl);
  text-align: center; cursor: pointer; transition: all 0.2s;
}
.calc__dropzone:hover { border-color: var(--blue-400); background: var(--blue-50); }
.calc__dropzone.dragover { border-color: var(--accent); background: var(--blue-100); }
.calc__dropzone-icon { font-size: 48px; margin-bottom: var(--sp-md); color: var(--slate-400); }
.calc__dropzone-text { color: var(--slate-700); margin-bottom: var(--sp-xs); }
.calc__dropzone-hint { font-size: var(--text-xs); color: var(--text-muted); }

.calc__file-info {
  display: flex; align-items: center; gap: var(--sp-md); padding: var(--sp-md);
  background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius);
  margin-top: var(--sp-md);
}
.calc__file-info-name { font-weight: 600; font-size: var(--text-sm); }
.calc__file-info-size { font-size: var(--text-xs); color: var(--text-muted); }
.calc__file-info-status { margin-left: auto; font-size: var(--text-sm); color: var(--accent); }
.calc__file-delete {
  background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--slate-400); padding: 2px 6px; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s; flex-shrink: 0;
}
.calc__file-delete:hover { color: #ef4444; background: rgba(239,68,68,0.08); }

/* ─── Usage Counter ────────────────────────── */
.calc__usage { font-size: var(--text-xs); color: var(--text-muted); text-align: right; margin-bottom: var(--sp-sm); }

/* ─── Soft Email Gate ──────────────────────── */
.calc__soft-gate {
  background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius-lg);
  padding: var(--sp-xl); text-align: center; margin-bottom: var(--sp-lg);
}
.calc__soft-gate h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--sp-sm); }
.calc__soft-gate p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--sp-md); }
.calc__soft-gate-row { display: flex; gap: var(--sp-sm); max-width: 400px; margin: 0 auto; }
.calc__soft-gate-row input { flex: 1; }

/* ─── CTA Box (post-result) ────────────────── */
.calc__cta-box {
  background: linear-gradient(135deg, var(--blue-50), var(--slate-50));
  border: 2px solid var(--blue-200); border-radius: var(--radius-lg);
  padding: var(--sp-xl); text-align: center; margin-top: var(--sp-xl);
}
.calc__cta-box h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--sp-sm); color: var(--text); }
.calc__cta-box p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--sp-lg); max-width: 480px; margin-left: auto; margin-right: auto; }
.calc__cta-form { max-width: 480px; margin: 0 auto; text-align: left; }

.calc__upload-placeholder {
  border: 2px dashed var(--slate-300); border-radius: var(--radius-lg); padding: var(--sp-xl);
  text-align: center; color: var(--slate-400); opacity: 0.6; cursor: not-allowed;
}

.calc__error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: var(--sp-md); color: #991b1b; font-size: var(--text-sm); text-align: center;
  margin-top: var(--sp-md);
}

.calc__gate-check { display: flex; align-items: flex-start; gap: var(--sp-sm); margin-bottom: var(--sp-md); }
.calc__gate-check input[type="checkbox"] { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.calc__gate-check label { font-size: var(--text-sm); color: var(--text-secondary); cursor: pointer; line-height: 1.5; }

.calc__result-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--sp-lg); flex-wrap: wrap; gap: var(--sp-md);
}
.calc__result-header-left h4 { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.calc__result-header-left p { font-size: var(--text-sm); color: var(--text-secondary); }
.calc__result-header-right { text-align: right; }
.calc__result-header-right .calc__big-total { font-size: var(--text-2xl); font-weight: 700; color: var(--accent); }
.calc__result-header-right .calc__usd-equiv { font-size: var(--text-xs); color: var(--text-muted); }

.calc__add-row {
  background: none; border: none; color: var(--accent); font-size: var(--text-sm);
  font-weight: 600; cursor: pointer; padding: var(--sp-sm) 0; font-family: inherit;
}
.calc__add-row:hover { text-decoration: underline; }

.calc__product-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--sp-xs); line-height: 1.5; }

.calc__preview-box { background: var(--slate-50); padding: var(--sp-lg); border-radius: var(--radius-lg); position: relative; overflow: hidden; }

/* Table horizontal scroll on mobile */
.calc__table-wrap { overflow-x: auto; margin-bottom: var(--sp-lg); -webkit-overflow-scrolling: touch; }

/* ─── Mobile Responsive ───────────────────── */
@media (max-width: 767px) {
  /* Nav: only logo + hamburger visible */
  .nav__cta { display: none; }
  .nav__lang { display: none; }
  .nav__logo img { height: 32px !important; }
  .nav__inner { height: 60px; }

  /* Mobile menu: show its own lang switcher + CTA */
  .nav__mobile .nav__lang {
    display: flex;
    justify-content: center;
    font-size: var(--text-base);
    gap: 10px;
    padding: var(--sp-md) 0;
  }
  .nav__mobile { top: 60px; }

  /* Hero text sizing */
  .hero { padding-top: calc(60px + var(--sp-2xl)); padding-bottom: var(--sp-2xl); }
  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }

  /* Section titles */
  .section-title { font-size: var(--text-2xl); }
  .section { padding: var(--sp-3xl) 0; }

  /* Buttons: minimum tap target */
  .btn { min-height: 44px; padding: 12px 24px; }
  .btn--sm { min-height: 40px; padding: 10px 20px; }

  /* Cards/grids stacking */
  .grid--4 { grid-template-columns: 1fr; }

  /* Footer: single column, centered */
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__text { margin-left: auto; margin-right: auto; }

  /* Prevent horizontal scroll from any wide content */
  body { overflow-x: hidden; }
  .container { padding: 0 var(--sp-md); }

  /* Calculator form grid (email + whatsapp side by side -> stack) */
  .calc__cta-form div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* Steps: tighter on mobile */
  .step { gap: var(--sp-md); }
  .step__number { width: 40px; height: 40px; font-size: var(--text-base); }

  /* FAQ question text: prevent overflow */
  .faq-q { font-size: var(--text-sm); gap: var(--sp-sm); }

  /* WhatsApp float: slightly smaller on mobile */
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 28px; height: 28px; }

  /* Stats row — stack on small screens */
  .grid--3.text-center { grid-template-columns: 1fr; gap: var(--sp-lg); }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero__title { font-size: var(--text-2xl); }
  .section-title { font-size: var(--text-xl); }
  .calc__step-title { font-size: var(--text-lg); }

  /* CTA section buttons: stack vertically */
  .section--blue [style*="display:flex"] { flex-direction: column !important; align-items: center !important; }
}

/* ─── Print ────────────────────────────────── */
@media print {
  .nav, .footer, .wa-float, .btn, .calc__progress, .calc__services, .calc__actions, .calc__cta-box, .calc__soft-gate, .calc__usage { display: none !important; }
  .section { padding: var(--sp-lg) 0; }
  body { font-size: 12pt; }
  .calc__step { display: none !important; }
  #step-result { display: block !important; }
  .calc { border: none; box-shadow: none; padding: 0; }
  .calc__result-row, .calc__result-total { break-inside: avoid; }
}
