/* =========================================================================
   SafeLocal AI — Brand Stylesheet
   Theme: STRICT LIGHT MODE. Clean, bright, ultra-professional corporate tech.
   ========================================================================= */

/* ----- 1. Design tokens (Brand Kit) ----- */
:root {
  /* Core palette */
  --navy:          #031122;   /* deep imperial navy / near-black */
  --navy-2:        #0A192F;   /* shield outline navy */
  --green:         #00B386;   /* primary accent — cyber emerald / mint */
  --green-600:     #009b73;   /* hover / gradient end */
  --green-300:     #34d6ab;   /* gradient start */
  --slate:         #4A5568;   /* secondary / body text */
  --slate-400:     #718096;   /* muted labels */
  --white:         #FFFFFF;
  --canvas:        #F8FAFC;   /* ultra-light gray background */
  --border:        #E8EDF3;   /* border-slate-100 */
  --border-strong: #D7DEE8;

  /* Ambient glow (very low-opacity green) */
  --glow:          rgba(0, 179, 134, 0.04);
  --glow-2:        rgba(0, 179, 134, 0.07);

  /* Effects */
  --radius:        12px;      /* rounded-xl */
  --radius-lg:     20px;
  --radius-sm:     8px;
  --shadow-sm:     0 1px 2px rgba(3, 17, 34, 0.04), 0 1px 3px rgba(3, 17, 34, 0.06);
  --shadow-md:     0 4px 12px rgba(3, 17, 34, 0.06), 0 2px 4px rgba(3, 17, 34, 0.04);
  --shadow-lg:     0 18px 40px rgba(3, 17, 34, 0.10), 0 6px 14px rgba(3, 17, 34, 0.06);
  --shadow-green:  0 8px 24px rgba(0, 179, 134, 0.28);

  --gradient-green: linear-gradient(135deg, var(--green-300) 0%, var(--green) 55%, var(--green-600) 100%);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1160px;
}

/* ----- 2. Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }
a  { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ----- 3. Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; position: relative; }
.section--tint { background: var(--canvas); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--glow-2); }
.lead { font-size: 1.12rem; color: var(--slate); }

/* Ambient background glows */
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.glow--a { width: 520px; height: 520px; background: var(--glow); top: -120px; inset-inline-end: -120px; }
.glow--b { width: 460px; height: 460px; background: var(--glow); bottom: -160px; inset-inline-start: -140px; }
.section > .container { position: relative; z-index: 1; }

