/* Self-hosted fonts — see public/assets/fonts/README.md for provenance,
   licence (OFL) and how to refresh them. Declared here instead of pulling
   fonts.googleapis.com so the page needs no render-blocking third-party
   stylesheet and no extra DNS+TLS handshake before its first text paint.
   `swap` keeps the copy readable in the fallback face while the woff2 lands.
   The unicode-range mirrors Google's `latin` subset: enough for the three
   languages the landing ships (es / en / pt-BR). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  /* Variable file: one download covers the 400-800 range the design uses. */
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #0b1220;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;
  --green-600: #059669;
  --green-50: #ecfdf5;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --container: 1140px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --channel-sms: #0284c7;
  --channel-rcs: #7c3aed;
  --channel-wa: #059669;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ── Nav ─────────────────────────────────────────────── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(12px);
}

.landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.nav-brand-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  border-radius: 0.4rem;
}

.nav-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--blue-600), var(--navy-800));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* The nav carries two auth affordances (login link + signup button); tighten
   the rhythm before the mobile breakpoint so nothing wraps. */
@media (max-width: 1080px) {
  .nav-links {
    gap: 1.125rem;
  }
}

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--navy-900);
}

/* Secondary auth entry point. Kept as a text link so the nav has exactly one
   filled button — the signup CTA. */
.nav-links a.nav-login-link,
.mobile-nav a.nav-login-link {
  font-weight: 600;
  color: var(--navy-900);
}

.nav-links a.nav-login-link:hover,
.mobile-nav a.nav-login-link:hover {
  color: var(--blue-600);
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.lang-switch-btn {
  min-width: 2.25rem;
  padding: 0.3rem 0.5rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch-btn:hover {
  color: var(--navy-900);
}

.lang-switch-btn.is-active {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-lg {
  padding: 0.8125rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.hero-eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green-600);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-600);
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Friction-removal line under the primary CTA. Repeated verbatim in the
   pricing + final CTA blocks so the promise never drifts between sections. */
.hero-cta-note {
  margin: -1.25rem 0 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.hero-trust-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-900);
}

.hero-trust-item span {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--navy-900);
  color: var(--white);
}

.hero-panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-panel-status::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #34d399;
}

.hero-panel-body {
  padding: 1.25rem;
  display: grid;
  gap: 0.875rem;
}

/* ── Copiloto / agente — turnos de conversación ──────── */
.copilot-turn {
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.copilot-turn--bot {
  background: var(--blue-50);
  border-color: var(--blue-50);
}

.copilot-turn__who {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* --navy-700 (not --slate-500): the bot turn sits on --blue-50, where
     --slate-500 only reaches 4.27:1 — under AA for text this small. */
  color: var(--navy-700);
}

.copilot-turn p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy-900);
}

.copilot-draft {
  margin: 0;
  padding: 0.875rem 1rem;
  display: grid;
  gap: 0.625rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.copilot-draft__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.copilot-draft__row--message {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.copilot-draft dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-700);
}

.copilot-draft dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy-900);
}

.copilot-draft__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.agent-handoff {
  margin: 0;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--slate-200);
  background: var(--green-50);
  border-left: 3px solid var(--green-600);
  font-size: 0.8125rem;
  font-weight: 600;
  /* Green carries the meaning through the border; the text stays --navy-900
     because --green-600 on --green-50 is only 3.57:1 (below AA). */
  color: var(--navy-900);
}

.hero-panel-status--agent::before {
  background: #a78bfa;
}

.channel-preview {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.channel-preview-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.channel-preview-label--sms { background: #e0f2fe; color: #0369a1; }
.channel-preview-label--rcs { background: #ede9fe; color: #6d28d9; }
.channel-preview-label--wa { background: var(--green-50); color: var(--green-600); }

.channel-preview p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--navy-800);
}

/* ── Sections ────────────────────────────────────────── */
.section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.section--muted {
  background: var(--slate-50);
  border-block: 1px solid var(--slate-200);
}

.section-header {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header--left {
  margin-inline: 0;
  text-align: left;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section-title {
  margin: 0 0 0.875rem;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}

.section-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.audience-grid { grid-template-columns: repeat(3, 1fr); }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.features-grid { grid-template-columns: repeat(4, 1fr); }
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
  margin-inline: auto;
  align-items: stretch;
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.18);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.8125rem;
  font-weight: 800;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.step-number {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-600);
}

/* ── Split sections ──────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Alternates the visual rhythm between consecutive split sections without
   reordering the DOM — on mobile the grid collapses and copy stays first. */
@media (min-width: 901px) {
  .split-section--reverse > :first-child {
    order: 2;
  }
}

/* Qualifier under a feature block (plan gating, default state). Deliberately
   quiet: it must be readable, not sold. */
.section-note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.steps-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  text-align: center;
}

