/*
  FAZABIZ Marketing Site (static)
  Design tokens shared with docs.css (loads after this stylesheet)
*/

:root {
  color-scheme: dark light;
  --bg: #070a12;
  --bg-elevated: #0b1224;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.72);
  --muted-2: rgba(234, 240, 255, 0.48);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-2: #22c55e;
  --warning: #fbbf24;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --focus: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

/* OS-level preference (lowest priority — manual toggle below wins) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8ff;
    --bg-elevated: #ffffff;
    --surface: rgba(11, 18, 32, 0.04);
    --surface-strong: rgba(11, 18, 32, 0.07);
    --text: #0b1220;
    --muted: rgba(11, 18, 32, 0.66);
    --muted-2: rgba(11, 18, 32, 0.48);
    --border: rgba(11, 18, 32, 0.12);
    --shadow: 0 18px 48px rgba(11, 18, 32, 0.1);
  }
}

/* ── Manual theme toggle — beats OS pref because it's later in cascade ── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-elevated: #0b1224;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.72);
  --muted-2: rgba(234, 240, 255, 0.48);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8ff;
  --bg-elevated: #ffffff;
  --surface: rgba(11, 18, 32, 0.04);
  --surface-strong: rgba(11, 18, 32, 0.07);
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.66);
  --muted-2: rgba(11, 18, 32, 0.48);
  --border: rgba(11, 18, 32, 0.12);
  --shadow: 0 18px 48px rgba(11, 18, 32, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.58;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(59, 130, 246, 0.32), transparent 55%),
    radial-gradient(840px 480px at 92% -4%, rgba(99, 102, 241, 0.2), transparent 52%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  max-width: 100%;
  height: auto;
}

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

p {
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 22px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgba(246, 248, 255, 0.85);
  }
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header .brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.site-header .brand-wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
}

.site-header .nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-header .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.site-header #nav-links,
.site-header .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.site-header #nav-links a {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}

.site-header #nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-inline-start: auto;
}

/* ── Theme toggle button ─────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--surface-strong);
  transform: scale(1.08);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
/* ── Theme toggle icons: driven by data-theme-mode (light/dark/system) ──
   Each mode shows exactly one icon representing the CURRENT active mode.
   Cycling order: light → dark → system → light.                           */
.theme-icon-sun,
.theme-icon-moon,
.theme-icon-system { display: none; }

/* Light mode active → show sun */
[data-theme-mode="light"] .theme-icon-sun    { display: block; }

/* Dark mode active → show moon */
[data-theme-mode="dark"]  .theme-icon-moon   { display: block; }

/* System mode active → show monitor */
[data-theme-mode="system"] .theme-icon-system { display: block; }

/* Fallback: no data-theme-mode yet (very first paint before JS runs)
   Use OS preference as proxy — mirrors JS default of "light". */
:not([data-theme-mode]) .theme-icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :not([data-theme-mode]) .theme-icon-sun  { display: none; }
  :not([data-theme-mode]) .theme-icon-moon { display: block; }
}
/* Landing-ref specifics */
body.landing-ref .theme-toggle {
  border-color: rgba(33, 41, 92, 0.18);
  background: rgba(33, 41, 92, 0.06);
  color: var(--ref-ink);
}
[data-theme="dark"] body.landing-ref .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ref-ink);
}
.theme-toggle-mobile {
  width: 100%;
  border-radius: var(--radius);
  height: 44px;
  gap: 8px;
  font-size: 0.9rem;
}

.site-header .lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 4px;
  font-size: 13px;
  color: var(--muted-2);
}

.site-header .lang a {
  padding: 6px 8px;
  border-radius: 10px;
  color: inherit;
}

.site-header .lang a:hover {
  color: var(--text);
}

.site-header .lang a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand .brand-wordmark {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
}

@media (max-width: 980px) {
  .site-header .brand-mark {
    width: 40px;
    height: 40px;
  }

  .site-header .brand-wordmark {
    font-size: 17px;
  }

  .site-header .nav-toggle {
    display: inline-flex;
  }

  .site-header .nav-links {
    display: none;
    position: absolute;
    inset-inline-start: -8px;
    inset-block-start: calc(100% + 12px);
    width: min(100vw - 36px, 420px);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-header .nav-links {
    display: flex;
  }

  body.nav-open .site-header #nav-links a {
    width: 100%;
  }

  @media (prefers-color-scheme: light) {
    .site-header .nav-links {
      background: rgba(255, 255, 255, 0.98);
    }
  }

  .site-header .lang {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header .header-actions {
    gap: 8px;
  }

  .site-header .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(234, 240, 255, 0.32);
  color: var(--text);
}

@media (prefers-color-scheme: light) {
  .btn-ghost:hover {
    border-color: rgba(11, 18, 32, 0.18);
  }
}

/* Hero */
.hero {
  padding-block: 56px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
  .hero {
    border-bottom-color: rgba(11, 18, 32, 0.08);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.92fr);
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero .lead {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
}

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.kicker b {
  font-weight: 800;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.pill strong {
  font-weight: 800;
  color: var(--text);
}

.hero-side .card {
  box-shadow: var(--shadow);
}

.mini-metric {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.mini-metric .dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}

.mini-metric .dot.green {
  background: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

.mini-metric .dot.yellow {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.mini-metric strong {
  font-size: 15px;
}

.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.pricing-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-block: 40px 32px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn-ghost {
    order: 3;
  }
}

/* Sections */
.section {
  padding-block: clamp(54px, 7vw, 84px);
}

.section.compact {
  padding-block: clamp(42px, 6vw, 64px);
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 auto 26px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(400px 200px at 10% -10%, rgba(59, 130, 246, 0.12), transparent 70%),
    var(--surface);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.card p:last-child {
  margin-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pricing-card.highlight {
  border-color: rgba(59, 130, 246, 0.45);
  background:
    radial-gradient(420px 200px at 50% -20%, rgba(59, 130, 246, 0.2), transparent 65%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), var(--shadow);
}

.pricing-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card h3 {
  margin-bottom: 0;
}

.price {
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-top: 10px;
}

.price small {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  vertical-align: middle;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.18);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.list {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing feature matrix — all colors use design tokens, no hard-coded values */
.pricing-matrix-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.pricing-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--text);
}
.pricing-matrix thead th {
  text-align: start;
  font-weight: 700;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-matrix tbody th[scope="row"] {
  text-align: start;
  font-weight: 600;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  border-right: 1px solid var(--border);
  width: 36%;
  min-width: 240px;
}
.pricing-matrix td {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  vertical-align: middle;
}
.pricing-matrix tbody tr + tr th[scope="row"],
.pricing-matrix tbody tr + tr td {
  border-top: 1px solid var(--border);
}
.pricing-matrix td:nth-child(3) {
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 720px) {
  .pricing-matrix { display: block; }
  .pricing-matrix thead { display: none; }
  .pricing-matrix tbody { display: grid; gap: 14px; padding: 14px; }
  .pricing-matrix tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--bg-elevated);
  }
  .pricing-matrix th[scope="row"] {
    display: block;
    width: auto;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 10px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    background: transparent;
  }
  .pricing-matrix td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border: 0;
    background: transparent !important;
    font-weight: 500;
  }
  .pricing-matrix td + td { border-top: 1px solid var(--border); }
  .pricing-matrix td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
  }
  .pricing-matrix td:nth-child(3) {
    color: var(--text);
    font-weight: 700;
  }
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.faq details.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq details.faq-item summary::-webkit-details-marker { display: none; }
.faq details.faq-item summary::marker { content: ""; }
.faq details.faq-item .faq-answer {
  padding: 0 18px 18px;
  color: var(--muted, #4a5267);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq details.faq-item[open] .chev {
  transform: rotate(180deg);
}
.faq details.faq-item .chev {
  transition: transform .25s ease;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: clip;
}

.faq-question {
  width: 100%;
  text-align: start;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.faq-question:focus-visible {
  box-shadow: inset var(--focus);
}

.faq-item .chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  transition: transform 160ms ease;
}

button.faq-question[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 2px 16px 14px;
  color: var(--muted);
  font-size: 14px;
}

.card.cta {
  box-shadow: var(--shadow);
  background:
    radial-gradient(760px 220px at 10% -30%, rgba(59, 130, 246, 0.32), transparent 70%),
    radial-gradient(600px 200px at 90% -20%, rgba(99, 102, 241, 0.2), transparent 65%),
    var(--surface);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cta-inner .section-subtitle {
  margin-bottom: 0;
}

.footer {
  margin-top: 32px;
  padding-block: 44px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 22px;
  align-items: start;
}

.footer h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

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

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* RTL Arabic landing */
html[dir="rtl"] .hero-inner {
  direction: rtl;
}

html[dir="rtl"] .site-header #nav-links a,
html[dir="rtl"] .footer-links {
  text-align: right;
}

html[dir="rtl"] .pricing-top {
  flex-direction: row-reverse;
}

html[dir="rtl"] .cta-inner > div:last-child {
  justify-content: flex-start;
}


/* Inner marketing pages (features, pricing, compare) */
.page-hero {
  padding-block: 48px 32px;
}

.page-hero h1 {
  margin: 12px 0 14px 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

@media (max-width: 560px) {
  .page-hero h1 {
    font-size: 32px;
    max-width: none;
  }
}

.page-hero .lead {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.5;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 36px 0 12px 0;
}

.prose h3 {
  font-size: 18px;
  margin: 22px 0 8px 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
}

.prose ul,
.prose ol {
  padding-inline-start: 20px;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.compare-table td {
  color: var(--muted);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .yes {
  color: var(--primary-2);
  font-weight: 700;
}

.compare-table .partial {
  color: var(--warning);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-grid a.card {
  display: block;
  transition: transform 120ms ease, border-color 120ms ease;
}

.related-grid a.card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
}

.sticky-cta {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  margin-top: 32px;
}

.sticky-cta .card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
}

@media (prefers-color-scheme: light) {
  .sticky-cta .card {
    background: rgba(246, 248, 255, 0.95);
  }
}

.nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
}


/* Professional mega-nav (Week 1) */
.site-header .header-inner {
  flex-wrap: nowrap;
  gap: 12px;
}

.nav-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-item.is-active > .nav-trigger,
.nav-item.is-active > .nav-link {
  color: var(--text);
  background: var(--surface);
}

.nav-item.is-active > .nav-trigger,
.nav-item.is-active > .nav-link {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 140ms ease;
}

.nav-item.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 280px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.98);
  box-shadow: var(--shadow);
  z-index: 60;
}
/* Invisible bridge covers the gap so cursor can travel from trigger to panel */
.nav-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  inset-inline-start: 0;
  width: 100%;
  height: 14px;
}

.nav-panel.mega {
  min-width: min(720px, 92vw);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mega-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega-heading {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.mega-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}

.mega-link strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.mega-link span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-2);
}

.mega-link:hover {
  background: var(--surface);
  color: var(--text);
}

.mega-link-featured {
  margin-top: 4px;
}

.mega-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-2);
}

.mega-footer a {
  color: var(--primary);
  font-weight: 600;
}

.utility-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
}

.utility-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-mobile-util {
  display: none;
}

.hero-inner-single {
  grid-template-columns: 1fr !important;
}

.logo-strip-label {
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
  margin: 0;
}

.module-card .card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-teaser-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-grid-4 {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(120px, 1fr));
}

.footer-grid-5 {
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(120px, 1fr));
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-2);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

@media (prefers-color-scheme: light) {
  .nav-panel {
    background: rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 1080px) {
  .utility-link,
  .header-actions .lang,
  .header-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav-primary {
    justify-content: flex-end;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + 12px);
    width: min(100vw - 36px, 420px);
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border);
  }

  .nav-trigger,
  .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 0;
  }

  .nav-panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 12px 12px;
    background: transparent;
  }

  .mega-grid,
  .mega-grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-mobile-util {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .mobile-lang {
    display: flex;
    gap: 8px;
  }

  .footer-grid-4,
  .footer-grid-5 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid-4,
  .footer-grid-5 {
    grid-template-columns: 1fr;
  }
}

html[dir="rtl"] .nav-panel {
  /* RTL: anchor the panel's START (right) edge to the trigger so it extends leftward,
     preventing right-side viewport overflow on wide mega panels */
  inset-inline-start: 0;   /* right: 0 in RTL */
  inset-inline-end: auto;
}

