:root {
  --ink: #0b1b2b;
  --ink-soft: #334155;
  --muted: #5b6b7c;
  --paper: #f5f8fb;
  --panel: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #1a6cff;
  --brand-dark: #0f3d8c;
  --brand-soft: #eaf2ff;
  --ok: #16a34a;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --navy: #071526;
  --navy-2: #0d2340;
  --shadow: 0 1px 2px rgba(7, 21, 38, 0.04), 0 14px 40px rgba(7, 21, 38, 0.08);
  --radius: 10px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand span { color: var(--brand); }

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
  margin-left: auto;
}
.nav > a,
.nav button.linkish,
.nav-dropdown-toggle {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  font: inherit;
  padding: 0.4rem 0.15rem;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}
.nav > a:hover,
.nav button.linkish:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open > .nav-dropdown-toggle {
  color: var(--brand);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.nav-dropdown.is-open > .nav-dropdown-toggle .nav-caret,
.nav-dropdown:hover > .nav-dropdown-toggle .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  min-width: 12rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 40, 80, 0.12);
  padding: 0.35rem;
  z-index: 80;
  flex-direction: column;
  gap: 0.05rem;
}
/* Desktop: doar hover — se închide când ieși cu mouse-ul (fără focus-within, ca să nu rămână 2 deschise) */
@media (hover: hover) and (min-width: 961px) {
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: flex !important;
  }
  .nav-dropdown:hover > .nav-dropdown-toggle {
    color: var(--brand);
  }
  /* ignorează .is-open rămas pe desktop */
  .nav-dropdown.is-open:not(:hover) > .nav-dropdown-menu {
    display: none !important;
  }
}
/* Click (mobil / touch / tastatură): .is-open */
@media (hover: none), (max-width: 960px) {
  .nav-dropdown.is-open > .nav-dropdown-menu {
    display: flex !important;
  }
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: #f3f7fc;
  color: var(--brand);
  outline: none;
}

.nav-sms-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem !important;
  border-radius: 999px;
  background: #e8f1fb;
  color: var(--navy) !important;
  border: 1px solid #c5daf3 !important;
  font-size: 0.88rem !important;
  white-space: nowrap;
  text-decoration: none !important;
}
.nav-sms-balance:hover {
  background: #d7e8f8;
  color: var(--navy) !important;
}
.nav-sms-balance strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.nav-sms-label,
.nav-sms-unit {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  .nav { gap: 0.1rem 0.55rem; }
  .nav > a,
  .nav-dropdown-toggle { font-size: 0.86rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding-bottom: 0.75rem;
  }
  .nav.is-open { display: flex; }
  .nav > a,
  .nav button.linkish,
  .nav-dropdown-toggle {
    padding: 0.75rem 0.15rem;
    border-bottom: 1px solid var(--line) !important;
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0.4rem 0.9rem;
    background: transparent;
    min-width: 0;
  }
  .nav-dropdown.is-open > .nav-dropdown-menu {
    display: flex !important;
  }
  /* pe mobil nu folosim hover */
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: none !important;
  }
  .nav-dropdown.is-open:hover > .nav-dropdown-menu {
    display: flex !important;
  }
  .nav-dropdown-menu a {
    padding: 0.5rem 0.15rem;
    border-bottom: 0;
  }
  .nav-sms-balance {
    justify-content: center;
    margin: 0.35rem 0;
    border-bottom: 0 !important;
  }
  .site-header { flex-wrap: wrap; }
  .nav-cta {
    width: 100%;
    margin: 0.55rem 0 0;
  }
  .nav-cta .btn { flex: 1; justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  border-radius: 999px;
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  border-radius: 999px;
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  border-radius: 999px;
}
.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  border-radius: 999px;
  font-weight: 700;
}
.btn-light:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); border-radius: 999px; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.88rem; border-radius: 999px; }

/* Panels / cards */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.panel + .panel { margin-top: 1rem; }

.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stat { padding: 1rem 1.1rem; }
.stat .label { color: var(--muted); font-size: 0.9rem; }
.stat .value {
  font-weight: 700;
  font-size: 1.85rem;
  margin-top: 0.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
h2 { margin: 0 0 0.75rem; font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h2 em, h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 650;
}
h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.72); }

