/* ═══════════════════════════════════════════════════════════════
   AVENIX HIS — Design System v2 (2026)
   Premium Enterprise Clinic OS · Dark-first, light-ready
═══════════════════════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  /* Surfaces (dark default) */
  --bg-0: #070a12;
  --bg-1: #0b101c;
  --bg-2: #111827;
  --card: #121a2b;
  --card-2: #18223a;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);

  /* Text */
  --text: #eef3ff;
  --text-soft: #aab5cf;
  --text-mute: #6c7a9c;

  /* Brand */
  --teal: #0fb9a6;
  --teal-deep: #0d9488;
  --blue: #0ea5e9;
  --emerald: #10b981;
  --gold: #d4af37;
  --gold-lt: #f0d486;
  --red: #ef4444;
  --orange: #f59e0b;
  --purple: #8b5cf6;

  /* Semantic */
  --accent: var(--teal);
  --grad-brand: linear-gradient(135deg, #0ea5e9 0%, #0fb9a6 50%, #10b981 100%);
  --grad-gold: linear-gradient(135deg, #b8902c, #f0d486 45%, #b8902c);
  --grad-card: linear-gradient(160deg, rgba(14,165,233,.07), rgba(16,185,129,.03));

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px;

  /* Shadow */
  --sh-sm: 0 2px 10px rgba(0,0,0,.25);
  --sh-md: 0 10px 36px rgba(0,0,0,.42);
  --sh-lg: 0 28px 80px rgba(0,0,0,.55);
  --sh-glow: 0 0 60px rgba(15,185,166,.18);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.4,.5,1);

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}

[data-theme="light"] {
  --bg-0: #f3f6fd;
  --bg-1: #eef3fc;
  --bg-2: #e6edfa;
  --card: #ffffff;
  --card-2: #f5f8ff;
  --border: rgba(15,23,42,.10);
  --border-strong: rgba(15,23,42,.18);
  --text: #0d1526;
  --text-soft: #3f4d68;
  --text-mute: #6b7791;
  --grad-card: linear-gradient(160deg, rgba(14,165,233,.06), rgba(16,185,129,.03));
  --sh-sm: 0 2px 10px rgba(15,23,42,.06);
  --sh-md: 0 14px 40px rgba(15,23,42,.10);
  --sh-lg: 0 28px 70px rgba(15,23,42,.14);
  --sh-glow: 0 0 50px rgba(15,185,166,.14);
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; max-width: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ─── Typography helpers ─── */
.serif { font-family: var(--font-serif); }
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px,6vw,64px); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 100px;
  background: rgba(15,185,166,.06);
}
.section-title {
  font-size: clamp(1.85rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -.025em; margin-bottom: 16px;
}
.section-desc { color: var(--text-soft); font-size: clamp(1rem,1.6vw,1.15rem); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .98rem; padding: 13px 24px; border-radius: 100px;
  transition: transform .2s var(--spring), box-shadow .25s var(--ease), background .25s var(--ease);
  min-height: 46px; white-space: nowrap;
}
.btn i { font-size: 1.15rem; }
.btn-primary { background: var(--grad-brand); color: #04121a; box-shadow: 0 8px 26px rgba(15,185,166,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,185,166,.46); }
.btn-gold { background: var(--grad-gold); color: #2a1e05; box-shadow: 0 8px 24px rgba(212,175,55,.3); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--teal); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 9px 18px; font-size: .9rem; min-height: 40px; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; min-height: 54px; }
.btn-block { display: flex; width: 100%; }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--sh-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; }
.logo img, .logo-img {
  width: 38px; height: 38px; object-fit: cover; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--bg-2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); flex-shrink: 0;
}
.logo-name { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.nav { display: flex; gap: 6px; }
.nav a {
  font-size: .92rem; font-weight: 600; color: var(--text-soft);
  padding: 8px 14px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
[data-theme="light"] .nav a:hover { background: rgba(15,23,42,.05); }
.nav a.hl { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 100px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-soft); transition: all .2s;
  font-size: 1.1rem;
}
.icon-btn:hover { color: var(--text); border-color: var(--teal); }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: 38px; padding: 0 13px; gap: 6px;
  border-radius: 100px; border: 1px solid var(--border);
  background: var(--card); color: var(--text-soft);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
}
.lang-btn i { font-size: 1.05rem; color: var(--teal); }
.lang-btn #lang-text { font-weight: 700; font-size: .82rem; line-height: 1; text-transform: uppercase; }
.lang-btn:hover { color: var(--text); border-color: var(--teal); box-shadow: 0 2px 10px rgba(15,185,166,.18); }
.menu-toggle { display: none; }
.scroll-progress { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--grad-brand); transition: width .1s linear; }