/* ----- 4. Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem; line-height: 1;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--gradient-green); color: #fff; box-shadow: var(--shadow-green); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,179,134,0.36); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { color: var(--navy); border-color: var(--green); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ----- 5. Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy); font-size: 1.08rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--slate); font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--navy); }
.nav__right { display: flex; align-items: center; gap: 16px; }

/* Language switch */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 12px; font-weight: 600; font-size: 0.9rem; color: var(--navy);
}
.lang__btn:hover { border-color: var(--green); }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 150px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease; z-index: 60;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--slate); font-weight: 600; font-size: 0.92rem; }
.lang__menu a:hover { background: var(--canvas); color: var(--navy); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ----- 6. Hero ----- */
.hero { padding: 80px 0 72px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, var(--canvas) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero__sub { font-size: 1.18rem; max-width: 36ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; color: var(--slate-400); font-weight: 600; }
.hero__badges .dot { color: var(--green); }

/* Workbench mockup card */
.mock {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--canvas); }
.mock__title { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.mock__meta { font-size: 0.72rem; color: var(--slate-400); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--green-600); background: rgba(0,179,134,0.10); padding: 5px 11px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mock__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 88%; }
.msg__who { font-size: 0.72rem; font-weight: 700; color: var(--slate-400); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.msg__bubble { padding: 13px 16px; border-radius: var(--radius); font-size: 0.92rem; line-height: 1.55; }
.msg--user { align-self: flex-end; text-align: start; }
.msg--user .msg__bubble { background: var(--navy-2); color: #E6EDF6; border-end-end-radius: 4px; }
.msg--user .msg__who { text-align: end; }
.msg--ai .msg__bubble { background: var(--canvas); color: var(--navy); border: 1px solid var(--border); border-end-start-radius: 4px; }
.mock__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--slate-400); }
.mock__foot strong { color: var(--green-600); }

/* ----- 7. Problem band ----- */
.problem { background: var(--navy); color: #C7D2E0; }
.problem h2 { color: #fff; }
.problem .container { position: relative; z-index: 1; }
.problem__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.problem__item { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; line-height: 1.6; }
.problem__item .x { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,99,99,0.14); color: #ff8a8a; display: grid; place-items: center; font-weight: 800; margin-top: 2px; }
.problem .glow--a, .problem .glow--b { background: rgba(0,179,134,0.10); }

/* ----- 8. Feature / solutions grid ----- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CDE9E0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(0,179,134,0.10); color: var(--green-600);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.96rem; }

/* ----- 9. Showcase (Secure Enrichment) ----- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.flow__step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.flow__tag { font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.flow__num { position: absolute; top: 22px; inset-inline-end: 22px; font-size: 2.2rem; font-weight: 800; color: var(--border-strong); line-height: 1; }
.flow__step h3 { margin-bottom: 8px; padding-inline-end: 40px; }
.flow__step p { margin: 0 0 14px; font-size: 0.95rem; }
.flow__note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--navy); background: var(--canvas); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; }
.flow__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ----- 10. Comparison table ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.93rem; }
.cmp th, .cmp td { padding: 16px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9rem; }
.cmp thead th:first-child { border-start-start-radius: var(--radius-lg); }
.cmp thead th:last-child { border-start-end-radius: var(--radius-lg); }
.cmp thead th.is-safelocal { background: var(--navy-2); position: relative; }
.cmp thead th.is-safelocal::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--gradient-green); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child { font-weight: 700; color: var(--navy); background: var(--canvas); }
.cmp td.is-safelocal { background: rgba(0,179,134,0.05); color: var(--navy); font-weight: 600; }
.cmp .yes { color: var(--green-600); font-weight: 700; }
.cmp .meh { color: var(--slate-400); }
.cmp strong { color: var(--navy); }
.cmp-note { margin-top: 14px; font-size: 0.8rem; color: var(--slate-400); }

/* ----- 11. Pricing ----- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; }
.plan--featured { border-color: var(--green); box-shadow: var(--shadow-md); }
.plan__flag { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--gradient-green); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-green); }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan__price { font-size: 1.05rem; font-weight: 700; color: var(--green-600); margin-bottom: 6px; }
.plan__price span { color: var(--slate-400); font-weight: 600; font-size: 0.85rem; }
.plan__desc { font-size: 0.93rem; color: var(--slate); margin-bottom: 22px; }
.plan__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.94rem; color: var(--slate); }
.plan__list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: rgba(0,179,134,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300B386' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; }

/* ----- 12. Security wedge ----- */
.wedge { background: var(--navy); color: #C7D2E0; }
.wedge h2 { color: #fff; }
.wedge .container { position: relative; z-index: 1; max-width: 880px; text-align: center; }
.wedge .glow--a, .wedge .glow--b { background: rgba(0,179,134,0.12); }
.wedge__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; text-align: start; }
.wedge__cell { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius); padding: 20px; }
.wedge__cell strong { display: block; color: #fff; font-size: 0.98rem; margin-bottom: 5px; }
.wedge__cell span { font-size: 0.85rem; line-height: 1.5; }

/* ----- 13. Signup CTA ----- */
.signup .container { max-width: 760px; text-align: center; }
.signup__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 56px 40px; position: relative; overflow: hidden; }
.signup__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 50% -10%, var(--glow-2), transparent 70%); }
.signup__card > * { position: relative; z-index: 1; }
.signup p { font-size: 1.08rem; max-width: 52ch; margin-inline: auto; margin-bottom: 28px; }

/* ----- 14. FAQ ----- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: start; cursor: pointer; background: none; border: none; padding: 20px 24px; font-family: inherit; font-size: 1.04rem; font-weight: 700; color: var(--navy); }
.faq__q .chev { flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s ease; color: var(--green-600); }
.faq__item.open .faq__q .chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 24px 22px; font-size: 0.98rem; color: var(--slate); }

/* ----- 15. Footer ----- */
.site-footer { background: var(--canvas); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { font-size: 0.92rem; max-width: 34ch; margin-top: 14px; }
.footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-400); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--slate); font-size: 0.94rem; font-weight: 600; margin-bottom: 11px; }
.footer__col a:hover { color: var(--green-600); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--slate-400); }

/* ----- 16. RTL adjustments ----- */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] .msg--user { align-self: flex-start; }
[dir="rtl"] .flow__num { font-family: var(--font); }

/* ----- 17. Responsive ----- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-cards { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .wedge__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__right .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 70px; inset-inline: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: 22px 24px; box-shadow: var(--shadow-md);
  }
  .problem__list { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .wedge__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .signup__card { padding: 40px 24px; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* ====================================================================
   18. Additions — logo wordmark, hero accent, two-solution panels
   ==================================================================== */

