/* ============================================================
   eiFOS Website – style.css
   Light & Dark mode | Modern Glassmorphism/Gradient Design
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --green-primary: #3aaa35;
  --green-dark: #1e7a1e;
  --green-light: #6dd96a;
  --yellow-accent: #f5c518;
  --red-brand: #c0392b;
  --navy-brand: #2c3e7a;

  /* Light Mode Tokens */
  --bg: #f4f7f4;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --surface: #eef5ee;
  --border: rgba(58, 170, 53, 0.18);
  --text: #1a2e1a;
  --text-muted: #4a6b4a;
  --text-inv: #ffffff;
  --shadow: 0 4px 32px rgba(30, 122, 30, 0.10);
  --shadow-lg: 0 12px 56px rgba(30, 122, 30, 0.16);
  --navbar-bg: rgba(244, 247, 244, 0.88);
  --hero-bg: url("../assets/BG 01 LIGHT.png");
  --smarter-bg: url("../assets/BG 02 LIGHT.png");
  --gradient: linear-gradient(135deg, var(--green-primary) 0%, #8bc34a 100%);
  --gradient-hero: linear-gradient(135deg, rgba(244,247,244,0.0) 0%, rgba(244,247,244,0.7) 55%, rgba(244,247,244,1) 100%);
}