/* ─── Hero ─── */
.hero { position: relative; padding-top: 120px; padding-bottom: 70px; overflow: hidden; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; pointer-events: none;
}
.hero-glow.g1 { width: 480px; height: 480px; background: rgba(14,165,233,.4); top: -120px; left: -100px; }
.hero-glow.g2 { width: 420px; height: 420px; background: rgba(16,185,129,.32); bottom: -120px; right: -80px; }
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
.urgency-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px; background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25); color: var(--text-soft); margin-bottom: 22px;
}
.urgency-pill i { color: var(--orange); }
.hero-title {
  font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.06;
  letter-spacing: -.03em; margin-bottom: 20px;
}
.hero-title .em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.hero-desc { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--text-soft); max-width: 540px; margin-bottom: 26px; }

.ticker {
  background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 26px; margin-bottom: 26px;
}
.ticker-label { font-size: .82rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ticker-display { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.ticker-amount {
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--red);
}
.ticker-cur { font-size: 1.6rem; font-weight: 700; color: var(--red); }
.ticker-unit { font-size: .92rem; color: var(--text-soft); }
.ticker-method { font-size: .78rem; color: var(--text-mute); margin-top: 10px; line-height: 1.5; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--text-soft); font-weight: 600; }
.trust-item i { color: var(--emerald); font-size: 1.05rem; }

/* Hero visual — mini dashboard */
.hero-visual { position: relative; }
.mini-db {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden; position: relative;
}
.mini-db-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--card-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mini-db-title { font-size: .82rem; font-weight: 700; margin-left: 6px; color: var(--text-soft); }
.mini-live { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--emerald); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.mini-db-body { padding: 18px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.mini-kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; }
.mini-kpi-val { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-kpi-val.accent { color: var(--emerald); }
.mini-kpi-lbl { font-size: .68rem; color: var(--text-mute); display: block; margin-top: 2px; }
.mini-kpi-trend { font-size: .68rem; font-weight: 700; }
.mini-kpi-trend.up { color: var(--emerald); } .mini-kpi-trend.neutral { color: var(--text-mute); }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-bottom: 6px; }
.mini-bar { flex: 1; background: linear-gradient(to top, var(--teal-deep), var(--teal)); border-radius: 4px 4px 0 0; opacity: .55; transition: opacity .3s; }
.mini-bar.active { opacity: 1; box-shadow: 0 0 14px rgba(15,185,166,.5); }
.mini-bar.projected { background: repeating-linear-gradient(45deg, var(--text-mute), var(--text-mute) 3px, transparent 3px, transparent 6px); opacity: .4; }
.mini-chart-lbl { font-size: .7rem; color: var(--text-mute); text-align: center; }
.mini-alerts { margin-top: 14px; display: grid; gap: 8px; }
.mini-alert { display: flex; align-items: center; gap: 8px; font-size: .78rem; padding: 8px 11px; border-radius: var(--r-sm); }
.mini-alert.warn { background: rgba(245,158,11,.1); color: var(--orange); }
.mini-alert.ok { background: rgba(16,185,129,.1); color: var(--emerald); }
.hero-float {
  position: absolute; bottom: -22px; left: -22px; z-index: 3;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  box-shadow: var(--sh-md); max-width: 240px;
}
.hero-float-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(16,185,129,.14); color: var(--emerald); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.hero-float-name { font-weight: 800; font-size: .88rem; }
.hero-float-sub { font-size: .72rem; color: var(--text-mute); }