.steps-cta__note {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.compliance-panel {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.compliance-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
}

.compliance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}

.compliance-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.55;
}

.compliance-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--blue-600);
}

/* ── Integrations ────────────────────────────────────── */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.integration-chip {
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy-800);
}

/* ── Advertise / Su publicidad (video carousel) ─────── */
.advertise .section-header {
  margin-bottom: 1.75rem;
}

.ad-carousel {
  max-width: 920px;
  margin: 0 auto;
}

.ad-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.ad-carousel__status {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.ad-carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ad-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ad-carousel__btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.ad-carousel__btn:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.ad-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-950);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}

.ad-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  position: relative;
}

.ad-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  display: flex;
  flex-direction: column;
}

.ad-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ad-carousel__media {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #0b0d18;
}

.ad-carousel__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0b0d18;
}

.ad-carousel__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-carousel__play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.25rem;
  height: 4.25rem;
  margin: -2.125rem 0 0 -2.125rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #6366f1, #a855f7 50%, #22d3ee);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease;
}

.ad-carousel__play-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.95rem;
  border-color: transparent transparent transparent #fff;
}

.ad-carousel__poster:hover .ad-carousel__play-icon,
.ad-carousel__poster:focus-visible .ad-carousel__play-icon {
  transform: scale(1.06);
}

.ad-carousel__poster:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: -4px;
}

.ad-carousel__embed {
  position: absolute;
  inset: 0;
}

.ad-carousel__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ad-carousel__caption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.88);
  background: rgba(11, 13, 24, 0.92);
}

.ad-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ad-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--slate-200);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.ad-carousel__dot.is-active {
  width: 1.5rem;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
}

.ad-carousel__dot:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.ad-carousel__links {
  margin: 0.875rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
}

.ad-carousel__links a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.advertise-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--slate-200);
}

.advertise-cta-row p {
  margin: 0;
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--slate-500);
}

@media (max-width: 640px) {
  .ad-carousel__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ad-carousel__play-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: -1.75rem 0 0 -1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-carousel__slide {
    transition: none;
  }
}

/* ── Pricing ─────────────────────────────────────────── */
.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.pricing-trust li {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}

.pricing-billing-toggle {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
}

.pricing-billing-toggle__btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--slate-600);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pricing-billing-toggle__btn.is-active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.pricing-billing-toggle__btn:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.pricing-showcase {
  max-width: 1040px;
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  overflow: hidden;
}

.price-card__head {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
}

.price-card__foot {
  margin-top: auto;
  padding: 1rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.875rem;
}

.price-card.featured {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 1px var(--blue-600), 0 12px 40px rgba(37, 99, 235, 0.14);
  z-index: 1;
}

.price-card--starter .price-card__head {
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}

.price-card--growth .price-card__head {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.price-card--pro .price-card__head {
  background: linear-gradient(180deg, #f5f3ff 0%, var(--white) 100%);
}

.price-badge {
  position: absolute;
  top: 0.875rem;
  right: 1.25rem;
  left: auto;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-tier {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.price-card__quota {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0 0 0.875rem;
}

.price-card__quota-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy-900);
}

.price-card--growth .price-card__quota-value {
  color: var(--blue-700);
}

.price-card__quota-unit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
}

.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

/*
  The currency lives outside .price-amount on purpose: the billing toggle
  rewrites .price-amount's textContent from data-monthly / data-annual, so a
  "USD" folded into that span would be erased on the first click. It is also
  deliberately not fine print — a MXN reader must see the unit at a glance,
  not hunt for it, so it sits at half the amount's size and full weight.
*/
.price-currency {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy-700);
}

.price-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
}

.price-equiv {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-700);
}

.price-equiv__value {
  font-weight: 700;
}

.price-sms-rate {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
}

.price-sms-rate__value {
  font-weight: 700;
  color: var(--slate-700);
}

