/* Venanto — Marketing site
   Shared across /, /features, /pricing, and trust pages
   Venanto marketing surfaces · alternating light + dark sections */

:root {
  --paper:        #f7f8fb;
  --paper-sunk:   #eef3f8;
  --paper-deep:   #e1e8f0;
  --card:         #ffffff;
  --ink:          #111827;
  --ink-soft:     #263241;
  --muted:        #64748b;
  --muted-soft:   #94a3b8;
  --line:         #dbe3ee;
  --line-strong:  #c8d3e1;
  --line-soft:    #e8eef5;

  --dark:         #111827;
  --dark-2:       #172033;
  --dark-3:       #202b43;
  --dark-line:    #2a354a;
  --dark-line-strong: #3a4964;
  --dark-ink:     #f8fafc;
  --dark-muted:   #a8b4c7;
  --dark-muted-soft: #718096;

  /* Brand color tokens sampled from the Venanto logo PNGs. */
  --brand-blue:       #0b68f6;
  --brand-blue-rgb:   11, 104, 246;
  --brand-blue-dark:  #084ebe;
  --brand-blue-light: #0d6ffb;
  --brand-blue-soft:  #e8f1ff;
  --brand-blue-deep-soft: #10284d;
  --brand-blue-ring:  rgba(11, 104, 246, 0.22);

  --accent:       var(--brand-blue);
  --accent-2:     var(--brand-blue-light);
  --accent-strong:var(--brand-blue-dark);
  --accent-soft:  var(--brand-blue-soft);
  --accent-dark-soft: var(--brand-blue-deep-soft);
  --accent-ring:  var(--brand-blue-ring);

  --grad-1:       var(--brand-blue-dark);
  --grad-2:       var(--brand-blue);
  --grad-3:       var(--brand-blue-light);

  --info:         var(--brand-blue);
  --success:      #1f7a4d;
  --warn:         #b7791f;
  --danger:       #dc2626;

  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;
  --r-5: 28px;
  --r-pill: 999px;

  --shadow-1: 0 1px 0 rgba(17, 24, 39, 0.04);
  --shadow-2: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.03);
  --shadow-3: 0 12px 28px -14px rgba(17, 24, 39, 0.2), 0 2px 4px rgba(17, 24, 39, 0.04);
  --shadow-4: 0 32px 64px -32px rgba(17, 24, 39, 0.46), 0 8px 16px -8px rgba(17, 24, 39, 0.14);
  --shadow-glow: 0 0 80px -10px rgba(var(--brand-blue-rgb), 0.22);
  --shadow-focus: 0 0 0 3px var(--accent-ring);

  --font-sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;

  --container-w: 1180px;
  --container-pad: 28px;
}

html[data-theme="night"] {
  color-scheme: dark;

  --paper:        #0b1020;
  --paper-sunk:   #111827;
  --paper-deep:   #172033;
  --card:         #172033;
  --ink:          #f8fafc;
  --ink-soft:     #dbe7f4;
  --muted:        #a8b4c7;
  --muted-soft:   #718096;
  --line:         #2a354a;
  --line-strong:  #3a4964;
  --line-soft:    #202b43;

  --accent:       var(--brand-blue);
  --accent-2:     var(--brand-blue-light);
  --accent-strong:var(--brand-blue-light);
  --accent-soft:  var(--brand-blue-deep-soft);
  --accent-dark-soft: var(--brand-blue-deep-soft);
  --accent-ring:  rgba(11, 104, 246, 0.32);

  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-3: 0 16px 32px -16px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-4: 0 32px 64px -32px rgba(0, 0, 0, 0.72), 0 8px 16px -8px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 80px -10px rgba(11, 104, 246, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; min-width: 320px; }

body.marketing {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.marketing a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ═══ Container ═══ */

.m-container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ═══ Header / nav ═══ */

.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.m-header.is-scrolled {
  background: rgba(250, 247, 242, 0.92);
  border-bottom-color: var(--line);
}

html[data-theme="night"] .m-header {
  background: rgba(11, 16, 32, 0.82);
}

html[data-theme="night"] .m-header.is-scrolled {
  background: rgba(11, 16, 32, 0.94);
}

html[data-theme="night"] .locale-switcher,
html[data-theme="night"] .m-theme-toggle {
  background: rgba(23, 32, 51, 0.76);
}

.m-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.m-brand img {
  height: 30px; width: auto; border-radius: 0;
}

.theme-logo { display: block; }
html[data-theme="light"] .theme-logo-night,
html[data-theme="night"] .theme-logo-light {
  display: none;
}

.m-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.m-nav a,
.m-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.m-nav a:hover,
.m-nav-dropdown-trigger:hover,
.m-nav-dropdown.is-open .m-nav-dropdown-trigger,
.m-nav-dropdown.is-active .m-nav-dropdown-trigger {
  background: var(--paper-sunk);
  color: var(--ink);
}

.m-nav-dropdown {
  position: relative;
  display: inline-flex;
}

.m-nav-dropdown-trigger {
  gap: 7px;
}

.m-nav-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
  transition: transform var(--dur-fast) var(--ease);
}

.m-nav-dropdown.is-open .m-nav-dropdown-trigger::after {
  transform: translateY(1px) rotate(225deg);
}

.m-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 120;
  display: none;
  min-width: 218px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 12%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card), transparent 4%);
  box-shadow: var(--shadow-4);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.m-nav-dropdown.is-open .m-nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

.m-nav-dropdown-menu a {
  width: 100%;
  justify-content: space-between;
  border-radius: 7px;
  padding: 10px 12px;
}

.m-nav-auth { display: none !important; }

.dev-hero {
  padding-bottom: 48px;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.dev-section {
  padding-top: 18px;
}

.dev-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.dev-aside {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: var(--shadow-2);
}

.dev-aside a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-1);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.dev-aside a:hover {
  background: var(--paper-sunk);
  color: var(--ink);
}

.dev-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dev-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.dev-panel h2 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.dev-panel p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
}

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

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

.dev-grid.setup-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dev-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  background: var(--paper);
}

.dev-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

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

.dev-difficulty {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent), transparent 90%);
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
}

.dev-card .dev-difficulty-copy {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.dev-card code,
.dev-code,
.dev-table td:first-child {
  font-family: var(--font-mono);
}

.dev-card code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.dev-code {
  max-width: 100%;
  overflow-x: auto;
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-2);
  background: var(--dark);
  color: var(--dark-ink);
  font-size: 13px;
  line-height: 1.6;
}

.dev-code code {
  font: inherit;
}

.dev-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.dev-steps li::marker {
  color: var(--accent-strong);
  font-weight: 800;
}

.dev-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

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

.dev-table th,
.dev-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.dev-table th {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

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

.dev-table td:first-child {
  color: var(--ink-soft);
  font-size: 12.5px;
  white-space: nowrap;
}

.m-header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Keep header CTA labels (e.g. "Giriş yap", "Ücretsiz başla") on one line —
   longer localized labels would otherwise wrap to two rows. */
.m-header-cta a,
.m-header-cta .m-link,
.m-header-cta .m-btn {
  white-space: nowrap;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-1);
}

