/* AdProfit Calculator — Design System */

:root {
  --c-bg: #ffffff;
  --c-surface: #f8fafc;
  --c-surface-2: #f1f5f9;
  --c-border: #e2e8f0;
  --c-border-focus: #3b82f6;
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-3: #94a3b8;
  --c-primary: #2563eb;
  --c-primary-hover: #1d4ed8;
  --c-primary-light: #eff6ff;
  --c-accent: #10b981;
  --c-accent-hover: #059669;
  --c-accent-light: #ecfdf5;
  --c-danger: #ef4444;
  --c-danger-light: #fef2f2;
  --c-warning: #f59e0b;
  --c-warning-light: #fffbeb;
  --c-profit: #10b981;
  --c-loss: #ef4444;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-focus: 0 0 0 3px rgba(37,99,235,.2);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --max-w: 1200px;
  --max-w-content: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0f172a;
    --c-surface: #1e293b;
    --c-surface-2: #334155;
    --c-border: #334155;
    --c-text: #f8fafc;
    --c-text-2: #94a3b8;
    --c-text-3: #64748b;
    --c-primary-light: #1e3a5f;
    --c-accent-light: #052e16;
    --c-danger-light: #1c0a0a;
    --c-warning-light: #1c1306;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAPHY ─────────────────────────────── */
.h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.h4 { font-size: 1.125rem; font-weight: 600; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--c-text-2); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.75rem; }
.mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.text-primary { color: var(--c-primary); }
.text-accent { color: var(--c-accent); }
.text-muted { color: var(--c-text-2); }
.text-profit { color: var(--c-profit); }
.text-loss { color: var(--c-loss); }

/* ── LAYOUT ──────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-sm { max-width: var(--max-w-content); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: .75rem; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3rem); }

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  padding-block: .875rem;
}
@media (prefers-color-scheme: dark) {
  .nav { background: rgba(15,23,42,.92); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { font-weight: 800; font-size: 1.125rem; color: var(--c-text); display: flex; align-items: center; gap: .5rem; }
.nav-logo span { color: var(--c-primary); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--c-text-2); transition: color var(--t-fast); }
.nav-links a:hover { color: var(--c-primary); text-decoration: none; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: .9375rem; font-weight: 600;
  padding: .6875rem 1.5rem; border-radius: var(--r-md);
  border: none; cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,.3), 0 4px 12px rgba(37,99,235,.15);
}
.btn-primary:hover { background: var(--c-primary-hover); box-shadow: 0 2px 6px rgba(37,99,235,.4), 0 8px 20px rgba(37,99,235,.2); transform: translateY(-1px); text-decoration: none; }
.btn-accent {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 1px 3px rgba(16,185,129,.3), 0 4px 12px rgba(16,185,129,.15);
}
.btn-accent:hover { background: var(--c-accent-hover); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-light); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--c-text-2); }
.btn-ghost:hover { background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.btn-sm { font-size: .8125rem; padding: .4375rem 1rem; border-radius: var(--r-sm); }
.btn-lg { font-size: 1.0625rem; padding: .875rem 2rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }

/* ── CARDS ───────────────────────────────────── */
.card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--c-primary); transform: translateY(-2px); }
.card-highlight { border-color: var(--c-primary); background: var(--c-primary-light); }
.card-accent { border-color: var(--c-accent); background: var(--c-accent-light); }

/* ── FORM ELEMENTS ───────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--c-text); }
.form-hint { font-size: .75rem; color: var(--c-text-3); }
.form-input, .form-select {
  font-family: inherit; font-size: 1rem;
  padding: .625rem .875rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg); color: var(--c-text);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--c-border-focus);
  box-shadow: var(--shadow-focus);
}
.form-input-prefix { position: relative; }
.form-input-prefix .prefix {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  color: var(--c-text-2); font-weight: 600; pointer-events: none; font-size: .9375rem;
}
.form-input-prefix .form-input { padding-left: 2rem; }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }

/* ── RANGE SLIDER ────────────────────────────── */
.range-group { display: flex; flex-direction: column; gap: .25rem; }
.range-header { display: flex; justify-content: space-between; align-items: center; }
.range-value { font-size: .875rem; font-weight: 700; color: var(--c-primary); }
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--c-border); border-radius: var(--r-full); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  background: var(--c-primary); border-radius: 50%;
  cursor: pointer; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(37,99,235,.2); transform: scale(1.1); }

/* ── TOGGLE ──────────────────────────────────── */
.toggle-group { display: inline-flex; background: var(--c-surface-2); border-radius: var(--r-full); padding: 3px; gap: 2px; }
.toggle-btn {
  font-family: inherit; font-size: .8125rem; font-weight: 600;
  padding: .375rem .875rem; border-radius: var(--r-full);
  border: none; cursor: pointer; background: transparent; color: var(--c-text-2);
  transition: all var(--t-fast);
}
.toggle-btn.active { background: var(--c-bg); color: var(--c-primary); box-shadow: var(--shadow-sm); }