[data-theme="dark"] {
  --bg: #0d1a0d;
  --bg-alt: #142014;
  --bg-card: #1a2e1a;
  --bg-glass: rgba(20, 32, 20, 0.80);
  --surface: #1e321e;
  --border: rgba(58, 170, 53, 0.22);
  --text: #e8f5e8;
  --text-muted: #8aba8a;
  --text-inv: #ffffff;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 12px 56px rgba(0, 0, 0, 0.50);
  --navbar-bg: rgba(13, 26, 13, 0.92);
  --hero-bg: url("../assets/BG 01 DARK.png");
  --smarter-bg: url("../assets/BG 02 DARK.png");
  --gradient: linear-gradient(135deg, #2e7d32 0%, #558b2f 100%);
  --gradient-hero: linear-gradient(135deg, rgba(13,26,13,0.0) 0%, rgba(13,26,13,0.65) 50%, rgba(13,26,13,1) 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 18px rgba(58, 170, 53, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58, 170, 53, 0.50);
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.btn-white {
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.btn-lg { padding: 14px 34px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Section Shared ---------- */
.section { padding: 100px 0; }

.section-tag {
  display: inline-block;
  background: rgba(58, 170, 53, 0.12);
  color: var(--green-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(58, 170, 53, 0.25);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 60px;
  line-height: 1.75;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

/* Logo switching */
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="dark"]  .logo-light { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface);
  color: var(--green-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  transition: background 0.2s, transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.theme-toggle:hover { background: var(--border); transform: rotate(20deg); }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  gap: 5px;
  border-radius: 10px;
  transition: background 0.2s;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.mascot-hero {
  width: min(420px, 90%);
  filter: drop-shadow(0 20px 48px rgba(30,122,30,0.25));
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--green-primary);
  border-radius: 12px;
  position: relative;
  opacity: 0.6;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 2px;
  animation: scrollDown 1.6s ease infinite;
}

@keyframes scrollDown {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 20px; }
}

/* ===================== FLOATING ANIMATION ===================== */
.floating {
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ===================== CLIENTS ===================== */
.clients-section {
  background: var(--bg-alt);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-section .section-tag,
.clients-section .section-title,
.clients-section .section-sub { text-align: center; }
.clients-section .section-sub { margin: 0 auto 0; }

.clients-marquee {
  margin: 48px 0 64px;
}

.clients-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (3 * 220px + 3 * 40px))); }
}

.client-logo {
  flex-shrink: 0;
  width: 220px;
  height: 80px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===================== ABOUT ===================== */
.about { background: var(--bg); }

.about .section-tag,
.about .section-title,
.about .section-sub { text-align: center; }
.about .section-sub { margin: 0 auto 60px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-primary);
}

.about-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.about-icon img { width: 100%; height: 100%; object-fit: contain; }

.about-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.about-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================== SMARTER WAY ===================== */
.smarter {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.smarter-bg {
  position: absolute;
  inset: 0;
  background-image: var(--smarter-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.smarter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.smarter-visual {
  display: flex;
  justify-content: center;
}

.smarter-visual img {
  width: min(380px, 90%);
  filter: drop-shadow(0 16px 40px rgba(30,122,30,0.2));
}

.smarter-text .section-tag { margin-bottom: 12px; }
.smarter-text .section-title { margin-bottom: 18px; }

.smarter-text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================== FEATURES ===================== */
.features { background: var(--bg); }

.features .section-tag,
.features .section-title,
.features .section-sub { text-align: center; }
.features .section-sub { margin: 0 auto 60px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-primary);
}

.feature-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-img img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 20px 22px 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 22px 24px;
  line-height: 1.65;
}

/* ===================== PLANS ===================== */
.plans { background: var(--bg); }

.plans .section-tag,
.plans .section-title,
.plans .section-sub { text-align: center; }
.plans .section-sub { margin: 0 auto 60px; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.plan-featured {
  background: var(--gradient);
  border: 2px solid rgba(255,255,255,0.20);
  color: #fff;
  box-shadow: 0 12px 48px rgba(58,170,53,0.40);
  padding: 40px 28px;
}

.plan-featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(58,170,53,0.50);
}

/* Ribbon */
.plan-ribbon {
  position: absolute;
  top: 22px;
  right: -28px;
  background: var(--yellow-accent);
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 42px;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
}

/* Plan top row */
.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.plan-icon-wrap {
  width: 38px;
  height: 38px;
  background: rgba(58,170,53,0.11);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  flex-shrink: 0;
}
.plan-featured .plan-icon-wrap {
  background: rgba(255,255,255,0.20);
  color: #fff;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.plan-featured .plan-name { color: #fff; }

.plan-tagline {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin: 3px 0 0;
  line-height: 1.4;
}
.plan-featured .plan-tagline { color: rgba(255,255,255,0.70); }

.plan-mascot {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  flex-shrink: 0;
}

/* Feature badge pill */
.plan-feature-badge {
  display: flex;
}
.plan-feature-badge span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green-primary);
  background: rgba(58,170,53,0.09);
  border: 1px solid rgba(58,170,53,0.22);
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
}
.plan-feature-badge-white span {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.30);
}

/* Plan list */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-category {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 12px 0 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.plan-featured .plan-category {
  color: rgba(255,255,255,0.55);
  border-bottom-color: rgba(255,255,255,0.15);
}
.plan-list .plan-category:first-child { padding-top: 0; }

.plan-list li:not(.plan-category) {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  line-height: 1.4;
}
.plan-featured .plan-list li:not(.plan-category) { color: rgba(255,255,255,0.92); }

/* Checkmark icon */
.chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: rgba(58,170,53,0.12);
  border-radius: 50%;
  color: var(--green-primary);
  font-size: 0.6rem;
  font-weight: 900;
  flex-shrink: 0;
}
.chk-white {
  background: rgba(255,255,255,0.20);
  color: #fff;
}

.plan-btn { width: 100%; }

/* ===================== FAQ ===================== */
.faq { background: var(--bg-alt); }

.faq .section-tag,
.faq .section-title { text-align: center; }

.faq-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.faq-mascot img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 32px rgba(30,122,30,0.2));
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open {
  border-color: var(--green-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--surface); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  z-index: 0;
}

.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.80);
}

/* ===================== CONTACT ===================== */
.contact { background: var(--bg-alt); }

.contact .section-tag,
.contact .section-title { text-align: center; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 52px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-primary);
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-item a:hover { color: var(--green-primary); }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(58,170,53,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}

.form-group select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233aaa35' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-group input[type="date"] {
  color-scheme: light dark;
  color: var(--text);
}

.form-success {
  text-align: center;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px;
  background: rgba(58,170,53,0.1);
  border-radius: 10px;
  border: 1px solid rgba(58,170,53,0.2);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding: 72px 24px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo { height: 40px; width: auto; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px;
}

.footer-links {
  display: contents;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col a:hover { color: var(--green-primary); }

/* Footer contact links with icons */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--green-primary);
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-certs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}