label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(29, 78, 216, 0.25);
  border-color: var(--brand);
}
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 1rem; }
.api-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.api-copy-row input {
  flex: 1 1 14rem;
  min-width: 0;
}
.help { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }
.error { color: var(--danger); font-size: 0.9rem; margin-top: 0.35rem; }
.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 1rem auto;
  width: min(1120px, calc(100% - 2rem));
  border: 1px solid var(--line);
  background: #fff;
}
.alert-ok { border-color: #a7f3d0; background: var(--ok-soft); color: #065f46; }
.alert-err { border-color: #fecaca; background: var(--danger-soft); color: #991b1b; }

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.badge-warn { background: var(--warn-soft); color: #92400e; }
.badge-danger { background: var(--danger-soft); color: #991b1b; }
.badge-ok { background: var(--ok-soft); color: #065f46; }

.page { padding: 1.5rem 0 3rem; }
.page-narrow { max-width: 720px; margin: 0 auto; }

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-col h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--brand); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.inline-form { display: inline; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Captcha (app forms) */
.captcha-box { display: grid; gap: 1rem; }
.slider-wrap {
  position: relative;
  height: 48px;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.slider-track-mark {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--brand);
  border-radius: 4px;
  transform: translateX(-50%);
}
.slider-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
  cursor: grab;
  z-index: 2;
}
.company-preview {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  min-height: 3.2rem;
  color: var(--muted);
}

/* ===== Marketing homepage ===== */
.page-marketing { background: #fff; }
.marketing-main { padding: 0; }

.hero-section {
  padding: 4rem 0 4.25rem;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(26, 108, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}
.hero-copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero-copy .lead {
  margin: 0 0 1.45rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 36rem;
  line-height: 1.65;
}
.hero-trust {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34rem;
}
.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-media {
  position: relative;
  min-height: 280px;
}
.hero-dashboard {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-dashboard img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-person {
  margin: 0;
  position: absolute;
  left: -8%;
  bottom: -6%;
  width: min(38%, 190px);
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-person img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}

.stats-strip {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
.stat-item { text-align: left; }
.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}
.stat-label {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  max-width: 16rem;
  line-height: 1.45;
}

.section {
  padding: 4.25rem 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.section-alt { background: var(--paper); }
.section-dark {
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(26, 108, 255, 0.22), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-bottom: 0;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.78); line-height: 1.65; }

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}
.section-head p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head-center p { margin-left: auto; margin-right: auto; }

.feature-card {
  height: 100%;
  padding: 1.4rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(7, 21, 38, 0.1);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step {
  position: relative;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.split-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.dark-cards { display: grid; gap: 0.85rem; }
.dark-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}
.dark-card p { margin: 0.35rem 0 0; font-size: 0.95rem; }

.audience-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}
.audience-box p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; }
.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.audience-tags span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 550;
}

.security-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}
.security-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.security-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.security-list svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex-shrink: 0;
  margin-top: 2px;
}
.security-panel .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.security-panel .row:last-child { border-bottom: 0; }
.security-panel .row span { color: var(--muted); }

.pricing-panel {
  border-radius: 12px;
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.pricing-table th,
.pricing-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.pricing-table thead th {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 1;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 650;
}
.pricing-table .th-sub {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
  text-transform: none;
  letter-spacing: 0;
}
.pricing-table tbody tr:hover { background: #f8fafc; }
.pricing-table tbody tr:last-child td { border-bottom: 0; }

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 1rem;
}
.legal-header {
  margin-bottom: 1.25rem;
}
.legal-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.legal-body {
  padding: 1.5rem 1.6rem 1.75rem;
  line-height: 1.7;
}
.legal-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.legal-body p { margin: 0 0 0.85rem; color: var(--ink-soft); }
.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.legal-body li { margin-bottom: 0.35rem; }
.legal-closing {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink) !important;
}

.contact-section {
  background: var(--navy);
  color: #fff;
  padding: 4.25rem 0 4.5rem;
}
.contact-title {
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
}
.contact-form {
  max-width: 820px;
  margin: 1.5rem auto 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.contact-form .field { margin-bottom: 0.85rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font: inherit;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 108, 255, 0.25);
}
.contact-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: block;
}
.contact-captcha {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem 0 1.1rem;
}
.contact-slider {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-contact {
  background: #e85d7a;
  color: #fff;
  border: 1px solid #e85d7a;
  border-radius: 6px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.btn-contact:hover {
  background: #d94868;
  border-color: #d94868;
  color: #fff;
}
.contact-form .error { color: #fda4af; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.integration-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.integration-card:hover {
  border-color: rgba(26, 108, 255, 0.35);
  box-shadow: 0 10px 28px rgba(15, 40, 80, 0.08);
  transform: translateY(-2px);
}
.integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-bottom: 0.15rem;
}
.integration-logo img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}
.integration-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.integration-card p {
  margin: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.integration-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.fx-note {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  font-size: 0.95rem;
}
.page:not(.marketing-main) .fx-note {
  text-align: left;
  margin: 0 0 1rem;
}

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent, #1a6cff);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0.75rem 0 0.15rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}

.cta-final {
  padding: 4.5rem 0;
  background:
    radial-gradient(800px 360px at 80% 20%, rgba(26, 108, 255, 0.28), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, #12305a 100%);
  color: #fff;
}
.cta-final-inner { max-width: 40rem; }
.cta-final h2 { color: #fff; margin-bottom: 0.7rem; }
.cta-final p {
  margin: 0 0 1.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.6;
}

.page-marketing .footer {
  border-top: 0;
  background: #06111f;
  color: rgba(255, 255, 255, 0.65);
  padding: 2.4rem 0;
}
.page-marketing .footer a { color: rgba(255, 255, 255, 0.78); }
.page-marketing .footer a:hover { color: #fff; text-decoration: none; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  line-height: 0;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.footer-brand img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.footer-brand:hover { text-decoration: none; }

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integrations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid,
  .audience-box,
  .security-grid,
  .steps,
  .split-band {
    grid-template-columns: 1fr;
  }
  .hero-section { padding: 2.25rem 0 2.75rem; }
  .hero-copy h1 { max-width: none; }
  .cta-row .btn { width: 100%; }
  .hero-person {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 0.85rem;
    max-width: none;
  }
  .hero-person img {
    height: 200px;
    object-position: center 20%;
  }
  .hero-media { min-height: 0; }
  .section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
}
/* SEO marketing pages */
.seo-hero {
  padding: 2rem 0 1.75rem;
  background: linear-gradient(180deg, #eff6ff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.seo-hero h1 {
  margin: 0.75rem 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  letter-spacing: -0.03em;
  max-width: 42rem;
  line-height: 1.2;
}
.seo-hero .lead {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.seo-breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}
.seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}
.seo-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line-strong);
}
.seo-breadcrumb a { color: var(--muted); }
.seo-breadcrumb a:hover { color: var(--brand); }
.seo-breadcrumb [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

.seo-page { padding: 2.5rem 0 1rem; }
.seo-page-inner { max-width: 820px; }
.seo-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.seo-page h2:first-child { margin-top: 0; }
.seo-page h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.08rem;
}
.seo-page p { margin: 0 0 0.9rem; color: var(--ink-soft); }
.seo-page ul, .seo-page ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.seo-page li { margin-bottom: 0.35rem; }
.seo-page .seo-note {
  background: var(--brand-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.seo-page .seo-examples {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.seo-page .seo-example {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
}
.seo-code {
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
}
.seo-code code { color: inherit; background: transparent; padding: 0; }
.seo-api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}
.seo-api-table th,
.seo-api-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.seo-api-table th { background: var(--paper); font-weight: 650; }
.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.seo-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.seo-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  text-decoration: none;
}
.seo-card h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.seo-card p { margin: 0; flex: 1; font-size: 0.92rem; }
.seo-card .seo-card-link { font-weight: 600; font-size: 0.9rem; color: var(--brand); }
.seo-faq-group { margin-bottom: 1.75rem; }
.seo-faq-group > h2 { margin-bottom: 0.85rem; }