.locale-switcher span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.locale-switcher select {
  width: auto;
  min-height: 28px;
  border: 0;
  background-color: transparent;
  padding: 0 20px 0 2px;
  color: inherit;
  font-weight: 800;
}

.locale-switcher select:hover,
.locale-switcher select:focus {
  border-color: transparent;
  box-shadow: none;
}

.m-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.m-theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.m-theme-switch {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}

.m-theme-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.22);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.m-theme-toggle[aria-pressed="true"] .m-theme-switch {
  background: var(--accent);
}

.m-theme-toggle[aria-pressed="true"] .m-theme-switch span {
  transform: translateX(16px);
  background: #06221f;
}

.m-nav .m-theme-toggle {
  margin-left: 4px;
}

.m-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}
.m-link:hover { color: var(--ink); }

.m-account-link {
  max-width: 160px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1440px) {
  .m-account-link { max-width: 220px; }
}

.m-nav-logout {
  display: none !important;
}

.m-logout-button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.m-logout-button:hover {
  background: var(--paper-sunk);
  border-color: var(--ink-soft);
}

.m-link-strong {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease);
}
.m-link-strong:hover { color: var(--accent-strong); }

.m-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  min-width: 64px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-1);
}

/* ═══ Buttons ═══ */

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.m-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.m-btn:active { transform: translateY(1px); }

.m-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(var(--brand-blue-rgb), 0.48);
}
.m-btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 24px -8px rgba(var(--brand-blue-rgb), 0.55);
}

.m-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.m-btn-ghost:hover { background: var(--paper-sunk); border-color: var(--ink-soft); }

.m-btn-dark {
  background: var(--dark);
  color: var(--dark-ink);
}
.m-btn-dark:hover { background: var(--dark-2); }

.m-btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 15.5px;
}

/* ═══ Type scale ═══ */

.m-display {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.m-display .m-grad {
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 45%, var(--grad-3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  display: inline;
  overflow-wrap: anywhere;
}

.m-h {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
}

.m-h-sm {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}

.m-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.m-lead-narrow { max-width: 620px; }

.m-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
}

/* ═══ Hero ═══ */

.m-hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(var(--brand-blue-rgb), 0.11), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--paper-sunk) 100%);
  overflow: hidden;
}

.m-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 40% at 50% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 40% at 50% 20%, #000 30%, transparent 80%);
  pointer-events: none;
}

.m-hero > .m-container { position: relative; z-index: 1; text-align: center; }

.m-hero-compact {
  padding: clamp(44px, 6vw, 78px) 0 clamp(36px, 5vw, 56px);
}

.m-hero-compact .m-display {
  max-width: 14ch;
}

.m-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}

.m-hero-kicker .m-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.m-hero .m-display { max-width: 18ch; margin: 0 auto; }

.m-hero .m-lead {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: clamp(15px, 1.5vw, 19px);
}

.m-hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 36px auto 28px;
}

.m-hero-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px auto 0;
}

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
}

.m-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.15);
}
.m-pill-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(200, 131, 10, 0.15); }
.m-pill-dot.info { background: var(--info); box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.15); }

/* ═══ Hero preview ═══ */

.m-hero-preview {
  margin-top: 48px;
  padding-bottom: 0;
}

.m-preview-frame {
  position: relative;
  border-radius: var(--r-4);
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: var(--shadow-4), var(--shadow-glow);
  overflow: hidden;
  border: 1px solid var(--dark-line);
}

.m-preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dark-line);
  background: var(--dark-2);
}

.m-traffic {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a342c;
}
.m-traffic:nth-child(1) { background: #4a3027; }
.m-traffic:nth-child(2) { background: #4a3a1f; }
.m-traffic:nth-child(3) { background: #2a3a27; }

.m-preview-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dark-muted);
}

.m-preview-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 20px;
}

.m-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

.m-preview-metric {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-3);
  background: var(--dark-2);
}

.m-preview-metric small {
  color: var(--dark-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.m-preview-metric strong {
  color: var(--dark-ink);
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.m-preview-metric.accent strong { color: var(--accent-2); }

.m-preview-chat {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-3);
  background: var(--dark-2);
  min-height: 240px;
}

.m-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: var(--r-3);
  font-size: 13.5px;
  line-height: 1.4;
}

.m-msg-user {
  justify-self: end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.m-msg-bot {
  justify-self: start;
  background: var(--dark-3);
  color: var(--dark-ink);
  border: 1px solid var(--dark-line);
  border-bottom-left-radius: 4px;
}

/* ═══ Venanto command-center homepage ═══ */

@keyframes ad-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.14), 0 0 14px rgba(var(--brand-blue-rgb), 0.42); }
  50% { box-shadow: 0 0 0 7px rgba(var(--brand-blue-rgb), 0.06), 0 0 24px rgba(var(--brand-blue-rgb), 0.72); }
}

@keyframes ad-scan {
  0% { transform: translateX(-120%); opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes ad-flow {
  0% { transform: translateX(-32%); }
  100% { transform: translateX(32%); }
}

@keyframes ad-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ad-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.4vw, 62px) 0 clamp(26px, 4vw, 42px);
  background:
    linear-gradient(180deg, #f7f8fb 0%, #eef3f8 72%, #ffffff 100%);
}

html[data-theme="night"] .ad-hero {
  background:
    linear-gradient(180deg, #0b1020 0%, #111827 72%, #0b1020 100%);
}

.ad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}

html[data-theme="night"] .ad-hero::before {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.075) 1px, transparent 1px);
}

.ad-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  height: 38%;
  background:
    linear-gradient(112deg, transparent 0%, rgba(var(--brand-blue-rgb), 0.08) 38%, transparent 62%),
    linear-gradient(68deg, transparent 0%, rgba(var(--brand-blue-rgb), 0.07) 44%, transparent 70%);
  pointer-events: none;
}

.ad-hero > .m-container {
  position: relative;
  z-index: 1;
}

.ad-hero-copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.ad-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

html[data-theme="night"] .ad-eyebrow,
html[data-theme="night"] .ad-proof span,
html[data-theme="night"] .ad-payment-strip {
  background: rgba(23, 32, 51, 0.78);
}

.ad-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: ad-live-pulse 2.2s ease-in-out infinite;
}

.ad-display {
  max-width: min(960px, calc(100vw - (var(--container-pad) * 2)));
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
  overflow-wrap: break-word;
}

.ad-display span {
  display: inline;
  color: transparent;
  background: linear-gradient(110deg, var(--grad-1) 0%, var(--grad-2) 52%, var(--grad-3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
}

.ad-lead {
  max-width: min(760px, calc(100vw - (var(--container-pad) * 2)));
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.ad-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.ad-hero-actions .m-btn-primary {
  position: relative;
  overflow: hidden;
}

.ad-hero-actions .m-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 42%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 420ms var(--ease);
}

.ad-hero-actions .m-btn-primary:hover::after {
  transform: translateX(120%);
}

/* Hero "try it on your site" funnel: URL in, /try/<token> demo out. */
.ad-try-site {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-top: 10px;
}

.ad-try-site-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.ad-try-site-row input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  color: var(--ink);
}

html[data-theme="night"] .ad-try-site-row input {
  background: rgba(15, 23, 42, 0.65);
}

.ad-try-site-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.ad-try-site-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 520px;
}