.pricing-compare-wrap {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.pricing-compare__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.pricing-compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.pricing-compare-table th,
.pricing-compare-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}

.pricing-compare-table thead th {
  font-weight: 700;
  color: var(--navy-900);
  background: var(--slate-50);
}

.pricing-compare-table thead th:not(:first-child) {
  text-align: center;
}

.pricing-compare-table tbody td:not(:first-child) {
  text-align: center;
}

.pricing-compare-table tbody th {
  font-weight: 600;
  color: var(--slate-700);
}

.pricing-compare-table__yes {
  color: var(--green-700);
  font-weight: 700;
}

.pricing-compare-table__no {
  color: var(--slate-400);
}

.pricing-subsection-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
  text-align: center;
}

.price-annual-note {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-700);
  line-height: 1.45;
}

.price-card__features--muted {
  color: var(--slate-400) !important;
}

.price-card__features--muted::before {
  background: var(--slate-100) !important;
  color: var(--slate-400) !important;
  content: '–' !important;
  font-size: 0.75rem !important;
}

/*
  A signpost to another plan, not a missing feature. The muted "–" marker reads
  as a shortfall; an arrow in the brand blue reads as "the path continues over
  there", which is what an upsell line should feel like.
*/
.price-card__features--upsell {
  color: var(--blue-700) !important;
  font-weight: 600;
}

.price-card__features--upsell::before {
  background: var(--blue-50) !important;
  color: var(--blue-700) !important;
  content: '→' !important;
  font-size: 0.75rem !important;
}

.pricing-credits-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.pricing-credits-section__header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pricing-credits-section__sub {
  margin: 0.5rem auto 0;
  max-width: 36rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.55;
}

.credit-pack-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
  margin-inline: auto;
  align-items: stretch;
  gap: 1.5rem;
}

.credit-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.375rem;
}

.credit-pack-card--featured {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 1px var(--blue-600), 0 12px 40px rgba(37, 99, 235, 0.14);
  z-index: 1;
}

.credit-pack-card__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}

.credit-pack-card__credits {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.credit-pack-card__credits-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.credit-pack-card__bonus {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.credit-pack-card__price {
  margin: 0.5rem 0 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy-900);
}

.credit-pack-card__currency {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy-700);
}

.credit-pack-card__price-note {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
}

.credit-pack-card__rate {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.credit-pack-card .btn {
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
}

.credit-pack-card__badge--bulk {
  background: #7c3aed;
}

.pricing-ladder-note {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy-800);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  text-align: center;
}

.price-card__features {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0;
  flex: 1;
  display: grid;
  gap: 0.625rem;
}

.price-card__features li {
  position: relative;
  padding: 0 0 0 1.625rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.5;
  border: none;
}

.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 0.625rem;
  font-weight: 800;
}

.price-extra {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  text-align: center;
}

.price-card .btn {
  width: 100%;
}

.pricing-segments-callout {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  box-shadow: inset 3px 0 0 #dc2626;
}

.pricing-segments-callout::before {
  content: '!';
  position: absolute;
  left: 0.875rem;
  top: 0.875rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #dc2626;
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
}

/* ── Pricing segment billing notice ─────────────────── */
.pricing-billing-notice {
  max-width: 1040px;
  margin: 2.5rem auto 0;
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pricing-billing-notice__intro {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 55%);
  border-bottom: 1px solid var(--slate-100);
}

.pricing-billing-notice__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
}

.pricing-billing-notice__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
}

.pricing-billing-notice__subtitle {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-900);
}

.pricing-billing-notice__lead,
.pricing-billing-notice__tip {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.65;
}

.pricing-billing-notice__tip {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.pricing-segments-table-wrap {
  padding: 1.25rem 1.75rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-segments-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.pricing-segments-table th,
.pricing-segments-table td {
  padding: 0.75rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}

.pricing-segments-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-500);
  background: var(--slate-50);
}

.pricing-segments-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.65);
}

.pricing-segments-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-segments-table__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-usage-panel {
  padding: 1.25rem 1.75rem 1.5rem;
  border-left: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.pricing-usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pricing-usage-list__item {
  margin: 0;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  position: relative;
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.6;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.pricing-usage-list__item::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.pricing-usage-list__item--typical::before {
  background: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-50);
}

.pricing-usage-list__item--max::before {
  background: #d97706;
  box-shadow: 0 0 0 3px #fef3c7;
}

.pricing-usage-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: var(--navy-900);
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--slate-400);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 1rem 1.25rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.65;
}

