/* =========================================================
   POWER EMBEDDED — Design System
   Modern, premium SaaS landing site
   ========================================================= */

/* ─── Inter font loaded locally via css/inter.css in HTML ─── */

/* ══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ══════════════════════════════════════════════════════════ */
:root {
  /* Light theme — default */
  --bg:             #ffffff;
  --bg2:            #f4f7fd;
  --bg3:            #eaeff8;
  --card:           #ffffff;
  --card2:          #f8faff;
  --glass:          rgba(255, 255, 255, 0.92);
  --border:         #dde5f0;
  --border2:        #c3d1e8;
  --text:           #0d1b40;
  --text2:          #455880;
  --text3:          #8898b0;
  --primary:        #1255CC;
  --primary-light:  #1A6EE8;
  --primary-dark:   #0A3A9A;
  --accent:         #DBC41A;
  --accent-light:   #E8D420;
  --accent-dark:    #B8A414;
  --blue:           #2563eb;
  --blue-light:     #3b82f6;
  --green:          #059669;
  --green-light:    #10b981;
  --red:            #ef4444;
  --hero-bg:        #0B1E6A;
  --shadow:         0 1px 3px rgba(12, 30, 106, 0.05), 0 4px 14px rgba(12, 30, 106, 0.07);
  --shadow-lg:      0 4px 20px rgba(12, 30, 106, 0.10);
  --shadow-xl:      0 12px 40px rgba(12, 30, 106, 0.12);
  --glow:           0 0 0 1px var(--border2);
  --glow-accent:    0 0 16px rgba(219, 196, 26, 0.22);
  --glow-green:     0 0 16px rgba(5, 150, 105, 0.15);
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --nav-h:          64px;
  --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --bg:             #060a1a;
  --bg2:            #0b1028;
  --bg3:            #0f1535;
  --card:           #111836;
  --card2:          #172046;
  --glass:          rgba(17, 24, 54, 0.7);
  --border:         rgba(3, 169, 244, 0.18);
  --border2:        rgba(3, 169, 244, 0.35);
  --text:           #f0f4ff;
  --text2:          #9aa3c2;
  --text3:          #636e99;
  --primary:        #03A9F4;
  --primary-light:  #29B6F6;
  --primary-dark:   #0288D1;
  --accent:         #DBC41A;
  --accent-light:   #E8D420;
  --accent-dark:    #C6B00E;
  --blue:           #3b82f6;
  --blue-light:     #60a5fa;
  --green:          #10b981;
  --green-light:    #34d399;
  --hero-bg:        #060a1a;
  --shadow:         0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:      0 8px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl:      0 20px 80px rgba(0, 0, 0, 0.7);
  --glow:           0 0 32px rgba(3, 169, 244, 0.3);
  --glow-accent:    0 0 32px rgba(219, 196, 26, 0.35);
  --glow-green:     0 0 32px rgba(16, 185, 129, 0.3);
  --radius:         14px;
  --radius-lg:      22px;
  --radius-xl:      32px;
  --nav-h:          68px;
}

/* ══════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  transition: background var(--transition), color var(--transition);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Skip to content ── */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 10000;
  background: var(--primary); color: #fff; padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; border-radius: 4px; }

/* ══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 80px);
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section--alt { background: var(--bg2); }
.section--dark { background: var(--hero-bg); color: #f0f4ff; }
.section--dark .section-title { color: #ffffff; }
.section--dark .section-subtitle { color: rgba(240,244,255,0.72); }
[data-theme="dark"] .section--dark { background: var(--bg3); color: var(--text); }
[data-theme="dark"] .section--dark .section-title { color: var(--text); }
[data-theme="dark"] .section--dark .section-subtitle { color: var(--text2); }

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge--primary {
  background: rgba(18, 85, 204, 0.10);
  color: var(--primary);
  border: 1px solid rgba(18, 85, 204, 0.20);
}

.badge--accent {
  background: rgba(219, 196, 26, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(219, 196, 26, 0.25);
}
[data-theme="dark"] .badge--accent {
  color: var(--accent-light);
}

.badge--green {
  background: rgba(5, 150, 105, 0.10);
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.22);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary-light); }
.text-green { color: var(--green); }
.text-muted { color: var(--text2); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.btn:hover::before { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(18, 85, 204, 0.22);
}
.btn--primary:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(18, 85, 204, 0.32);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: #0d1b40;
  box-shadow: 0 2px 8px rgba(180, 158, 14, 0.28);
}
.btn--accent:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(180, 158, 14, 0.38);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--outline:hover {
  background: rgba(18, 85, 204, 0.06);
  border-color: var(--primary-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text2);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border2);
}

.btn--green {
  background: linear-gradient(135deg, #059669, var(--green));
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn--green:hover {
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 18px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.btn--xl { padding: 20px 44px; font-size: 18px; border-radius: var(--radius-lg); }

/* Shimmer effect on primary CTA */
.btn--shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite 1s;
}
@keyframes shimmer { 0%{left:-100%} 60%,100%{left:150%} }

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}

[data-theme="dark"] #navbar.scrolled {
  background: rgba(6, 10, 26, 0.88);
}