.ad-try-site-status {
  margin: 0;
  font-size: 13px;
  color: var(--accent);
}

.ad-try-site-status.is-error {
  color: #b91c1c;
}

.ad-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.ad-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
}

.ad-proof strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ad-payment-strip {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: min(100%, calc(100vw - (var(--container-pad) * 2)));
  margin-top: -2px;
  padding: 8px;
  border: 1px solid rgba(200, 211, 225, 0.76);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ad-card-logo,
.ad-pay-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.ad-card-logo-visa {
  color: #1a1f71;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ad-card-logo-mastercard {
  position: relative;
  gap: 0;
  min-width: 58px;
  overflow: hidden;
}

.ad-card-logo-mastercard i {
  display: block;
  width: 23px;
  height: 23px;
  border-radius: 50%;
}

.ad-card-logo-mastercard i:first-child {
  background: #eb001b;
  transform: translateX(4px);
}

.ad-card-logo-mastercard i:last-child {
  background: #f79e1b;
  mix-blend-mode: multiply;
  transform: translateX(-4px);
}

.ad-pay-pill {
  min-width: auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.ad-command-shell {
  --ad-mode: var(--brand-blue);
  --ad-mode-soft: rgba(var(--brand-blue-rgb), 0.14);
  position: relative;
  width: min(1120px, 100%);
  margin: clamp(24px, 4vw, 38px) auto 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: #0b1020;
  color: #f8fafc;
  box-shadow: 0 28px 82px -36px rgba(17, 24, 39, 0.78), 0 8px 18px -10px rgba(17, 24, 39, 0.42);
}

.ad-command-shell[data-agent-preview="knowledge"] { --ad-mode: var(--brand-blue); --ad-mode-soft: rgba(var(--brand-blue-rgb), 0.16); }
.ad-command-shell[data-agent-preview="channels"] { --ad-mode: #7c3aed; --ad-mode-soft: rgba(124, 58, 237, 0.16); }
.ad-command-shell[data-agent-preview="actions"] { --ad-mode: #d97706; --ad-mode-soft: rgba(217, 119, 6, 0.16); }
.ad-command-shell[data-agent-preview="audit"] { --ad-mode: #16a34a; --ad-mode-soft: rgba(22, 163, 74, 0.16); }

.ad-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(17, 24, 39, 0.86);
}

.ad-window-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.ad-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-blue);
}
.ad-window-dots span:nth-child(2) { background: #60a5fa; }
.ad-window-dots span:nth-child(3) { background: #a78bfa; }

.ad-shell-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ad-shell-tabs::-webkit-scrollbar { display: none; }

.ad-shell-tab,
.ad-shell-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.ad-shell-tab {
  cursor: pointer;
}

.ad-shell-tab:hover,
.ad-shell-tab:focus-visible {
  outline: none;
  color: #ffffff;
  border-color: color-mix(in srgb, var(--ad-mode) 54%, transparent);
  transform: translateY(-1px);
}

.ad-shell-tab.is-active {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--ad-mode) 52%, transparent);
  background: var(--ad-mode-soft);
}

.ad-shell-status {
  flex-shrink: 0;
}

.ad-console-grid {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr) 294px;
  min-height: 472px;
}

.ad-panel {
  min-width: 0;
  background: rgba(17, 24, 39, 0.72);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.ad-panel:last-child {
  border-right: 0;
}

.ad-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ad-panel-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.ad-score {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--ad-mode) 42%, transparent);
  border-radius: var(--r-pill);
  background: var(--ad-mode-soft);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

.ad-feed {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.ad-feed-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.ad-feed-item:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--ad-mode) 42%, transparent);
  background: var(--ad-mode-soft);
}

.ad-feed-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ad-feed-item strong {
  color: #eff6ff;
  font-size: 12px;
  line-height: 1.25;
}

.ad-feed-item span {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: var(--ad-mode-soft);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ad-feed-item p {
  margin: 0;
  color: #a8b4c7;
  font-size: 12.5px;
  line-height: 1.38;
}

.ad-live-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    #0f172a;
  background-size: 100% 72px, 88px 100%, 100% 100%;
}

.ad-live-panel::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 0;
  width: 55%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ad-mode), transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--ad-mode) 80%, transparent);
  animation: ad-scan 5.5s linear infinite;
  pointer-events: none;
}

.ad-live-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 15px;
}

.ad-live-toolbar span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.72);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.ad-flow-stage {
  position: relative;
  min-height: 330px;
  padding: 16px;
}

.ad-preview-overlay {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 16px;
  width: min(350px, calc(100% - 32px));
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--ad-mode) 38%, transparent);
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.ad-preview-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.ad-preview-head span {
  color: var(--ad-mode);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.ad-preview-head strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
}

.ad-preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ad-preview-metrics span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.ad-preview-metrics small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 760;
}

.ad-preview-metrics strong {
  color: #ffffff;
  font-size: 13px;
}

.ad-preview-overlay p {
  margin: 9px 0 0;
  color: #a8b4c7;
  font-size: 12px;
  line-height: 1.35;
}

.ad-pipeline {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 54%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}

.ad-pipeline span {
  position: relative;
  height: 74px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--ad-mode-soft), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  animation: ad-lift 4s ease-in-out infinite;
}

.ad-pipeline span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--ad-mode);
  opacity: 0.78;
  transform-origin: left center;
  animation: ad-flow 3.2s ease-in-out infinite alternate;
}

.ad-pipeline span:nth-child(2) { animation-delay: 180ms; }
.ad-pipeline span:nth-child(3) { animation-delay: 360ms; }
.ad-pipeline span:nth-child(4) { animation-delay: 540ms; }

.ad-thread {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.ad-message {
  max-width: 76%;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.42;
}

.ad-message-user {
  justify-self: end;
  background: var(--ad-mode);
  color: #ffffff;
}

.ad-message-bot {
  justify-self: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.17);
  color: #e2e8f0;
}

.ad-context-card {
  position: relative;
  z-index: 2;
  margin: 0 16px 16px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--ad-mode) 32%, transparent);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.78);
}

.ad-context-card h3 {
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 14px;
}

.ad-context-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ad-context-card span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ad-context-card small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 760;
}

.ad-context-card strong {
  color: #ffffff;
  font-size: 12.5px;
}

.ad-operator-body {
  display: grid;
  gap: 13px;
  padding: 14px;
}

.ad-question {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.45;
}

.ad-answer {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.ad-answer h3 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

.ad-answer ul {
  display: grid;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ad-answer li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.35;
}

.ad-answer li span {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ad-mode);
}

.ad-answer li strong {
  font-weight: 650;
}

.ad-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.ad-quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.ad-quick-actions a:hover {
  border-color: color-mix(in srgb, var(--ad-mode) 46%, transparent);
  background: var(--ad-mode-soft);
}

.ad-hero-peek {
  width: min(1120px, 100%);
  margin: 14px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ad-workflow-system {
  display: grid;
  gap: 22px;
}

.ad-workflow-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: center;
}

.ad-workflow-copy .m-eyebrow {
  justify-self: center;
}

.ad-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ad-workflow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-content: start;
  min-height: 174px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.ad-workflow-step:hover,