/* ── CTA + Footer ────────────────────────────────────── */
.cta-final {
  background: var(--navy-900);
  color: var(--white);
}

.cta-final .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-final-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-final-copy p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.landing-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  border-radius: 0.4rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  width: 100%;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Legal pages ─────────────────────────────────────── */
.legal-main {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--slate-50);
}

.legal-page {
  max-width: 760px;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.legal-header h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.legal-updated {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2,
.legal-section h3 {
  margin: 0 0 0.625rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-900);
}

.legal-section-block {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.legal-section-block .legal-page {
  max-width: 760px;
  margin-inline: auto;
}

.abuse-section .legal-page {
  max-width: 640px;
  margin-inline: auto;
}

.abuse-success {
  text-align: center;
  padding: 1.5rem 0;
}

.abuse-success h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
}

.abuse-success p {
  margin: 0 0 1.25rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.abuse-success .btn-dark {
  width: auto;
}

.legal-section p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--slate-500);
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--slate-500);
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.nav-links--legal {
  gap: 1rem;
}

.legal-back {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
  transition: color 0.15s ease;
}

.legal-back:hover {
  color: var(--blue-600);
}

.footer-links a[aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}

/* ── Abuse report ────────────────────────────────────── */
.abuse-page .legal-header {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.abuse-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-500);
}

.abuse-form {
  display: grid;
  gap: 1.25rem;
}

.abuse-form select {
  width: 100%;
  padding: 0.625rem 0;
  border: none;
  border-bottom: 1px solid var(--slate-200);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy-900);
}

.abuse-form select:focus {
  outline: none;
  border-bottom-color: var(--navy-900);
}

.field-help {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.form-error {
  margin: -0.5rem 0 0;
  font-size: 0.875rem;
  color: #b91c1c;
}

.abuse-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cf-turnstile-container {
  min-height: 65px;
}

.abuse-thanks {
  text-align: center;
  max-width: 560px;
}

.abuse-thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 1.25rem;
  font-weight: 700;
}

.abuse-thanks h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy-900);
}

.abuse-thanks .btn-dark {
  width: auto;
  margin-top: 0.5rem;
}

/* ── Contact ─────────────────────────────────────────── */
.contact-section {
  background: #fcfaf6;
  border-block: 1px solid var(--slate-200);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.contact-title {
  margin: 0 0 1.25rem;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.contact-title em {
  font-style: italic;
  color: var(--blue-600);
}

.contact-intro {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-500);
}

.contact-details {
  margin: 0;
}

.contact-details-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--slate-200);
}

.contact-details-row:last-child {
  border-bottom: 1px solid var(--slate-200);
}

.contact-details dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.contact-details dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-900);
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-details a:hover {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
}

.contact-form-wrap {
  padding-top: 0.5rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-800);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.625rem 0;
  border: none;
  border-bottom: 1px solid var(--slate-200);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy-900);
  transition: border-color 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--navy-900);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-dark:hover {
  background: var(--navy-800);
}

.contact-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--slate-400);
}

.contact-success {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: 1px solid rgba(5, 150, 105, 0.2);
  font-size: 0.875rem;
  color: var(--green-600);
}

.contact-form.is-invalid .field input:invalid,
.contact-form.is-invalid .field textarea:invalid {
  border-bottom-color: #dc2626;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  .pricing-grid,
  .credit-pack-grid {
    padding-top: 0.375rem;
  }

  .price-card.featured,
  .credit-pack-card--featured {
    margin-block: -0.375rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-trust {
    text-align: center;
  }

  .audience-grid,
  .steps-grid,
  .pricing-grid,
  .credit-pack-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    box-shadow: 0 0 0 1px var(--blue-600), var(--shadow-md);
  }

  .pricing-billing-notice__body {
    grid-template-columns: 1fr;
  }

  .pricing-usage-panel {
    border-left: none;
    border-top: 1px solid var(--slate-100);
  }

  .section-header--left {
    text-align: center;
    margin-inline: auto;
  }

  .split-section .btn {
    width: 100%;
  }

  .cta-final .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .contact-details-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ── Skip link ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ── Focus visible ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Mobile menu toggle ──────────────────────────────── */
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.75rem;
  height: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-menu-toggle {
    display: flex;
  }
}