/* Navbar over dark hero — home page only (not scrolled) */
[data-page="home"] #navbar:not(.scrolled) .nav-links > a,
[data-page="home"] #navbar:not(.scrolled) .nav-group-btn,
[data-page="home"] #navbar:not(.scrolled) .nav-logo {
  color: rgba(255, 255, 255, 0.88);
}
[data-page="home"] #navbar:not(.scrolled) .nav-links > a:hover,
[data-page="home"] #navbar:not(.scrolled) .nav-group-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}
[data-page="home"] #navbar:not(.scrolled) .nav-powertuning {
  color: var(--accent-light) !important;
}
[data-page="home"] #navbar:not(.scrolled) .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
[data-page="home"] #navbar:not(.scrolled) .btn--outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.7);
}
/* Home: white logo before scroll (light theme only) */
[data-theme="light"][data-page="home"] #navbar:not(.scrolled) .nav-logo-img--light { display: none; }
[data-theme="light"][data-page="home"] #navbar:not(.scrolled) .nav-logo-img--dark  { display: block; }
/* Inner pages: primary blue nav links before scroll (light theme only) */
[data-theme="light"]:not([data-page="home"]) #navbar:not(.scrolled) .nav-links > a,
[data-theme="light"]:not([data-page="home"]) #navbar:not(.scrolled) .nav-group-btn {
  color: var(--primary);
}
[data-theme="light"]:not([data-page="home"]) #navbar:not(.scrolled) .nav-links > a:hover,
[data-theme="light"]:not([data-page="home"]) #navbar:not(.scrolled) .nav-group-btn:hover {
  color: var(--primary);
  background: rgba(18, 85, 204, 0.08);
}
/* Dark theme override (all pages) */
[data-theme="dark"] #navbar:not(.scrolled) .nav-links > a,
[data-theme="dark"] #navbar:not(.scrolled) .nav-group-btn,
[data-theme="dark"] #navbar:not(.scrolled) .nav-logo,
[data-theme="dark"] #navbar:not(.scrolled) .btn--outline {
  color: var(--text2);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-logo-img--light { display: block; }
.nav-logo-img--dark  { display: none; }
[data-theme="dark"] .nav-logo-img--light { display: none; }
[data-theme="dark"] .nav-logo-img--dark  { display: block; }

/* Footer always shows white logo */
.footer-brand .nav-logo-img--light { display: none; }
.footer-brand .nav-logo-img--dark  { display: block; }

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(18, 85, 204, 0.06); }

/* Dropdown nav group */
.nav-group { position: relative; }
.nav-group-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.nav-group-btn:hover { color: var(--text); background: rgba(18, 85, 204, 0.06); }
.nav-group-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-group:hover .nav-group-btn svg,
.nav-group:focus-within .nav-group-btn svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  padding-top: 16px;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 0.18s;
  z-index: 100;
}
[data-theme="dark"] .nav-dropdown { background: var(--card); }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text2);
  transition: all 0.15s;
}
.nav-dropdown a:hover { color: var(--text); background: rgba(18, 85, 204, 0.06); }
.nav-dropdown--wide { min-width: 300px; }
.nav-dropdown-sep { height: 1px; margin: 4px 8px; background: var(--border); }
.nav-dropdown-label {
  padding: 6px 12px 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
}
.nav-powertuning { color: var(--primary) !important; font-weight: 600; }
.nav-powertuning:hover { color: var(--primary-dark) !important; }

/* ─── Side toolbar (lang + theme, fixed right edge) ──────────── */
.side-toolbar {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 0;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 4px 16px rgba(12, 30, 106, 0.08);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .side-toolbar { background: var(--card); box-shadow: -4px 4px 20px rgba(0,0,0,0.25); }
.side-toolbar-divider {
  width: 20px;
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Lang/Theme controls (side-toolbar and mobile nav) */
.lang-btn {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.55;
  padding: 0;
}
.lang-btn .fi {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.lang-btn:hover  { opacity: 1; border-color: var(--border2); }
.lang-btn.active { opacity: 1; border-color: var(--primary); background: rgba(18, 85, 204, 0.10); }

.theme-toggle {
  background: none;
  border: 1.5px solid transparent;
  color: var(--text3);
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border2); color: var(--primary-light); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu btn */
#mobileMenuBtn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all 0.15s;
  flex-shrink: 0;
}
#mobileMenuBtn:hover { background: rgba(18, 85, 204, 0.06); }

/* Mobile nav drawer */
#mobileNav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}
#mobileNav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mob-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.15s;
}
.mob-nav-link:hover, .mob-nav-link:active { color: var(--text); background: rgba(18, 85, 204, 0.06); }
.mob-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mob-nav-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mob-nav-actions .btn { justify-content: center; }

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--hero-bg);
  color: #ffffff;
}