/* ─── Trust stats bar ─── */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-1); }
.stats-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(16px,4vw,40px); padding: 26px 0; }
.stat { text-align: center; max-width: 180px; }
.stat-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat-num .suf { font-size: 1rem; color: var(--text-soft); }
.stat-num.txt { font-size: 1.25rem; color: var(--teal); }
.stat-lbl { font-size: .76rem; color: var(--text-mute); margin-top: 2px; line-height: 1.4; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* ─── Gallery ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap { position: absolute; left: 14px; bottom: 12px; font-weight: 700; font-size: .92rem; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); z-index: 2; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.gallery-label { text-align: center; color: var(--text-mute); font-size: .85rem; margin-top: 18px; }

/* ─── Loss calculator ─── */
.loss-wrap { display: grid; grid-template-columns: 1.3fr .85fr; gap: 28px; align-items: start; }
.leaks { display: grid; gap: 14px; }
.leak {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px;
  transition: border-color .25s;
}
.leak:hover { border-color: var(--border-strong); }
.leak-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.leak-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.leak-ic.red { background: rgba(239,68,68,.13); color: var(--red); }
.leak-ic.orange { background: rgba(245,158,11,.13); color: var(--orange); }
.leak-ic.purple { background: rgba(139,92,246,.13); color: var(--purple); }
.leak-ic.blue { background: rgba(14,165,233,.13); color: var(--blue); }
.leak-ic.teal { background: rgba(15,185,166,.13); color: var(--teal); }
.leak-info h4 { font-size: .98rem; font-weight: 700; }
.leak-info p { font-size: .8rem; color: var(--text-mute); }
.leak-amount { font-weight: 800; font-size: 1.05rem; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px;
  background: var(--bg-2); outline: none; cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-brand); border: 3px solid var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: pointer;
}
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); border: 3px solid var(--card); cursor: pointer; }
.slider-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--text-mute); margin-top: 7px; }

.loss-result {
  position: sticky; top: 90px; background: linear-gradient(165deg, var(--card-2), var(--card));
  border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: 28px 26px; box-shadow: var(--sh-md);
}
.lr-label { font-size: .82rem; color: var(--text-mute); font-weight: 600; }
.lr-total { font-size: clamp(2rem,5vw,2.8rem); font-weight: 800; color: var(--red); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lr-year { font-size: .88rem; color: var(--text-soft); margin-bottom: 18px; }
.lr-div { height: 1px; background: var(--border); margin: 18px 0; }
.lr-save-label { font-size: .82rem; color: var(--text-mute); font-weight: 600; }
.lr-save { font-size: clamp(1.8rem,4.5vw,2.5rem); font-weight: 800; color: var(--emerald); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lr-permonth { font-size: .82rem; color: var(--text-soft); }
.lr-roi { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 8px 14px; border-radius: 100px; background: rgba(16,185,129,.12); color: var(--emerald); font-weight: 700; font-size: .85rem; }
.loss-result .btn { margin-top: 18px; }

/* ─── Features (alternating) ─── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; margin-bottom: clamp(48px,7vw,90px); }
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-visual { order: 2; }
.feature-visual {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border);
  background: var(--grad-card); box-shadow: var(--sh-md); aspect-ratio: 16/11;
  display: grid; place-items: center;
}
.feature-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--teal); padding: 6px 13px; border-radius: 100px; background: rgba(15,185,166,.08); border: 1px solid var(--border); margin-bottom: 14px; }
.feature-title { font-size: clamp(1.4rem,2.6vw,1.85rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin-bottom: 12px; }
.feature-desc { color: var(--text-soft); margin-bottom: 18px; }
.feature-bullets { display: grid; gap: 10px; margin-bottom: 22px; }
.f-bullet { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.f-bullet i { color: var(--emerald); font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.feature-metric { display: flex; align-items: baseline; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.metric-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.feature:nth-child(1) .metric-num { color: var(--blue); }
.feature:nth-child(2) .metric-num { color: var(--red); }
.feature:nth-child(3) .metric-num { color: var(--emerald); }
.feature:nth-child(4) .metric-num { color: var(--gold); }
.metric-lbl { font-size: .85rem; color: var(--text-mute); }

/* Feature mock visuals (CSS-built, no external images) */
.fmock { width: 86%; }
.fmock-row { display: flex; gap: 8px; margin-bottom: 8px; }
.fmock-card { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 11px; }
.fmock-num { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.fmock-lbl { font-size: .62rem; color: var(--text-mute); }
.fmock-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.fmock-bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--grad-brand); opacity: .7; }
.fmock-line { height: 9px; border-radius: 100px; background: var(--bg-2); margin: 7px 0; }
.fmock-line.s { width: 60%; }
.fmock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 100px; }
.fmock-pill.ok { background: rgba(16,185,129,.14); color: var(--emerald); }
.fmock-pill.warn { background: rgba(245,158,11,.14); color: var(--orange); }