/* ── Mobile nav drawer ───────────────────────────────── */
.mobile-nav {
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-block: 0.875rem;
  gap: 0.125rem;
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 0.75rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid var(--slate-100);
  transition: color 0.15s;
}

.mobile-nav a:not(.btn):hover {
  color: var(--blue-600);
}

.mobile-nav .lang-switch {
  margin-top: 0.5rem;
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

/* ── Active nav link ─────────────────────────────────── */
.nav-links a.is-active {
  color: var(--navy-900);
  font-weight: 600;
}

/* ── Step number badge ───────────────────────────────── */
.step-number {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ── Steps connector ─────────────────────────────────── */
@media (min-width: 901px) {
  .steps-grid .card {
    position: relative;
  }

  .steps-grid .card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -0.875rem;
    top: 1.875rem;
    line-height: 1;
    font-size: 0.875rem;
    color: var(--slate-400);
    pointer-events: none;
  }
}

/* ── FAQ open animation ──────────────────────────────── */
.faq-item[open] summary ~ * {
  animation: faq-open 0.2s ease forwards;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Back to top ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.15s;
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-800);
}

/* ── Coming soon / demo ──────────────────────────────── */
.coming-soon-section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: linear-gradient(180deg, #f8fbff 0%, var(--slate-50) 42%, var(--slate-50) 100%);
  border-block: 1px solid var(--slate-200);
  overflow: hidden;
}

.coming-soon-section.section {
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.coming-soon-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(37, 99, 235, 0.16), transparent 72%),
    radial-gradient(ellipse 45% 35% at 82% 58%, rgba(99, 102, 241, 0.1), transparent 62%);
  pointer-events: none;
}

.coming-soon-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.coming-soon-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.coming-soon-title {
  margin: 0 0 1.25rem;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}

.coming-soon-title em {
  font-style: italic;
  color: var(--blue-600);
}

.coming-soon-lead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-500);
}

.coming-soon-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.coming-soon-chips li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}

.coming-soon-progress {
  display: grid;
  gap: 0.875rem;
  width: min(100%, 28rem);
  margin: 0 auto 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.coming-soon-progress-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600) 0%, var(--blue-500) 38%, var(--slate-200) 38%);
  background-size: 200% 100%;
  animation: demo-progress 2.8s ease-in-out infinite;
}

@keyframes demo-progress {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

.coming-soon-progress-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  width: min(100%, 36rem);
  margin: 0 auto 1.5rem;
}

.coming-soon-actions .btn-lg {
  min-width: 12.5rem;
}

.coming-soon-note {
  margin: 0;
  max-width: 30rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--slate-400);
}

@media (max-width: 640px) {
  .coming-soon-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .coming-soon-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon-progress-bar {
    animation: none;
    background: var(--blue-600);
  }
}

/* ============================================================
   Dark theme — platform-default driven (html[data-theme="dark"]).
   Toggled by the inline head script in index.html, which fetches
   GET /api/v1/public/theme and mirrors the Keycloak login: the
   public landing reflects the GLOBAL platform theme (light/dark
   axis), so login + landing stay consistent for anonymous visitors.

   Strategy: remap the light-side design primitives to a dark
   palette so every surface / text / border flips in one place;
   then patch the handful of dual-role cases the remap can't cover
   (white text sitting on an accent/dark fill, and sections that
   were already dark in the light design). Palette mirrors
   html[data-theme="dark"] in pulsem-web/src/styles.scss.
   ============================================================ */