/* Animated gradient mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  top: -300px; left: -300px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  bottom: -200px; right: -150px;
  background: radial-gradient(circle, rgba(219,196,26,0.09) 0%, transparent 60%);
}

.hero-bg-blob3 { display: none; }

/* Subtle grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  padding: clamp(64px, 8vh, 120px) 0;
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(219,196,26,0.15);
  border: 1px solid rgba(219,196,26,0.35);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 24px;
}
.hero-badge::before { content: '✦'; font-size: 10px; }

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.50);
  font-size: 13px;
  font-weight: 500;
}
.hero-trust-icon {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-trust-dots { color: var(--accent); }

.hero-trust-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hero-trust-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(11,16,40,0.7);
  margin-left: -8px;
}
.hero-trust-avatar:first-child { margin-left: 0; }

/* Hero visual / mockup */
.hero-visual {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-mockup {
  width: 100%;
  max-width: 1049px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.mockup-header {
  background: var(--card2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dot--red   { background: #ef4444; }
.mockup-dot--amber { background: #DBC41A; }
.mockup-dot--green { background: #10b981; }
.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
}

.mockup-body { padding: 20px; }

.mockup-nav-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mockup-pill {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(18, 85, 204, 0.08);
  color: var(--text3);
}
.mockup-pill.active {
  background: var(--primary);
  color: #fff;
}

.mockup-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.mockup-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.mockup-stat-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.mockup-stat-label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.mockup-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.mockup-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  animation: growBar 1s ease-out both;
}
.mockup-bar:nth-child(1) { height: 55%; background: var(--primary); opacity: 0.6; animation-delay: 0.1s; }
.mockup-bar:nth-child(2) { height: 80%; background: var(--primary); opacity: 0.75; animation-delay: 0.15s; }
.mockup-bar:nth-child(3) { height: 65%; background: var(--primary); opacity: 0.6; animation-delay: 0.2s; }
.mockup-bar:nth-child(4) { height: 95%; background: linear-gradient(180deg, var(--accent-light), var(--accent)); animation-delay: 0.25s; }
.mockup-bar:nth-child(5) { height: 70%; background: var(--primary); opacity: 0.6; animation-delay: 0.3s; }
.mockup-bar:nth-child(6) { height: 85%; background: var(--primary); opacity: 0.75; animation-delay: 0.35s; }

@keyframes growBar { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }

.mockup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 16px;
  font-size: 11px;
  color: var(--text3);
}
.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 11px;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #0a0f1e;
  aspect-ratio: 1280 / 621;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: block;
}

.hero-carousel__slide.active {
  opacity: 1;
}

.hero-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-carousel__dot.active {
  background: #fff;
  transform: scale(1.35);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s, opacity 0.2s;
  opacity: 0.7;
}

.hero-carousel__arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  opacity: 1;
}

.hero-carousel__arrow--prev { left: 10px; }
.hero-carousel__arrow--next { right: 10px; }

/* ══════════════════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.stat-card {
  background: var(--card);
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--card2); }

.stat-number {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-text-content .section-subtitle {
  text-align: left;
  margin: 0;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.about-highlight:hover { border-color: var(--border2); box-shadow: var(--shadow); }

.about-highlight-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-highlight-icon--indigo { background: rgba(18, 85, 204, 0.09); }
.about-highlight-icon--amber  { background: rgba(219,196,26,0.12); }
.about-highlight-icon--green  { background: rgba(5, 150, 105, 0.10); }

.about-highlight-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.about-highlight-text span {
  font-size: 13px;
  color: var(--text2);
}

/* Video card */
.about-visual {
  position: relative;
}

.video-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/video-thumbnail.png");
  background-size: cover;
  background-position: center;
}

.video-play-btn {
  position: relative;
  z-index: 1;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  transition: all var(--transition);
  cursor: pointer;
}
.video-play-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════════════════════════
   EXPERTS / PARTNERS SECTION
   ══════════════════════════════════════════════════════════ */
.experts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.experts-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  transition: all var(--transition);
}
.expert-badge:hover { border-color: var(--primary); color: var(--primary-light); }
.expert-badge::before { font-size: 16px; }
.expert-badge--ms::before   { content: '🏆'; }
.expert-badge--mvp::before  { content: '⭐'; }
.expert-badge--cert::before { content: '📋'; }

.experts-visual {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg), var(--glow);
}

.experts-visual-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}

.partner-logos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.partner-logo-row:hover { border-color: var(--border2); }

.partner-logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.partner-logo-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.partner-logo-text span {
  font-size: 12px;
  color: var(--text3);
}

/* ══════════════════════════════════════════════════════════
   PRICING SECTION
   ══════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card--featured {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .pricing-card--featured { background: rgba(18, 85, 204, 0.07); }
.pricing-card--featured:hover { box-shadow: var(--shadow-xl); }

.pricing-feat-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.pricing-card-icon--primary { background: rgba(18, 85, 204, 0.09); }
.pricing-card-icon--accent  { background: rgba(219,196,26,0.12); }
.pricing-card-icon--green   { background: rgba(16,185,129,0.12); }

.pricing-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0;
}

.pricing-amount-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary-light);
}
.pricing-card--featured .pricing-amount-value { color: var(--accent); }

.pricing-amount-unit {
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  width: 16px;
  height: 16px;
  background: rgba(16,185,129,0.12);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Pricing split layout (Power Tuning | Microsoft) */
.pricing-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}
.pricing-col { display: flex; flex-direction: column; gap: 0; }
.pricing-col-header {
  text-align: center;
  padding: 14px 16px 0;
}
.pricing-col-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}
.pricing-col-label--tuning {
  background: rgba(18, 85, 204, 0.10);
  color: var(--primary-light);
  border: 1px solid rgba(18, 85, 204, 0.20);
}
.pricing-col-label--microsoft {
  background: rgba(160,138,0,0.10);
  color: #7A6500;
  border: 1px solid rgba(160,138,0,0.25);
}
[data-theme="dark"] .pricing-col-label--microsoft {
  background: rgba(219,196,26,0.12);
  color: var(--accent-light);
  border: 1px solid rgba(219,196,26,0.3);
}

/* Group wrapper effect */
.pricing-col--tuning {
  background: rgba(18, 85, 204, 0.04);
  border: 1.5px solid rgba(18, 85, 204, 0.18);
  border-radius: var(--radius-lg);
  padding: 0 16px 16px;
}
.pricing-col--microsoft {
  background: rgba(219,196,26,0.03);
  border: 1.5px solid rgba(219,196,26,0.2);
  border-radius: var(--radius-lg);
  padding: 0 16px 16px;
}

.pricing-col-cards { display: flex; flex-direction: column; gap: 16px; flex: 1; margin-top: 16px; }
.pricing-col--tuning .pricing-col-cards { flex-direction: row; align-items: stretch; }
.pricing-col--tuning .pricing-col-cards .pricing-card { flex: 1; min-width: 0; }

/* Equal card heights across both columns */
.pricing-col--tuning,
.pricing-col--microsoft { height: 100%; box-sizing: border-box; }
.pricing-col--microsoft .pricing-card { height: 100%; box-sizing: border-box; }

.pricing-col--tuning .pricing-card--featured { border-color: var(--primary); }

.pricing-automation-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}
.pricing-automation-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.pricing-automation-text strong { display: block; font-weight: 700; color: var(--green); }
.pricing-automation-text span { font-size: 14px; color: var(--text2); }

.pricing-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   FEATURES / DIFERENCIAIS
   ══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(18, 85, 204, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  transition: all var(--transition);
}
.feature-card:hover .feature-card-icon { background: rgba(18, 85, 204, 0.14); }

.feature-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.3;
}

.feature-card-desc {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.55;
}

.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  transition: gap 0.15s;
}
.feature-card-link:hover { gap: 6px; }

/* ══════════════════════════════════════════════════════════
   AI SECTION
   ══════════════════════════════════════════════════════════ */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 353px;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.ai-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ai-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(18, 85, 204, 0.08);
  border: 1px solid rgba(18, 85, 204, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ai-feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.ai-feature-text span { font-size: 13px; color: var(--text2); }

/* AI visual card */
.ai-visual-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--glow);
}