/* ─── Demo ─── */
.demo-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--text-soft); padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--card); }
.demo-hint i { color: var(--teal); }
.demo-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 14px; scrollbar-width: none; margin-bottom: 8px; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600;
  padding: 10px 16px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-soft);
  background: var(--card); transition: all .2s;
}
.demo-tab:hover { color: var(--text); border-color: var(--border-strong); }
.demo-tab.active { background: var(--grad-brand); color: #04121a; border-color: transparent; box-shadow: 0 6px 18px rgba(15,185,166,.3); }
.demo-tab i { font-size: 1.1rem; }

.demo-window {
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.demo-chrome { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--card-2); }
.demo-addr { display: flex; align-items: center; gap: 6px; margin: 0 auto; font-size: .78rem; color: var(--text-mute); background: var(--bg-2); padding: 5px 14px; border-radius: 100px; }
.demo-addr i { color: var(--teal); }
.demo-live { display: flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; color: var(--emerald); }
.demo-body { padding: clamp(16px,3vw,30px); min-height: 380px; }
.demo-module { display: none; animation: fadeUp .4s var(--ease); }
.demo-module.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.demo-ctx { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-soft); background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 18px; }
.demo-ctx i { color: var(--teal); font-size: 1.2rem; flex-shrink: 0; }