html[data-theme="dark"] {
  /* Light surfaces -> dark elevations. */
  --white: #131623;
  --slate-50: #0f1220;
  --slate-100: #1a1f33;
  --slate-200: #262c42;
  /* Dark text -> light text. */
  --navy-950: #f8faff;
  --navy-900: #f5f6ff;
  --navy-800: #e4e8f7;
  --navy-700: #ccd2ea;
  /* Muted text scale (kept readable on dark: >= AA on #131623). */
  --slate-700: #c3c9e2;
  --slate-600: #aab1d0;
  --slate-500: #9aa1c2;
  --slate-400: #6f7598;
  /* Pale accent tints -> dark tints. */
  --blue-50: #15233f;
  --green-50: #0e2a20;
  /* Elevation shadows tuned for a dark backdrop. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Page base follows the injected palette (--slate-50 = the theme's bg-base),
   falling back to a dark value when no palette is applied. */
html[data-theme="dark"] body { background: var(--slate-50, #0b0d18); }

/* Sticky-nav frosted glass: light frost -> dark frost. */
html[data-theme="dark"] .landing-nav { background: rgba(11, 13, 24, 0.92); }

/* Hero grid overlay lines were dark-on-light — flip to light-on-dark. */
html[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Dual-role fix: white text that sits on an accent/dark fill must stay white
   (the --white remap above would otherwise turn it dark and unreadable). */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-outline-light,
html[data-theme="dark"] .btn-dark,
html[data-theme="dark"] .price-badge,
html[data-theme="dark"] .footer-brand,
html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-links a[aria-current="page"],
html[data-theme="dark"] .cta-final,
html[data-theme="dark"] .hero-panel-header,
html[data-theme="dark"] .back-to-top { color: #fff; }

/* Sections that were already dark in the light design keep a dark surface. */
html[data-theme="dark"] .hero-panel-header { background: #0f1220; }
html[data-theme="dark"] .cta-final { background: #0f1220; }
html[data-theme="dark"] .landing-footer { background: #090b14; }
html[data-theme="dark"] .ad-carousel__viewport { background: #0b0d18; }
html[data-theme="dark"] .btn-dark { background: #1a1f33; }
html[data-theme="dark"] .btn-dark:hover { background: #232a44; }
html[data-theme="dark"] .back-to-top { background: #1a1f33; }
html[data-theme="dark"] .back-to-top:hover { background: #232a44; }

/* Literal light tints the primitive remap can't reach -> dark equivalents. */
html[data-theme="dark"] .channel-preview-label--sms { background: #0c2740; color: #7cc4f5; }
html[data-theme="dark"] .channel-preview-label--rcs { background: #211a3d; color: #b9a6f0; }
html[data-theme="dark"] .pricing-segments-callout { background: #2a1415; }
/* --blue-700 is a light-theme ink: on the dark card surface it drops to ~3:1.
   Lift the upsell line (and its arrow) to a tint that clears WCAG AA. */
html[data-theme="dark"] .price-card__features--upsell,
html[data-theme="dark"] .price-card__features--upsell::before { color: #8ab4ff !important; }
html[data-theme="dark"] .price-card--pro .price-card__head {
  background: linear-gradient(180deg, #1c1730 0%, var(--white) 100%);
}
html[data-theme="dark"] .contact-section { background: #0f1220; }
html[data-theme="dark"] .coming-soon-section {
  background: linear-gradient(180deg, #101a2c 0%, var(--slate-50) 42%, var(--slate-50) 100%);
}
html[data-theme="dark"] .coming-soon-badge,
html[data-theme="dark"] .coming-soon-chips li { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .mobile-nav { background: rgba(11, 13, 24, 0.98); }
html[data-theme="dark"] .pricing-segments-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

/* ── Language suggestion notice ─────────────────────────────────────────────
   Shown only when detection points somewhere other than the page on screen
   (see landing-i18n.js). Deliberately quiet: bottom-left, above the fold's
   attention but below the content, dismissible, and never modal — it must not
   cover a CTA or block reading. The language switch itself stays in the header
   at all times; this is a shortcut, not the only way out. */
.lang-suggestion {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  animation: lang-suggestion-in 0.18s ease-out both;
}

.lang-suggestion-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--navy-800);
}

.lang-suggestion-action {
  flex: none;
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color: var(--white);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-suggestion-action:hover {
  background: var(--blue-700);
}

.lang-suggestion-close {
  flex: none;
  /* 44px touch target (WCAG 2.5.5) without a 44px visual box. */
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.5rem -0.35rem -0.5rem 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--slate-500);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.lang-suggestion-close:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

.lang-suggestion-action:focus-visible,
.lang-suggestion-close:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

@keyframes lang-suggestion-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-suggestion { animation: none; }
}

@media (max-width: 640px) {
  .lang-suggestion {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

html[data-theme="dark"] .lang-suggestion {
  background: #141a2b;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .lang-suggestion-text { color: #e2e8f0; }
html[data-theme="dark"] .lang-suggestion-close:hover { background: rgba(255, 255, 255, 0.08); }