.ad-workflow-step:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.ad-workflow-step.is-active {
  border-color: var(--accent);
  box-shadow: 0 16px 34px -24px rgba(var(--brand-blue-rgb), 0.52);
}

.ad-workflow-step span {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.ad-workflow-step.is-active span {
  background: var(--accent);
}

.ad-workflow-step strong {
  color: var(--ink);
  font-size: 16px;
}

.ad-workflow-step small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ad-workflow-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.78fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.ad-workflow-main {
  display: grid;
  align-content: center;
  gap: 13px;
  min-height: 250px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--brand-blue-rgb), 0.08), rgba(var(--brand-blue-rgb), 0.06)),
    var(--paper);
}

.ad-workflow-main > span,
.ad-workflow-side > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ad-workflow-main h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 760;
}

.ad-workflow-main p {
  margin: 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.ad-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ad-workflow-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper-sunk);
}

.ad-workflow-side ul {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ad-workflow-side li {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.ad-workflow-side strong {
  color: var(--ink);
  font-size: 14px;
}

.ad-workflow-side span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ad-payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--brand-blue-rgb), 0.08), rgba(var(--brand-blue-rgb), 0.05)),
    var(--card);
  box-shadow: var(--shadow-2);
}

.ad-payment-panel h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
}

.ad-payment-panel p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.ad-payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 270px;
}

@media (prefers-reduced-motion: reduce) {
  .ad-live-dot,
  .ad-live-panel::after,
  .ad-pipeline span,
  .ad-pipeline span::after {
    animation: none;
  }
}

/* ═══ Product system ═══ */

.m-section-product {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.m-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.m-product-layout .m-h {
  margin-top: 16px;
  max-width: 600px;
}

.m-product-layout .m-lead {
  margin-top: 18px;
  max-width: 560px;
}

.m-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.m-product-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.m-product-grid strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.008em;
}

.m-product-grid span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ═══ Sections ═══ */

.m-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.m-section-soft { background: var(--paper-sunk); }

.m-section-dark {
  background: var(--dark);
  color: var(--dark-ink);
}
.m-section-dark .m-h,
.m-section-dark .m-h-sm { color: var(--dark-ink); }
.m-section-dark .m-lead { color: var(--dark-muted); }

.m-section-head {
  display: grid;
  gap: 16px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.m-section-head .m-eyebrow { justify-self: center; }
.m-section-head .m-lead { margin: 0 auto; max-width: 620px; }

.m-section-foot {
  margin: clamp(32px, 4vw, 48px) auto 0;
  text-align: center;
}

/* ═══ Trust strip ═══ */

.m-trust {
  display: grid;
  gap: 18px;
  text-align: center;
}

.m-trust .m-eyebrow { justify-self: center; color: var(--muted); }
.m-trust .m-eyebrow::before { background: var(--line-strong); }

.m-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.m-trust-logos span { color: var(--ink-soft); }

/* ═══ Workflow ═══ */

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

.m-workflow-step {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.m-workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-2);
  background: var(--dark);
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.m-workflow-step h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.m-workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

/* Installation + demo sites */

.ad-install-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.ad-install-flow span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    var(--card);
  box-shadow: var(--shadow-2);
}

.ad-install-flow b {
  grid-row: 1 / 3;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ad-install-flow strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ad-install-flow small {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ad-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ad-install-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 296px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(var(--brand-blue-rgb), 0.04), transparent 42%),
    var(--card);
  box-shadow: var(--shadow-3);
}

.ad-install-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ad-install-card .m-eyebrow { justify-self: start; }

.ad-install-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-sunk);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ad-install-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.014em;
}

.ad-install-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.ad-install-difficulty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 94%);
}

.ad-install-difficulty span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ad-install-difficulty strong {
  min-width: 0;
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ad-install-difficulty small {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ad-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.ad-install-code {
  display: block;
  max-width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.ad-install-code {
  color: #dbe7f4;
}

.ad-demo-showcase {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.05)),
    var(--paper);
}

.ad-demo-showcase .m-section-head {
  max-width: 820px;
}

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

.ad-demo-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    var(--card);
  box-shadow: var(--shadow-3);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.ad-demo-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-4);
  transform: translateY(-2px);
}

.ad-demo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--accent);
}

.ad-demo-preview {
  position: relative;
  display: grid;
  align-content: stretch;
  min-height: 152px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line), transparent 20%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.34)),
    var(--paper-sunk);
}

.ad-demo-browser-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 20%);
  background: rgba(255, 255, 255, 0.54);
}

.ad-demo-browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.36;
}

.ad-demo-preview-body {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: end;
  min-height: 124px;
  padding: 16px;
}

.ad-demo-preview-body span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.2;
}

.ad-demo-preview-body span:nth-child(1) { width: 72%; }
.ad-demo-preview-body span:nth-child(2) { width: 58%; }
.ad-demo-preview-body span:nth-child(3) { width: 42%; }

.ad-demo-preview-body em {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 70px;
  height: 40px;
  border-radius: 8px 8px 2px 8px;
  background: currentColor;
  opacity: 0.18;
}

.ad-demo-phone {
  display: grid;
  gap: 9px;
  align-content: end;
  width: min(132px, 74%);
  min-height: 132px;
  margin: 10px auto;
  padding: 14px 10px;
  border: 1px solid rgba(18, 48, 42, 0.16);
  border-radius: 18px;
  background: #f8fffb;
  box-shadow: inset 0 0 0 4px rgba(18, 140, 126, 0.08);
}

.ad-demo-phone span,
.ad-demo-phone em {
  display: block;
  height: 18px;
  border-radius: 10px;
  background: #d9fdd3;
}

.ad-demo-phone span:nth-child(1),
.ad-demo-phone span:nth-child(4) {
  width: 78%;
  background: #ffffff;
  border: 1px solid #d7e8e2;
}

.ad-demo-phone em {
  justify-self: end;
  width: 74%;
  background: #d9fdd3;
}