/* Demo screens (generic UI primitives) */
.scr-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.scr-sub { font-size: .8rem; color: var(--text-mute); margin-bottom: 18px; }
.scr-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; margin-bottom: 18px; }
.scr-kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.scr-kpi.gold { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.25); }
.scr-kpi.green { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.25); }
.scr-kpi-lbl { font-size: .66rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.scr-kpi-val { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scr-kpi-val.g { color: var(--gold); } .scr-kpi-val.e { color: var(--emerald); }
.scr-kpi-sub { font-size: .72rem; margin-top: 2px; }
.scr-kpi-sub.up { color: var(--emerald); }
.scr-wf { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.scr-wf-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.scr-wf-bar { width: 100%; border-radius: 5px 5px 0 0; }
.scr-wf-bar.b { background: var(--blue); } .scr-wf-bar.r { background: var(--red); opacity: .8; } .scr-wf-bar.g { background: var(--emerald); }
.scr-wf-lbl { font-size: .66rem; color: var(--text-mute); }
.scr-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.scr-table th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 700; }
.scr-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.scr-table tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.tag.ok { background: rgba(16,185,129,.14); color: var(--emerald); }
.tag.low { background: rgba(245,158,11,.14); color: var(--orange); }
.tag.b { background: rgba(14,165,233,.14); color: var(--blue); }
.scr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:640px){ .scr-grid2 { grid-template-columns: 1fr; } }

/* Kanban (journey) */
.kanban { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.kan-col { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px; min-height: 150px; }
.kan-head { font-size: .72rem; font-weight: 700; color: var(--text-soft); margin-bottom: 10px; display: flex; justify-content: space-between; }
.kan-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 7px; font-size: .76rem; font-weight: 600; }
.kan-card small { display: block; color: var(--text-mute); font-weight: 400; font-size: .68rem; }
@media(max-width:760px){ .kanban { grid-template-columns: repeat(5, 150px); overflow-x: auto; } }

/* Zalo phone mock */
.zalo-mock { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
@media(max-width:680px){ .zalo-mock { grid-template-columns: 1fr; justify-items: center; } }
.phone { width: 250px; border-radius: 32px; border: 8px solid #1a2336; background: var(--bg-0); box-shadow: var(--sh-lg); overflow: hidden; }
.phone-notch { height: 22px; background: #1a2336; position: relative; }
.phone-notch::after { content:""; position:absolute; width:80px; height:18px; background:#1a2336; border-radius:0 0 14px 14px; left:50%; transform:translateX(-50%); top:0; }
.phone-screen { background: var(--card); padding: 16px; }
.phone-hd { background: var(--grad-brand); border-radius: 14px; padding: 14px; color: #04121a; margin-bottom: 12px; }
.phone-hd-name { font-weight: 800; font-size: .9rem; }
.phone-hd-pts { font-size: .72rem; opacity: .8; }
.phone-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.phone-card-lbl { font-size: .66rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }
.phone-card-val { font-weight: 700; font-size: .88rem; }
.phone-nav { display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid var(--border); }
.phone-nav i { font-size: 1.2rem; color: var(--text-mute); }
.phone-nav i.on { color: var(--teal); }
.zalo-benefits { display: grid; gap: 14px; }
.zalo-benefit { display: flex; gap: 12px; }
.zalo-benefit i { font-size: 1.4rem; color: var(--teal); flex-shrink: 0; }
.zalo-benefit h4 { font-size: .95rem; font-weight: 700; }
.zalo-benefit p { font-size: .85rem; color: var(--text-soft); }

/* ─── Story / scenarios ─── */
.story-title-row { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.story-title-row h2 { font-size: clamp(1.85rem,4vw,2.9rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.14; }
.story-title-row h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.story-featured { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(22px,3vw,36px); margin-bottom: 22px; }
.story-visual { background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.story-avatar { width: 56px; height: 56px; border-radius: 16px; background: rgba(15,185,166,.12); color: var(--teal); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px; }
.arc { padding: 14px 16px; border-radius: var(--r-md); margin-bottom: 10px; }
.arc.problem { background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.18); }
.arc.solution { background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.18); }
.arc-label { display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.arc.problem .arc-label { color: var(--red); }
.arc.solution .arc-label { color: var(--emerald); }
.arc-text { font-size: .86rem; color: var(--text-soft); }
.story-quote { font-family: var(--font-serif); font-size: clamp(1.15rem,2.2vw,1.5rem); line-height: 1.4; font-style: italic; margin-bottom: 22px; }
.story-person { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.story-bar { width: 4px; height: 38px; border-radius: 100px; background: var(--grad-brand); }
.story-name { font-weight: 700; font-size: .92rem; }
.story-illus { font-size: .68rem; color: var(--text-mute); background: var(--bg-2); padding: 2px 8px; border-radius: 100px; margin-left: 6px; font-weight: 600; }
.story-role { font-size: .8rem; color: var(--text-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-soft); }
.chip i { color: var(--teal); }
.story-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--teal); font-size: .92rem; }
.story-link:hover { gap: 11px; }
.story-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.story-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.story-card-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.story-card-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(15,185,166,.1); color: var(--teal); display: grid; place-items: center; font-size: 1.3rem; }
.story-card-quote { font-size: .98rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 18px; }
.arc-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .85rem; color: var(--text-soft); }
.arc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.arc-dot.red { background: var(--red); } .arc-dot.green { background: var(--emerald); }
.story-note { text-align: center; color: var(--text-mute); font-size: .85rem; margin-top: 28px; }
.story-note a { color: var(--teal); font-weight: 700; }

/* ─── Pricing ─── */
.pcb { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; max-width: 940px; margin: 0 auto 36px; }
.pcb-item { text-align: center; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card); }
.pcb-item.hl { border-color: var(--teal); background: var(--grad-card); box-shadow: var(--sh-glow); }
.pcb-label { font-size: .78rem; color: var(--text-mute); font-weight: 600; }
.pcb-price { display: block; font-weight: 800; font-size: 1.05rem; margin: 4px 0; }
.pcb-price.low { color: var(--text-soft); } .pcb-price.mid { color: var(--teal); } .pcb-price.high { color: var(--text-soft); }
.pcb-note { font-size: .7rem; color: var(--text-mute); }
.pcb-arrow { color: var(--text-mute); }
@media(max-width:760px){ .pcb { grid-template-columns: 1fr; } .pcb-arrow { display: none; } }

.price-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 40px; }
.toggle-lbl { font-weight: 600; font-size: .92rem; color: var(--text-soft); }
.toggle-save { font-size: .7rem; font-weight: 700; color: var(--emerald); background: rgba(16,185,129,.12); padding: 3px 9px; border-radius: 100px; margin-left: 6px; }
.switch { position: relative; width: 52px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.track { position: absolute; inset: 0; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 100px; transition: .3s; }
.thumb { position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--teal); transition: .3s var(--spring); }
.switch input:checked + .track { background: rgba(15,185,166,.2); }
.switch input:checked + .track .thumb { left: 27px; }

.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px 26px; position: relative; transition: transform .3s var(--spring), border-color .3s; }
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card.popular { border-color: var(--teal); box-shadow: var(--sh-glow); }
.pc-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: var(--grad-brand); color: #04121a; font-weight: 800; font-size: .74rem; padding: 6px 16px; border-radius: 100px; white-space: nowrap; }
.pc-tier { font-size: .85rem; font-weight: 800; letter-spacing: .1em; color: var(--teal); }
.price-card.enterprise .pc-tier { color: var(--gold); }
.pc-tagline { font-size: 1.05rem; font-weight: 700; margin: 6px 0 10px; letter-spacing: -.01em; }
.pc-target { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-mute); margin-bottom: 20px; }
.pc-target i { color: var(--text-soft); }
.pc-was { font-size: .85rem; color: var(--text-mute); text-decoration: line-through; }
.pc-now { display: flex; align-items: baseline; gap: 2px; }
.pc-now-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pc-cur { font-size: 1.1rem; font-weight: 700; color: var(--text-soft); }
.pc-period { font-size: .8rem; color: var(--text-mute); margin-bottom: 20px; }
.price-card .btn { width: 100%; margin-bottom: 22px; }
.pc-feats { display: grid; gap: 10px; }
.pc-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; }
.pc-feats li i { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.pc-feats li.yes i { color: var(--emerald); }
.pc-feats li.no { color: var(--text-mute); } .pc-feats li.no i { color: var(--text-mute); }
.pc-feats li.star i { color: var(--gold); }

.guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.g-card { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.g-badge { width: 48px; height: 48px; border-radius: 14px; background: rgba(16,185,129,.12); color: var(--emerald); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.g-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.g-card p { font-size: .86rem; color: var(--text-soft); }

/* ─── Why table ─── */
.why-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.why-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.why-table th, .why-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.why-table thead th { background: var(--card-2); font-size: .85rem; font-weight: 700; }
.why-table th i { color: var(--text-mute); }
.why-av-col { background: var(--grad-card); color: var(--teal); font-weight: 800; }
.why-table td:first-child { font-weight: 600; font-size: .9rem; }
.why-cell { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; }
.why-no { color: var(--text-mute); } .why-no i { color: var(--red); }
.why-partial { color: var(--text-soft); } .why-partial i { color: var(--orange); }
.why-yes { color: var(--emerald); font-weight: 600; } .why-yes i { color: var(--emerald); }
.why-table td.av { background: rgba(15,185,166,.04); }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: start; }
.contact-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 100px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); color: var(--orange); margin-bottom: 18px; }
.wyg { margin: 24px 0; display: grid; gap: 12px; }
.wyg-title { font-weight: 700; margin-bottom: 4px; }
.wyg-item { display: flex; align-items: flex-start; gap: 11px; font-size: .92rem; color: var(--text-soft); }
.wyg-item i { font-size: 1.3rem; flex-shrink: 0; }
.contact-details { display: grid; gap: 14px; margin-top: 24px; }
.cd-item { display: flex; align-items: center; gap: 13px; }
.cd-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; color: var(--teal); font-size: 1.2rem; flex-shrink: 0; }
.cd-item h4 { font-size: .78rem; color: var(--text-mute); font-weight: 600; }
.cd-item p { font-weight: 700; }
.legal-note { font-size: .76rem; color: var(--text-mute); margin-top: 18px; }