html[dir="rtl"] .mega-link,
html[dir="rtl"] .nav-trigger,
html[dir="rtl"] .nav-link {
  text-align: right;
}

/* Feature page template (Week 2) */
.persona-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.persona-chip {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.capability-grid .capability-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.capability-grid .capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-visual img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.08));
}

.feature-visual-caption {
  margin: 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

html[dir="rtl"] .persona-chips {
  justify-content: flex-start;
}


/* ============================================================
   FazaBiz — Editorial landing (body.landing-ref)
   Design system: navy + cream + teal + amber  (light default).
   Dark mode: [data-theme="dark"] body.landing-ref overrides below.
   Typography: Fraunces (display) + Inter (UI) + Noto Naskh (AR).
   ============================================================ */
body.landing-ref {
  --ref-navy: #21295C;
  --ref-navy-deep: #181E48;
  --ref-blue: #065A82;
  --ref-teal: #1C7293;
  --ref-teal-soft: #4FA4B3;
  --ref-orange: #F2A65A;
  --ref-orange-deep: #E48947;
  --ref-cream: #F7F4EE;
  --ref-cream-2: #FBF8F2;
  --ref-ink: #16203A;
  --ref-ink-soft: rgba(22, 32, 58, 0.72);
  --ref-ink-mute: rgba(22, 32, 58, 0.54);
  --ref-line: rgba(33, 41, 92, 0.12);
  --ref-line-soft: rgba(33, 41, 92, 0.06);
  --ref-white: #ffffff;
  --ref-radius: 18px;
  --ref-radius-lg: 24px;
  --ref-shadow-sm: 0 4px 18px rgba(33, 41, 92, 0.06);
  --ref-shadow: 0 18px 50px -18px rgba(33, 41, 92, 0.22);
  --ref-shadow-lg: 0 36px 80px -28px rgba(33, 41, 92, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--ref-cream);
  color: var(--ref-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Landing page dark mode ─────────────────────────────────── */
[data-theme="dark"] body.landing-ref {
  --ref-cream:      #0d1117;
  --ref-cream-2:    #111620;
  --ref-ink:        #e8edf8;
  --ref-ink-soft:   rgba(232, 237, 248, 0.72);
  --ref-ink-mute:   rgba(232, 237, 248, 0.50);
  --ref-line:       rgba(255, 255, 255, 0.10);
  --ref-line-soft:  rgba(255, 255, 255, 0.06);
  --ref-navy:       #c8d4ff;
  --ref-teal:       #4abdd4;
  --ref-teal-soft:  #7cd4e4;
  --ref-orange:     #f5b97a;
  --ref-orange-deep:#f0a050;
  --ref-shadow-sm:  0 4px 18px rgba(0, 0, 0, 0.35);
  --ref-shadow:     0 18px 50px -18px rgba(0, 0, 0, 0.55);
  --ref-shadow-lg:  0 36px 80px -28px rgba(0, 0, 0, 0.70);
  background: var(--ref-cream);
  color: var(--ref-ink);
}

/* Sections that have hard-coded dark backgrounds should stay dark
   in both modes — no override needed. Cream sections use var(--ref-cream)
   which flips automatically above. */
[data-theme="dark"] body.landing-ref .ref-section-cream {
  background: var(--ref-cream-2);
}
[data-theme="dark"] body.landing-ref .ref-hero {
  background: linear-gradient(180deg, var(--ref-cream) 0%, var(--ref-cream-2) 50%, #0a0f1a 100%);
}
[data-theme="dark"] body.landing-ref .ref-card,
[data-theme="dark"] body.landing-ref .fz-flow-wrap .float-card,
[data-theme="dark"] body.landing-ref .fz-flow-wrap .step-card,
[data-theme="dark"] body.landing-ref .fz-flow-wrap .chat-pop .bubble {
  background: #161d2e;
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--ref-ink);
}
[data-theme="dark"] body.landing-ref .fz-flow-wrap .float-card .title,
[data-theme="dark"] body.landing-ref .fz-flow-wrap .step-card .step-name {
  color: var(--ref-ink);
}
[data-theme="dark"] body.landing-ref .fz-flow-wrap .float-card .sub,
[data-theme="dark"] body.landing-ref .fz-flow-wrap .step-card .step-sub {
  color: var(--ref-ink-mute);
}
[data-theme="dark"] body.landing-ref .ref-im-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Orbit module cards */
[data-theme="dark"] body.landing-ref .ref-im-mod {
  background: #1a2845;
  border-color: rgba(255, 255, 255, 0.10);
  --bg: #1a2845;
  --fg: #c8d4ff;
  --accent: #4abdd4;
}
[data-theme="dark"] body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod {
  background: #1e1e2a;
  --bg: #1e1e2a;
  --fg: #c0c4d8;
}
/* Chaos state: rival name was dark text — make it light */
[data-theme="dark"] body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod-name {
  color: var(--ref-ink-mute) !important;
}
[data-theme="dark"] body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod-rival {
  color: var(--ref-ink-mute);
}

/* Compare bullet columns — were hard-coded #fff in both modes */
[data-theme="dark"] body.landing-ref .ref-im-col {
  background: #161d2e;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.40);
}
[data-theme="dark"] body.landing-ref .ref-im-col li {
  color: var(--ref-ink-soft);
}
/* "WITHOUT FAZABIZ" label was dark orange-brown — lift to visible amber */
[data-theme="dark"] body.landing-ref .ref-im-col-without .ref-im-col-label {
  color: #e8893a;
}
[data-theme="dark"] body.landing-ref .ref-compare-wrap {
  background: #111620;
  border-color: rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] body.landing-ref .ref-compare {
  background: #111620;
  border-color: rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] body.landing-ref .ref-compare thead th {
  background: #161d2e;
  color: var(--ref-ink-mute);
}
/* Feature name column (tbody th) was hard-coded cream */
[data-theme="dark"] body.landing-ref .ref-compare tbody th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ref-ink);
}
/* FazaBiz highlight column */
[data-theme="dark"] body.landing-ref .ref-compare tbody td:nth-child(2) {
  background: rgba(74, 189, 212, 0.07);
  color: var(--ref-teal-soft);
}
/* Even-row alternating stripe */
[data-theme="dark"] body.landing-ref .ref-compare tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}
[data-theme="dark"] body.landing-ref .ref-compare tbody tr:nth-child(even) th {
  background: rgba(255, 255, 255, 0.055);
}
/* Mobile stacked cards */
[data-theme="dark"] body.landing-ref .ref-compare tr {
  background: #161d2e;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] body.landing-ref .ref-faq-item {
  background: #161d2e;
  border-color: rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] body.landing-ref .site-header {
  background: rgba(10, 15, 26, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] body.landing-ref .site-header .brand-wordmark,
[data-theme="dark"] body.landing-ref .site-header .nav-trigger,
[data-theme="dark"] body.landing-ref .site-header .nav-link,
[data-theme="dark"] body.landing-ref .site-header .utility-link,
[data-theme="dark"] body.landing-ref .site-header .lang a {
  color: var(--ref-ink);
}

/* Dark mode nav header for ALL pages (non-landing) */
[data-theme="dark"] .site-header {
  background: rgba(7, 10, 18, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Light mode nav header — overrides the OS-independent dark default */
[data-theme="light"] .site-header {
  background: rgba(246, 248, 255, 0.88);
  border-bottom-color: rgba(11, 18, 32, 0.10);
}
[data-theme="light"] body.landing-ref .site-header {
  background: rgba(247, 244, 238, 0.92);
  border-bottom-color: rgba(33, 41, 92, 0.12);
}
/* Ensure nav text is readable on the light header */
[data-theme="light"] .site-header .brand-wordmark,
[data-theme="light"] .site-header .nav-trigger,
[data-theme="light"] .site-header .nav-link,
[data-theme="light"] .site-header .utility-link,
[data-theme="light"] .site-header .lang a {
  color: var(--text);
}
[data-theme="light"] body.landing-ref .site-header .brand-wordmark,
[data-theme="light"] body.landing-ref .site-header .nav-trigger,
[data-theme="light"] body.landing-ref .site-header .nav-link,
[data-theme="light"] body.landing-ref .site-header .utility-link,
[data-theme="light"] body.landing-ref .site-header .lang a {
  color: var(--ref-ink);
}

body.landing-ref[dir="rtl"],
html[dir="rtl"] body.landing-ref {
  font-family: "Noto Naskh Arabic", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* --- Header overrides for cream-bg landing -------------------- */
body.landing-ref .site-header {
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ref-line-soft);
}
body.landing-ref .site-header .brand-wordmark,
body.landing-ref .site-header .nav-trigger,
body.landing-ref .site-header .nav-link,
body.landing-ref .site-header .utility-link,
body.landing-ref .site-header .lang a {
  color: var(--ref-navy);
}
body.landing-ref .site-header .nav-trigger:hover,
body.landing-ref .site-header .nav-link:hover {
  background: rgba(33, 41, 92, 0.06);
  color: var(--ref-navy);
}
body.landing-ref .site-header .btn-ghost {
  color: var(--ref-navy);
  border-color: var(--ref-line);
}
body.landing-ref .site-header .btn-primary {
  background: linear-gradient(180deg, var(--ref-teal) 0%, var(--ref-blue) 100%);
  color: #fff;
  border-color: transparent;
}
body.landing-ref .site-header .nav-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--ref-line);
  box-shadow: var(--ref-shadow-lg);
}
body.landing-ref .mega-heading {
  color: var(--ref-ink-mute);
}
body.landing-ref .mega-link {
  color: var(--ref-navy);
}
body.landing-ref .mega-link span {
  color: var(--ref-ink-mute);
}
body.landing-ref .mega-link:hover {
  background: rgba(28, 114, 147, 0.08);
}

/* --- Section rhythm + typography ------------------------------ */
body.landing-ref .ref-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
}
body.landing-ref .ref-section-cream {
  background: var(--ref-cream);
}
body.landing-ref .ref-section-cream + .ref-section-cream {
  padding-top: clamp(24px, 4vw, 56px);
}
body.landing-ref .ref-section-dark {
  background: linear-gradient(170deg, var(--ref-navy-deep) 0%, var(--ref-navy) 40%, #0F3450 100%);
  color: rgba(244, 247, 251, 0.92);
}
body.landing-ref .ref-section-dark .ref-title,
body.landing-ref .ref-section-dark .ref-card h3,
body.landing-ref .ref-section-dark .ref-stack h3,
body.landing-ref .ref-section-dark .ref-mod h3,
body.landing-ref .ref-section-dark .ref-pcard h3,
body.landing-ref .ref-section-dark .ref-scard h3,
body.landing-ref .ref-section-dark .ref-sec h3 {
  color: #fff;
}
body.landing-ref .ref-section-dark .ref-subtitle-en,
body.landing-ref .ref-section-dark .ref-subtitle {
  color: rgba(244, 247, 251, 0.72);
}
body.landing-ref .ref-section-dark .ref-eyebrow-muted {
  color: var(--ref-orange);
}
body.landing-ref .ref-section-dark .ref-card,
body.landing-ref .ref-section-dark .ref-stack,
body.landing-ref .ref-section-dark .ref-sec,
body.landing-ref .ref-section-dark .ref-scard {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: rgba(244, 247, 251, 0.86);
}
body.landing-ref .ref-section-dark .ref-card p,
body.landing-ref .ref-section-dark .ref-scard p,
body.landing-ref .ref-section-dark .ref-sec p,
body.landing-ref .ref-section-dark .ref-stack p {
  color: rgba(244, 247, 251, 0.72);
}
body.landing-ref .ref-section-dark .ref-card-ic {
  background: rgba(242, 166, 90, 0.16);
  color: var(--ref-orange);
  border-color: rgba(242, 166, 90, 0.25);
}

/* Dark backdrop accents */
body.landing-ref .ref-dark-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body.landing-ref .ref-dark-bg span {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.35;
}
body.landing-ref .ref-dark-bg span:first-child {
  top: -160px;
  inset-inline-start: -120px;
  background: radial-gradient(circle, var(--ref-teal) 0%, transparent 70%);
}
body.landing-ref .ref-dark-bg span:last-child {
  bottom: -180px;
  inset-inline-end: -120px;
  background: radial-gradient(circle, var(--ref-orange) 0%, transparent 70%);
  opacity: 0.22;
}
body.landing-ref .ref-section-dark .container {
  position: relative;
  z-index: 1;
}

/* --- Eyebrows / heads ----------------------------------------- */
body.landing-ref .ref-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ref-teal);
}
body.landing-ref .ref-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ref-orange);
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.18);
}
body.landing-ref .ref-eyebrow-muted {
  color: var(--ref-teal);
}
body.landing-ref .ref-head {
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 760px;
}
body.landing-ref .ref-head-center {
  margin-inline: auto;
  text-align: center;
}
body.landing-ref .ref-head-center .ref-eyebrow {
  justify-content: center;
}
body.landing-ref .ref-title {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 80, "SOFT" 30;
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ref-navy);
  text-wrap: balance;
}
body.landing-ref .ref-section-dark .ref-title {
  color: #fff;
}
body.landing-ref .ref-subtitle,
body.landing-ref .ref-subtitle-en {
  margin: 0 0 4px;
  color: var(--ref-ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  max-width: 60ch;
}
body.landing-ref .ref-head-center .ref-subtitle,
body.landing-ref .ref-head-center .ref-subtitle-en {
  margin-inline: auto;
}
body.landing-ref .ref-subtitle-en em {
  font-style: italic;
  font-weight: 400;
  color: var(--ref-ink-mute);
}

/* --- HERO ----------------------------------------------------- */
body.landing-ref .ref-hero {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(40px, 5.5vw, 76px);
  background: linear-gradient(180deg, var(--ref-cream) 0%, var(--ref-cream-2) 50%, #EFF4F8 100%);
}
body.landing-ref .ref-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
body.landing-ref .ref-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: ref-float 22s ease-in-out infinite;
}
body.landing-ref .ref-aurora-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #B2E3EA 0%, transparent 70%);
  top: -160px;
  inset-inline-start: -120px;
}
body.landing-ref .ref-aurora-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #FFD9B5 0%, transparent 70%);
  top: 120px;
  inset-inline-end: -100px;
  animation-delay: -6s;
}
body.landing-ref .ref-aurora-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #C9D2FF 0%, transparent 70%);
  bottom: -160px;
  inset-inline-start: 30%;
  animation-delay: -12s;
}
@keyframes ref-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -30px, 0) scale(1.05); }
}
body.landing-ref .ref-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(33, 41, 92, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33, 41, 92, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}
body.landing-ref .ref-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
body.landing-ref .ref-hero-copy {
  max-width: 600px;
}
body.landing-ref .ref-h1 {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "opsz" 120, "SOFT" 30;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--ref-navy);
  text-wrap: balance;
}
body.landing-ref .ref-h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--ref-teal) 0%, var(--ref-blue) 50%, var(--ref-orange-deep) 110%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
body.landing-ref .ref-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.62;
  color: var(--ref-ink-soft);
  margin: 0 0 28px;
  max-width: 56ch;
}