.ad-demo-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ad-demo-card-copy span,
.ad-demo-card-copy strong,
.ad-demo-card-copy small,
.ad-demo-meta,
.ad-demo-link {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ad-demo-kicker {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-demo-card-copy strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.ad-demo-card-copy small {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.ad-demo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-demo-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  opacity: 0.84;
}

.ad-demo-link {
  align-self: end;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ad-demo-card.legal {
  background:
    linear-gradient(180deg, rgba(214, 170, 69, 0.14), transparent 54%),
    #2b2118;
  border-color: #6c5326;
}
.ad-demo-card.legal::before { background: #d6aa45; }
.ad-demo-card.legal .ad-demo-preview {
  color: #f0c86a;
  border-color: rgba(214, 170, 69, 0.36);
  background: linear-gradient(135deg, rgba(255, 247, 232, 0.12), rgba(214, 170, 69, 0.12));
}
.ad-demo-card.legal .ad-demo-kicker,
.ad-demo-card.legal .ad-demo-link { color: #f0c86a; }
.ad-demo-card.legal strong { color: #fff7e8; }
.ad-demo-card.legal small { color: #dcc8a8; }
.ad-demo-card.legal .ad-demo-meta span { color: #dcc8a8; }

.ad-demo-card.clinic {
  color: #1d5fb8;
  background:
    linear-gradient(180deg, rgba(47, 125, 225, 0.09), transparent 54%),
    #f8fcff;
  border-color: #bfdbfe;
}
.ad-demo-card.clinic::before { background: #2f7de1; }
.ad-demo-card.clinic .ad-demo-kicker,
.ad-demo-card.clinic .ad-demo-link { color: #1d5fb8; }

.ad-demo-card.services {
  color: #2f6942;
  background:
    linear-gradient(180deg, rgba(63, 122, 82, 0.09), transparent 54%),
    #f8fcf6;
  border-color: #cfe0ca;
}
.ad-demo-card.services::before { background: #3f7a52; }
.ad-demo-card.services .ad-demo-kicker,
.ad-demo-card.services .ad-demo-link { color: #2f6942; }

.ad-demo-card.whatsapp {
  background:
    linear-gradient(180deg, rgba(31, 157, 99, 0.09), transparent 54%),
    #f5fcf9;
  border-color: #bfe4d2;
}
.ad-demo-card.whatsapp::before { background: #1f9d63; }
.ad-demo-card.whatsapp .ad-demo-kicker,
.ad-demo-card.whatsapp .ad-demo-link { color: #147a4b; }

/* ═══ Reference work ═══ */

.ad-reference-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ad-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.ad-reference-card {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--card);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.ad-reference-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-4);
  transform: translateY(-2px);
}

.ad-reference-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--accent);
}

.ad-reference-card-head {
  position: relative;
  display: grid;
  gap: 8px;
}

.ad-reference-card-head span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-reference-card-head strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ad-reference-card p {
  position: relative;
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.ad-reference-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-reference-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  opacity: 0.82;
}

.ad-reference-card b {
  position: relative;
  align-self: end;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.ad-reference-card.sectors {
  background:
    linear-gradient(135deg, rgba(47, 125, 225, 0.09), transparent 44%),
    linear-gradient(180deg, rgba(214, 170, 69, 0.08), transparent 58%),
    var(--card);
}

/* ═══ Feature grid ═══ */

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

.m-feature {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  border-radius: var(--r-4);
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.m-feature:hover {
  border-color: var(--dark-line-strong);
  transform: translateY(-2px);
}

.m-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-3);
  background: var(--accent-dark-soft);
  color: var(--accent-2);
}
.m-feature-icon svg { width: 22px; height: 22px; display: block; }

.m-feature h3 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--dark-ink);
}

.m-feature p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ═══ Use cases ═══ */

.m-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.m-case {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r-3);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}

.m-case:hover { background: var(--paper-sunk); border-color: var(--line-strong); }

.m-case-emoji {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-2);
  background: var(--accent-soft);
  font-size: 22px;
}

.m-case h3 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.m-case p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ═══ Plan cards ═══ */

.m-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.m-plan {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
  border-radius: var(--r-4);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.m-plan:hover { border-color: var(--line-strong); }

.m-plan.is-featured {
  background: var(--dark);
  border-color: var(--dark-line-strong);
  color: var(--dark-ink);
  box-shadow: var(--shadow-3), var(--shadow-glow);
  transform: translateY(-4px);
}

.m-plan.is-featured .m-plan-name,
.m-plan.is-featured .m-plan-price {
  color: var(--dark-ink);
}
.m-plan.is-featured .m-plan-tag {
  color: var(--dark-muted);
}
.m-plan.is-featured .m-plan-li {
  color: var(--dark-ink);
}
.m-plan.is-featured .m-plan-li::before { color: var(--accent-2); }

.m-plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.m-plan-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.m-plan-tag {
  color: var(--muted);
  font-size: 13.5px;
  margin: 4px 0 0;
}

.m-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-size: 44px;
  letter-spacing: -0.03em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.m-plan-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.m-plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.m-plan-li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.m-plan-li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-weight: 700;
}

.m-plan .m-btn { justify-self: stretch; width: 100%; }

/* ═══ FAQ ═══ */

.m-faq-container { max-width: 780px; }

.m-faq {
  display: grid;
  gap: 8px;
}

.m-faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--card);
  padding: 0;
  transition: border-color var(--dur-base) var(--ease);
}

.m-faq details[open] {
  border-color: var(--line-strong);
}

.m-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

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

.m-faq summary::after {
  content: "+";
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease);
}

.m-faq details[open] summary::after {
  content: "−";
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.m-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ═══ CTA strip ═══ */

.m-cta-strip {
  position: relative;
  padding: clamp(56px, 6vw, 88px) 0;
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}

.m-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-blue-rgb), 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(var(--brand-blue-rgb), 0.16), transparent 40%);
}

.m-cta-strip .m-container {
  position: relative;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.m-cta-strip h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.m-cta-strip p {
  margin: 0;
  color: var(--dark-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 580px;
}

.m-cta-strip .m-btn { margin-top: 8px; }

/* ═══ Footer ═══ */

.m-footer {
  background: var(--paper-sunk);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  /* Shared chrome: pin typography so the footer renders identically on the
     marketing body (body.marketing) and the console body (body.console-shell),
     which otherwise inherit different font-feature-settings from their base
     stylesheet. Without this the footer's AI copy shifts glyph shapes on the
     dashboard. Keep in sync with body.marketing above. */
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.55;
}

.m-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.m-footer-brand {
  display: grid;
  gap: 12px;
  align-content: start;
}

.m-footer-brand .m-brand { margin-bottom: 8px; }

.m-footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
}

.m-footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.m-footer-payment-logo {
  display: block;
  width: 62px;
  height: 36px;
  padding: 7px 9px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.m-footer-payment-logo-mastercard { padding: 6px 10px; }

.m-footer-col strong {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.m-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.m-footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease);
}
.m-footer-col a:hover { color: var(--ink); }

.m-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ═══ Copilot ═══ */

.m-copilot-backdrop {
  position: fixed;
  inset: 0;
  z-index: 118;
  pointer-events: none;
  background: transparent;
  transition: background var(--dur-base) var(--ease);
}

.m-copilot-backdrop.active {
  pointer-events: auto;
  background: rgba(6, 11, 22, 0.34);
}

.m-copilot-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, 100vw);
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-4);
  transform: translateX(104%);
  transition: transform var(--dur-base) var(--ease);
}

.m-copilot-panel.open {
  transform: translateX(0);
}

.m-copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.m-copilot-header strong,
.m-copilot-header span {
  display: block;
}

.m-copilot-header strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.m-copilot-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.m-copilot-header button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--paper-sunk);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.m-copilot-header button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.m-copilot-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  overflow: auto;
  background: var(--paper-sunk);
}

.m-copilot-bubble {
  max-width: 86%;
  justify-self: start;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 6px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: var(--shadow-1);
  overflow-wrap: anywhere;
}

.m-copilot-bubble.user {
  justify-self: end;
  border-color: transparent;
  border-radius: 14px 14px 6px 14px;
  background: var(--ink);
  color: var(--paper);
}

.m-copilot-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.m-copilot-cta:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.m-copilot-bubble code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
}

.m-copilot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.m-copilot-form textarea {
  min-height: 48px;
  max-height: 140px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 11px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
}

