/* ===================================================================
   Lead AI Studio — design system (light corporate theme)
   Covers every page: home, services, pricing, about, resources, contact
   =================================================================== */

:root {
  /* surfaces */
  --bg:        #ffffff;
  --bg-soft:   #f5f7fb;
  --bg-tint:   #eef2fc;
  --navy:      #0b1f3d;   /* dark sections + headings */
  --navy-2:    #112a52;

  /* text */
  --ink:       #1a2336;
  --slate:     #56607a;
  --mute:      #8a93a8;
  --on-dark:   #e8eef9;
  --on-dark-soft: #aebbd4;

  /* brand */
  --blue:      #2563eb;
  --blue-700:  #1d4ed8;
  --blue-50:   #eaf0ff;
  --teal:      #0d9488;
  --amber:     #d97706;

  /* lines */
  --border:    #e3e8f1;
  --border-2:  #d3dae7;

  /* theme-aware surfaces (overridden in dark mode) */
  --surface:   #ffffff;   /* cards, inputs, panels */
  --heading:   #0b1f3d;   /* heading + strong text */
  --header-bg: rgba(255, 255, 255, .9);

  --grad:      linear-gradient(120deg, #2563eb 0%, #0d9488 100%);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 61, .06), 0 1px 8px rgba(11, 31, 61, .04);
  --shadow:    0 12px 30px -12px rgba(11, 31, 61, .18);
  --shadow-lg: 0 30px 60px -24px rgba(11, 31, 61, .28);

  --maxw:      1180px;
  --ease:      cubic-bezier(.22, 1, .36, 1);

  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ------------------------- reset ------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
::selection { background: rgba(37, 99, 235, .18); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------- layout helpers ------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--bg-tint); }

.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-lead { color: var(--slate); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head:not(.left) .eyebrow::before { display: none; }

.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ------------------------- buttons ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 10px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(37, 99, 235, .7); }
.btn-outline { background: var(--surface); color: var(--heading); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-white { background: #fff; color: #0b1f3d; }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------- header ------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 14px 24px; }

.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); }
.brand-name { font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; color: var(--heading); }
.brand-accent { color: var(--blue); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 28px; }
.nav-list a {
  font-size: .93rem; color: var(--slate); font-weight: 500; position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-list a:hover, .nav-list a.active { color: var(--heading); }
.nav-list a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 18px; font-size: .88rem; }
.header-login { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--heading); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------- hero ------------------------- */
.hero { position: relative; padding: 90px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 380px at 78% -8%, rgba(37, 99, 235, .12), transparent 70%),
    radial-gradient(560px 320px at 6% 8%, rgba(13, 148, 136, .09), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--slate); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--mute); }
.hero-note svg { width: 16px; height: 16px; color: var(--teal); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blue-50);
  color: var(--blue-700); font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* hero visual card */