/* CTA buttons */
body.landing-ref .ref-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
body.landing-ref .ref-cta-row-center {
  justify-content: center;
}
body.landing-ref .ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  position: relative;
  isolation: isolate;
}
body.landing-ref .ref-btn-arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}
body.landing-ref .ref-btn-arrow svg { width: 100%; height: 100%; }
body.landing-ref .ref-btn:hover .ref-btn-arrow { transform: translateX(4px); }
body.landing-ref[dir="rtl"] .ref-btn:hover .ref-btn-arrow,
html[dir="rtl"] body.landing-ref .ref-btn:hover .ref-btn-arrow { transform: translateX(-4px) rotate(180deg); }
body.landing-ref[dir="rtl"] .ref-btn-arrow,
html[dir="rtl"] body.landing-ref .ref-btn-arrow { transform: rotate(180deg); }
body.landing-ref .ref-btn-primary {
  background: linear-gradient(180deg, var(--ref-navy) 0%, var(--ref-navy-deep) 100%);
  color: #fff;
  box-shadow: 0 16px 36px -10px rgba(33, 41, 92, 0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 16px 26px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
body.landing-ref .ref-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 50px -14px rgba(33, 41, 92, 0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Premium "glow" treatment for the headline CTA.
   Adds a subtle amber halo and a slow shimmer to draw the eye. */
body.landing-ref .ref-btn-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body.landing-ref .ref-btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 220deg, transparent 0deg, rgba(242, 166, 90, 0.65) 90deg, transparent 180deg, rgba(28, 114, 147, 0.45) 270deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.85;
  animation: ref-btn-spin 6s linear infinite;
  z-index: -1;
}
body.landing-ref .ref-btn-glow::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(242, 166, 90, 0.55), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -2;
}
body.landing-ref .ref-btn-glow:hover::after { opacity: 1; }
@keyframes ref-btn-spin {
  to { transform: rotate(1turn); }
}

/* Quiet secondary CTA — text-link style for clear hierarchy */
body.landing-ref .ref-btn-quiet {
  background: transparent;
  color: var(--ref-navy);
  border-color: transparent;
  padding: 14px 14px;
  font-weight: 600;
  position: relative;
}
body.landing-ref .ref-btn-quiet::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .25s ease, transform .25s ease;
}
body.landing-ref .ref-btn-quiet:hover {
  background: rgba(33, 41, 92, 0.04);
}
body.landing-ref .ref-btn-quiet:hover::after {
  opacity: 0.6;
  transform: translateY(0);
}
body.landing-ref .ref-btn-quiet-light { color: rgba(255, 255, 255, 0.82); }
body.landing-ref .ref-btn-quiet-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Backwards-compatible aliases (older builds shipped .ref-btn-ghost) */
body.landing-ref .ref-btn-ghost { background: transparent; color: var(--ref-navy); border-color: var(--ref-line); }
body.landing-ref .ref-btn-ghost:hover { background: rgba(33, 41, 92, 0.04); }

/* Header CTA hierarchy — premium primary + de-emphasized "Log in" */
body.landing-ref .site-header .btn-cta {
  background: linear-gradient(180deg, var(--ref-navy) 0%, var(--ref-navy-deep) 100%);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  position: relative;
  box-shadow: 0 10px 24px -8px rgba(33, 41, 92, 0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  isolation: isolate;
}
body.landing-ref .site-header .btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(242, 166, 90, 0.7) 55%, transparent 80%);
  background-size: 200% 100%;
  background-position: 100% 0;
  opacity: 0;
  transition: opacity .25s ease, background-position 1.2s ease;
  mix-blend-mode: screen;
  z-index: -1;
}
body.landing-ref .site-header .btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(33, 41, 92, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
body.landing-ref .site-header .btn-cta:hover::before {
  opacity: 1;
  background-position: 0 0;
}
body.landing-ref .site-header .login-quiet {
  color: var(--ref-ink-soft);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: color .2s ease;
}
body.landing-ref .site-header .login-quiet:hover {
  color: var(--ref-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Trust pills under hero */
body.landing-ref .ref-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
body.landing-ref .ref-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ref-line);
  font-size: 13px;
  color: var(--ref-ink-soft);
  font-weight: 500;
  backdrop-filter: blur(6px);
}
body.landing-ref .ref-trust-ic {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--ref-teal);
}
body.landing-ref .ref-trust-ic svg { width: 100%; height: 100%; }

/* --- HERO product mockup ------------------------------------- */
body.landing-ref .ref-hero-visual {
  position: relative;
  z-index: 2;
  min-height: 460px;
}
body.landing-ref .ref-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  z-index: -1;
}
body.landing-ref .ref-orb-a {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(28, 114, 147, 0.45), transparent 70%);
  top: -40px;
  inset-inline-start: -20px;
}
body.landing-ref .ref-orb-b {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(242, 166, 90, 0.45), transparent 70%);
  bottom: 20px;
  inset-inline-end: 0;
}
body.landing-ref .ref-mockup {
  position: relative;
  border-radius: 22px;
  background: #0E1325;
  box-shadow: var(--ref-shadow-lg), 0 0 0 1px rgba(33, 41, 92, 0.08);
  overflow: visible;
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transform-origin: center;
  transition: transform .6s ease;
}
body.landing-ref .ref-mockup:hover { transform: perspective(1400px) rotateY(-1deg) rotateX(1deg); }
body.landing-ref .rm-frame {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #161B33;
  border-radius: 22px 22px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.landing-ref .rm-traffic { display: flex; gap: 6px; }
body.landing-ref .rm-traffic span {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
body.landing-ref .rm-traffic span:nth-child(1) { background: #FF5F57; }
body.landing-ref .rm-traffic span:nth-child(2) { background: #FEBC2E; }
body.landing-ref .rm-traffic span:nth-child(3) { background: #28C840; }
body.landing-ref .rm-address {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
body.landing-ref .rm-lock { display: inline-flex; width: 12px; height: 12px; color: #4FA4B3; }
body.landing-ref .rm-lock svg { width: 100%; height: 100%; }
body.landing-ref .rm-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 320px;
  background: #0E1325;
  border-radius: 0 0 22px 22px;
}
body.landing-ref .rm-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  background: #0A0F1F;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0 0 0 22px;
}
body.landing-ref[dir="rtl"] .rm-rail,
html[dir="rtl"] body.landing-ref .rm-rail {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0 0 22px 0;
}
body.landing-ref .rm-rail-ic {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.4);
  transition: color .2s ease;
}
body.landing-ref .rm-rail-ic svg { width: 100%; height: 100%; }
body.landing-ref .rm-rail-ic:first-child { color: var(--ref-orange); }
body.landing-ref .rm-main {
  padding: 20px;
  display: grid;
  gap: 12px;
}
body.landing-ref .rm-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
body.landing-ref .rm-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28, 114, 147, 0.18), rgba(242, 166, 90, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
}
body.landing-ref .rm-kpi-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
body.landing-ref .rm-kpi-value {
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}
body.landing-ref .rm-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
body.landing-ref .rm-chart-card { padding: 8px 14px 0; }
body.landing-ref .rm-chart {
  display: block;
  width: 100%;
  height: 80px;
}
body.landing-ref .rm-feed { display: grid; gap: 8px; }
body.landing-ref .rm-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.78);
}
body.landing-ref .rm-dot {
  width: 8px; height: 8px; border-radius: 999px;
}
body.landing-ref .rm-dot-ok { background: #28C840; box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.18); }
body.landing-ref .rm-dot-warn { background: var(--ref-orange); box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.2); }

/* Floating softphone card */
body.landing-ref .rm-softphone {
  position: absolute;
  inset-inline-end: -28px;
  bottom: -32px;
  width: 180px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #F7F4EE 100%);
  border: 1px solid var(--ref-line);
  box-shadow: var(--ref-shadow-lg);
  color: var(--ref-ink);
}
body.landing-ref .rm-ring {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #1C7293;
  margin-bottom: 10px;
  color: #fff;
  display: grid;
  place-items: center;
}
body.landing-ref .rm-ring::before,
body.landing-ref .rm-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(28, 114, 147, 0.35);
  animation: ref-ring 2.4s ease-out infinite;
}
body.landing-ref .rm-ring::after { animation-delay: 1.2s; }
@keyframes ref-ring {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.9); opacity: 0; }
}
body.landing-ref .rm-sp-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ref-teal);
  font-weight: 700;
  margin-bottom: 2px;
}
body.landing-ref .rm-sp-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ref-navy);
  margin-bottom: 10px;
}
body.landing-ref .rm-sp-actions {
  display: flex;
  gap: 8px;
}
body.landing-ref .rm-sp-ans {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #28C840;
  color: #fff;
}
body.landing-ref .rm-sp-ans svg { width: 16px; height: 16px; }

/* Floating WhatsApp chip */
body.landing-ref .rm-chip {
  position: absolute;
  inset-inline-start: -24px;
  top: 64px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ref-line);
  box-shadow: var(--ref-shadow);
  color: var(--ref-ink);
  max-width: 220px;
}
body.landing-ref .rm-chip-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
}
body.landing-ref .rm-chip-ic svg { width: 18px; height: 18px; }
body.landing-ref .rm-chip-text { display: flex; flex-direction: column; line-height: 1.2; }
body.landing-ref .rm-chip-text strong {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ref-teal);
  font-weight: 700;
}
body.landing-ref .rm-chip-text small {
  font-size: 13px;
  color: var(--ref-ink);
  font-weight: 500;
}