.footer-certs-inner {
  display: grid;
  grid-template-columns: 1.55fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.footer-certs-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-certs-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-certs-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-certs-logos img {
  width: auto;
  height: 75px;
  object-fit: contain;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.18));
}

/*.footer-cert-dpo {
  height: 70px !important;
}*/

.footer-certs-sep {
  width: 1px;
  height: 76px;
  background: var(--border);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--green-primary);
  font-weight: 500;
}

/* ===================== ANIMATIONS ===================== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-left"]  { transform: translateX(50px); }
[data-animate="fade-right"] { transform: translateX(-50px); }

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* Stagger children inside grids */
.about-grid    [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.about-grid    [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.about-grid    [data-animate]:nth-child(3) { transition-delay: 0.25s; }
.about-grid    [data-animate]:nth-child(4) { transition-delay: 0.35s; }

.features-grid [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.features-grid [data-animate]:nth-child(2) { transition-delay: 0.12s; }
.features-grid [data-animate]:nth-child(3) { transition-delay: 0.19s; }
.features-grid [data-animate]:nth-child(4) { transition-delay: 0.26s; }
.features-grid [data-animate]:nth-child(5) { transition-delay: 0.33s; }
.features-grid [data-animate]:nth-child(6) { transition-delay: 0.40s; }

.plans-grid    [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.plans-grid    [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.plans-grid    [data-animate]:nth-child(3) { transition-delay: 0.25s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .footer-links { display: contents; }
  .footer-certs-inner { grid-template-columns: 1fr; }
  .footer-certs-sep { width: 100%; height: 1px; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-visual { order: 0; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .mascot-hero { width: min(280px, 70vw); }

  .smarter-inner { grid-template-columns: 1fr; text-align: center; }
  .smarter-visual { order: 0; }
  .smarter-text { order: 1; }
  .check-list { align-items: flex-start; text-align: left; }
  .smarter-text .btn { margin: 0 auto; display: table; }

  .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan-featured { padding: 40px 28px; }
  .plan-featured:hover { transform: translateY(-6px); }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-mascot { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; flex-direction: column; }
  .footer-certs { padding: 22px 0; }
  .footer-certs-logos img { height: 48px; }
  .footer-cert-dpo { height: 54px !important; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav open state */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    z-index: 999;
    animation: menuOpen 0.25s ease;
  }

  @keyframes menuOpen {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links.mobile-open a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav-actions .btn { display: none; }

  .about-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-certs-label { font-size: 0.68rem; }

  .hero-stats { gap: 14px; }
  .stat-divider { display: none; }
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-primary);
}

.testimonial-stars {
  font-size: 1.15rem;
  color: #f5c518;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.testimonial-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

.testimonials-grid [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.testimonials-grid [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.testimonials-grid [data-animate]:nth-child(3) { transition-delay: 0.25s; }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay[hidden] { display: none !important; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}

.modal-close:hover {
  background: var(--surface);
  color: var(--text);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 28px;
}

.modal-mascot {
  width: 90px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(30, 122, 30, 0.25));
}

.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-primary);
  margin-bottom: 5px;
}

.modal-header-text h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.2;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 560px) {
  .modal-box { padding: 28px 20px; border-radius: 20px; }
  .modal-header { flex-direction: column; align-items: center; text-align: center; }
  .modal-mascot { width: 70px; }
}

/* ===================== FLATPICKR CUSTOM THEME ===================== */

/* Full-width wrapper so the input fills its form-group */
.flatpickr-wrapper {
  display: block;
  width: 100%;
}

/* Replace the default slide-down with our spring easing */
@keyframes fpFadeInDown {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

.flatpickr-calendar {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  padding: 10px 10px 12px;
  width: 308px;
  /* Override the multi-step default box-shadow */
  -webkit-box-shadow: var(--shadow-lg);
}

/* Suppress the default arrow notch */
.flatpickr-calendar::before,
.flatpickr-calendar::after { display: none !important; }

/* --- Month navigation bar --- */
.flatpickr-months {
  padding: 0 0 6px;
  align-items: center;
}

.flatpickr-months .flatpickr-month {
  background: transparent;
  color: var(--text);
  fill: var(--text);
  height: 36px;
}

.flatpickr-current-month {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 4px;
  height: 36px;
  line-height: 36px;
}

.flatpickr-current-month span.cur-month {
  font-weight: 700;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.flatpickr-current-month span.cur-month:hover {
  background: var(--surface);
  border-radius: 6px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border: none;
  outline: none;
  border-radius: 6px;
  padding: 2px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
  background: var(--surface);
  outline: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background: var(--bg-card);
  color: var(--text);
}

.flatpickr-current-month input.cur-year {
  color: var(--text);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: inherit;
  background: transparent;
}

.flatpickr-current-month input.cur-year:disabled,
.flatpickr-current-month input.cur-year:disabled:hover {
  color: var(--text-muted);
}

/* Year stepper arrows */
.numInputWrapper { position: relative; }
.numInputWrapper:hover {
  background: var(--surface);
  border-radius: 6px;
}

.numInputWrapper span {
  border-color: var(--border);
  opacity: 0;
}
.numInputWrapper:hover span { opacity: 1; }

.numInputWrapper span:hover { background: rgba(58,170,53,0.12); }
.numInputWrapper span:active { background: rgba(58,170,53,0.22); }

.numInputWrapper span.arrowUp::after {
  border-bottom-color: var(--text-muted);
}
.numInputWrapper span.arrowDown::after {
  border-top-color: var(--text-muted);
}

/* --- Prev / Next month buttons --- */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--text-muted) !important;
  fill: var(--text-muted) !important;
  height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  top: 10px;
  transition: background 0.2s, fill 0.2s;
}

/* Critical: override the default red fill on hover */
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: rgba(58,170,53,0.12) !important;
  color: var(--green-primary) !important;
  fill: var(--green-primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--green-primary) !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  fill: var(--text-muted);
  transition: fill 0.2s;
}

.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
  fill: inherit;
  transition: fill 0.2s;
}

/* --- Weekday header row --- */
.flatpickr-weekdays {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

span.flatpickr-weekday {
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Days container --- */
.flatpickr-days,
.dayContainer {
  width: 100% !important;
  min-width: unset !important;
  max-width: unset !important;
}

.dayContainer {
  padding: 4px 0 2px;
  justify-content: space-around;
}

/* Inner right container — make flexible */
.flatpickr-rContainer { width: 100%; }
.flatpickr-innerContainer { width: 100%; }

/* --- Individual day cells --- */
.flatpickr-day {
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  height: 36px;
  line-height: 36px;
  max-width: 36px;
  width: 36px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Override default gray hover */
.flatpickr-day:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: rgba(58,170,53,0.12) !important;
  border-color: transparent !important;
  color: var(--green-primary) !important;
  outline: none;
}

/* Today ring */
.flatpickr-day.today {
  border-color: var(--green-primary) !important;
  color: var(--green-primary);
  font-weight: 700;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  background: var(--green-primary) !important;
  border-color: var(--green-primary) !important;
  color: #fff !important;
}

/* Selected day */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--green-primary) !important;
  border-color: var(--green-primary) !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700;
}

/* Disabled & not-allowed — grayed out with strikethrough */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
  color: var(--text-muted) !important;
  opacity: 0.35;
  background: transparent !important;
  border-color: transparent !important;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Spill-over days from adjacent months */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--text-muted);
  opacity: 0.45;
}

.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
  opacity: 0.18;
}

/* Hidden days (not in month) */
.flatpickr-day.hidden { visibility: hidden; }

/* Cursor hint on the input */
.flatpickr-input[readonly] { cursor: pointer; }

/* --- Dark mode: force all flatpickr hardcoded colors to our dark tokens ---
   Flatpickr's own CSS uses #fff / #e6e6e6 / rgba(0,0,0,...) etc. at equal
   specificity. The block below ensures every surface, text, and border
   uses our dark-mode palette unambiguously. */
[data-theme="dark"] .flatpickr-calendar {
  background: #1a2e1a !important;
  border-color: rgba(58,170,53,0.22) !important;
  -webkit-box-shadow: 0 12px 56px rgba(0,0,0,0.50) !important;
  box-shadow: 0 12px 56px rgba(0,0,0,0.50) !important;
  color: #e8f5e8;
}

[data-theme="dark"] .flatpickr-months .flatpickr-month {
  background: transparent;
  color: #e8f5e8;
  fill: #e8f5e8;
}

[data-theme="dark"] .flatpickr-current-month,
[data-theme="dark"] .flatpickr-current-month span.cur-month,
[data-theme="dark"] .flatpickr-current-month input.cur-year {
  color: #e8f5e8;
}

[data-theme="dark"] .flatpickr-current-month span.cur-month:hover {
  background: #1e321e;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months {
  background: #1a2e1a;
  color: #e8f5e8;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:focus {
  background: #1e321e;
}

/* Native <option> elements — limited browser support but best effort */
[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background: #1a2e1a;
  color: #e8f5e8;
}

[data-theme="dark"] .numInputWrapper:hover {
  background: #1e321e;
}

[data-theme="dark"] .numInputWrapper span {
  border-color: rgba(58,170,53,0.22);
}

[data-theme="dark"] .numInputWrapper span.arrowUp::after {
  border-bottom-color: #8aba8a;
}

[data-theme="dark"] .numInputWrapper span.arrowDown::after {
  border-top-color: #8aba8a;
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month svg,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month svg {
  fill: #8aba8a;
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month:hover {
  background: rgba(58,170,53,0.15) !important;
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover svg,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month:hover svg {
  fill: #3aaa35 !important;
}

[data-theme="dark"] .flatpickr-weekdays {
  background: transparent;
  border-bottom-color: rgba(58,170,53,0.22);
}

[data-theme="dark"] span.flatpickr-weekday {
  background: transparent;
  color: #8aba8a;
}

[data-theme="dark"] .flatpickr-day {
  color: #e8f5e8;
  background: transparent;
  border-color: transparent;
}

/* Override flatpickr's hardcoded #e6e6e6 hover */
[data-theme="dark"] .flatpickr-day:hover,
[data-theme="dark"] .flatpickr-day:focus,
[data-theme="dark"] .flatpickr-day.prevMonthDay:hover,
[data-theme="dark"] .flatpickr-day.nextMonthDay:hover {
  background: rgba(58,170,53,0.18) !important;
  border-color: transparent !important;
  color: #3aaa35 !important;
}

[data-theme="dark"] .flatpickr-day.today {
  border-color: #3aaa35 !important;
  color: #3aaa35;
}

[data-theme="dark"] .flatpickr-day.today:hover,
[data-theme="dark"] .flatpickr-day.today:focus {
  background: #3aaa35 !important;
  color: #fff !important;
}

[data-theme="dark"] .flatpickr-day.selected,
[data-theme="dark"] .flatpickr-day.selected:hover,
[data-theme="dark"] .flatpickr-day.selected:focus {
  background: #3aaa35 !important;
  border-color: #3aaa35 !important;
  color: #fff !important;
}

[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-theme="dark"] .flatpickr-day.flatpickr-disabled:hover,
[data-theme="dark"] .flatpickr-day.notAllowed,
[data-theme="dark"] .flatpickr-day.notAllowed.prevMonthDay,
[data-theme="dark"] .flatpickr-day.notAllowed.nextMonthDay {
  color: #8aba8a !important;
  background: transparent !important;
  border-color: transparent !important;
}

[data-theme="dark"] .flatpickr-day.prevMonthDay,
[data-theme="dark"] .flatpickr-day.nextMonthDay {
  color: #8aba8a;
}

/* Dark mode input field */
[data-theme="dark"] .flatpickr-input {
  background: #1a2e1a;
  color: #e8f5e8;
  border-color: rgba(58,170,53,0.22);
}

[data-theme="dark"] .flatpickr-input::placeholder {
  color: #8aba8a;
  opacity: 0.55;
}

/* --- Responsive: fits inside the modal on small screens --- */
@media (max-width: 540px) {
  .flatpickr-calendar {
    width: calc(100vw - 64px);
    min-width: 240px;
  }
  .flatpickr-day {
    height: 32px;
    line-height: 32px;
    font-size: 0.82rem;
    border-radius: 6px;
  }
}

/* ===================== CHATBOT ===================== */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-trigger {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 6px 24px rgba(58, 170, 53, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  flex-shrink: 0;
}

.chat-trigger:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(58, 170, 53, 0.60);
}

.chat-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  transition: opacity 0.25s, transform 0.25s;
}

.chat-badge.hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.chat-window {
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window[hidden] { display: none !important; }

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gradient);
  color: #fff;
}

.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px;
  flex-shrink: 0;
}

.chat-header-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.chat-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
}