.m-copilot-form textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.m-copilot-form button,
.m-copilot-toggle {
  border: 0;
  border-radius: var(--r-2);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.m-copilot-form button {
  align-self: end;
  min-height: 48px;
  padding: 0 16px;
}

.m-copilot-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.m-copilot-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 116;
  width: 54px;
  min-height: 54px;
  box-shadow: var(--shadow-4);
  letter-spacing: 0.03em;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.m-copilot-toggle:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

/* ═══ Features page ═══ */

.m-feat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}

.m-feat-row:last-child { border-bottom: 0; }

.m-feat-row.reverse > div:first-child { order: 2; }

.m-feat-row .m-eyebrow { margin-bottom: 14px; }
.m-feat-row h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.m-feat-row p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
}

.m-feat-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 6px;
}
.m-feat-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.m-feat-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.m-feat-visual {
  border-radius: var(--r-4);
  background: var(--dark);
  padding: 24px;
  min-height: 280px;
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow-3);
  display: grid;
  align-content: start;
  gap: 12px;
}

/* ═══ Legal / trust pages ═══ */

.m-legal-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.m-legal-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--r-4);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.m-legal-aside h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.m-legal-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.m-legal-aside .m-btn {
  justify-self: start;
  margin-top: 6px;
}

.m-legal-doc {
  display: grid;
  gap: 14px;
}

.m-legal-doc section {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.m-legal-doc h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.m-legal-doc p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}

/* ═══ Pricing page ═══ */

.m-pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin: 32px auto 0;
  border-radius: var(--r-pill);
  background: var(--paper-sunk);
  border: 1px solid var(--line);
}

.m-pricing-toggle button {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.m-pricing-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.m-pricing-toggle .m-save {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.m-compare {
  margin-top: 64px;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.m-compare table {
  width: 100%;
  border-collapse: collapse;
}

.m-compare th, .m-compare td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.m-compare thead th {
  background: var(--paper-sunk);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.005em;
}

.m-compare td.center { text-align: center; }
.m-compare td.muted { color: var(--muted); }
.m-compare tr:last-child td { border-bottom: 0; }

.m-check { color: var(--success); font-weight: 700; }
.m-dash { color: var(--muted-soft); }

/* ═══ Stats band (added 2026-05) ═══ */
.m-stats-band {
  padding: clamp(48px, 6vw, 76px) 0;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), #000 18%));
  color: #fff;
}

.m-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.m-stat b {
  display: block;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.m-stat span {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ═══ Logo bar (added 2026-05) ═══ */
.m-logo-bar {
  padding: clamp(40px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-sunk, color-mix(in srgb, var(--paper), #ffffff 4%));
}

.m-logo-bar .m-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 24px;
}

.m-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 28px 36px;
  color: var(--muted);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.m-logo-row span {
  white-space: nowrap;
}

/* ═══ Testimonials (added 2026-05) ═══ */
.m-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.m-testimonial {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #ffffff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 36px -28px rgba(15, 23, 42, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.m-testimonial:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent), var(--line) 40%);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.45);
}

.m-testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px;
}

.m-testimonial blockquote {
  margin: 0 0 20px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
}

.m-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line), transparent 30%);
}

.m-testimonial-author .avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), #000 30%));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.m-testimonial-author b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.m-testimonial-author span {
  font-size: 13px;
  color: var(--muted);
}

/* ═══ Reference strip (added 2026-05) ═══ */
.m-reference-strip {
  padding: clamp(36px, 4vw, 56px) 0;
  background: var(--paper-sunk, color-mix(in srgb, var(--paper), #ffffff 4%));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.m-reference-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 90%), transparent 50%),
    var(--surface, #ffffff);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 36px -32px rgba(15, 23, 42, 0.35);
}

.m-reference-banner:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 22px 40px -22px rgba(15, 23, 42, 0.4);
}

.m-reference-banner-copy h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.m-reference-banner-copy,
.m-reference-banner-cta {
  min-width: 0;
}

.m-reference-banner-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 640px;
}

.m-reference-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-reference-banner-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 85%);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.m-reference-banner-cta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  text-align: center;
  transition: transform 160ms ease;
}

.m-reference-banner:hover .m-reference-banner-cta span {
  transform: translateX(4px);
}

/* ═══ Responsive ═══ */

@media (max-width: 980px) {
  .ad-console-grid { grid-template-columns: 1fr; }
  .ad-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }
  .ad-panel:last-child { border-bottom: 0; }
  .ad-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-operator-body { grid-template-columns: 1fr 1fr; align-items: start; }
  .ad-quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-workflow-cockpit { grid-template-columns: 1fr; }
  .m-product-layout { grid-template-columns: 1fr; }
  .ad-install-flow { grid-template-columns: 1fr; }
  .ad-install-grid, .ad-demo-grid, .ad-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-grid.setup-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; }
  .m-plan.is-featured { transform: none; }
  .m-preview-body { grid-template-columns: 1fr; }
  .m-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .m-feat-row { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .m-feat-row.reverse > div:first-child { order: 0; }
  .m-legal-grid { grid-template-columns: 1fr; }
  .m-legal-aside { position: static; }
}

@media (max-width: 900px) {
  body.marketing-menu-open {
    overflow: hidden;
  }

  .m-header {
    z-index: 80;
    background: rgba(247, 248, 251, 0.94);
    border-bottom-color: var(--line);
  }

  html[data-theme="night"] .m-header {
    background: rgba(11, 16, 32, 0.94);
  }

  .m-header.is-open {
    z-index: 100;
  }

  .m-header.is-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(6, 11, 22, 0.52);
  }

  .m-header-inner {
    min-height: 66px;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 3;
  }

  .m-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 2;
    width: min(312px, 86vw);
    height: 100dvh;
    display: grid;
    align-content: start;
    gap: 6px;
    margin: 0;
    padding: 84px 16px 20px;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: var(--card);
    box-shadow: var(--shadow-4);
    overflow: auto;
    transform: translateX(-105%);
    transition: transform var(--dur-base) var(--ease);
  }

  .m-nav-dropdown {
    display: grid;
    width: 100%;
  }

  .m-header.is-open .m-nav {
    transform: translateX(0);
  }

  .m-header.is-open .m-nav::before {
    content: attr(data-nav-label);
    padding: 8px 10px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .m-nav a,
  .m-nav-dropdown-trigger {
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--r-2);
    font-size: 15px;
  }

  .m-nav-dropdown-trigger::after {
    content: "→";
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    color: var(--muted-soft);
    font-weight: 700;
    opacity: 1;
  }

  .m-nav-dropdown.is-open .m-nav-dropdown-trigger::after {
    transform: rotate(90deg);
  }

  .m-nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 2px 0 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    background: var(--paper-sunk);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .m-nav-dropdown-menu a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 14.5px;
  }

  .m-nav-auth { display: flex !important; }

  .m-nav-logout {
    display: flex !important;
  }

  .m-nav a::after {
    content: "→";
    color: var(--muted-soft);
    font-weight: 700;
  }

  .m-nav .m-theme-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    margin: 2px 0 0;
    padding: 10px 12px;
    border-radius: var(--r-2);
    background: var(--paper-sunk);
  }

  .m-link { display: none; }
  .m-header-cta .m-logout-button { display: none; }
  .m-nav-toggle { display: inline-flex; }

  .locale-switcher {
    min-height: 38px;
    padding: 4px 6px;
  }

  .locale-switcher span {
    display: none;
  }

  .m-header-cta .m-btn { padding: 0 14px; font-size: 13.5px; height: 38px; }
}