/* --- Channel marquee ----------------------------------------- */
body.landing-ref .ref-strip {
  padding: clamp(30px, 4vw, 48px) 0;
  background: var(--ref-cream-2);
  border-top: 1px solid var(--ref-line-soft);
  border-bottom: 1px solid var(--ref-line-soft);
}
body.landing-ref .ref-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
body.landing-ref .ref-strip-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ref-ink-mute);
  margin: 0;
}
body.landing-ref .ref-strip-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
body.landing-ref .ref-strip-row {
  display: flex;
  gap: 38px;
  padding-inline-end: 38px;
  flex-shrink: 0;
  align-items: center;
  animation: ref-marquee 36s linear infinite;
}
@keyframes ref-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
body.landing-ref[dir="rtl"] .ref-strip-row,
html[dir="rtl"] body.landing-ref .ref-strip-row {
  animation-direction: reverse;
}
body.landing-ref .ref-chan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ref-navy);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
body.landing-ref .ref-chan-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(33, 41, 92, 0.06);
  color: var(--ref-teal);
}
body.landing-ref .ref-chan-ic svg { width: 18px; height: 18px; }

/* --- Generic card + icon ------------------------------------ */
body.landing-ref .ref-card {
  position: relative;
  background: var(--ref-white);
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  padding: 28px 26px;
  box-shadow: var(--ref-shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
body.landing-ref .ref-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ref-shadow);
  border-color: rgba(28, 114, 147, 0.25);
}
body.landing-ref .ref-card h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ref-navy);
  margin: 0 0 8px;
}
body.landing-ref .ref-card p {
  color: var(--ref-ink-soft);
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
}
body.landing-ref .ref-card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28, 114, 147, 0.12), rgba(242, 166, 90, 0.08));
  border: 1px solid rgba(28, 114, 147, 0.18);
  color: var(--ref-teal);
}
body.landing-ref .ref-card-ic svg { width: 22px; height: 22px; }

/* --- Grids --------------------------------------------------- */
body.landing-ref .ref-grid-22 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body.landing-ref .ref-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
body.landing-ref .ref-grid-mods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  body.landing-ref .ref-grid-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.landing-ref .ref-grid-22,
  body.landing-ref .ref-grid-3,
  body.landing-ref .ref-grid-mods { grid-template-columns: 1fr; }
}

/* --- Hub diagram --------------------------------------------- */
body.landing-ref .ref-hub {
  position: relative;
  margin: 8px auto clamp(36px, 6vw, 56px);
  width: min(520px, 86%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}
body.landing-ref .ref-hub-svg {
  width: 100%;
  height: 100%;
}
body.landing-ref .ref-hub-core-g {
  animation: ref-pulse 4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ref-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
body.landing-ref .ref-hub-node-g {
  transition: transform .3s ease;
}
body.landing-ref .ref-hub-node-g:hover { transform: scale(1.08); }
body.landing-ref .ref-hub-node-ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ref-orange);
}
body.landing-ref .ref-hub-node-ic svg { width: 100%; height: 100%; }

/* --- Stats --------------------------------------------------- */
body.landing-ref .ref-stats-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--ref-navy);
  margin: 0 0 28px;
  text-align: center;
}
body.landing-ref .ref-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: end;
}
body.landing-ref .ref-stat {
  position: relative;
  padding: 24px 0;
  border-top: 1px solid var(--ref-line);
}
body.landing-ref .ref-stat-num {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  color: var(--ref-navy);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
body.landing-ref .ref-stat-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ref-teal);
  letter-spacing: 0.04em;
}
body.landing-ref .ref-stat small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ref-ink-mute);
}
@media (max-width: 720px) {
  body.landing-ref .ref-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Modules grid ------------------------------------------- */
body.landing-ref .ref-mod {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.landing-ref .ref-mod-en {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ref-teal);
  margin: 0 0 2px;
}
body.landing-ref .ref-mod ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 6px;
}
body.landing-ref .ref-mod ul li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 14px;
  color: var(--ref-ink-soft);
}
body.landing-ref .ref-mod ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ref-orange);
}
body.landing-ref .ref-mod-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--ref-teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
body.landing-ref .ref-mod-link svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}
body.landing-ref .ref-mod-link:hover svg { transform: translateX(3px); }
body.landing-ref[dir="rtl"] .ref-mod-link svg,
html[dir="rtl"] body.landing-ref .ref-mod-link svg { transform: rotate(180deg); }
body.landing-ref[dir="rtl"] .ref-mod-link:hover svg,
html[dir="rtl"] body.landing-ref .ref-mod-link:hover svg { transform: rotate(180deg) translateX(3px); }

/* --- How-it-works steps ------------------------------------- */
body.landing-ref .ref-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
body.landing-ref .ref-steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--ref-line), var(--ref-line) 6px, transparent 6px, transparent 12px);
}
body.landing-ref .ref-step {
  position: relative;
  padding: 0 20px;
  text-align: center;
  background: var(--ref-cream);
}
body.landing-ref .ref-step-num {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--ref-navy) 0%, var(--ref-blue) 100%);
  color: #fff;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  border: 6px solid var(--ref-cream);
  box-shadow: 0 8px 22px -8px rgba(33, 41, 92, 0.4);
}
body.landing-ref .ref-step h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ref-navy);
  margin: 0 0 8px;
}
body.landing-ref .ref-step p {
  font-size: 14.5px;
  color: var(--ref-ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 36ch;
  margin-inline: auto;
}
@media (max-width: 720px) {
  body.landing-ref .ref-steps { grid-template-columns: 1fr; gap: 36px; }
  body.landing-ref .ref-steps::before { display: none; }
}

/* --- Comparison table --------------------------------------- */
body.landing-ref .ref-compare-wrap {
  border-radius: var(--ref-radius-lg);
  border: 1px solid var(--ref-line);
  background: #fff;
  box-shadow: var(--ref-shadow);
  overflow: hidden;
  overflow-x: auto;
}
body.landing-ref .ref-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
body.landing-ref .ref-compare th,
body.landing-ref .ref-compare td {
  padding: 16px 18px;
  text-align: start;
  vertical-align: middle;
  border-bottom: 1px solid var(--ref-line-soft);
}
body.landing-ref .ref-compare thead th {
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ref-ink-mute);
  background: #FBF8F2;
}
body.landing-ref .ref-compare thead th.ref-compare-us {
  color: #fff;
  background: linear-gradient(180deg, var(--ref-navy) 0%, var(--ref-navy-deep) 100%);
}
body.landing-ref .ref-compare tbody th {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ref-navy);
  background: #FBF8F2;
}
body.landing-ref .ref-compare tbody tr:last-child th,
body.landing-ref .ref-compare tbody tr:last-child td {
  border-bottom: 0;
}
body.landing-ref .ref-compare tbody td:nth-child(2) {
  font-weight: 600;
  color: var(--ref-navy);
  background: rgba(28, 114, 147, 0.06);
}
body.landing-ref .ref-compare tbody td:nth-child(3),
body.landing-ref .ref-compare tbody td:nth-child(4),
body.landing-ref .ref-compare tbody td:nth-child(5) {
  color: var(--ref-ink-mute);
}
body.landing-ref .ref-compare-note,
body.landing-ref .ref-compare-close {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ref-ink-mute);
}
body.landing-ref .ref-compare-close {
  font-weight: 500;
  color: var(--ref-ink-soft);
}

/* --- Persona cards ------------------------------------------ */
body.landing-ref .ref-persona {
  position: relative;
  padding: 32px 28px 28px;
}
body.landing-ref .ref-persona-num {
  position: absolute;
  top: 18px;
  inset-inline-end: 22px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  color: rgba(33, 41, 92, 0.22);
  letter-spacing: -0.02em;
}
body.landing-ref .ref-persona-en {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ref-teal);
  margin: -4px 0 8px;
}
body.landing-ref .ref-persona-en em { font-style: italic; }
body.landing-ref .ref-persona-ic {
  background: linear-gradient(135deg, var(--ref-orange) 0%, var(--ref-orange-deep) 100%);
  border-color: transparent;
  color: #fff;
}

/* --- Roadmap (horizontal timeline) -------------------------- */
body.landing-ref .ref-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
body.landing-ref .ref-phases::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(to right, var(--ref-orange), var(--ref-teal), var(--ref-line));
  border-radius: 2px;
}
body.landing-ref .ref-phase {
  position: relative;
  background: #fff;
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  padding: 56px 22px 22px;
  box-shadow: var(--ref-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
body.landing-ref .ref-phase::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--ref-line);
  z-index: 1;
}
body.landing-ref .ref-phase-done::before { border-color: var(--ref-orange); background: var(--ref-orange); }
body.landing-ref .ref-phase-active::before { border-color: var(--ref-teal); background: var(--ref-teal); }
body.landing-ref .ref-phase-next::before { border-color: var(--ref-teal-soft); }
body.landing-ref .ref-phase-future::before { border-color: rgba(33, 41, 92, 0.25); }
body.landing-ref .ref-phase:hover {
  transform: translateY(-3px);
  box-shadow: var(--ref-shadow);
}
body.landing-ref .ref-phase-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 114, 147, 0.12);
  color: var(--ref-teal);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
body.landing-ref .ref-phase-done .ref-phase-badge {
  background: rgba(242, 166, 90, 0.18);
  color: #B85F1F;
}
body.landing-ref .ref-phase-future .ref-phase-badge {
  background: rgba(33, 41, 92, 0.08);
  color: var(--ref-navy);
}
body.landing-ref .ref-phase h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ref-navy);
  margin: 0 0 12px;
  text-wrap: balance;
}
body.landing-ref .ref-phase ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
body.landing-ref .ref-phase li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 13.5px;
  color: var(--ref-ink-soft);
}
body.landing-ref .ref-phase li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ref-teal);
  opacity: 0.6;
}
@media (max-width: 1024px) {
  body.landing-ref .ref-phases { grid-template-columns: repeat(2, 1fr); }
  body.landing-ref .ref-phases::before { display: none; }
}
@media (max-width: 600px) {
  body.landing-ref .ref-phases { grid-template-columns: 1fr; }
}

/* --- FAQ ----------------------------------------------------- */
body.landing-ref .ref-faq-container { max-width: 820px; }
body.landing-ref .ref-faq-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}
body.landing-ref .ref-faq-item {
  background: #fff;
  border: 1px solid var(--ref-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
body.landing-ref .ref-faq-item:hover {
  border-color: rgba(28, 114, 147, 0.32);
  box-shadow: var(--ref-shadow-sm);
}
body.landing-ref .ref-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 22px;
  cursor: pointer;
  text-align: start;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ref-navy);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
body.landing-ref .ref-faq-chev {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(28, 114, 147, 0.1);
  color: var(--ref-teal);
  transition: transform .3s ease, background .3s ease;
}
body.landing-ref .ref-faq-q[aria-expanded="true"] .ref-faq-chev {
  transform: rotate(45deg);
  background: var(--ref-orange);
  color: #fff;
}
body.landing-ref .ref-faq-a {
  padding: 0 22px 20px;
  color: var(--ref-ink-soft);
  font-size: 15px;
  line-height: 1.62;
}
body.landing-ref .ref-faq-a p { margin: 0; }

/* --- Text link ----------------------------------------------- */
body.landing-ref .ref-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ref-teal);
  font-weight: 600;
  font-size: 14.5px;
}
body.landing-ref .ref-text-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
body.landing-ref .ref-text-link:hover svg { transform: translateX(3px); }
body.landing-ref[dir="rtl"] .ref-text-link svg,
html[dir="rtl"] body.landing-ref .ref-text-link svg { transform: rotate(180deg); }
body.landing-ref .ref-more {
  margin: 28px 0 0;
  text-align: center;
}