.hero-visual {
  background: var(--navy); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-lg); color: var(--on-dark); position: relative;
}
.hero-visual h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.hv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hv-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.hv-row span { font-size: .86rem; color: var(--on-dark-soft); }
.hv-row strong { font-family: var(--font-head); font-size: .92rem; color: #fff; }
.hv-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.hv-bar i { display: block; width: 0; height: 100%; background: var(--grad); border-radius: 4px; }
.hv-tag { font-size: .72rem; color: #22c55e; font-weight: 600; }

/* ------------------------- trust / logos ------------------------- */
.logos { padding: 38px 0; border-block: 1px solid var(--border); background: var(--bg-soft); }
.logos p {
  text-align: center; font-family: var(--font-head); font-size: .76rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 18px;
}
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.logo-chip {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-head);
  font-weight: 700; color: var(--slate); font-size: 1rem; opacity: .85;
}
.logo-chip svg { width: 22px; height: 22px; color: var(--blue); }

/* ------------------------- stat band ------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 20px; }
.stat strong {
  display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--heading);
}
.stat .gradient-text { -webkit-text-fill-color: transparent; }
.stat span { font-size: .9rem; color: var(--slate); }

/* ------------------------- generic card grid ------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-2); }
.card-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 18px;
}
.card-icon svg { width: 25px; height: 25px; }
.card-icon.teal { background: #d7f3ef; color: var(--teal); }
.card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.card > p { color: var(--slate); font-size: .95rem; }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--blue); margin-bottom: 8px;
}

.tag {
  display: inline-block; font-family: var(--font-head); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}
.tag-blue { background: var(--blue-50); color: var(--blue-700); }
.tag-teal { background: #d7f3ef; color: #0a7d72; }
.tag-amber { background: #fdeccf; color: #b45309; }

.feature-list { margin-top: 16px; }
.feature-list li {
  position: relative; padding-left: 26px; color: var(--slate); font-size: .92rem; margin-top: 9px;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--blue-50);
  background-image: 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='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* pillar card (services overview) */
.pillar {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue); }
.pillar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.pillar:hover::after { transform: scaleY(1); }
.pillar .card-icon { margin-bottom: 16px; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pillar p { color: var(--slate); font-size: .92rem; flex-grow: 1; }
.pillar .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pillar .chips span {
  font-size: .73rem; color: var(--slate); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
}

/* ------------------------- split / feature rows ------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.split .section-lead { margin-bottom: 22px; }

.media-card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.media-card.dark { background: var(--navy); color: var(--on-dark); border-color: var(--navy-2); }
.media-card.dark h3, .media-card.dark h4 { color: #fff; }

/* ------------------------- detailed service block ------------------------- */
.svc-block { padding: 80px 0; border-top: 1px solid var(--border); }
.svc-block:first-of-type { border-top: 0; }
.svc-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 12px; }
.svc-head .card-icon { flex-shrink: 0; margin: 0; width: 56px; height: 56px; }
.svc-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.svc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; margin-top: 26px; }
.svc-capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }

/* ------------------------- security band (dark) ------------------------- */
.band-dark { background: var(--navy); color: var(--on-dark); }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .eyebrow { color: #7fb0ff; }
.band-dark .section-lead, .band-dark p { color: var(--on-dark-soft); }
.shield-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shield {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 24px; transition: background .25s, transform .25s var(--ease);
}
.shield:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.shield .card-icon { background: rgba(127, 176, 255, .14); color: #9ec3ff; margin-bottom: 14px; }
.shield h3 { font-size: 1.02rem; margin-bottom: 7px; }
.shield p { font-size: .88rem; }

/* ------------------------- process steps ------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; position: relative; transition: transform .25s var(--ease), border-color .25s;
}
.step:hover { transform: translateY(-5px); border-color: var(--blue); }
.step-num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 7px; }
.step p { color: var(--slate); font-size: .9rem; }

/* ------------------------- integrations ------------------------- */
.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.integration {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--font-head);
  font-weight: 600; font-size: .9rem; color: var(--heading);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.integration:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.integration svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }

/* ------------------------- demo widgets ------------------------- */
.demo {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.demo-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.demo-bar i:nth-child(1) { background: #f87171; }
.demo-bar i:nth-child(2) { background: #fbbf24; }
.demo-bar i:nth-child(3) { background: #34d399; }
.demo-bar span { margin-left: 8px; font-size: .8rem; color: var(--mute); font-family: var(--font-head); }
.demo-body { padding: 22px; }
.demo-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.demo-field label { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--slate); }
.demo-output { margin-top: 16px; }

/* chat-style transcript (voice demo) */
.transcript { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.bubble.ai { background: var(--blue-50); color: var(--heading); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble.caption { align-self: center; background: none; color: var(--mute); font-size: .8rem; padding: 2px; }

/* ------------------------- ROI calculator ------------------------- */
.roi {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.roi-inputs { padding: 36px; background: var(--surface); }
.roi-inputs .field { margin-bottom: 18px; }
.roi-range { width: 100%; accent-color: var(--blue); }
.roi-val { font-family: var(--font-head); font-weight: 700; color: var(--blue); }
.roi-result {
  padding: 36px; background: var(--navy); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center;
}
.roi-result h3 { color: #fff; }
.roi-big {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #fff; margin: 6px 0;
}
.roi-big .gradient-text { background: linear-gradient(120deg,#7fb0ff,#5eead4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.roi-result .roi-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.roi-result .roi-line span:first-child { color: var(--on-dark-soft); }

/* ------------------------- pricing ------------------------- */
.price-toggle {
  display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; margin: 0 auto 12px; gap: 4px;
}
.price-toggle button {
  border: 0; background: none; cursor: pointer; padding: 9px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--slate);
  transition: background .2s, color .2s;
}
.price-toggle button.active { background: var(--blue); color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-card .price-for { color: var(--mute); font-size: .85rem; margin-bottom: 16px; }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--heading); }
.price-amount small { font-size: .9rem; font-weight: 500; color: var(--mute); }
.price-card .feature-list { flex-grow: 1; margin-bottom: 22px; }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-head); color: var(--heading); background: var(--bg-soft); }
.compare td:not(:first-child) { text-align: center; }
.compare .yes { color: var(--teal); font-weight: 700; }
.compare .no { color: var(--mute); }

/* ------------------------- team ------------------------- */
.team-card { text-align: center; }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--grad); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #fff;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role { color: var(--blue); font-size: .85rem; font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: .88rem; color: var(--slate); }

.value-card .card-num { font-size: 1.5rem; }

/* ------------------------- testimonials ------------------------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 6px; left: 20px;
  font-family: Georgia, serif; font-size: 4rem; color: var(--blue-50); line-height: 1;
}
.quote p { position: relative; color: var(--ink); font-size: .98rem; margin-bottom: 18px; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700;
}
.quote-by strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--heading); }
.quote-by span { font-size: .82rem; color: var(--mute); }

/* ------------------------- resources / blog ------------------------- */
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb { height: 152px; background: var(--grad); position: relative; }
.post-thumb.alt { background: linear-gradient(120deg, #0b1f3d, #2563eb); }
.post-thumb.alt2 { background: linear-gradient(120deg, #0d9488, #2563eb); }
.post-thumb span {
  position: absolute; bottom: 12px; left: 14px; background: rgba(255,255,255,.92);
  color: var(--heading); font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  padding: 4px 10px; border-radius: 6px;
}
.post-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.post-body h3 { font-size: 1.06rem; margin-bottom: 8px; }
.post-body p { color: var(--slate); font-size: .9rem; flex-grow: 1; margin-bottom: 14px; }
.post-meta { font-size: .8rem; color: var(--mute); }

/* ------------------------- FAQ ------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 22px; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--heading);
  padding: 17px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--slate); font-size: .93rem; padding: 0 0 18px; }

/* ------------------------- forms ------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border-2); border-radius: 9px; padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #ef4444; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: .88rem; min-height: 1.2em; }

/* ------------------------- CTA band ------------------------- */
.cta-band {
  background: var(--navy); border-radius: var(--radius-lg); padding: 56px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 80% 0%, rgba(37,99,235,.4), transparent 70%),
              radial-gradient(420px 240px at 12% 100%, rgba(13,148,136,.32), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta-band p { color: var(--on-dark-soft); max-width: 540px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------- page hero (interior pages) ------------------------- */
.page-hero { padding: 64px 0 56px; background: var(--bg-soft); border-bottom: 1px solid var(--border); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(540px 280px at 88% 0%, rgba(37,99,235,.08), transparent 70%);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: .82rem; color: var(--mute); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--blue); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; max-width: 720px; }
.page-hero p { color: var(--slate); font-size: 1.05rem; max-width: 620px; }

/* ------------------------- footer ------------------------- */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding-top: 60px; }
.site-footer h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: .9rem; margin: 14px 0; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .2s;
}
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-col h3 { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 15px; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9rem; color: var(--on-dark-soft); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-news p { font-size: .88rem; margin-bottom: 12px; }
.footer-news form { display: flex; gap: 8px; }
.footer-news input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: 10px 12px; color: #fff; font-family: var(--font-body); font-size: .88rem;
}
.footer-news input::placeholder { color: var(--on-dark-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p, .footer-bottom a { font-size: .83rem; color: var(--on-dark-soft); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ------------------------- chatbot widget ------------------------- */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; box-shadow: 0 12px 28px -8px rgba(37,99,235,.7);
  display: grid; place-items: center; transition: transform .25s var(--ease), background .2s;
}
.chat-launcher:hover { transform: scale(1.07); background: var(--blue-700); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .ic-close { display: none; }
.chat-launcher.open .ic-chat { display: none; }
.chat-launcher.open .ic-close { display: block; }
.chat-launcher .badge {
  position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}

.chat-panel {
  position: fixed; bottom: 92px; right: 22px; z-index: 200;
  width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-header { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 11px; }
.chat-header .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .9rem;
}
.chat-header strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.chat-header span { font-size: .78rem; color: var(--on-dark-soft); display: flex; align-items: center; gap: 6px; }
.chat-header span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 13px; font-size: .9rem; line-height: 1.5; }
.chat-msg.bot { background: var(--surface); border: 1px solid var(--border); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-quick button {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--blue-700);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; transition: background .2s, border-color .2s;
}
.chat-quick button:hover { background: var(--blue-50); border-color: var(--blue); }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input input {
  flex: 1; border: 1.5px solid var(--border-2); border-radius: 999px; padding: 10px 15px;
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--blue); }
.chat-input button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blue); color: #fff;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.chat-input button:hover { background: var(--blue-700); }
.chat-input button svg { width: 18px; height: 18px; }
.chat-typing { display: flex; gap: 4px; padding: 12px 13px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: blink 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .2s; }
.chat-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ------------------------- logo marquee carousel ------------------------- */
.logos-marquee {
  margin-top: 18px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos-track {
  display: flex; gap: 0 56px; width: max-content;
  animation: marquee 34s linear infinite;
}
.logos-marquee:hover .logos-track,
.logos-marquee:focus-within .logos-track { animation-play-state: paused; }
.logos-track .logo-chip { flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------- carousel ------------------------- */
.carousel { position: relative; }
.carousel:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.carousel-viewport { overflow: hidden; padding: 6px; margin: -6px; }
.carousel-track {
  display: flex; transition: transform .55s var(--ease); will-change: transform;
}
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--heading); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: background .2s, color .2s, border-color .2s;
}
.carousel-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 28px; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: var(--border-2); transition: width .3s var(--ease), background .3s;
}
.carousel-dot.active { width: 28px; background: var(--grad); }

/* testimonial carousel — larger featured quote */
.testi-carousel { max-width: 880px; margin: 0 auto; }
.testi-carousel .quote { padding: 40px 46px; }
.testi-carousel .quote p { font-size: 1.12rem; line-height: 1.7; }
.testi-carousel .quote::before { font-size: 5rem; top: 10px; }

@media (max-width: 980px) {
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }
  .testi-carousel .quote { padding: 32px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ------------------------- reveal animation ------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

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

/* ------------------------- responsive ------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .shield-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 3; }
}
@media (max-width: 860px) {
  .hero-inner, .split, .roi, .svc-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .svc-capabilities { grid-template-columns: 1fr; }
  .header-actions .btn-outline, .header-login { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.open { max-height: 420px; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a { display: block; padding: 14px 0; }
  .nav-list a.active::after { display: none; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .stats, .shield-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 2; }
  .cta-band { padding: 40px 24px; }
  .container { padding: 0 18px; }
  .chat-panel { bottom: 84px; right: 12px; }
  .cookie-bar { left: 12px; right: 12px; max-width: none; }
}

/* ===================================================================
   DARK MODE + new components
   =================================================================== */

/* smooth theme transition */
body, .site-header, .card, .pillar, .step, .quote, .price-card, .post-card,
.faq-item, .integration, .demo, .case-card,
.field input, .field select, .field textarea {
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

:root[data-theme="dark"] {
  --bg:        #0b1626;
  --bg-soft:   #101e34;
  --bg-tint:   #14233d;
  --ink:       #e6ebf5;
  --slate:     #aab4c8;
  --mute:      #7e8aa1;
  --border:    #213048;
  --border-2:  #2c3e5c;
  --surface:   #122138;
  --heading:   #f4f7fc;
  --header-bg: rgba(11, 22, 38, .85);
  --blue-50:   #17284a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 10px rgba(0, 0, 0, .3);
  --shadow:    0 14px 34px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, .75);
}
:root[data-theme="dark"] body { color: var(--ink); }
:root[data-theme="dark"] .card-icon.teal { background: rgba(13, 148, 136, .2); color: #5eead4; }
:root[data-theme="dark"] .tag-teal { background: rgba(13, 148, 136, .2); color: #5eead4; }
:root[data-theme="dark"] .tag-amber { background: rgba(217, 119, 6, .2); color: #fbbf24; }
:root[data-theme="dark"] .post-thumb span { background: rgba(255, 255, 255, .92); }
:root[data-theme="dark"] .btn-outline { background: var(--surface); }
:root[data-theme="dark"] img[src$="logo.svg"] { filter: brightness(1.4); }

/* ------------------------- theme toggle ------------------------- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border-2); color: var(--heading);
  transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

/* ------------------------- scroll progress ------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: var(--grad); transition: width .12s linear;
}

/* ------------------------- back to top ------------------------- */
.to-top {
  position: fixed; bottom: 92px; right: 28px; z-index: 190;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--heading);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.to-top svg { width: 20px; height: 20px; }

/* ------------------------- cookie consent ------------------------- */
.cookie-bar {
  position: fixed; bottom: 22px; left: 22px; z-index: 250; max-width: 380px;
  background: var(--navy); color: var(--on-dark-soft); border: 1px solid var(--navy-2);
  border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-lg);
  transform: translateY(160%); transition: transform .45s var(--ease);
}
.cookie-bar.show { transform: none; }
.cookie-bar h4 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.cookie-bar p { font-size: .86rem; line-height: 1.55; margin-bottom: 14px; }
.cookie-bar p a { color: #7fb0ff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 16px; font-size: .85rem; }

/* ------------------------- case studies ------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue); }
.case-card h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.case-card > p { color: var(--slate); font-size: .92rem; flex-grow: 1; }
.case-metrics { display: flex; gap: 12px; margin-top: 18px; }
.case-metric {
  flex: 1; text-align: center; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 8px;
}
.case-metric strong {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--heading);
}
.case-metric.win strong { color: var(--teal); }
.case-metric span { font-size: .72rem; color: var(--mute); }

/* ------------------------- video / product tour ------------------------- */
.video-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  aspect-ratio: 16 / 9; border: 1px solid var(--border);
  background: linear-gradient(125deg, #0b1f3d 0%, #1d4ed8 55%, #0d9488 120%);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.video-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 240px at 50% 46%, rgba(255,255,255,.16), transparent 70%);
}
.video-card .vc-label {
  position: absolute; bottom: 18px; left: 22px; z-index: 2; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.video-play {
  position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); display: grid; place-items: center;
  box-shadow: 0 12px 34px -8px rgba(0, 0, 0, .5); transition: transform .25s var(--ease);
}
.video-card:hover .video-play { transform: scale(1.08); }
.video-play::before {
  content: ""; width: 0; height: 0; margin-left: 6px;
  border-style: solid; border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--blue);
}
.video-modal {
  position: fixed; inset: 0; z-index: 400; background: rgba(4, 9, 18, .82);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.video-modal.open { opacity: 1; pointer-events: auto; }
.vm-inner { width: min(940px, 94vw); aspect-ratio: 16 / 9; position: relative; }
.vm-inner iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.vm-close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(255, 255, 255, .15); color: #fff;
  display: grid; place-items: center;
}
.vm-close:hover { background: rgba(255, 255, 255, .28); }
.vm-close svg { width: 20px; height: 20px; }

/* ------------------------- calendar embed ------------------------- */
.cal-embed {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  min-height: 640px;
}
.cal-fallback { padding: 40px 28px; text-align: center; }
.cal-fallback .card-icon { margin: 0 auto 16px; }

@media (max-width: 1000px) {
  .case-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ------------------------- legal / policy pages ------------------------- */
.legal .updated { color: var(--mute); font-size: .85rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.32rem; margin: 38px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--slate); margin-bottom: 13px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal ul li { color: var(--slate); margin-bottom: 7px; }
.legal a { color: var(--blue); font-weight: 600; }
.legal strong { color: var(--heading); }