.ai-card-header {
  background: rgba(18, 85, 204, 0.07);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-card-icon-lg {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ai-card-title-block strong { display: block; font-weight: 700; }
.ai-card-title-block span { font-size: 12px; color: var(--text3); }

.ai-chat-preview {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.ai-msg--user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-radius: 12px 12px 2px 12px;
}
.ai-msg--bot {
  align-self: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  color: var(--text);
}
.ai-msg--bot strong { color: var(--accent); }

/* AI image zoom */
.ai-img-zoom {
  display: block;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-xl), var(--glow);
  text-decoration: none;
}
.ai-pilot-img {
  width: 100%;
  height: auto;
  max-height: 759px;
  object-fit: contain;
  display: block;
}
.ai-img-zoom__icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ai-img-zoom:hover .ai-img-zoom__icon { opacity: 1; }

/* Lightbox */
.pe-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.pe-lightbox.is-open { display: flex; }
.pe-lightbox__img {
  width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  cursor: default;
}
.pe-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.pe-lightbox__close:hover { opacity: 1; }

/* Lightbox nav arrows */
.pe-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 18px;
  border-radius: 6px;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
  z-index: 1;
}
.pe-lightbox__nav:hover { opacity: 1; background: rgba(255, 255, 255, 0.25); }
.pe-lightbox__nav--prev { left: 20px; }
.pe-lightbox__nav--next { right: 20px; }

/* ══════════════════════════════════════════════════════════
   WHATSAPP AI SECTION
   ══════════════════════════════════════════════════════════ */
.whatsapp-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* WhatsApp image carousel */
.wa-carousel {
  position: relative;
  max-width: 408px;
  margin: 0 auto;
}

.wa-carousel__track {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(37, 211, 102, 0.1);
  transition: height 0.4s ease;
}

.wa-carousel__slides {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.wa-carousel__slide { min-width: 100%; }

.wa-carousel__img-wrap {
  display: block;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}
.wa-carousel__img {
  width: 100%;
  height: auto;
  display: block;
}
.wa-carousel__img-wrap .ai-img-zoom__icon {
  bottom: 12px;
  right: 12px;
}
.wa-carousel__img-wrap:hover .ai-img-zoom__icon { opacity: 1; }

.wa-carousel__btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}
.wa-carousel__btn:hover { opacity: 1; background: rgba(0, 0, 0, 0.65); }
.wa-carousel__btn--prev { left: 8px; }
.wa-carousel__btn--next { right: 8px; }

.wa-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.wa-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.wa-carousel__dot.active { background: #25d366; }

.whatsapp-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.whatsapp-feature {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.whatsapp-feature:hover { border-color: rgba(37,211,102,0.3); box-shadow: 0 0 20px rgba(37,211,102,0.08); }

.whatsapp-feature-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.whatsapp-feature-title::before { font-size: 16px; }

.whatsapp-feature-desc { font-size: 13px; color: var(--text2); }

.whatsapp-cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #25d366;
  margin-bottom: 24px;
}

/* WhatsApp mockup phone */
.whatsapp-phone {
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(37,211,102,0.1);
  max-width: 280px;
  margin: 0 auto;
  border: 2px solid rgba(37,211,102,0.15);
}

.wa-screen {
  background: #0a1628;
  border-radius: 28px;
  overflow: hidden;
}

.wa-header {
  background: #128c7e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-avatar {
  width: 36px; height: 36px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.wa-name { font-size: 14px; font-weight: 600; color: #fff; }
.wa-status { font-size: 11px; color: rgba(255,255,255,0.7); }

.wa-messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wa-msg {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.wa-msg--user {
  align-self: flex-end;
  background: #005c4b;
  color: #e9ede5;
  border-radius: 8px 8px 2px 8px;
}
.wa-msg--bot {
  align-self: flex-start;
  background: #1f2c34;
  color: #e9ede5;
  border-radius: 8px 8px 8px 2px;
}
.wa-time { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 2px; text-align: right; }

/* ══════════════════════════════════════════════════════════
   TIMELINE SECTION
   ══════════════════════════════════════════════════════════ */
.timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: start;
  margin-top: 48px;
}

.timeline-desc-block {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.timeline-speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin: 24px 0;
}
.timeline-speed-badge::before { content: '⚡'; }

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-step:not(:last-child) .timeline-step-line {
  position: absolute;
  left: 20px; top: 40px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%);
}

.timeline-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(18, 85, 204, 0.15);
  position: relative;
  z-index: 1;
}

.timeline-step-content {
  padding-bottom: 32px;
  flex: 1;
}

.timeline-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-top: 8px;
}
.timeline-step-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border2); }
.faq-item.open { border-color: var(--primary); box-shadow: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary-light); }
.faq-item.open .faq-question { color: var(--primary-light); }

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--text2);
  font-size: 16px;
  line-height: 1;
}
.faq-item.open .faq-icon {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}
.faq-answer-inner a { color: var(--primary-light); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
  background: var(--hero-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  color: rgba(240, 244, 255, 0.82);
}
[data-theme="dark"] footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(240, 244, 255, 0.60);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}
[data-theme="dark"] .footer-brand p { color: var(--text2); }

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 244, 255, 0.60);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social-link:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .footer-social-link { background: var(--card); border-color: var(--border); color: var(--text2); }
[data-theme="dark"] .footer-social-link:hover { border-color: var(--primary); color: var(--primary-light); }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(240, 244, 255, 0.40);
  margin-bottom: 16px;
}
[data-theme="dark"] .footer-col-title { color: var(--text3); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(240, 244, 255, 0.62);
  transition: color var(--transition);
}
.footer-links a:hover { color: #ffffff; }
[data-theme="dark"] .footer-links a { color: var(--text2); }
[data-theme="dark"] .footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
[data-theme="dark"] .footer-bottom { border-top-color: var(--border); }

.footer-copyright {
  font-size: 13px;
  color: rgba(240, 244, 255, 0.38);
}
.footer-copyright a { color: var(--accent); }
.footer-copyright a:hover { text-decoration: underline; }
[data-theme="dark"] .footer-copyright { color: var(--text3); }
[data-theme="dark"] .footer-copyright a { color: var(--primary-light); }

.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(240, 244, 255, 0.38);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(240, 244, 255, 0.75); }
[data-theme="dark"] .footer-bottom-links a { color: var(--text3); }
[data-theme="dark"] .footer-bottom-links a:hover { color: var(--text2); }