/* Logo wordmark: "SafeLocal" navy + green dot + "ai" */
.brand__word { font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.brand__word .dot { color: var(--green); }

/* Hero heading — stacked lines with green accents */
.hero__title { line-height: 1.08; margin-bottom: 24px; }
.hero__title .g { color: var(--green); }

/* ----- Two-solution panels ----- */
.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution {
  position: relative; min-height: 480px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: flex; align-items: flex-end; isolation: isolate; background: var(--canvas);
}
.solution__media { position: absolute; inset: 0; z-index: 0; }
.solution__video, .solution__placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.solution::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, #ffffff 5%, rgba(255,255,255,0.95) 34%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.10) 100%);
}
.solution__body { position: relative; z-index: 2; padding: 30px 30px 32px; width: 100%; }
.solution__num {
  display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-600); background: rgba(0,179,134,0.12); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.solution__body h3 { font-size: 1.45rem; margin-bottom: 10px; }
.solution__body > p { color: var(--slate); margin-bottom: 18px; max-width: 46ch; }
.solution__list { display: grid; gap: 10px; }
.solution__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; color: var(--navy); font-weight: 600; }
.solution__list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: rgba(0,179,134,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300B386' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* "Both solutions include" strip */
.included {
  margin-top: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.included__label { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-400); }
.included__grid { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.included__grid li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.included__grid li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

@media (max-width: 860px) {
  .solutions { grid-template-columns: 1fr; }
  .solution { min-height: 420px; }
}

/* ====================================================================
   19. Lead-capture popover (opens under demo / quote / sales buttons)
   ==================================================================== */
.lead-backdrop {
  position: fixed; inset: 0; z-index: 900; background: rgba(3,17,34,0.18);
  opacity: 0; visibility: hidden; transition: opacity .18s ease;
}
.lead-backdrop.open { opacity: 1; visibility: visible; }

.lead-pop {
  position: absolute; z-index: 1000; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
  transform-origin: top center; transition: opacity .18s ease, transform .18s ease;
}
.lead-pop.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lead-pop__arrow {
  position: absolute; top: -7px; width: 14px; height: 14px; background: #fff;
  border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg);
}
.lead-pop__title { font-size: 1.12rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.lead-pop__sub { font-size: 0.88rem; color: var(--slate); margin: 0 0 16px; line-height: 1.45; }
.lead-pop__close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 28px; height: 28px; border: none;
  background: var(--canvas); border-radius: 8px; color: var(--slate); font-size: 16px; line-height: 1; cursor: pointer;
}
.lead-pop__close:hover { background: #eef2f7; color: var(--navy); }

.lead-field { margin-bottom: 12px; }
.lead-field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--slate); margin-bottom: 5px; }
.lead-field input {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--navy);
  padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,179,134,0.14); }
.lead-field input.invalid { border-color: #e0584f; box-shadow: 0 0 0 3px rgba(224,88,79,0.12); }

.lead-pop__err { color: #d24b42; font-size: 0.82rem; margin: 0 0 10px; display: none; }
.lead-pop__err.show { display: block; }

.lead-pop__submit {
  width: 100%; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gradient-green); color: #fff; font-weight: 800; font-size: 1rem; font-family: inherit;
  border: none; border-radius: var(--radius); padding: 13px 18px; cursor: pointer; box-shadow: var(--shadow-green);
  transition: transform .15s ease, box-shadow .2s ease;
}
.lead-pop__submit:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,179,134,0.36); }
.lead-pop__submit:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }
.lead-pop__submit img { width: 22px; height: 22px; }

.lead-pop__success { text-align: center; padding: 10px 4px 6px; }
.lead-pop__success .ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: rgba(0,179,134,0.12); display: grid; place-items: center; }
.lead-pop__success .ico img { width: 34px; height: 34px; }
.lead-pop__success h4 { color: var(--navy); font-size: 1.1rem; margin: 0 0 6px; }
.lead-pop__success p { color: var(--slate); font-size: 0.9rem; margin: 0; }

/* ====================================================================
   20. Zigzag solutions — text cells + video cells on opposite diagonals
   ==================================================================== */
.zig { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; }
.zig--text {
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 38px 36px; display: flex; flex-direction: column; justify-content: center;
}
.zig--text h3 { font-size: 1.5rem; margin: 4px 0 10px; }
.zig--text > p { color: var(--slate); margin-bottom: 18px; max-width: 46ch; }

.zig--video {
  position: relative; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  background: var(--canvas);
}
.zig--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.zig--video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(0,179,134,0.06), rgba(3,17,34,0.05));
}

@media (max-width: 860px) {
  /* single column — pair each text with its own video */
  .solutions .zig:nth-child(3) { order: 4; } /* office video → last */
  .solutions .zig:nth-child(4) { order: 3; } /* solution 2 text → before its video */
  .zig { min-height: 0; }
  .zig--video { min-height: 240px; }
  .zig--text { padding: 30px 26px; }
}