.form-card { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: clamp(24px,3vw,34px); box-shadow: var(--sh-md); }
.form-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-soft); margin-bottom: 7px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text); transition: border-color .2s; min-height: 46px;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); outline: none; }
.fg textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-trust { text-align: center; font-size: .8rem; color: var(--text-mute); margin-top: 12px; }

/* ─── FAQ ─── */
.faq-grid { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--border-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 18px 22px; font-weight: 700; font-size: .98rem; }
.faq-q i { transition: transform .3s var(--ease); color: var(--teal); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-soft); font-size: .9rem; line-height: 1.6; }

/* ─── Footer ─── */
.footer { background: var(--bg-1); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-tagline { color: var(--text-soft); font-size: .9rem; margin: 14px 0 18px; max-width: 280px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-soft); font-size: 1.1rem; transition: all .2s; }
.socials a:hover { color: var(--teal); border-color: var(--teal); }
.footer-col h4 { font-size: .85rem; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .85rem; color: var(--text-mute); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; font-size: .8rem; color: var(--text-mute); }

/* ─── Modal ─── */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.show { opacity: 1; visibility: visible; }
.modal-card { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: 38px 32px; text-align: center; max-width: 420px; box-shadow: var(--sh-lg); transform: scale(.92); transition: transform .3s var(--spring); }
.modal.show .modal-card { transform: scale(1); }
.modal-ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(16,185,129,.14); color: var(--emerald); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px; }
.modal-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.modal-card p { color: var(--text-soft); margin-bottom: 22px; font-size: .92rem; }