/* ══════════════════════════════════════════════════════════
   FLOATING ELEMENTS
   ══════════════════════════════════════════════════════════ */

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transition);
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.3);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse { 0%,100%{opacity:.8;transform:scale(1)} 50%{opacity:0;transform:scale(1.4)} }

/* Chatbot toggle button */
#chatToggle {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 900;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(18, 85, 204, 0.35);
  transition: all var(--transition);
}
#chatToggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 24px rgba(18, 85, 204, 0.45);
}
#chatToggle.active { background: var(--primary-dark); }

/* Chatbot window */
#chatWindow {
  position: fixed;
  bottom: 160px;
  right: 24px;
  z-index: 901;
  width: 340px;
  max-height: 520px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
#chatWindow.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: var(--primary);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-header-title { font-size: 14px; font-weight: 700; color: #fff; }
.chat-header-sub   { font-size: 11px; color: rgba(255,255,255,0.7); }
.chat-header-online {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-left: auto;
}
.chat-header-online::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.7;transform:scale(0.85)} }

#chatClose {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  transition: background 0.15s;
  flex-shrink: 0;
}
#chatClose:hover { background: rgba(255,255,255,0.22); color: #fff; }

#chatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
#chatMessages::-webkit-scrollbar { width: 4px; }
#chatMessages::-webkit-scrollbar-track { background: transparent; }
#chatMessages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.chat-msg { display: flex; flex-direction: column; }

.chat-msg-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.chat-msg.user { align-items: flex-end; }
.chat-msg.user .chat-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-radius: 14px 14px 2px 14px;
}

.chat-msg.bot .chat-msg-bubble {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px 14px 14px 2px;
}
.chat-msg.bot .chat-msg-bubble a { color: var(--primary-light); }

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  animation: typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100%{transform:translateY(0);opacity:0.5} 30%{transform:translateY(-5px);opacity:1} }

#chatQuickBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 0;
}
.chat-quick-btn {
  padding: 5px 10px;
  background: rgba(18, 85, 204, 0.08);
  border: 1px solid rgba(18, 85, 204, 0.16);
  border-radius: 100px;
  font-size: 12px;
  color: var(--primary);
  transition: all 0.15s;
}
.chat-quick-btn:hover { background: rgba(18, 85, 204, 0.14); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

#chatInput {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
#chatInput:focus { border-color: var(--primary); }
#chatInput::placeholder { color: var(--text3); }

#chatSend {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.15s;
}
#chatSend:hover { background: var(--primary-light); }

/* ══════════════════════════════════════════════════════════
   MOBILE APP BAR
   ══════════════════════════════════════════════════════════ */
#mobileAppBar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: #0d1526;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* GPU compositing — keeps bar above scrolled content on iOS */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
[data-theme="light"] #mobileAppBar {
  background: #ffffff;
  border-top-color: #b8c6de;
  box-shadow: 0 -2px 20px rgba(30, 45, 100, 0.14);
}

.mab-inner {
  display: flex;
  align-items: stretch;
  height: 68px;
}

.mab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s, transform 0.12s;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 2px 6px;
  min-width: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mab-btn:hover { color: var(--primary-light); }
.mab-btn:active { color: var(--primary-light); transform: scale(0.90); }
.mab-btn svg, .mab-btn i { font-size: 1.3rem; line-height: 1; display: block; }
.mab-btn span { font-size: 0.585rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ── Active page indicator ─── */
.mab-btn.is-active {
  color: var(--primary-light);
  font-weight: 600;
}
.mab-btn.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  box-shadow: 0 1px 8px var(--primary);
}
.mab-btn.is-active i {
  filter: drop-shadow(0 0 5px var(--primary));
}
.mab-btn.is-active span {
  color: var(--primary-light);
}

#mabLangBtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text3);
  font-size: 0.585rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 2px 6px;
  cursor: pointer;
  min-width: 0;
  background: none;
  border: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s, transform 0.12s;
}
#mabLangBtn:active { transform: scale(0.90); }
.mab-flag { width: 24px; height: 17px; border-radius: 3px; display: block; }

#mabLangOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#mabLangOverlay.open { opacity: 1; pointer-events: all; }

#mabLangSheet {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  z-index: 1100;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 8px 16px 20px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(100% + 68px + env(safe-area-inset-bottom, 0px)));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
#mabLangSheet::before {
  content: '';
  display: block;
  width: 40px; height: 4px;
  background: var(--border2);
  border-radius: 999px;
  margin: 4px auto 10px;
}
#mabLangSheet.open { transform: none; pointer-events: all; }
[data-theme="light"] #mabLangSheet { background: var(--bg2); }

.mab-sheet-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  margin-bottom: 10px;
}

.mab-lang-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mab-lang-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  background: none;
  border: 1.5px solid var(--border);
  font-family: inherit;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.mab-lang-option:hover, .mab-lang-option:active {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(18, 85, 204, 0.08);
}
.mab-lang-option.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(18, 85, 204, 0.08);
}
.mab-lang-option .fi { width: 26px; height: 19px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }

/* Chat open/close state in MAB */
.mab-chat-active { color: var(--primary-light) !important; }
.mab-chat-close { display: none; }

/* Theme toggle override inside MAB — reset fixed dimensions from global .theme-toggle */
#mobileAppBar .theme-toggle {
  width: auto;
  height: auto;
  border: none;
  font-size: inherit;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 8px 2px 6px;
  color: var(--text3);
}