/* ── RESULT DISPLAY ──────────────────────────── */
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.result-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.25rem; text-align: center;
}
.result-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-3); margin-bottom: .25rem; }
.result-value {
  font-size: 1.75rem; font-weight: 800; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transition: all var(--t-slow);
}
.result-value.profit { color: var(--c-profit); }
.result-value.loss { color: var(--c-loss); }
.result-value.neutral { color: var(--c-primary); }
.result-sublabel { font-size: .75rem; color: var(--c-text-3); margin-top: .25rem; }
.result-highlight {
  grid-column: 1 / -1; background: var(--c-primary);
  color: #fff; border: none; padding: 1.5rem;
}
.result-highlight .result-label { color: rgba(255,255,255,.7); }
.result-highlight .result-value { color: #fff; font-size: 2.25rem; }
.result-highlight .result-sublabel { color: rgba(255,255,255,.7); }

/* ── CALC SECTION ────────────────────────────── */
.calc-wrapper {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.calc-header { margin-bottom: 2rem; }
.calc-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-3); margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--c-border); }
.calc-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── SCENARIO TABS ───────────────────────────── */
.scenario-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.scenario-tab {
  flex: 1; padding: .625rem; border-radius: var(--r-md);
  border: 1.5px solid var(--c-border); background: var(--c-bg);
  font-family: inherit; font-size: .875rem; font-weight: 600;
  color: var(--c-text-2); cursor: pointer;
  transition: all var(--t-fast);
}
.scenario-tab.active { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }
.scenario-tab:hover:not(.active) { border-color: var(--c-text-3); color: var(--c-text); }

/* ── COMPARISON TABLE ────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-3); padding: .5rem .75rem; text-align: left; border-bottom: 2px solid var(--c-border); }
.compare-table td { padding: .625rem .75rem; border-bottom: 1px solid var(--c-border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .winner { font-weight: 700; color: var(--c-accent); }
.compare-table .loser { color: var(--c-text-3); }
.compare-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 700; padding: .1875rem .5rem; border-radius: var(--r-full); }
.compare-badge.a { background: var(--c-primary-light); color: var(--c-primary); }
.compare-badge.b { background: var(--c-accent-light); color: var(--c-accent); }

/* ── HERO ────────────────────────────────────── */
.hero { padding-block: clamp(4rem, 8vw, 6rem); text-align: center; background: var(--c-primary-light); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 700; color: var(--c-primary); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1.25rem; background: var(--c-primary-light); padding: .375rem .875rem; border-radius: var(--r-full); border: 1px solid rgba(37,99,235,.2); }
.hero-title { margin-bottom: 1.25rem; }
.hero-title .highlight { color: var(--c-primary); position: relative; }
.hero-desc { max-width: 580px; margin-inline: auto; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--c-text-2); font-weight: 500; }
.trust-item svg { color: var(--c-accent); }

/* ── TOOL CARDS ──────────────────────────────── */
.tool-card {
  display: flex; flex-direction: column;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.5rem;
  text-decoration: none; color: inherit;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.tool-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-primary); transform: translateY(-3px); text-decoration: none; }
.tool-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.25rem; }
.tool-icon.blue { background: var(--c-primary-light); }
.tool-icon.green { background: var(--c-accent-light); }
.tool-icon.orange { background: var(--c-warning-light); }
.tool-icon.red { background: var(--c-danger-light); }
.tool-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.tool-card p { font-size: .875rem; color: var(--c-text-2); line-height: 1.5; flex: 1; }
.tool-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-border); }
.tool-tag { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-primary); background: var(--c-primary-light); padding: .1875rem .5rem; border-radius: var(--r-full); }
.tool-arrow { color: var(--c-text-3); transition: transform var(--t-fast); }
.tool-card:hover .tool-arrow { transform: translateX(4px); color: var(--c-primary); }

/* ── BREADCRUMB ──────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; font-size: .8125rem; color: var(--c-text-3); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-primary); text-decoration: none; }
.breadcrumb-sep { color: var(--c-border); }

/* ── BADGES ──────────────────────────────────── */
.badge { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; padding: .1875rem .625rem; border-radius: var(--r-full); }
.badge-blue { background: var(--c-primary-light); color: var(--c-primary); }
.badge-green { background: var(--c-accent-light); color: var(--c-accent); }
.badge-gray { background: var(--c-surface-2); color: var(--c-text-2); }

/* ── STAT BOXES ──────────────────────────────── */
.stat-box { text-align: center; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--c-primary); letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: .875rem; color: var(--c-text-2); margin-top: .375rem; }