.chat-close {
  margin-left: auto;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.chat-close:hover { background: rgba(255, 255, 255, 0.2); opacity: 1; }

.chat-messages {
  flex: 1;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.55;
  animation: msgPop 0.22s ease;
}

@keyframes msgPop {
  from { opacity: 0; transform: scale(0.9) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-msg.bot {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  align-self: flex-start;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 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 typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%            { opacity: 1;   transform: translateY(-5px); }
}

.chat-suggestions {
  padding: 8px 12px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.chat-chip:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-input-row input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-row input:focus { border-color: var(--green-primary); }

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(58, 170, 53, 0.45); }

@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 400px) {
  .chat-window { width: calc(100vw - 32px); }
  .chat-bubble { right: 16px; bottom: 16px; }
}

/* ===================== ROI CALCULATOR ===================== */
.roi-section {
  position: relative;
  background: #071207;
  padding: 100px 0 80px;
  overflow: hidden;
}

.roi-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(58,170,53,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(58,170,53,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.roi-container {
  position: relative;
  z-index: 1;
}

.roi-tag {
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.30);
  color: #f5c518;
}

.roi-title {
  color: #e8f5e8;
}

.roi-accent {
  background: linear-gradient(135deg, #f5c518, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-sub {
  color: #8aba8a;
}

/* ── Slider Card ── */
.roi-slider-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(58,170,53,0.18);
  border-radius: 20px;
  padding: 28px 32px 24px;
  margin-top: 48px;
}

.roi-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.roi-slider-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c8e6c8;
}

.roi-users-value {
  font-size: 1rem;
  font-weight: 700;
  color: #f5c518;
}

.roi-range-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.roi-range-bound {
  font-size: 0.85rem;
  color: #6b9e6b;
  min-width: 24px;
  text-align: center;
}

/* Custom range input */
.roi-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #3aaa35 var(--roi-fill, 5%), rgba(255,255,255,0.10) var(--roi-fill, 5%));
  outline: none;
  cursor: pointer;
}

.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5c518;
  border: 2px solid #071207;
  box-shadow: 0 2px 10px rgba(245,197,24,0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roi-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 16px rgba(245,197,24,0.65);
}

.roi-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5c518;
  border: 2px solid #071207;
  box-shadow: 0 2px 10px rgba(245,197,24,0.5);
  cursor: pointer;
}