/* --- Final CTA ---------------------------------------------- */
body.landing-ref .ref-cta-final {
  background: linear-gradient(135deg, var(--ref-navy-deep) 0%, var(--ref-navy) 50%, var(--ref-blue) 100%);
  color: #fff;
  text-align: center;
}
body.landing-ref .ref-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body.landing-ref .ref-cta-bg span {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
}
body.landing-ref .ref-cta-bg span:first-child {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--ref-orange) 0%, transparent 70%);
  top: -120px;
  inset-inline-start: 10%;
  opacity: 0.35;
}
body.landing-ref .ref-cta-bg span:last-child {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--ref-teal) 0%, transparent 70%);
  bottom: -140px;
  inset-inline-end: 15%;
  opacity: 0.4;
}
body.landing-ref .ref-cta-inner {
  position: relative;
  z-index: 1;
}
body.landing-ref .ref-cta-title {
  color: #fff;
  max-width: 18ch;
  margin: 0 auto 12px;
  font-size: clamp(34px, 5vw, 60px);
}
body.landing-ref .ref-cta-final .ref-subtitle-en em {
  color: rgba(255, 255, 255, 0.62);
}
body.landing-ref .ref-cta-final .ref-cta-row {
  margin-top: 28px;
  margin-bottom: 18px;
}
body.landing-ref .ref-cta-final .ref-btn-primary {
  background: linear-gradient(180deg, var(--ref-orange) 0%, var(--ref-orange-deep) 100%);
  color: var(--ref-navy);
  box-shadow: 0 18px 40px -10px rgba(242, 166, 90, 0.6);
}
body.landing-ref .ref-cta-final .ref-btn-primary:hover {
  box-shadow: 0 22px 48px -10px rgba(242, 166, 90, 0.7);
}
body.landing-ref .ref-reassurance {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

/* --- Footer overrides --------------------------------------- */
body.landing-ref .footer {
  background: var(--ref-navy-deep);
  color: rgba(244, 247, 251, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.landing-ref .footer h3,
body.landing-ref .footer .brand-wordmark { color: #fff; }
body.landing-ref .footer-brand p { color: rgba(244, 247, 251, 0.65); }
body.landing-ref .footer-links a { color: rgba(244, 247, 251, 0.7); }
body.landing-ref .footer-links a:hover { color: #fff; }
body.landing-ref .footer-bottom { color: rgba(244, 247, 251, 0.6); }

/* --- Reveal-on-scroll --------------------------------------- */
body.landing-ref [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
body.landing-ref [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  body.landing-ref [data-reveal] { opacity: 1; transform: none; transition: none; }
  body.landing-ref .ref-aurora-blob,
  body.landing-ref .ref-hub-core-g,
  body.landing-ref .rm-ring::before,
  body.landing-ref .rm-ring::after,
  body.landing-ref .ref-strip-row { animation: none !important; }
}

/* --- Responsive ---------------------------------------------- */
@media (max-width: 980px) {
  body.landing-ref .ref-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  body.landing-ref .ref-hero-visual {
    min-height: auto;
    max-width: 520px;
    margin-inline: auto;
  }
  body.landing-ref .ref-hub {
    width: min(420px, 100%);
  }
  body.landing-ref .ref-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body.landing-ref .ref-section { padding: clamp(48px, 12vw, 80px) 0; }
  body.landing-ref .ref-h1 { font-size: clamp(36px, 9vw, 50px); }
  body.landing-ref .ref-mockup { transform: none; }
  body.landing-ref .rm-softphone {
    inset-inline-end: -8px;
    bottom: -16px;
    width: 160px;
    padding: 12px;
  }
  body.landing-ref .rm-chip { inset-inline-start: -8px; top: 40px; }
}

@media (max-width: 480px) {
  body.landing-ref .ref-btn { width: 100%; justify-content: center; }
  body.landing-ref .ref-cta-row { flex-direction: column; }
  body.landing-ref .ref-card { padding: 22px 20px; }
}

/* ============================================================
   IMAGINE WITHOUT FAZABIZ — signature interactive section
   ============================================================ */
body.landing-ref .ref-imagine {
  position: relative;
  overflow: hidden;
}
body.landing-ref .ref-imagine::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(242, 166, 90, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(28, 114, 147, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity .8s ease;
}
body.landing-ref .ref-imagine[data-state="chaos"]::before {
  opacity: 0.35;
}
body.landing-ref .ref-imagine .container { position: relative; z-index: 1; }

/* Toggle control */
body.landing-ref .ref-im-control {
  /* Use flex + fit-content + margin-inline:auto for RTL-safe centering.
     The old `left:50%; transform:translateX(-50%)` trick only works in LTR —
     in RTL the element's natural flow starts at the right, so adding left:50%
     pushes it further right and off-screen. */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ref-line);
  backdrop-filter: blur(8px);
  box-shadow: var(--ref-shadow-sm);
  margin-inline: auto;   /* logical centering — works in both LTR and RTL */
  margin-bottom: 36px;
  position: relative;
}
body.landing-ref .ref-im-control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ref-ink-mute);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color .35s ease;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-on { color: var(--ref-navy); }
body.landing-ref .ref-imagine[data-state="harmony"] .ref-im-off { color: var(--ref-navy); }

/* iOS-style switch */
body.landing-ref .ref-im-switch {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #1C7293 0%, #065A82 100%);
  cursor: pointer;
  transition: background .5s ease, box-shadow .35s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 4px 12px rgba(28, 114, 147, 0.3);
  padding: 0;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-switch {
  background: linear-gradient(180deg, #C44545 0%, #8B2A2A 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25), 0 4px 12px rgba(196, 69, 69, 0.35);
}
body.landing-ref .ref-im-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform .45s cubic-bezier(.4, 1.4, .6, 1);
  /* Harmony (With FazaBiz) = ON = knob RIGHT */
  transform: translateX(30px);
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-switch-knob {
  /* Chaos (Without FazaBiz) = OFF = knob LEFT */
  transform: translateX(0);
}
body.landing-ref .ref-im-switch:focus-visible {
  outline: 3px solid rgba(28, 114, 147, 0.4);
  outline-offset: 3px;
}

/* Stage */
body.landing-ref .ref-im-stage {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
}

/* SVG spokes (visible only in harmony) */
body.landing-ref .ref-im-spokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity .7s ease;
}
body.landing-ref .ref-im-spoke {
  stroke: var(--ref-teal);
  stroke-width: 1;
  stroke-opacity: 0.35;
  stroke-dasharray: 3 5;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-spokes {
  opacity: 0;
}

/* FazaBiz Cockpit core — neutral circle so logo teal/orange reads clearly */
body.landing-ref .ref-im-cockpit {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: var(--ref-white);
  border: 1px solid var(--ref-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  color: var(--ref-ink);
  box-shadow:
    0 0 0 12px color-mix(in srgb, var(--ref-teal) 10%, transparent),
    0 24px 48px -16px color-mix(in srgb, var(--ref-navy) 22%, transparent);
  transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1), opacity .6s ease, box-shadow .6s ease, background .4s ease, border-color .4s ease;
}
[data-theme="dark"] body.landing-ref .ref-im-cockpit {
  background: #1a2234;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 12px color-mix(in srgb, var(--ref-teal) 18%, transparent),
    0 28px 56px -18px rgba(0, 0, 0, 0.55);
}
body.landing-ref .ref-im-cockpit strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ref-ink);
}
/* FazaBiz logo mark — dominant inside the circle */
body.landing-ref .ref-im-logo-mark {
  display: block;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-cockpit {
  transform: scale(0.5);
  opacity: 0;
  box-shadow: 0 0 0 0 transparent;
}

/* Module cards orbiting the cockpit */
body.landing-ref .ref-im-grid {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
body.landing-ref .ref-im-mod {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ref-line);
  box-shadow: var(--ref-shadow);
  pointer-events: auto;
  min-width: 168px;
  /* Harmony defaults */
  --tx: var(--ho-x);
  --ty: var(--ho-y);
  --rot: 0deg;
  --bg: #ffffff;
  --fg: var(--ref-navy);
  --accent: var(--ref-teal);
  color: var(--fg);
  background: var(--bg);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  transition:
    transform .85s cubic-bezier(0.22, 1, 0.36, 1),
    background .65s ease,
    color .65s ease,
    box-shadow .65s ease,
    border-color .65s ease;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod {
  --tx: var(--ch-x);
  --ty: var(--ch-y);
  --rot: var(--ch-rot);
  --bg: #ffffff;
  --fg: #1a2030;
  --accent: var(--rv-color);
  border-color: color-mix(in srgb, var(--rv-color) 32%, #d8dde8);
  box-shadow:
    0 18px 36px -16px color-mix(in srgb, var(--rv-color) 35%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--rv-color) 18%, transparent);
}
body.landing-ref .ref-im-mod-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  transition: background .65s ease, color .65s ease;
}
body.landing-ref .ref-im-mod-ic {
  position: relative; /* needed for absolute rival-logo layer */
}
/* FazaBiz icon layer (harmony) and rival-logo layer (chaos) */
body.landing-ref .ref-im-ic-fz,
body.landing-ref .ref-im-ic-rv {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: opacity .65s ease;
}
body.landing-ref .ref-im-ic-fz svg,
body.landing-ref .ref-im-ic-rv svg { width: 20px; height: 20px; }
/* Rival logo sits in the same spot, hidden by default */
body.landing-ref .ref-im-ic-rv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
/* Real PNG brand logo image sizing */
body.landing-ref .ref-im-rival-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
/* Cross-fade on state change */
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-ic-fz { opacity: 0; }
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-ic-rv { opacity: 1; }
/* White background for icon container in chaos so PNG logos look clean */
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod-ic {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
[data-theme="dark"] body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod-ic {
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.30);
}
body.landing-ref .ref-im-mod-body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
body.landing-ref .ref-im-mod-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ref-navy);
  letter-spacing: -0.01em;
}
body.landing-ref .ref-im-mod-rival {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-top: 3px;
  opacity: 0;
  transform: translateY(-3px);
  height: 0;
  transition: opacity .5s ease, transform .5s ease, height .5s ease;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod-rival {
  opacity: 1;
  transform: translateY(0);
  height: 1.2em;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod-name {
  color: #2a3147;
  font-size: 13.5px;
}

/* Subtle dissonance noise in chaos mode */
body.landing-ref .ref-im-chaos-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 4px at 22% 18%, rgba(229, 26, 75, 0.35), transparent 70%),
    radial-gradient(circle 5px at 78% 30%, rgba(0, 179, 136, 0.3), transparent 70%),
    radial-gradient(circle 3px at 18% 78%, rgba(255, 122, 89, 0.3), transparent 70%),
    radial-gradient(circle 4px at 82% 82%, rgba(107, 91, 255, 0.32), transparent 70%);
  opacity: 0;
  transition: opacity .7s ease;
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-chaos-noise {
  opacity: 1;
}

/* Compare bullets list under stage */
body.landing-ref .ref-im-compare {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
}
body.landing-ref .ref-im-col {
  padding: 22px 24px;
  border-radius: var(--ref-radius);
  background: #fff;
  border: 1px solid var(--ref-line);
  box-shadow: var(--ref-shadow-sm);
  transition: opacity .6s ease, transform .6s ease, box-shadow .6s ease;
}
body.landing-ref .ref-im-col-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px;
}
body.landing-ref .ref-im-col-with .ref-im-col-label { color: var(--ref-teal); }
body.landing-ref .ref-im-col-without .ref-im-col-label { color: #B85F1F; }
body.landing-ref .ref-im-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
body.landing-ref .ref-im-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ref-ink-soft);
}
body.landing-ref .ref-im-col li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
body.landing-ref .ref-im-col li.ref-im-good svg { color: #22A06B; }
body.landing-ref .ref-im-col li.ref-im-bad svg { color: #C44545; }
body.landing-ref .ref-imagine[data-state="harmony"] .ref-im-col-without {
  opacity: 0.5;
  transform: scale(0.99);
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-col-with {
  opacity: 0.5;
  transform: scale(0.99);
}
body.landing-ref .ref-imagine[data-state="harmony"] .ref-im-col-with {
  box-shadow: var(--ref-shadow), 0 0 0 2px rgba(28, 114, 147, 0.2);
}
body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-col-without {
  box-shadow: var(--ref-shadow), 0 0 0 2px rgba(196, 69, 69, 0.2);
}

/* Imagine — responsive
   Mobile: full container width, NO transform:scale() (that was
   shrinking the diagram and leaving empty side gutters).          */
@media (max-width: 980px) {
  body.landing-ref .ref-im-stage {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
  }
  body.landing-ref .ref-im-mod {
    min-width: 0;
    padding: 8px 12px 8px 8px;
    gap: 8px;
  }
  body.landing-ref .ref-im-mod-ic { width: 30px; height: 30px; }
  body.landing-ref .ref-im-ic-fz svg,
  body.landing-ref .ref-im-ic-rv svg { width: 16px; height: 16px; }
  body.landing-ref .ref-im-mod-name { font-size: 13px; }
  body.landing-ref .ref-im-cockpit { width: 180px; height: 180px; gap: 4px; }
  body.landing-ref .ref-im-cockpit strong { font-size: 16px; }
  body.landing-ref .ref-im-logo-mark { width: 118px; height: 118px; }
}

@media (max-width: 640px) {
  body.landing-ref .ref-imagine .container {
    padding-inline: 14px;
  }

  /* Toggle: full-width bar, labels flanking the switch */
  body.landing-ref .ref-im-control {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    left: auto;
    transform: none;
    margin: 0 0 24px;
    padding: 14px 14px;
    border-radius: 16px;
  }
  body.landing-ref .ref-im-control-label {
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
  }
  body.landing-ref .ref-im-on  { text-align: end;  padding-inline-end: 4px; }
  body.landing-ref .ref-im-off { text-align: start; padding-inline-start: 4px; }
  body.landing-ref .ref-im-switch { flex-shrink: 0; }

  /* Stage: full width, natural height — no scale shrink */
  body.landing-ref .ref-im-stage {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1.02;
    overflow: hidden;
    transform: none;
    margin-bottom: 8px;
  }

  body.landing-ref .ref-im-cockpit {
    width: 152px;
    height: 152px;
    gap: 3px;
  }
  body.landing-ref .ref-im-cockpit strong { font-size: 14px; }
  body.landing-ref .ref-im-logo-mark { width: 100px; height: 100px; }

  body.landing-ref .ref-im-compare {
    grid-template-columns: 1fr;
    max-width: none;
    margin-top: 28px;
  }

  /* Harmony orbit R≈125px — fills ~70% of a 360px stage */
  body.landing-ref .ref-im-mod:nth-child(1) { transform: translate(    0px, -125px) rotate(0deg); }
  body.landing-ref .ref-im-mod:nth-child(2) { transform: translate(  108px,  -62px) rotate(0deg); }
  body.landing-ref .ref-im-mod:nth-child(3) { transform: translate(  108px,   62px) rotate(0deg); }
  body.landing-ref .ref-im-mod:nth-child(4) { transform: translate(    0px,  125px) rotate(0deg); }
  body.landing-ref .ref-im-mod:nth-child(5) { transform: translate( -108px,   62px) rotate(0deg); }
  body.landing-ref .ref-im-mod:nth-child(6) { transform: translate( -108px,  -62px) rotate(0deg); }

  /* Chaos: ~38% of desktop scatter — uses full stage width */
  body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod:nth-child(1) { transform: translate( -98px, -57px) rotate(-8deg); }
  body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod:nth-child(2) { transform: translate(  80px, -76px) rotate(12deg); }
  body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod:nth-child(3) { transform: translate( 112px,  11px) rotate(-6deg); }
  body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod:nth-child(4) { transform: translate(  68px,  84px) rotate(14deg); }
  body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod:nth-child(5) { transform: translate( -98px,  76px) rotate(-12deg); }
  body.landing-ref .ref-imagine[data-state="chaos"] .ref-im-mod:nth-child(6) { transform: translate(-118px,  11px) rotate(8deg); }
}

/* ============================================================
   COMPARE TABLE — single responsive table.
   On mobile (< 720 px), the table reshapes into stacked cards
   using CSS only — no DOM duplication.
   ============================================================ */
@media (max-width: 720px) {
  body.landing-ref .ref-compare-wrap { overflow: visible; padding: 0; }
  body.landing-ref .ref-compare { display: block; background: transparent; box-shadow: none; }
  body.landing-ref .ref-compare thead { display: none; }
  body.landing-ref .ref-compare tbody { display: grid; gap: 14px; }
  body.landing-ref .ref-compare tr {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--ref-line);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--ref-shadow-sm);
  }
  body.landing-ref .ref-compare th[scope="row"] {
    font-family: Fraunces, Georgia, serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--ref-navy);
    margin: 0 0 12px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid var(--ref-line-soft);
    text-align: start;
    background: transparent;
  }
  body.landing-ref .ref-compare td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: 0;
    font-size: 14px;
    background: transparent !important;
    color: var(--ref-ink-soft);
    font-weight: 600;
  }
  body.landing-ref .ref-compare td + td {
    border-top: 1px solid var(--ref-line-soft);
  }
  body.landing-ref .ref-compare td::before {
    content: attr(data-label);
    color: var(--ref-ink-mute);
    font-weight: 500;
    font-size: 13px;
  }
  body.landing-ref .ref-compare td.ref-compare-cell-us {
    color: var(--ref-navy);
    font-weight: 700;
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 4px 0;
    border-top: 0 !important;
    background: linear-gradient(135deg, rgba(242, 166, 90, 0.10), rgba(28, 114, 147, 0.06)) !important;
    border-radius: 10px;
    padding-inline: 12px;
  }
  body.landing-ref .ref-compare td.ref-compare-cell-us::before {
    color: var(--ref-navy);
    font-weight: 700;
  }
}

/* ============================================================
   EARLY-ACCESS hero badge + CTA reassurance
   ============================================================ */
body.landing-ref .ref-early-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(242, 166, 90, 0.16), rgba(28, 114, 147, 0.10));
  border: 1px solid rgba(242, 166, 90, 0.35);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ref-navy);
}
body.landing-ref .ref-early-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #F2A65A;
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.22);
  animation: ref-early-pulse 2.4s ease-in-out infinite;
}
@keyframes ref-early-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.22); }
  50%      { box-shadow: 0 0 0 8px rgba(242, 166, 90, 0.05); }
}