@media (max-width: 720px) {
  :root { --container-pad: 18px; }

  body.marketing-menu-open {
    overflow: hidden;
  }

  .ad-hero {
    padding: 34px 0 24px;
  }

  .ad-hero-copy {
    gap: 16px;
  }

  .ad-display {
    width: 100%;
    max-width: 260px;
    font-size: clamp(27px, 7.4vw, 30px);
    line-height: 1.04;
  }

  .ad-lead {
    max-width: 280px;
    font-size: 15.5px;
  }

  .ad-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 280px);
    margin-top: 2px;
  }

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

  .ad-proof {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 280px);
  }

  .ad-proof span {
    justify-content: center;
  }

  .ad-payment-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 280px);
    max-width: 280px;
    border-radius: 8px;
  }

  .ad-payment-strip > span:first-child {
    grid-column: 1 / -1;
  }

  .ad-card-logo,
  .ad-pay-pill {
    width: 100%;
    min-width: 0;
  }

  .ad-command-shell {
    margin-top: 26px;
  }

  .ad-shell-top {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .ad-shell-tabs {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .ad-shell-status {
    justify-self: end;
  }

  .ad-feed {
    grid-template-columns: 1fr;
  }

  .ad-operator-body,
  .ad-quick-actions {
    grid-template-columns: 1fr;
  }

  .ad-live-toolbar {
    padding: 12px;
  }

  .ad-flow-stage {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .ad-preview-overlay,
  .ad-pipeline,
  .ad-thread {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
  }

  .ad-pipeline {
    height: 58px;
    grid-template-columns: repeat(4, minmax(46px, 1fr));
    overflow: visible;
  }

  .ad-pipeline span {
    height: 58px;
  }

  .ad-message {
    max-width: 100%;
  }

  .ad-context-card {
    margin: 0 12px 12px;
  }

  .ad-context-card div {
    grid-template-columns: 1fr;
  }

  .ad-hero-peek {
    display: grid;
    gap: 4px;
    text-align: center;
  }

  .ad-workflow-copy {
    text-align: left;
    margin-bottom: 0;
  }

  .ad-workflow-copy .m-eyebrow {
    justify-self: start;
  }

  .ad-workflow {
    grid-template-columns: 1fr;
  }

  .ad-workflow-step {
    min-height: auto;
  }

  .ad-workflow-cockpit {
    padding: 12px;
  }

  .ad-workflow-main,
  .ad-workflow-side {
    padding: 18px;
  }

  .ad-workflow-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-workflow-actions .m-btn {
    width: 100%;
  }

  .ad-payment-panel {
    grid-template-columns: 1fr;
  }

  .ad-payment-logos {
    justify-content: stretch;
    min-width: 0;
  }

  .m-hero .m-display,
  .m-hero .m-h,
  .m-section-head .m-h,
  .m-cta-strip h2 {
    max-width: 100%;
  }

  .m-display { font-size: clamp(32px, 9.5vw, 44px); line-height: 1.05; }
  .m-hero .m-display { max-width: 100%; }
  .m-display .m-grad { display: block; }
  .m-h { font-size: clamp(24px, 7vw, 32px); }

  .m-hero { padding: 32px 0 24px; }
  .m-hero-kicker { font-size: 12px; padding: 5px 12px 5px 9px; max-width: 100%; white-space: normal; text-align: center; }
  .m-hero-preview { margin-top: 28px; }
  .m-hero-pills { gap: 6px; }
  .m-pill { font-size: 11.5px; padding: 6px 11px 6px 8px; }

  .m-header {
    z-index: 80;
    background: rgba(247, 248, 251, 0.94);
    border-bottom-color: var(--line);
  }

  html[data-theme="night"] .m-header {
    background: rgba(11, 16, 32, 0.94);
  }

  .m-header.is-open {
    z-index: 100;
  }

  .m-header.is-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(6, 11, 22, 0.52);
  }

  .m-header-inner {
    min-height: 66px;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 3;
  }

  .m-brand span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 2;
    width: min(312px, 86vw);
    height: 100dvh;
    display: grid;
    align-content: start;
    gap: 6px;
    margin: 0;
    padding: 84px 16px 20px;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: var(--card);
    box-shadow: var(--shadow-4);
    overflow: auto;
    transform: translateX(-105%);
    transition: transform var(--dur-base) var(--ease);
  }

  .m-nav-dropdown {
    display: grid;
    width: 100%;
  }

  .m-header.is-open .m-nav {
    transform: translateX(0);
  }

  .m-header.is-open .m-nav::before {
    content: attr(data-nav-label);
    padding: 8px 10px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .m-nav a,
  .m-nav-dropdown-trigger {
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--r-2);
    font-size: 15px;
  }

  .m-nav-dropdown-trigger::after {
    content: "→";
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    color: var(--muted-soft);
    font-weight: 700;
    opacity: 1;
  }

  .m-nav-dropdown.is-open .m-nav-dropdown-trigger::after {
    transform: rotate(90deg);
  }

  .m-nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 2px 0 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    background: var(--paper-sunk);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .m-nav-dropdown-menu a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 14.5px;
  }

  .m-nav .m-theme-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    margin: 2px 0 0;
    padding: 10px 12px;
    border-radius: var(--r-2);
    background: var(--paper-sunk);
  }

  .m-nav-auth { display: flex !important; }

  .m-nav-logout {
    display: flex !important;
  }

  .m-nav a::after {
    content: "→";
    color: var(--muted-soft);
    font-weight: 700;
  }

  .m-link { display: none; }
  .m-header-cta .m-logout-button { display: none; }
  .m-nav-toggle { display: inline-flex; }

  .locale-switcher {
    min-height: 38px;
    padding: 4px 6px;
  }

  .locale-switcher span {
    display: none;
  }

  .m-header-cta .m-btn { padding: 0 14px; font-size: 13.5px; height: 38px; }

  .m-hero-cta { flex-direction: column; align-items: stretch; }
  .m-hero-cta .m-btn { width: 100%; }

  .m-feature-grid, .m-case-grid { grid-template-columns: 1fr; }
  .m-workflow-grid { grid-template-columns: 1fr; }
  .m-product-grid { grid-template-columns: 1fr; }
  .dev-layout { grid-template-columns: 1fr; }
  .dev-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-grid, .dev-grid.two { grid-template-columns: 1fr; }
  .dev-panel { padding: 18px; }
  .ad-install-grid, .ad-demo-grid, .ad-reference-grid { grid-template-columns: 1fr; }
  .ad-install-card, .ad-demo-card, .ad-reference-card { min-height: auto; }
  .ad-install-actions { flex-direction: column; align-items: stretch; }
  .ad-install-actions .m-btn, .ad-install-card > .m-btn { width: 100%; }

  .m-preview-chrome { padding: 12px 14px; }
  .m-preview-url { font-size: 11px; }
  .m-preview-body { padding: 14px; gap: 12px; }

  .m-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .m-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .m-copilot-panel {
    width: 100vw;
    border-left: 0;
  }

  .m-copilot-form {
    grid-template-columns: 1fr;
  }

  .m-copilot-form button {
    width: 100%;
  }

  .m-copilot-toggle {
    right: 14px;
    bottom: 14px;
    width: 50px;
    min-height: 50px;
  }

  .m-compare { overflow-x: auto; }
  .m-compare table { min-width: 560px; }

  .m-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .m-testimonial-grid { grid-template-columns: 1fr; }
  .m-logo-row { gap: 18px 22px; font-size: 15px; }
  .m-reference-banner { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .m-reference-banner-cta { width: 100%; }
  .m-reference-banner-cta span { width: 100%; }
}