.roi-preset-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.roi-preset {
  padding: 6px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(58,170,53,0.30);
  background: transparent;
  color: #8aba8a;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roi-preset:hover {
  border-color: #3aaa35;
  color: #e8f5e8;
}

.roi-preset.active {
  background: #f5c518;
  border-color: #f5c518;
  color: #071207;
}

/* ── Stats Grid ── */
.roi-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.roi-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(58,170,53,0.15);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.roi-stat-featured {
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.25);
}

.roi-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f5c518;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.roi-featured-num {
  font-size: 1.8rem;
  color: #f5c518;
}

.roi-stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b9e6b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Chart Card ── */
.roi-chart-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(58,170,53,0.15);
  border-radius: 20px;
  padding: 28px 28px 20px;
  margin-top: 24px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .roi-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .roi-section { padding: 72px 0 60px; }
  .roi-slider-card { padding: 22px 18px 18px; }
  .roi-slider-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .roi-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .roi-stat-num { font-size: 1.3rem; }
  .roi-featured-num { font-size: 1.5rem; }
  .roi-preset-btns { gap: 7px; }
  .roi-preset { padding: 5px 13px; font-size: 0.82rem; }
  .roi-chart-card { padding: 18px 12px 14px; }
}

@media (max-width: 420px) {
  .roi-stats { grid-template-columns: 1fr 1fr; }
}