body.landing-ref .ref-cta-reassure {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ref-ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
body.landing-ref .ref-cta-reassure::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #22A06B;
  position: relative;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/></svg>");
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   FAQ — native <details> disclosure
   Answers always present in DOM (SEO-friendly), shown when open.
   ============================================================ */
body.landing-ref details.ref-faq-item {
  background: #fff;
  border: 1px solid var(--ref-line);
  border-radius: 16px;
  padding: 0;
  margin: 0;
  box-shadow: var(--ref-shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}
body.landing-ref details.ref-faq-item + details.ref-faq-item {
  margin-top: 12px;
}
body.landing-ref details.ref-faq-item[open] {
  border-color: rgba(33, 41, 92, 0.22);
  box-shadow: var(--ref-shadow);
}
body.landing-ref summary.ref-faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ref-navy);
  letter-spacing: -0.005em;
}
body.landing-ref summary.ref-faq-q::-webkit-details-marker { display: none; }
body.landing-ref summary.ref-faq-q::marker { content: ""; }
body.landing-ref .ref-faq-chev {
  width: 22px;
  height: 22px;
  color: var(--ref-teal);
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.4, 1.4, .6, 1);
}
body.landing-ref details.ref-faq-item[open] .ref-faq-chev {
  transform: rotate(45deg);
}
body.landing-ref .ref-faq-a {
  padding: 0 24px 22px;
  color: var(--ref-ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
body.landing-ref .ref-faq-a p { margin: 0; }

/* ============================================================
   EARLY-ACCESS section (honest social-proof placeholder)
   ============================================================ */
body.landing-ref .ref-section-ea {
  background:
    linear-gradient(135deg, rgba(242, 166, 90, 0.06), rgba(28, 114, 147, 0.06)),
    var(--ref-cream-2);
  position: relative;
}
body.landing-ref .ref-section-ea::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ref-line), transparent);
}
body.landing-ref .ref-ea-card {
  border: 1px solid rgba(242, 166, 90, 0.28);
  background: #fff;
  position: relative;
}
body.landing-ref .ref-ea-card .ref-card-ic {
  background: linear-gradient(135deg, rgba(242, 166, 90, 0.18), rgba(242, 166, 90, 0.06));
  color: #B85F1F;
}

/* ============================================================
   HERO WORKFLOW ANIMATION (.fz-flow-*)
   GSAP-driven SVG: 6 channels → FazaBiz hub → 2 outcomes.

   Sizing strategy (battle-tested on Safari iOS + Chromium webview):
   - The stage has NO max-width cap on regular viewports → it
     always fills its column. On phone it spans the full row.
   - Height is locked via the padding-top aspect-ratio hack: the
     padding-top % is computed against the WRAP's WIDTH so the box
     always has the right height, even in engines where SVG
     `height: auto` collapses to 0.  90.476% = 760/840.
   - The SVG is absolutely positioned inside; chat-pops are also
     position:absolute and share the same containing block.
   - All inner foreignObject classnames (.float-card, .step-card,
     .hub-card, .bubble) are scoped under .fz-flow-wrap so they
     can't collide with the rest of the page.
   ============================================================ */
body.landing-ref .fz-flow-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-inline: auto;
  /* NB: deliberately no `container-type` here. Every previous
     attempt put container-type somewhere in this subtree and ran
     into an engine quirk (percentage block-axis padding or
     aspect-ratio collapsing to 0). Container queries have been
     replaced with @media breakpoints below, which are universally
     reliable. */
}
body.landing-ref .fz-flow-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 840 / 760;     /* SVG viewBox aspect → drives height */
  /* Fallback for engines without aspect-ratio support: a 0-height
     box with padding-top resolves against the parent's width. */
  max-width: 100%;
}
@supports not (aspect-ratio: 1) {
  body.landing-ref .fz-flow-wrap {
    height: 0;
    padding-top: 90.476%;
  }
}
body.landing-ref .fz-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;           /* particle halos can render outside */
}

/* ---- Channel & step cards ---------------------------------- */
body.landing-ref .fz-flow-wrap .float-card {
  width: 100%; height: 100%;
  background: #fff;
  border: 1px solid rgba(13,27,61,0.08);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(13,27,61,0.04),
    0 8px 24px -8px rgba(13,27,61,0.12),
    0 20px 48px -20px rgba(13,27,61,0.10);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  font-family: Inter, -apple-system, system-ui, sans-serif;
}
body.landing-ref .fz-flow-wrap .float-card .icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
body.landing-ref .fz-flow-wrap .float-card .meta { flex: 1; min-width: 0; }
body.landing-ref .fz-flow-wrap .float-card .title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ref-navy, #0d1b3d);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
body.landing-ref .fz-flow-wrap .float-card .sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}
body.landing-ref .fz-flow-wrap .float-card .dot-state {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  transition: all 0.4s ease;
}
body.landing-ref .fz-flow-wrap .float-card.active {
  border-color: rgba(44,138,156,0.30);
  box-shadow:
    0 1px 0 rgba(13,27,61,0.04),
    0 12px 32px -8px rgba(44,138,156,0.25),
    0 0 0 3px rgba(44,138,156,0.06);
  transform: translateY(-1px);
}
body.landing-ref .fz-flow-wrap .float-card.active .dot-state {
  background: #2c8a9c;
  box-shadow: 0 0 8px #5dc4d6;
}

body.landing-ref .fz-flow-wrap .call-dir {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  transition: all 0.4s ease;
}
body.landing-ref .fz-flow-wrap .call-dir.inbound {
  background: rgba(44,138,156,0.12);
  color: #2c8a9c;
}
body.landing-ref .fz-flow-wrap .call-dir.outbound {
  background: rgba(232,154,60,0.14);
  color: #c47d28;
}
body.landing-ref .fz-flow-wrap .call-dir svg { transition: transform 0.4s ease; }

body.landing-ref .fz-flow-wrap .step-card {
  width: 100%; height: 100%;
  background: #fff;
  border: 1px solid rgba(13,27,61,0.08);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow:
    0 1px 0 rgba(13,27,61,0.04),
    0 8px 24px -8px rgba(13,27,61,0.10);
  display: flex;
  align-items: center;
  gap: 11px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  font-family: Inter, -apple-system, system-ui, sans-serif;
}
body.landing-ref .fz-flow-wrap .step-card .step-idx {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: #e89a3c;
  flex-shrink: 0;
  width: 22px;
}
body.landing-ref .fz-flow-wrap .step-card .step-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #f4ede0;
  display: grid; place-items: center;
  flex-shrink: 0;
}
body.landing-ref .fz-flow-wrap .step-card .step-text { flex: 1; min-width: 0; }
body.landing-ref .fz-flow-wrap .step-card .step-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ref-navy, #0d1b3d);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
body.landing-ref .fz-flow-wrap .step-card .step-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}
body.landing-ref .fz-flow-wrap .step-card.active {
  border-color: #e89a3c;
  transform: translateX(4px);
  box-shadow:
    0 1px 0 rgba(13,27,61,0.04),
    0 14px 36px -10px rgba(232,154,60,0.30),
    0 0 0 3px rgba(232,154,60,0.10);
}
body.landing-ref .fz-flow-wrap .step-card.active .step-icon {
  background: rgba(232,154,60,0.14);
}