/* ══════════════════════════════════════════════════════════
   CALCULATOR PAGE
   ══════════════════════════════════════════════════════════ */
.calc-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.calc-layout.has-result .calc-form-wrap {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row--1 { grid-template-columns: 1fr; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
select.form-control {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%238898b0' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 85, 204, 0.10); }
.form-control option { background: var(--card); }

/* ── Custom SKU dropdown with colored dots ──────────── */
.sku-cust { position: relative; }
.sku-cust__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%238898b0' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sku-cust__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.sku-cust__lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sku-cust__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  color: #1a202c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.12));
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}
:root[data-theme='dark'] .sku-cust__menu { background: #1b212b; color: #e5e7eb; }
.sku-cust__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
}
.sku-cust__opt:hover,
.sku-cust__opt.is-sel { background: rgba(18, 85, 204, 0.07); color: var(--primary); }

/* ── Region dropdown flag icon ────────────────────── */
.reg-cust__flag { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; background-size: cover; }

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-option {
  flex: 1;
  min-width: 140px;
}
.radio-option input { display: none; }
.radio-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.15s;
}
.radio-option input:checked + label {
  border-color: var(--primary);
  background: rgba(18, 85, 204, 0.06);
  color: var(--primary);
}
.radio-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.radio-option .form-hint {
  font-style: italic;
  font-size: 12px;
  font-weight: 400;
  color: var(--text3);
}

#calcResult {
  display: none;
  padding: 28px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.calc-layout:not(.has-result) #calcResult {
  margin-top: 32px;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.calc-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.calc-amount {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.calc-amount span { font-size: 14px; font-weight: 500; color: var(--text3); margin-left: 4px; }
.calc-amount-before { color: var(--red); }
.calc-amount-after  { color: var(--green); }

.calc-breakdown {
  font-size: 12px;
  color: var(--text2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-breakdown li::before { content: '·'; margin-right: 6px; color: var(--primary); }

.calc-disclaimer {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}

.calc-rate-display {
  font-size: 13px;
  color: var(--text3);
  text-align: right;
  margin-bottom: 16px;
}

/* ── Calculator Result Sections ── */
.calc-result-inner { animation: fadeUp 0.4s ease; }
.calc-result-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Result Redesign (rr-*) ── */
.rr-root { display: flex; flex-direction: column; gap: 16px; animation: fadeUp 0.4s ease; }

.rr-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
}
.rr-header-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 12px;
}
.rr-header-eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.rr-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.rr-title em {
  font-style: italic;
  color: var(--primary);
}
.rr-header-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 380px;
  margin: 0;
}
.rr-header-params {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 260px;
}
.rr-header-params-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}
.rr-param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.rr-param-row:last-child { border-bottom: none; }
.rr-param-row span { color: var(--text2); }
.rr-param-row strong { color: var(--primary); font-weight: 700; text-align: right; }

@media (max-width: 640px) {
  .rr-header { grid-template-columns: 1fr; }
  .rr-header-params { min-width: 0; }
  .rr-title { font-size: 22px; }
}