/* ─── Chatbot ─── */
.chat-widget { position: fixed; bottom: 22px; right: 22px; z-index: 150; }
.chat-trigger { width: 58px; height: 58px; border-radius: 50%; background: var(--grad-brand); color: #04121a; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(15,185,166,.4); transition: transform .25s var(--spring); }
.chat-trigger:hover { transform: scale(1.08); }
.chat-window { position: absolute; bottom: 72px; right: 0; width: min(360px, calc(100vw - 44px)); background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transform-origin: bottom right; transition: all .28s var(--spring); }
.chat-window.show { opacity: 1; visibility: visible; transform: none; }
.chat-hd { display: flex; align-items: center; gap: 11px; padding: 16px; background: var(--grad-brand); color: #04121a; }
.chat-hd-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 1.2rem; }
.chat-hd-name { font-weight: 800; font-size: .92rem; }
.chat-hd-status { font-size: .72rem; opacity: .85; }
.chat-close { margin-left: auto; font-size: 1.3rem; color: #04121a; }
.chat-msgs { height: 320px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: .85rem; line-height: 1.5; }
.msg.bot { background: var(--bg-2); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--grad-brand); color: #04121a; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.chat-quick button { font-size: .76rem; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--border-strong); color: var(--text-soft); background: var(--bg-2); transition: all .2s; }
.chat-quick button:hover { border-color: var(--teal); color: var(--teal); }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 10px 14px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); color: #04121a; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }

/* ─── Sticky CTA ─── */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--card); border-top: 1px solid var(--border-strong); box-shadow: 0 -8px 30px rgba(0,0,0,.3); transform: translateY(100%); transition: transform .4s var(--spring); }
.sticky-cta.show { transform: none; }
.sticky-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.sticky-text { font-weight: 700; font-size: .92rem; }
.sticky-cta .btn { margin-left: auto; }
.sticky-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-mute); }

/* ─── Reveal animation ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero-grid, .loss-wrap, .feature, .feature.reverse .feature-visual,
  .story-featured, .story-secondary, .contact-grid, .guarantees { grid-template-columns: 1fr; }
  .feature.reverse .feature-visual { order: 0; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loss-result { position: static; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .stat-div { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .mini-kpis { grid-template-columns: 1fr; }
}

/* Mobile drawer nav */
.mobile-nav { position: fixed; inset: 70px 0 0; z-index: 99; background: var(--bg-0); padding: 24px var(--gut); display: none; flex-direction: column; gap: 6px; }
.mobile-nav.show { display: flex; }
.mobile-nav a { padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; font-size: 1.05rem; border: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