/* ---- Central hub ------------------------------------------- */
body.landing-ref .fz-flow-wrap .hub-card {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0d1b3d 0%, #0a1530 100%);
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 20px 48px -12px rgba(13,27,61,0.40),
    0 32px 80px -24px rgba(13,27,61,0.30);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: #fff;
  font-family: Inter, -apple-system, system-ui, sans-serif;
}
body.landing-ref .fz-flow-wrap .hub-chrome {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.landing-ref .fz-flow-wrap .hub-chrome .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
body.landing-ref .fz-flow-wrap .hub-chrome .url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
  padding: 3px 10px;
  margin-left: 6px;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum";
}
body.landing-ref .fz-flow-wrap .hub-chrome .url::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 5px;
  vertical-align: -1px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1a5 5 0 0 0-5 5v4H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 9V6a3 3 0 1 1 6 0v4H9z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1a5 5 0 0 0-5 5v4H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 9V6a3 3 0 1 1 6 0v4H9z'/></svg>") center/contain no-repeat;
  opacity: 0.6;
}
body.landing-ref .fz-flow-wrap .hub-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
body.landing-ref .fz-flow-wrap .hub-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
body.landing-ref .fz-flow-wrap .hub-stat .label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.landing-ref .fz-flow-wrap .hub-stat .value {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 19px;
  color: #fff;
  margin-top: 2px;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
}
body.landing-ref .fz-flow-wrap .hub-stat .value .small {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
body.landing-ref .fz-flow-wrap .hub-chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px;
  height: 60px;
  position: relative;
  overflow: hidden;
}
body.landing-ref .fz-flow-wrap .hub-chart svg { width: 100%; height: 100%; }
body.landing-ref .fz-flow-wrap .hub-orders {
  display: flex; flex-direction: column; gap: 5px;
}
body.landing-ref .fz-flow-wrap .hub-order {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 5px 8px;
  font-feature-settings: "tnum";
}
body.landing-ref .fz-flow-wrap .hub-order .o-dot {
  width: 5px; height: 5px; border-radius: 50%;
  flex-shrink: 0;
}
body.landing-ref .fz-flow-wrap .hub-order .o-id {
  font-size: 10.5px;
  color: rgba(255,255,255,0.85);
}
body.landing-ref .fz-flow-wrap .hub-order .o-amt {
  margin-left: auto;
  color: #fff;
  font-weight: 500;
}

/* ---- Connection paths & particles -------------------------- */
body.landing-ref .fz-flow-wrap .conn-base {
  fill: none;
  stroke: rgba(13,27,61,0.15);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}
body.landing-ref .fz-flow-wrap .conn-active {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
body.landing-ref .fz-flow-wrap .anchor {
  fill: #0d1b3d;
  opacity: 0.25;
}
body.landing-ref .fz-flow-wrap .particle {
  transform-box: fill-box;
  transform-origin: center;
}

/* ---- Chat pop-ups ------------------------------------------ */
body.landing-ref .fz-flow-wrap .chat-pop {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  font-family: Inter, -apple-system, system-ui, sans-serif;
}
body.landing-ref .fz-flow-wrap .chat-pop .bubble {
  background: #fff;
  border: 1px solid rgba(13,27,61,0.08);
  border-radius: 14px;
  padding: 8px 11px;
  box-shadow:
    0 4px 12px -2px rgba(13,27,61,0.10),
    0 12px 32px -8px rgba(13,27,61,0.15);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 230px;
}
body.landing-ref .fz-flow-wrap .chat-pop .b-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
body.landing-ref .fz-flow-wrap .chat-pop .b-meta .b-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ref-navy, #0d1b3d);
}
body.landing-ref .fz-flow-wrap .chat-pop .b-meta .b-text {
  font-size: 12px;
  color: var(--ref-navy, #0d1b3d);
  margin-top: 1px;
  line-height: 1.35;
}

/* In RTL, chat bubble text should read right-to-left */
html[dir="rtl"] body.landing-ref .fz-flow-wrap .chat-pop .b-meta,
body.landing-ref[dir="rtl"] .fz-flow-wrap .chat-pop .b-meta {
  direction: rtl;
  text-align: right;
}

/* ---- Hero visual wrapper -----------------------------------------
   IMPORTANT: must force `width: 100%`. Without it, the legacy
   `margin-inline: auto` on the mobile rule made the grid item
   shrink-wrap to its content. Since every child (SVG, chat-pops)
   is position:absolute, the content width is 0 — so the visual
   collapsed to a 0x0 box on mobile (confirmed via headless
   Chromium). Forcing width:100% makes the grid item fill its
   track on every viewport. */
body.landing-ref .ref-hero-visual {
  min-height: 0;
  width: 100%;
  max-width: none;
}
@media (max-width: 980px) {
  body.landing-ref .ref-hero-visual {
    width: 100%;
    max-width: none;
    margin-inline: 0;     /* grid 1fr already centers it */
  }
}

/* Desktop & up: give the visual a real presence next to the H1.
   - 981-1199 keeps a balanced 1.2fr ratio (smaller laptops where
     the H1 needs every pixel)
   - 1200+ pushes the ratio to 1.35fr so the visual feels weighty
     against the 72px serif headline */
@media (min-width: 981px) {
  body.landing-ref .ref-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.2fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: center;
  }
}
@media (min-width: 1200px) {
  body.landing-ref .ref-hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.4fr);
  }
}

/* HERO-ONLY container: starts widening at 1200px and keeps growing
   through TV-class viewports. The rest of the site keeps its
   1120px reading width — only the hero needs the canvas. */
@media (min-width: 1200px) {
  body.landing-ref .ref-hero .container { max-width: 1280px; }
}
@media (min-width: 1500px) {
  body.landing-ref .ref-hero .container { max-width: 1440px; }
}
@media (min-width: 1900px) {
  body.landing-ref .ref-hero .container { max-width: 1620px; }
}
@media (min-width: 2400px) {
  body.landing-ref .ref-hero .container { max-width: 1820px; }
}

/* ---- Viewport-driven legibility tweaks ---------------------------
   foreignObject content is rendered in SVG coordinate space, which
   scales together with the SVG width. When the wrap is narrow (in
   single-column mode on phones, or in the narrow 2-col case on
   smaller laptops) we bump inner type so labels stay scannable. */
@media (max-width: 1200px) {
  body.landing-ref .fz-flow-wrap .float-card .title,
  body.landing-ref .fz-flow-wrap .step-card .step-name { font-size: 14px; }
  body.landing-ref .fz-flow-wrap .float-card .sub,
  body.landing-ref .fz-flow-wrap .step-card .step-sub { font-size: 12px; }
}
@media (max-width: 600px) {
  body.landing-ref .fz-flow-wrap .float-card .title,
  body.landing-ref .fz-flow-wrap .step-card .step-name { font-size: 16px; }
  body.landing-ref .fz-flow-wrap .float-card .sub,
  body.landing-ref .fz-flow-wrap .step-card .step-sub { font-size: 13px; }
  body.landing-ref .fz-flow-wrap .hub-stat .value { font-size: 22px; }
  body.landing-ref .fz-flow-wrap .hub-stat .label { font-size: 11px; }
  body.landing-ref .fz-flow-wrap .hub-order { font-size: 13px; }
  body.landing-ref .fz-flow-wrap .hub-order .o-id { font-size: 12px; }
  body.landing-ref .fz-flow-wrap .chat-pop .b-meta .b-text { font-size: 14px; }
  body.landing-ref .fz-flow-wrap .chat-pop .b-meta .b-label { font-size: 10px; }
}
@media (max-width: 400px) {
  body.landing-ref .fz-flow-wrap .float-card .title,
  body.landing-ref .fz-flow-wrap .step-card .step-name { font-size: 18px; }
  body.landing-ref .fz-flow-wrap .float-card .sub,
  body.landing-ref .fz-flow-wrap .step-card .step-sub { font-size: 14px; }
  body.landing-ref .fz-flow-wrap .hub-stat .value { font-size: 24px; }
  body.landing-ref .fz-flow-wrap .hub-stat .label { font-size: 12px; }
  body.landing-ref .fz-flow-wrap .hub-order { font-size: 14px; }
  body.landing-ref .fz-flow-wrap .chat-pop .bubble { max-width: 180px; }
}

/* Respect reduced-motion: keep static layout, drop animations. */
@media (prefers-reduced-motion: reduce) {
  body.landing-ref .fz-flow-wrap .float-card,
  body.landing-ref .fz-flow-wrap .step-card,
  body.landing-ref .fz-flow-wrap .call-dir,
  body.landing-ref .fz-flow-wrap .call-dir svg { transition: none !important; }
  body.landing-ref .fz-flow-wrap .float-card.active,
  body.landing-ref .fz-flow-wrap .step-card.active { transform: none; }
}

/* ============================================================
   Design System Updates — 2026.05.31
   1. page-hero: polished gradient banner for inner pages
   2. Dark/light mode manual-toggle fixes for nav panel, sticky CTA, body
   3. Dark mode contrast improvements
   4. Card and section visual hierarchy improvements
   ============================================================ */

/* ── 1. page-hero: upgraded inner-page banner ───────────────────── */
.page-hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Subtle decorative background for inner page heroes */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(59,130,246,0.10) 0%, transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(99,102,241,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 800;
  max-width: 22ch;
}

.page-hero .lead {
  margin: 0 0 24px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.62;
}

.page-hero .hero-actions {
  margin-bottom: 0;
}

/* ── Light mode: page-hero gets a cream-tinted background ─── */
[data-theme="light"] .page-hero::before {
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(59,130,246,0.07) 0%, transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(99,102,241,0.05) 0%, transparent 55%);
}

/* ── 2. Body background: manual theme toggle fixes ────────────────── */

/* Dark mode body — use explicit override so toggle works correctly */
[data-theme="dark"] body {
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(840px 480px at 92% -4%, rgba(99, 102, 241, 0.16), transparent 52%),
    #070a12;
}

/* Light mode body */
[data-theme="light"] body {
  background:
    radial-gradient(1000px 400px at 0% 0%, rgba(59, 130, 246, 0.06), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(99, 102, 241, 0.04), transparent 50%),
    #f6f8ff;
}

/* ── Nav panel: manual theme toggle fixes ─────────────────────────── */
[data-theme="light"] .nav-panel {
  /* Tinted to match the light header (rgba(246,248,255)) rather than pure white */
  background: rgba(246, 248, 255, 0.98);
  border-color: rgba(11, 18, 32, 0.10);
}
/* On the homepage the header is warm-cream; match the panel to it so there's no jarring box */
[data-theme="light"] body.landing-ref .site-header .nav-panel {
  background: rgba(247, 244, 238, 0.98);
  border-color: rgba(33, 41, 92, 0.10);
  box-shadow: 0 8px 32px rgba(33, 41, 92, 0.10);
}

[data-theme="light"] .mega-heading {
  color: rgba(11, 18, 32, 0.45);
}

[data-theme="light"] .mega-link {
  color: rgba(11, 18, 32, 0.70);
}

[data-theme="light"] .mega-link strong {
  color: #0b1220;
}

[data-theme="light"] .mega-link span {
  color: rgba(11, 18, 32, 0.48);
}

[data-theme="light"] .mega-link:hover {
  background: rgba(11, 18, 32, 0.04);
  color: #0b1220;
}

[data-theme="light"] .mega-footer {
  border-top-color: rgba(11, 18, 32, 0.10);
  color: rgba(11, 18, 32, 0.48);
}