/* ── Compare panel (SEM vs COM) ── */
.rr-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.rr-compare-side {
  padding: 20px 24px;
}
.rr-compare-side--before {
  background: rgba(239,68,68,0.04);
  border-right: 1px solid var(--border);
}
.rr-compare-side--after {
  background: rgba(18,85,204,0.04);
}
.rr-compare-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  margin-bottom: 8px;
}
.rr-compare-badge--blue {
  background: rgba(18,85,204,0.12);
  color: var(--primary);
}
.rr-compare-desc {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 10px;
  line-height: 1.4;
}
.rr-compare-amount {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.rr-compare-amount--red { color: #dc2626; }
.rr-compare-amount--blue { color: var(--primary); }
.rr-compare-sub {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rr-compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text3);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── Economy banner ── */
.rr-banner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid transparent;
}
.rr-banner--positive {
  background: #0f2044;
  color: #fff;
  border-color: #1a3a7a;
}
.rr-banner--negative {
  background: #3d0e0e;
  color: #fff;
  border-color: #7a1a1a;
}
.rr-banner-pct {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  gap: 4px;
}
.rr-banner-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.rr-banner-big {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.rr-banner-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.rr-banner-col:last-child { border-right: none; }
.rr-banner-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rr-banner-stat-val {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ── Section heading ── */
.rr-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.rr-section-count {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

/* ── Cards grid ── */
.rr-cards {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 12px;
}
.rr-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rr-card--highlight {
  border-color: var(--primary);
  background: rgba(18,85,204,0.04);
}
.rr-card--danger {
  border-color: rgba(220,38,38,0.25);
  background: rgba(239,68,68,0.03);
  grid-column: 1 / -1;
}
.rr-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rr-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.rr-card-icon i { display: block; line-height: 1; }
.rr-card-icon--blue   { background: rgba(37,99,235,0.12); color: #2563eb; }
.rr-card-icon--indigo { background: rgba(99,102,241,0.12); color: #6366f1; }
.rr-card-icon--primary{ background: rgba(18,85,204,0.14); color: var(--primary); }
.rr-card-icon--teal   { background: rgba(20,184,166,0.12); color: #0d9488; }
.rr-card-icon--red    { background: rgba(239,68,68,0.12); color: #dc2626; }
.rr-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.rr-card-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.rr-card-amount {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
.rr-card-amount span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0;
}
.rr-card-amount--primary { color: var(--primary); }
.rr-card-amount--red { color: #dc2626; }
.rr-card-detail {
  font-size: 12px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}
.rr-card-detail svg { display: inline-block; vertical-align: middle; flex-shrink: 0; color: var(--text3); }
/* cost-wrap: icon aligns to top when content is multi-line */
.rr-cost-wrap { align-items: flex-start; }
.rr-cost-wrap svg { margin-top: 2px; }
/* cost list: inline with + separators on desktop, stacked on mobile */
.rr-cost-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
}
.rr-cost-list li + li::before {
  content: '+';
  margin-right: 4px;
  color: var(--text3);
}
/* bg chips */
.rr-bg-label {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 4px;
  display: block;
}
.rr-bg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rr-bg-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  white-space: nowrap;
}
/* detail key-value row (sizing) */
.rr-detail-kv { flex-wrap: wrap; }
.rr-detail-kv > span { flex: none; }
.rr-detail-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  margin-left: 6px;
}
.rr-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(18,85,204,0.08);
  border-radius: 99px;
  padding: 4px 12px;
  width: fit-content;
}
.rr-card-note {
  font-size: 11px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 8px 12px;
  line-height: 1.5;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rr-card-note svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
:root[data-theme='dark'] .rr-card-note { background: #422006; border-color: #b45309; color: #fbbf24; }
:root[data-theme='dark'] .rr-banner--positive { background: #0a1628; }
:root[data-theme='dark'] .rr-banner--negative { background: #2a0a0a; }
:root[data-theme='dark'] .rr-card--highlight { background: rgba(18,85,204,0.08); }
:root[data-theme='dark'] .rr-card--danger { background: rgba(239,68,68,0.05); }

@media (max-width: 640px) {
  .rr-compare { grid-template-columns: 1fr; }
  .rr-compare-vs { width: 100%; height: 32px; border-left: none; border-right: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .rr-banner { grid-template-columns: 1fr; }
  .rr-banner-pct, .rr-banner-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .rr-cards { grid-template-columns: 1fr; }
  .rr-card--danger { grid-column: 1; }
  .rr-card-amount { font-size: 20px; }
  .rr-compare-amount { font-size: 22px; }
  .rr-banner-big { font-size: 26px; }
  .rr-banner-stat-val { font-size: 18px; }
}

.calc-params {
  font-size: 12px;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.calc-section-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.calc-section-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-big-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.calc-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
}
.calc-detail-list li {
  display: block;
}
.calc-detail-list li i { color: var(--primary-light); margin-right: 6px; }

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text2);
  padding: 4px 0;
}

.calc-total-block {
  border: 2px solid var(--primary);
  background: rgba(18, 85, 204, 0.04);
}
.calc-total-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.calc-per-user {
  font-size: 13px;
  color: var(--text3);
}

.calc-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-warning svg { display: inline-block; vertical-align: middle; color: #f59e0b; flex-shrink: 0; }
.calc-warning a { color: #92400e; text-decoration: underline; }
:root[data-theme='dark'] .calc-warning { background: #422006; border-color: #b45309; color: #fbbf24; }
:root[data-theme='dark'] .calc-warning a { color: #fcd34d; }

.calc-savings-banner {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.calc-savings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  flex-wrap: wrap;
}
.calc-savings-row i { font-size: 18px; }
.calc-save-positive {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--green);
}
.calc-save-negative {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #dc2626;
}
:root[data-theme='dark'] .calc-save-negative { color: #fca5a5; }

/* ── Export bar ── */
.calc-export-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.calc-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.calc-export-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.calc-export-btn i { font-size: 14px; }

/* ── Toast ── */
.calc-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #f1f5f9;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
}
.calc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Capacity table ── */
.cap-table-header {
  margin-top: 40px;
}
.cap-table-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cap-table-header p {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 12px;
}
.cap-table-toggles {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px;
}
.cap-table-toggles label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cap-table-toggles input {
  accent-color: var(--primary);
}
.cap-export-header {
  display: none;
  margin-bottom: 12px;
}
.cap-export-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cap-export-header p {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 4px;
}
.cap-export-filters {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px !important;
}
.cap-export-filters span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cap-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.cap-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  position: sticky;
  top: 0;
}
.cap-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.cap-table tbody tr:hover {
  background: rgba(18, 85, 204, 0.04);
}
.cap-row-selected {
  background: rgba(239,68,68,0.22) !important;
  font-weight: 700;
}
.cap-row-selected td {
  color: var(--text);
}
:root[data-theme='dark'] .cap-row-selected {
  background: rgba(239,68,68,0.32) !important;
}

/* ── Calculator layout ── */
.calc-layout {
  max-width: 1160px;
  margin: 0 auto;
}
.calc-layout.has-result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calc-result-side {
  display: none;
}
.calc-layout.has-result .calc-result-side {
  display: block;
}
.calc-layout.has-result .calc-form-card {
  max-width: none;
}
.calc-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.calc-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.calc-legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: block;
  width: 100%;
}
.calc-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.calc-radio-label {
  flex: 1;
  min-width: 140px;
  cursor: pointer;
}
.calc-radio-label input { display: none; }
.calc-radio-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.calc-radio-label input:checked + .calc-radio-box {
  border-color: var(--primary);
  background: rgba(18, 85, 204, 0.06);
}
.calc-radio-title { font-size: 14px; font-weight: 600; color: var(--text); }
.calc-radio-sub { font-size: 11px; color: var(--text3); }
.calc-radio-label input:checked + .calc-radio-box .calc-radio-title { color: var(--primary); }

.calc-result-card {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  margin-top: 24px;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row, .form-row--3, .form-grid { grid-template-columns: 1fr; }
  .calc-big-value { font-size: 22px; }
  .calc-total-value { font-size: 28px; }
  .calc-result-grid { grid-template-columns: 1fr; }
  .calc-export-bar { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .calc-savings-row { font-size: 13px; }
  /* Result cards */
  .rr-cards { grid-template-columns: 1fr; }
  .rr-card-detail { align-items: flex-start; }
  /* Cost breakdown — stacked list on mobile */
  .rr-cost-list { flex-direction: column; gap: 3px; }
  .rr-cost-list li {
    padding-left: 10px;
    border-left: 2px solid var(--border2);
  }
  .rr-cost-list li:first-child { padding-left: 0; border-left: none; }
  .rr-cost-list li + li::before { display: none; }
  /* Sizing value — prominent below label */
  .rr-detail-kv { flex-wrap: wrap; gap: 2px; }
  .rr-detail-val { font-size: 18px; margin-left: 26px; }
  /* Export buttons — 2 per row, equal width */
  .calc-export-btn { justify-content: center; }
  /* Capacity table checkboxes — full width */
  .cap-table-toggles { flex-direction: column; gap: 8px; }
  .cap-table-toggles label { width: 100%; }
}

@media (max-width: 768px) {
  .cap-table-toggles { flex-direction: column; gap: 8px; }
  .cap-table-toggles label { width: 100%; }
}

/* ── Force desktop layout during image export (mobile capture fix) ── */
.force-desktop-export {
  width: 900px !important;
  min-width: 900px !important;
  max-width: none !important;
}
.force-desktop-export .rr-cards          { grid-template-columns: 7fr 3fr !important; }
.force-desktop-export .calc-result-grid  { grid-template-columns: 1fr 1fr !important; }
.force-desktop-export .rr-card-detail    { align-items: center !important; }
.force-desktop-export .cap-table-toggles { flex-direction: row !important; }
.force-desktop-export .calc-export-btn   { flex: 0 0 auto !important; }

/* ── Force table full-width during image export ── */
.force-table-export {
  width: max-content !important;
  min-width: 900px !important;
  max-width: none !important;
}
.force-table-export .cap-table-wrap {
  overflow: visible !important;
  width: max-content !important;
}
.force-table-export .cap-table-toggles { flex-direction: row !important; }
.force-table-export .calc-export-btn   { flex: 0 0 auto !important; }

/* ══════════════════════════════════════════════════════════
   BOOKING / PRESENTATION / INSTALL PAGES
   ══════════════════════════════════════════════════════════ */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-top: 48px;
}

.booking-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
}

.booking-what-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.booking-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.booking-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text2);
}
.booking-item-icon {
  width: 28px; height: 28px;
  background: rgba(16,185,129,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.booking-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text3);
  padding: 10px 14px;
  background: var(--bg2);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.booking-iframe-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 600px;
  box-shadow: var(--shadow-lg);
}

.booking-iframe-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   INSTALL PAGE — Option Cards & Grids
   ══════════════════════════════════════════════════════════ */

/* PT-BR self-install 2-col grid (replaces inline style) */
.install-self-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
}

/* PT-BR prereq steps 2-col grid (replaces inline style) */
.prereq-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

/* EN/ES install-option containers */
.install-options,
.install-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}

/* EN/ES install-option card */
.install-option-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.install-option-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(18,85,204,.12);
}
.install-option-feat-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.install-option-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.install-option-icon--blue   { background: rgba(37,99,235,.1);   color: #2563eb; }
.install-option-icon--accent { background: rgba(219,196,26,.15); color: var(--accent); }
.install-option-title { font-size: 18px; font-weight: 700; }
.install-option-desc  { font-size: 14px; color: var(--text2); flex: 1; }
.install-option-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  flex: 1;
}

/* ES-specific */
.install-option-badge { margin: 4px 0; }
.install-option-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.install-option-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}
.install-option-bullets .bi-check-lg { color: var(--green); flex-shrink: 0; }

/* Prerequisites grid (ES) */
.prereqs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.prereq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.prereq-card--accent {
  border-color: var(--accent);
  background: rgba(219,196,26,.04);
}
.prereq-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(18,85,204,.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.prereq-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.prereq-card p  { font-size: 13px; color: var(--text2); }

/* Installation timeline (ES) — distinct from main page .timeline-steps */
.timeline {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
}
.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 32px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--border2);
}
.timeline-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content { flex: 1; padding-top: 6px; }
.timeline-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.timeline-content p  { font-size: 13px; color: var(--text2); }

/* CTA panel (ES) */
.cta-panel {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.6s ease, transform 0.6s ease; }

.fade-up.visible, .fade-in.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1;
  transform: none;
}