@media (max-width: 420px) {
  .m-display {
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.08;
  }

  .m-brand span {
    display: none;
  }
}

/* ── Dark-mode fixes for intentionally light cards (2026-06-25) ──
   --surface was never defined for the app theme, so testimonial and
   reference cards fell back to #fff in every theme → white-on-white in
   dark mode. Define it per theme, and keep the light demo preview cards
   readable in dark mode without flipping them to dark. */
:root { --surface: #ffffff; }
html[data-theme="night"] { --surface: #172033; }

html[data-theme="night"] :is(.ad-demo-card.clinic, .ad-demo-card.services, .ad-demo-card.whatsapp) .ad-demo-card-copy strong {
  color: #17202a;
}
html[data-theme="night"] :is(.ad-demo-card.clinic, .ad-demo-card.services, .ad-demo-card.whatsapp) :is(.ad-demo-card-copy small, .ad-demo-meta span) {
  color: #475569;
}
html[data-theme="night"] .ad-demo-card.whatsapp { color: #147a4b; }

/* ── Theme-aware dark sections (2026-06-25) ──
   .m-section-dark and its .m-feature cards are built entirely on the --dark*
   token family, which was fixed-dark in every theme → a jarring dark band in
   the middle of the light page. In light mode, remap those tokens to a light
   palette so the whole section + its cards follow the theme. Dark mode keeps
   the original dark band. */
/* Cards built with a hardcoded white sheen over var(--card) turn into a
   white→dark gradient in dark mode. Replace the white overlay with a faint
   highlight so they read as clean dark cards. */
html[data-theme="night"] .ad-install-flow span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)), var(--card);
}

html:not([data-theme="night"]) .m-section-dark {
  --dark: #f4f7fb;
  --dark-2: #ffffff;
  --dark-3: #eef2f8;
  --dark-ink: #111827;
  --dark-muted: #64748b;
  --dark-line: #e6ebf2;
  --dark-line-strong: #d3dbe6;
  --accent-dark-soft: var(--brand-blue-soft);
  --accent-2: var(--brand-blue);
}

/* ----------------------------------------------------------------------- */
/* Blog (index + post) — SEO-first, images can be placed anywhere          */
/* ----------------------------------------------------------------------- */
.blog-main { padding: 120px 0 88px; background: var(--paper); min-height: 70vh; }
.blog-index { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--container-pad); }
.blog-index-head { max-width: 720px; margin: 0 0 40px; }
.blog-index-head h1 { font-family: var(--font-sans); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin: 12px 0 14px; color: var(--ink); letter-spacing: -0.02em; }
.blog-index-head p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.blog-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45); }
.blog-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-sunk); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; }
.blog-card-title { font-size: 1.25rem; line-height: 1.25; margin: 0; }
.blog-card-title a { color: var(--ink); text-decoration: none; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { color: var(--muted); font-size: 0.98rem; margin: 0; flex: 1; }
.blog-card-meta, .blog-post-byline { color: var(--muted-soft); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-tag { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-strong, var(--accent)); background: var(--accent-soft, rgba(11,104,246,0.12)); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.blog-dot { color: var(--line-strong); }
.blog-empty { color: var(--muted); }

/* Post */
.blog-post { max-width: 760px; margin: 0 auto; padding: 0 var(--container-pad); }
.blog-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.blog-breadcrumb a { color: var(--muted); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--accent); }
.blog-post-head h1 { font-family: var(--font-sans); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 14px 0 16px; }
.blog-post-lead { font-size: 1.18rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 18px; }
.blog-cover { margin: 28px 0 8px; }
.blog-cover img { width: 100%; border-radius: 18px; display: block; }

/* Prose: typography for rendered markdown content */
.blog-prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.blog-prose > * + * { margin-top: 1.15em; }
.blog-prose h2 { font-family: var(--font-sans); font-size: 1.6rem; line-height: 1.2; color: var(--ink); margin-top: 1.8em; letter-spacing: -0.01em; }
.blog-prose h3 { font-size: 1.28rem; color: var(--ink); margin-top: 1.5em; }
.blog-prose p { margin: 0; }
.blog-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.blog-prose ul, .blog-prose ol { padding-left: 1.4em; }
.blog-prose li + li { margin-top: 0.4em; }
.blog-prose blockquote { margin: 1.6em 0; padding: 6px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.12rem; }
.blog-prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-sunk); padding: 2px 6px; border-radius: 6px; }
.blog-prose pre { background: var(--paper-deep, #0f172a); color: #e2e8f0; padding: 18px 20px; border-radius: 12px; overflow: auto; }
.blog-prose pre code { background: none; padding: 0; color: inherit; }
.blog-prose img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.blog-prose figure, .blog-figure { margin: 1.8em 0; }
.blog-prose figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; text-align: center; }
.blog-image-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.8em 0; }
.blog-image-row figure { margin: 0; }
.blog-post-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .blog-main { padding: 96px 0 64px; }
  .blog-image-row { grid-template-columns: 1fr; }
  .blog-post-foot { flex-direction: column; }
  .blog-post-foot .m-btn { width: 100%; text-align: center; }
}

/* Homepage "From the blog" recent-posts section */
.blog-recent-section { background: var(--paper-sunk); }
.blog-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.blog-recent-head .m-h { margin: 8px 0 0; }
.blog-recent-all { white-space: nowrap; font-weight: 600; }

/* Vertical solution pages (/solutions, /solutions/<slug>) */
.solutions-main { padding: 56px 0 96px; }
.sol-card .blog-card-body { gap: 12px; }
.sol-card .m-link { font-weight: 600; color: var(--accent); }
.sol-page { max-width: 880px; }
.sol-hero { padding: 8px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.sol-hero .m-eyebrow { color: var(--accent); }
.sol-hero .m-h { margin: 12px 0 14px; }
.sol-sub { color: var(--muted); font-size: 1.12rem; line-height: 1.55; max-width: 680px; margin: 0 0 24px; }
.sol-section { margin: 40px 0; }
.sol-section > .m-h { font-size: 1.5rem; margin: 0 0 20px; }
.sol-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sol-benefit { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.sol-benefit h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.3; }
.sol-benefit p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.sol-faq { max-width: 100%; }
.sol-other-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sol-tag { font-weight: 600; font-size: 0.9rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.sol-tag:hover { border-color: var(--accent); color: var(--accent); }
.sol-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