/* ── Sticky CTA: manual theme toggle ─────────────────────────────── */
[data-theme="light"] .sticky-cta .card {
  background: rgba(246, 248, 255, 0.95);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .sticky-cta .card {
  background: rgba(11, 18, 32, 0.94);
}

/* ── 3. Dark mode contrast improvements ────────────────────────────── */

/* Raise muted-2 opacity from 48% to 56% for WCAG AA compliance */
[data-theme="dark"] {
  --muted-2: rgba(234, 240, 255, 0.56);
}

/* Footer heading in dark mode: from muted-2 to muted for better legibility */
[data-theme="dark"] .footer h3 {
  color: var(--muted);
}

/* FAQ answer in dark mode */
[data-theme="dark"] .faq-answer {
  color: var(--muted);
}

/* Pricing matrix: ensure enough contrast in dark mode */
[data-theme="dark"] .pricing-matrix-wrap {
  background: #0e1427;
}

[data-theme="dark"] .pricing-matrix thead th {
  background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .pricing-matrix tbody th[scope="row"] {
  background: rgba(255,255,255,0.03);
}

/* Compare table in dark mode */
[data-theme="dark"] .compare-table th {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .compare-table-wrap {
  background: rgba(255,255,255,0.02);
}

/* ── 4. Card visual hierarchy — dark mode ─────────────────────────── */

/* Cards get a slightly more opaque surface in dark mode */
[data-theme="dark"] .card {
  background:
    radial-gradient(400px 200px at 10% -10%, rgba(59, 130, 246, 0.10), transparent 70%),
    rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.11);
}

[data-theme="dark"] .card.cta {
  background:
    radial-gradient(760px 220px at 10% -30%, rgba(59, 130, 246, 0.28), transparent 70%),
    radial-gradient(600px 200px at 90% -20%, rgba(99, 102, 241, 0.18), transparent 65%),
    rgba(255,255,255,0.055);
}

[data-theme="dark"] .pricing-card.highlight {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.16), 0 24px 60px rgba(0,0,0,0.55);
}

/* ── 5. Section backgrounds for non-landing pages ─────────────────── */

/* Alternating section backgrounds add visual separation */
.section + .section {
  border-top: 1px solid var(--border);
}

/* ── 6. Nav item active state (page indicator) fix ────────────────── */
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 700;
}

/* ── 7. Better muted text in light mode for readability ─────────────── */
@media (prefers-color-scheme: light) {
  .footer h3 {
    color: rgba(11, 18, 32, 0.52);
  }
}

[data-theme="light"] .footer h3 {
  color: rgba(11, 18, 32, 0.52);
}

/* ── 8. Improved breadcrumbs: ensure readable in both modes ─────── */
.breadcrumbs a {
  color: var(--muted);
  font-weight: 500;
}

/* ── 9. Related grid cards: better hover transition ─────────────────── */
.related-grid a.card {
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

[data-theme="dark"] .related-grid a.card:hover {
  border-color: rgba(59,130,246,0.50);
  box-shadow: 0 8px 28px rgba(59,130,246,0.12);
}

/* ── 10. page-hero: light mode overrides ─────────────────────────── */
[data-theme="light"] .page-hero {
  border-bottom-color: rgba(11, 18, 32, 0.09);
}

@media (prefers-color-scheme: light) {
  .page-hero::before {
    background:
      radial-gradient(800px 360px at 0% 0%, rgba(59,130,246,0.07) 0%, transparent 60%),
      radial-gradient(600px 300px at 100% 100%, rgba(99,102,241,0.05) 0%, transparent 55%);
  }
  .page-hero {
    border-bottom-color: rgba(11, 18, 32, 0.09);
  }
}

/* ── 11. Logo SVG: invert in dark mode for brand logos ────────────── */
[data-theme="dark"] .logo-img-light {
  display: none;
}
[data-theme="dark"] .logo-img-dark {
  display: inline;
}
[data-theme="light"] .logo-img-dark,
:root .logo-img-dark {
  display: none;
}

/* ── 12. Section title — stronger in dark mode ───────────────────── */
[data-theme="dark"] .section-title {
  color: var(--text);
}

/* ── 13. Pill contrast in light mode ────────────────────────────── */
[data-theme="light"] .pill {
  background: rgba(11, 18, 32, 0.04);
  border-color: rgba(11, 18, 32, 0.12);
  color: rgba(11, 18, 32, 0.70);
}

[data-theme="light"] .pill strong {
  color: #0b1220;
}

/* ── 14. Utility link contrast improvement ─────────────────────── */
.login-quiet {
  color: var(--muted);
}
.login-quiet:hover {
  color: var(--text);
}

/* ── 15. Tag (Most Popular badge) contrast fix ─────────────────── */
[data-theme="dark"] .tag {
  background: rgba(59, 130, 246, 0.22);
  color: #b8d4ff;
}

[data-theme="light"] .tag {
  background: rgba(59, 130, 246, 0.12);
  color: #1a4fd6;
}

/* ── 16. Page-hero h1 line-height balance for multi-line titles ─── */
@media (max-width: 560px) {
  .page-hero h1 {
    font-size: clamp(26px, 8vw, 36px);
    max-width: none;
    letter-spacing: -0.025em;
  }
  .page-hero .lead {
    font-size: 15px;
  }
}

/* ── Typography: Fraunces serif for inner-page hero headings ──────────
   Mirrors the homepage editorial display font for visual consistency.
   Fraunces is loaded via Google Fonts on all inner pages.              */
.page-hero h1 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 80, "SOFT" 30;
  font-weight: 700;
}

/* Section titles: tighter letter-spacing for a more editorial feel */
.section-title {
  letter-spacing: -0.025em;
}

/* Inner page body: load Inter as the UI font (mirrors homepage) */
body:not(.landing-ref) {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
}

/* ── Global reveal-on-scroll (extends landing-ref [data-reveal] to all pages)
   JS already handles [data-reveal] for all pages that use it.              */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── landing-ref nav panel: dark mode override ────────────────────── */
[data-theme="dark"] body.landing-ref .site-header .nav-panel {
  background: rgba(17, 22, 34, 0.98);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 36px 80px -28px rgba(0, 0, 0, 0.70);
}

[data-theme="dark"] body.landing-ref .mega-heading {
  color: rgba(232, 237, 248, 0.45);
}

[data-theme="dark"] body.landing-ref .mega-link {
  color: rgba(232, 237, 248, 0.70);
}

[data-theme="dark"] body.landing-ref .mega-link strong {
  color: var(--ref-ink);
}

[data-theme="dark"] body.landing-ref .mega-link span {
  color: rgba(232, 237, 248, 0.45);
}

[data-theme="dark"] body.landing-ref .mega-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] body.landing-ref .mega-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: rgba(232, 237, 248, 0.45);
}

/* ── Landing-ref early badge: dark mode ───────────────────────────── */
[data-theme="dark"] body.landing-ref .ref-early-badge {
  background: linear-gradient(135deg, rgba(242, 166, 90, 0.10), rgba(28, 114, 147, 0.07));
  border-color: rgba(242, 166, 90, 0.22);
  color: var(--ref-ink);
}

/* ── Sticky CTA: landing-ref dark mode ───────────────────────────── */
[data-theme="dark"] body.landing-ref .sticky-cta .card,
[data-theme="dark"] .sticky-cta .card {
  background: rgba(11, 18, 32, 0.95);
  border-color: rgba(59, 130, 246, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Mobile nav panel: ensure dark/light mode works on mobile only ── */
/* Scoped to ≤980px so the desktop nav-list doesn't get a background box */
@media (max-width: 980px) {
  [data-theme="dark"] .site-nav {
    background: rgba(11, 18, 32, 0.98);
    border-color: rgba(255, 255, 255, 0.09);
  }

  [data-theme="light"] .site-nav {
    background: rgba(246, 248, 255, 0.98);
    border-color: rgba(11, 18, 32, 0.10);
  }
}

/* ============================================================
   Language Picker Dropdown
   Injected by JS to replace the static .lang link rows.
   ============================================================ */

.lang-picker {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.lang-trigger:hover {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.35);
}

.lang-trigger[aria-expanded="true"] {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.45);
}

.lang-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.lang-globe-ic {
  flex-shrink: 0;
  opacity: 0.65;
}

.lang-current-label {
  /* text inherits from trigger */
}

.lang-chev-ic {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.lang-trigger[aria-expanded="true"] .lang-chev-ic {
  transform: rotate(180deg);
}

/* ── Dropdown menu ────────────────────────────────────────── */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.98);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  list-style: none;
  margin: 0;
  z-index: 55;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Invisible bridge so cursor can travel from trigger to menu */
.lang-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  inset-inline-start: 0;
  width: 100%;
  height: 10px;
}

/* ── Language option ──────────────────────────────────────── */
.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-opt:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.lang-opt-active {
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  pointer-events: none;
  cursor: default;
}

.lang-opt-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  min-width: 22px;
  color: var(--primary);
  opacity: 0.9;
}

.lang-opt-active .lang-opt-code {
  color: var(--primary);
  opacity: 1;
}

.lang-opt-name {
  flex: 1;
}

/* ── Light mode overrides ─────────────────────────────────── */
[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(11, 18, 32, 0.10);
  box-shadow: 0 16px 48px rgba(11,18,32,0.14);
}

[data-theme="light"] .lang-opt {
  color: rgba(11, 18, 32, 0.68);
}

[data-theme="light"] .lang-opt:hover {
  background: rgba(11, 18, 32, 0.05);
  color: #0b1220;
}

[data-theme="light"] .lang-opt-active {
  background: rgba(11, 18, 32, 0.07);
  color: #0b1220;
}

@media (prefers-color-scheme: light) {
  .lang-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(11, 18, 32, 0.10);
    box-shadow: 0 16px 48px rgba(11,18,32,0.14);
  }
  .lang-opt { color: rgba(11, 18, 32, 0.68); }
  .lang-opt:hover { background: rgba(11,18,32,0.05); color: #0b1220; }
  .lang-opt-active { background: rgba(11,18,32,0.07); color: #0b1220; }
}

/* ── landing-ref (homepage) header light style ────────────── */
body.landing-ref .lang-trigger {
  color: var(--ref-navy);
  border-color: var(--ref-line);
  background: transparent;
}

body.landing-ref .lang-trigger:hover {
  background: rgba(33, 41, 92, 0.06);
  border-color: rgba(33, 41, 92, 0.18);
}

body.landing-ref .lang-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--ref-line);
  box-shadow: var(--ref-shadow-lg);
}

body.landing-ref .lang-opt { color: var(--ref-ink-soft); }
body.landing-ref .lang-opt:hover { background: rgba(33,41,92,0.05); color: var(--ref-ink); }
body.landing-ref .lang-opt-active { background: rgba(33,41,92,0.07); color: var(--ref-ink); }

/* Dark mode overrides for landing-ref */
[data-theme="dark"] body.landing-ref .lang-trigger {
  color: var(--ref-ink);
  border-color: var(--ref-line);
}

[data-theme="dark"] body.landing-ref .lang-menu {
  background: rgba(17, 22, 34, 0.98);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 36px 80px rgba(0,0,0,0.60);
}

[data-theme="dark"] body.landing-ref .lang-opt {
  color: rgba(232, 237, 248, 0.68);
}

[data-theme="dark"] body.landing-ref .lang-opt:hover {
  background: rgba(255,255,255,0.07);
  color: var(--ref-ink);
}

[data-theme="dark"] body.landing-ref .lang-opt-active {
  background: rgba(255,255,255,0.09);
  color: var(--ref-ink);
}

/* ── Mobile lang picker ───────────────────────────────────── */
.lang-picker-mobile .lang-trigger {
  width: 100%;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
}

.lang-picker-mobile .lang-menu {
  position: static;
  min-width: 0;
  margin-top: 6px;
  box-shadow: none;
  border-radius: var(--radius);
  backdrop-filter: none;
}

.lang-picker-mobile .lang-opt {
  padding: 11px 14px;
  font-size: 14px;
}

/* ── Lang picker: header layout positioning (replaces .lang) ── */
.site-header .lang-picker {
  margin-inline-end: 4px;
  flex-shrink: 0;
}

/* On medium viewports, hide the desktop lang-picker to avoid crowding */
@media (max-width: 1080px) {
  .header-actions .lang-picker {
    display: none;
  }
}

/* In mobile nav, the lang picker shows full-width */
.nav-mobile-util .lang-picker-mobile {
  display: block;
}