/* Staggered delay helpers */
.delay-100 { transition-delay: 0.10s; }
.delay-200 { transition-delay: 0.20s; }
.delay-300 { transition-delay: 0.30s; }
.delay-400 { transition-delay: 0.40s; }
.delay-500 { transition-delay: 0.50s; }

/* ══════════════════════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .fade-in, .fade-left, .fade-right {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1100px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤900px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .about-grid,
  .experts-grid,
  .ai-grid,
  .whatsapp-ai-grid,
  .timeline-wrapper,
  .booking-layout { grid-template-columns: 1fr; }

  .timeline-desc-block { position: static; text-align: center; }
  .timeline-desc-block .section-subtitle { text-align: center !important; }
  .timeline-desc-block .btn:first-of-type { margin-top: 20px; }
  .timeline-desc-block .btn { display: inline-block; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-split { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .pricing-col--tuning .pricing-col-cards { flex-direction: column; }
  .pricing-col--microsoft .pricing-card { height: auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .calc-result-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row--3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links, .nav-actions { display: none; }
  #mobileMenuBtn { display: flex; margin-left: auto; }
  #mobileNav { display: block; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  /* Side toolbar hidden on mobile (mobile app bar handles it) */
  .side-toolbar { display: none !important; }

  #mobileAppBar { display: block; }

  /* push content above mobile app bar */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  /* calculator page — extra top breathing room on mobile */
  section[aria-labelledby="calc-page-title"] { padding-top: calc(clamp(64px, 8vw, 120px) + 20px); }

  .wa-float  { bottom: 80px; right: 16px; width: 48px; height: 48px; font-size: 22px; }
  #chatToggle { bottom: 136px; right: 16px; width: 46px; height: 46px; font-size: 20px; }
  #chatWindow { width: calc(100vw - 32px); right: 16px; bottom: 196px; }

  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .pricing-grid { grid-template-columns: 1fr; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }

  /* Install page — collapse 2-col grids to single column */
  .install-self-grid,
  .prereq-steps-grid,
  .install-options,
  .install-options-grid,
  .prereqs-grid { grid-template-columns: 1fr; }

  /* Reduce card padding on mobile */
  .install-option-card,
  .booking-info-card { padding: 20px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤480px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .section { padding: 48px 0; }

  .mockup-stats-grid { grid-template-columns: 1fr 1fr; }
}