/* ── FAQ ─────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 0; text-align: left;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--c-text);
  transition: color var(--t-fast);
}
.faq-question:hover { color: var(--c-primary); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--c-text-3); transition: transform var(--t-base); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--c-primary); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height var(--t-slow); }
.faq-answer-inner { padding-bottom: 1.125rem; color: var(--c-text-2); line-height: 1.7; }

/* ── BENCHMARK TABLE ─────────────────────────── */
.benchmark-table { width: 100%; border-collapse: collapse; }
.benchmark-table thead tr { background: var(--c-surface-2); }
.benchmark-table th { padding: .75rem 1rem; text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-2); }
.benchmark-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--c-border); font-size: .9rem; }
.benchmark-table tr:hover td { background: var(--c-surface); }
.benchmark-good { color: var(--c-accent); font-weight: 700; }
.benchmark-warn { color: var(--c-warning); font-weight: 700; }
.benchmark-bad { color: var(--c-danger); font-weight: 700; }

/* ── EMAIL CAPTURE ───────────────────────────── */
.email-section {
  background: var(--c-primary);
  border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3rem); color: #fff; text-align: center;
}
.email-section h2 { color: #fff; margin-bottom: .75rem; }
.email-section p { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; max-width: 480px; margin-inline: auto; margin-bottom: 1.5rem; }
.email-form { display: flex; gap: .5rem; max-width: 440px; margin-inline: auto; }
.email-input {
  flex: 1; padding: .6875rem 1rem; border-radius: var(--r-md); border: none;
  font-family: inherit; font-size: 1rem; outline: none;
  box-shadow: var(--shadow-focus);
  background: rgba(255,255,255,.95); color: var(--c-text);
}
.email-input:focus { background: #fff; }
@media (max-width: 480px) { .email-form { flex-direction: column; } }

/* ── FOOTER ──────────────────────────────────── */
.footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding-block: 2.5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .875rem; color: var(--c-text-2); }
.footer-links a:hover { color: var(--c-primary); text-decoration: none; }
.footer-copy { font-size: .8125rem; color: var(--c-text-3); }

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,.3); }
  70% { box-shadow: 0 0 0 10px rgba(37,99,235,.0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,.0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-up { animation: fadeUp var(--t-slow) both; }
.animate-up:nth-child(1) { animation-delay: .05s; }
.animate-up:nth-child(2) { animation-delay: .1s; }
.animate-up:nth-child(3) { animation-delay: .15s; }
.animate-up:nth-child(4) { animation-delay: .2s; }
.animate-up:nth-child(5) { animation-delay: .25s; }
.result-value.updated { animation: countUp .35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.btn-primary:focus-visible { animation: pulse-ring 1s ease-out; }
.skeleton {
  background: linear-gradient(90deg, var(--c-surface) 0%, var(--c-surface-2) 50%, var(--c-surface) 100%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-md);
}

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PROGRESS BAR ────────────────────────────── */
.progress-bar { height: 4px; background: var(--c-border); border-radius: var(--r-full); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: var(--r-full); transition: width var(--t-slow); }

/* ── TOOLTIP ─────────────────────────────────── */
.tooltip-wrap { position: relative; display: inline-flex; align-items: center; }
.tooltip-icon { width: 16px; height: 16px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-text-3); font-size: .625rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: help; margin-left: .25rem; }
.tooltip-text {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--c-text); color: #fff; font-size: .75rem; padding: .375rem .625rem;
  border-radius: var(--r-sm); white-space: nowrap; pointer-events: none; z-index: 10;
}
.tooltip-text::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--c-text); }
.tooltip-wrap:hover .tooltip-text { display: block; }

/* ── ALERT ───────────────────────────────────── */
.alert { display: flex; gap: .75rem; padding: .875rem 1rem; border-radius: var(--r-md); font-size: .9rem; }
.alert-success { background: var(--c-accent-light); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.alert-warning { background: var(--c-warning-light); color: #78350f; border: 1px solid rgba(245,158,11,.2); }
.alert-info { background: var(--c-primary-light); color: #1e40af; border: 1px solid rgba(37,99,235,.2); }

/* ── DIVIDER ─────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--c-border); }

/* ── RESPONSIVE UTILS ────────────────────────── */
.hide-mobile { display: block; }
.show-mobile { display: none; }
@media (max-width: 640px) { .hide-mobile { display: none; } .show-mobile { display: block; } }

/* ── PRINT ───────────────────────────────────── */
@media print {
  .nav, .email-section, .footer, .btn, .faq-item { display: none; }
  .calc-wrapper { box-shadow: none; border: 1px solid #ccc; }
  .result-value { color: #000 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
