/* SEOptics marketing site — shared with product design tokens */

@import url('/web/css/seoptics.css');
@import url('/web/css/labs-aesthetic.css');
@import url('/web/css/appearance.css');

:root {
  --marketing-max: 1120px;
  --marketing-pad: clamp(20px, 4vw, 48px);
}

body.marketing {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  /* Stop rubber-band overscroll from flashing a gap above the nav */
  overscroll-behavior-y: none;
}

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

.marketing .app {
  position: relative;
  z-index: 2;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  max-width: 100vw;
  /* Header is fixed — reserve its height so content doesn't jump under it */
  padding-top: var(--header-h);
}

.marketing img,
.marketing canvas,
.marketing svg,
.marketing video {
  max-width: 100%;
  height: auto;
}

/* Cursor-reactive ambient layer */
.cursor-orbits {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cursor-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cursor-orb--a {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
}

.cursor-orb--b {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 70%);
}

.cursor-orb--c {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.22), transparent 70%);
}

.cursor-grid-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  transition: transform 0.2s ease-out;
}

/* Marketing header — fixed so fast scroll / overscroll never leaves a top gap */
.mkt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 2.8vw, 40px);
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 7, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Bleed solid fill above the bar for any residual overscroll */
.mkt-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 120px;
  background: #06070a;
  pointer-events: none;
}

@media (min-width: 1101px) {
  body.marketing .mkt-header {
    gap: 12px;
  }

  body.marketing .mkt-nav {
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: 0;
    /* Must stay visible: overflow clipping hides the Tools dropdown panel */
    overflow: visible;
  }

  body.marketing .mkt-nav a {
    padding: 8px 14px;
    white-space: nowrap;
  }

  body.marketing .shell-brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.marketing .mkt-actions {
    flex: 0 0 auto;
  }
}

/* Comfortable desktop that still needs slightly tighter link padding */
@media (min-width: 1101px) and (max-width: 1280px) {
  body.marketing .mkt-header {
    gap: 8px;
    padding: 0 16px;
  }

  body.marketing .mkt-nav a {
    padding: 8px 9px;
    font-size: 12.5px;
  }

  body.marketing .mkt-actions {
    gap: 6px;
  }
}

body.marketing .shell-brand .brand-name,
body.marketing .shell-brand .brand-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Canonical marketing header lockup — same on every landing page */
body.marketing .mkt-header .shell-brand {
  flex: 0 0 auto;
  min-width: 0;
  gap: 12px;
}

body.marketing .mkt-header .brand-glyph {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

body.marketing .mkt-header .brand-text {
  min-width: 0;
  line-height: 1.15;
}

body.marketing .mkt-header .brand-name {
  display: block;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text);
}

body.marketing .mkt-header .brand-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}

html[data-theme='light'] .mkt-header {
  background: rgba(248, 250, 252, 0.96);
}

html[data-theme='light'] .mkt-header::before {
  background: #f8fafc;
}

.mkt-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mkt-nav a {
  color: var(--text2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.mkt-nav a:hover,
.mkt-nav a.is-active {
  color: var(--text);
  background: var(--accent-dim);
}

.mkt-nav-dropdown {
  position: relative;
}

/* Invisible hit area between trigger and panel (panel sits 6px below) */
@media (min-width: 1101px) {
  .mkt-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    z-index: 49;
  }
}

.mkt-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mkt-nav > a,
.mkt-nav-dropdown-panel a,
.mkt-nav-dropdown-trigger:not(.mkt-nav-dropdown-trigger--soon) {
  pointer-events: auto;
  cursor: pointer;
}

/* Resources + child pages are placeholders — never intercept clicks */
.mkt-nav-dropdown:has(> .mkt-nav-dropdown-trigger--soon) {
  pointer-events: none;
}

.mkt-nav .mkt-nav-dropdown-trigger--soon {
  color: var(--text2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.mkt-nav .mkt-nav-dropdown-trigger--soon:hover {
  color: var(--text2);
  background: transparent;
}

.mkt-nav-dropdown-trigger::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.65;
  margin-left: 2px;
}

.mkt-nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg1, #0a0c17) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 50;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

html[data-theme='light'] .mkt-nav-dropdown-panel {
  background: rgba(255, 255, 255, 0.96);
}

@media (min-width: 1101px) {
  .mkt-nav-dropdown:hover .mkt-nav-dropdown-panel,
  .mkt-nav-dropdown:focus-within .mkt-nav-dropdown-panel,
  .mkt-nav-dropdown.is-hover-open .mkt-nav-dropdown-panel {
    display: flex;
  }
}

@media (min-width: 1101px) {
  .mkt-nav-dropdown.is-hover-open > .mkt-nav-dropdown-trigger:not(.mkt-nav-dropdown-trigger--soon) {
    color: var(--text);
    background: var(--accent-dim);
  }

  .mkt-nav-dropdown-panel {
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }
}

.mkt-nav-dropdown-panel a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.mkt-nav-dropdown-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text3, var(--text2));
  cursor: not-allowed;
  user-select: none;
  pointer-events: none;
}

.mkt-nav-soon-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mkt-nav-dropdown-label {
  margin: 8px 12px 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3, var(--text2));
  pointer-events: none;
}

.mkt-nav-dropdown-label:first-child {
  margin-top: 4px;
}

.mkt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mkt-main {
  position: relative;
  z-index: 1;
  max-width: var(--marketing-max);
  margin: 0 auto;
  padding: 48px var(--marketing-pad) 80px;
}

/* Ambient chrome stays behind content — never overlap header/nav */
body.marketing.has-ambient-chrome .reg-frame {
  display: none;
}

body.marketing.has-ambient-chrome .mkt-header {
  z-index: 30;
  background: rgba(6, 7, 10, 0.96) !important;
  backdrop-filter: blur(20px) saturate(1.4);
}

html[data-theme='light'] body.marketing.has-ambient-chrome .mkt-header {
  background: rgba(248, 250, 252, 0.96) !important;
}

body.marketing.has-ambient-chrome .mkt-main {
  padding-bottom: 112px;
}

body.marketing.has-ambient-chrome .seo-ticker {
  z-index: 25;
  background: rgba(6, 7, 15, 0.94);
  backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] body.marketing.has-ambient-chrome .seo-ticker {
  background: rgba(246, 242, 234, 0.94);
  border-top-color: rgba(15, 23, 42, 0.08);
}

body.marketing.has-ambient-chrome .seo-badge {
  display: none;
}

/* Hero */
.mkt-hero {
  padding: 32px 0 56px;
}

.mkt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.mkt-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 18ch;
  padding-bottom: 0.08em;
  overflow: visible;
}

.mkt-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: var(--text2);
  max-width: 58ch;
  margin: 0 0 32px;
}

.mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

/* Marketing CTAs — anchors must look like buttons, not underlined links-in-boxes */
.mkt-cta-row a.btn-primary,
.mkt-cta-row a.btn-secondary,
.mkt-section .mkt-cta-row a.btn-primary,
.mkt-section .mkt-cta-row a.btn-secondary,
.mkt-actions a.btn-primary,
.mkt-actions a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding: 11px 18px;
  border-radius: 12px;
  line-height: 1.2;
  transition: transform 0.2s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.2s, border-color 0.2s, background 0.2s, filter 0.2s;
}

/* Header Sign in — slightly smaller than in-page CTAs */
.mkt-actions a.btn-primary,
.mkt-actions a.btn-secondary {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(46, 59, 255, 0.22);
}

/* Get started — same size as Sign in, distinct color (plans intent) */
.mkt-actions a.mkt-nav-get-started {
  background: color-mix(in srgb, var(--text) 8%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--accent, #54beff) 55%, var(--border)) !important;
  color: var(--text) !important;
  box-shadow: none;
}

.mkt-actions a.mkt-nav-get-started:hover {
  background: color-mix(in srgb, var(--accent, #54beff) 16%, transparent) !important;
  border-color: var(--accent, #54beff) !important;
  transform: translateY(-1px);
}

html[data-theme='light'] .mkt-actions a.mkt-nav-get-started {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(30, 58, 138, 0.28) !important;
  color: #0f172a !important;
}

.mkt-cta-row a.btn-primary,
.mkt-actions a.btn-primary {
  background: linear-gradient(135deg, var(--ultra, #2e3bff), var(--ultra-2, #5b6bff)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(46, 59, 255, 0.28);
}

.mkt-cta-row a.btn-primary:hover,
.mkt-actions a.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.mkt-cta-row a.btn-secondary,
.mkt-actions a.btn-secondary,
.mkt-section .mkt-cta-row a.btn-secondary {
  background: color-mix(in srgb, var(--glass, rgba(255, 255, 255, 0.72)) 88%, transparent) !important;
  border: 1px solid var(--glass-border, var(--border)) !important;
  color: var(--text) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(15, 23, 42, 0.08);
}

.mkt-cta-row a.btn-secondary:hover,
.mkt-actions a.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--border-hi, var(--accent)) !important;
}

html[data-theme='light'] .mkt-cta-row a.btn-secondary,
html[data-theme='light'] .mkt-actions a.btn-secondary {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

.mkt-hero--compact {
  padding-bottom: 12px;
  min-height: 0 !important;
}

.version-timeline-wrap {
  margin-top: 4px;
  margin-bottom: 40px;
}

.mkt-hero-visual {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.mkt-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.mkt-signal {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.5);
}

html[data-theme='light'] .mkt-signal {
  background: rgba(255, 255, 255, 0.6);
}

.mkt-signal strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.mkt-signal span {
  color: var(--text2);
  font-size: 13px;
}

/* Sections */
.mkt-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.mkt-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.mkt-section > p {
  color: var(--text2);
  max-width: 62ch;
  line-height: 1.65;
  margin: 0 0 28px;
}

.mkt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Homepage: sign-in modules — 6-col bento (2 highlights + uniform tiles) */
.mkt-section--modules .mkt-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.mkt-section--modules .mkt-section-head h2 {
  margin-bottom: 8px;
}

.mkt-section--modules .mkt-section-head p {
  margin: 0;
  max-width: 58ch;
}

.mkt-section-head-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.mkt-cards--modules {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.mkt-cards--modules .mkt-card--wide {
  grid-column: span 3;
}

.mkt-cards--modules .mkt-card:not(.mkt-card--wide) {
  grid-column: span 2;
}

.mkt-cards--modules .mkt-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
}

.mkt-cards--modules .mkt-card .card-demo {
  flex: 0 0 auto;
  min-height: clamp(108px, 18vw, 148px);
  max-height: none;
  margin: 12px 0 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mkt-cards--modules .mkt-card .card-demo .demo-orch-svg,
.mkt-cards--modules .mkt-card .card-demo .demo-flow-svg,
.mkt-cards--modules .mkt-card .card-demo .demo-browser,
.mkt-cards--modules .mkt-card .card-demo .demo--content,
.mkt-cards--modules .mkt-card .card-demo .demo--quantum {
  width: 100%;
  max-height: 132px;
}

.mkt-cards--modules .mkt-card p {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .mkt-cards--modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mkt-cards--modules .mkt-card .card-demo {
    min-height: clamp(96px, 28vw, 132px);
  }

  .mkt-cards--modules .mkt-card--wide,
  .mkt-cards--modules .mkt-card:not(.mkt-card--wide) {
    grid-column: span 1;
  }
}

/* Legacy tutorial promo notice (kept off until real guides ship) */
aside.tutorial-notice {
  display: none;
}

.mkt-coming-soon {
  max-width: 36rem;
}

.mkt-coming-soon-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mkt-coming-soon-copy {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.mkt-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
}

.mkt-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mkt-card p {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
}

.mkt-card .mkt-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}

/* Comparison table */
.mkt-compare-wrap {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #fff 55%, var(--glass-border, var(--border)));
  background: color-mix(in srgb, #ffffff 58%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 80%, transparent) inset,
    0 12px 40px rgba(15, 23, 42, 0.07);
  padding: 8px 12px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html:not([data-theme='light']) .mkt-compare-wrap {
  background: color-mix(in srgb, var(--surface, #1a1a2e) 72%, transparent);
  border-color: color-mix(in srgb, var(--glass-border, var(--border)) 90%, transparent);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
    0 12px 40px rgba(0, 0, 0, 0.25);
}

.mkt-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: transparent;
}

.mkt-compare th,
.mkt-compare td {
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  text-align: left;
  vertical-align: top;
}

.mkt-compare thead th {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

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

.mkt-compare th {
  color: var(--text2);
  font-weight: 500;
}

.mkt-compare thead th:last-child {
  color: var(--ultra, #6366f1);
  font-weight: 600;
}

.mkt-compare td:first-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.mkt-compare td:last-child {
  color: var(--text);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

#plans {
  scroll-margin-top: 96px;
}  padding: 28px 22px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--glass);
  display: flex;
  flex-direction: column;
}

.pricing-tier.is-featured {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 1px var(--accent-dim), var(--shadow);
}

.pricing-tier h3 {
  margin: 0 0 4px;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text2);
}

.pricing-credits {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-tier ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.pricing-note {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accent-dim);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.pricing-explainer-section {
  padding-bottom: 8px;
}

.pricing-value-cards {
  margin-top: 20px;
}

.pricing-wallet-split {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: calc(var(--radius) + 2px);
}

.pricing-wallet-split-title {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text2);
}

.pricing-wallet-split-bar {
  display: flex;
  gap: 3px;
  min-height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.pricing-wallet-split-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
}

.pricing-wallet-split-seg small {
  font-size: 9px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-wallet-split-seg--wallet {
  background: linear-gradient(135deg, var(--ultra-soft), rgba(120, 135, 200, 0.2));
  color: var(--text);
}

.pricing-wallet-split-seg--platform {
  background: rgba(120, 135, 200, 0.12);
  color: var(--text2);
}

.pricing-wallet-split-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

.pricing-tier-split {
  margin: -8px 0 14px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text3);
  letter-spacing: 0.03em;
}

.pricing-tco-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text3);
  max-width: 62ch;
}

.pricing-tco-compare td {
  font-size: 12.5px;
  vertical-align: top;
}

.pricing-out-of-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--glass);
}

.pricing-out-of-box h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.pricing-out-of-box-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
}

.pricing-out-of-box-list li {
  position: relative;
  padding-left: 1.1em;
}

.pricing-out-of-box-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ultra);
  font-size: 12px;
}

/* GEO / GAIO homepage block */
.mkt-geo-section {
  border-top: 1px solid var(--border);
}

.mkt-geo-lead {
  max-width: 68ch;
  margin-bottom: 28px;
}

.mkt-geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.mkt-geo-card {
  padding: 20px 22px;
  border-radius: calc(var(--radius) + 2px);
}

.mkt-geo-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mkt-geo-card > p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
}

.mkt-geo-tools {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mkt-geo-tools li {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-border, var(--border));
  color: var(--text2);
  background: rgba(120, 135, 200, 0.08);
}

.mkt-geo-foot {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
  max-width: 62ch;
  margin: 0;
}

.mkt-geo-foot a {
  color: var(--ultra-2, var(--accent));
  font-weight: 560;
}

/* Live toolkit examples — inventory orbit (coverflow on glass) */
.mkt-toolkit-examples {
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.mkt-toolkit-orbit {
  --orbit-panel-w: min(520px, 72vw);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(4px, 1.5vw, 16px);
  max-width: 1100px;
  margin: 0 auto;
  outline: none;
}

.mkt-toolkit-orbit-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mkt-toolkit-orbit-stage {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vw, 360px);
  perspective: 1400px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
}

.mkt-toolkit-orbit-stage.is-dragging {
  cursor: grabbing;
}

.mkt-toolkit-orbit-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(46, 59, 255, 0.18) 0%,
    rgba(15, 23, 42, 0.06) 55%,
    transparent 72%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

html:not([data-theme='light']) .mkt-toolkit-orbit-floor {
  background: radial-gradient(
    ellipse at center,
    rgba(120, 160, 255, 0.16) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 75%
  );
}

.mkt-toolkit-panel {
  --ox: 0%;
  --oz: 0px;
  --orot: 0deg;
  --oscale: 1;
  --oopacity: 1;
  --oblur: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-panel-w);
  margin: 0;
  transform-style: preserve-3d;
  transform: translate3d(-50%, -52%, 0)
    translateX(var(--ox))
    translateZ(var(--oz))
    rotateY(var(--orot))
    scale(var(--oscale));
  opacity: var(--oopacity);
  filter: blur(var(--oblur));
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  will-change: transform, opacity, filter;
  touch-action: pan-y pinch-zoom;
}

.mkt-toolkit-panel-hit {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html:not([data-theme='light']) .mkt-toolkit-panel-hit {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(20, 24, 36, 0.55) 45%, rgba(10, 12, 18, 0.72) 100%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@property --toolkit-glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit {
  border-color: transparent;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html:not([data-theme='light']) .mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Traveling + pulsing edge glow on the selected inventory panel */
.mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::before,
.mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

.mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::before {
  padding: 1.5px;
  background: conic-gradient(
    from var(--toolkit-glow-angle),
    transparent 0%,
    transparent 55%,
    color-mix(in srgb, var(--ultra, #2e3bff) 35%, transparent) 68%,
    #7dd3fc 78%,
    color-mix(in srgb, var(--ultra, #2e3bff) 90%, white) 86%,
    #a5b4fc 92%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation:
    toolkit-glow-travel 2.8s linear infinite,
    toolkit-glow-pulse 1.8s ease-in-out infinite;
}

.mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::after {
  inset: -10px;
  border-radius: calc(16px + 8px);
  background: conic-gradient(
    from var(--toolkit-glow-angle),
    transparent 0%,
    transparent 62%,
    rgba(125, 211, 252, 0.0) 70%,
    rgba(125, 211, 252, 0.35) 82%,
    rgba(46, 59, 255, 0.45) 88%,
    rgba(165, 180, 252, 0.25) 94%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  padding: 10px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(7px);
  opacity: 0.75;
  animation:
    toolkit-glow-travel 2.8s linear infinite,
    toolkit-glow-bloom 1.8s ease-in-out infinite;
  z-index: 2;
}

@keyframes toolkit-glow-travel {
  to {
    --toolkit-glow-angle: 360deg;
  }
}

@keyframes toolkit-glow-pulse {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(0.95);
  }
  50% {
    opacity: 1;
    filter: brightness(1.25);
  }
}

@keyframes toolkit-glow-bloom {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::before,
  .mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::after {
    animation: none;
    opacity: 0.7;
  }

  .mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::before {
    background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--ultra, #2e3bff) 70%, white),
      #7dd3fc,
      var(--ultra, #2e3bff)
    );
  }

  .mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit::after {
    display: none;
  }
}

.mkt-toolkit-panel-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--glass, rgba(255, 255, 255, 0.72)) 85%, transparent);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.mkt-toolkit-panel picture,
.mkt-toolkit-panel img {
  display: block;
  width: 100%;
}

.mkt-toolkit-panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.05 / 1;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #0b0e14;
}

/* Report asset is pre-padded; keep cover centered */
.mkt-toolkit-panel img.mkt-toolkit-img--report {
  object-position: center center;
}

.mkt-toolkit-panel:not(.is-active) .mkt-toolkit-panel-hit {
  cursor: pointer;
}

.mkt-toolkit-panel.is-active .mkt-toolkit-panel-hit {
  cursor: pointer;
}

.mkt-toolkit-orbit-caption {
  width: min(520px, 92%);
  display: grid;
  gap: 4px;
  padding: 14px 18px 16px;
  border-radius: 14px;
  text-align: center;
  justify-items: center;
}

.mkt-toolkit-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ultra-2, var(--accent));
  font-weight: 600;
}

.mkt-toolkit-orbit-caption strong {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.03em;
  font-weight: 650;
  color: var(--text);
}

.mkt-toolkit-orbit-caption p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
  max-width: 46ch;
}

.mkt-toolkit-orbit-open {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ultra-2, var(--accent));
  text-decoration: none;
}

.mkt-toolkit-orbit-open:hover {
  text-decoration: underline;
}

.mkt-toolkit-orbit-edge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--glass-border, var(--border));
  background: color-mix(in srgb, var(--glass, rgba(255, 255, 255, 0.7)) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  align-self: center;
  margin-top: -48px;
}

.mkt-toolkit-orbit-edge:hover {
  border-color: color-mix(in srgb, var(--ultra, #2e3bff) 45%, var(--border));
  transform: scale(1.05);
}

.mkt-toolkit-orbit-edge:active {
  transform: scale(0.97);
}

.mkt-toolkit-orbit-controls {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.mkt-toolkit-orbit-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mkt-toolkit-orbit-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--text2) 45%, transparent);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.mkt-toolkit-orbit-dot.is-active {
  width: 22px;
  background: var(--ultra, #2e3bff);
}

.mkt-toolkit-orbit-status {
  margin: 0;
  font-size: 12px;
  color: var(--text2);
}

@media (max-width: 900px) {
  .mkt-toolkit-orbit {
    --orbit-panel-w: min(92vw, 480px);
  }

  .mkt-toolkit-orbit-stage {
    height: clamp(240px, 52vw, 320px);
  }

  .mkt-toolkit-orbit-caption {
    width: min(520px, 96%);
    padding: 12px 14px 14px;
  }
}

@media (max-width: 720px) {
  .mkt-toolkit-orbit {
    --orbit-panel-w: min(88vw, 420px);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mkt-toolkit-orbit-edge {
    display: none;
  }

  .mkt-toolkit-orbit-stage {
    height: clamp(220px, 58vw, 300px);
  }

  .mkt-toolkit-panel {
    /* Flatten side depth a bit on small screens */
    --orot: 0deg !important;
  }

  .mkt-toolkit-panel.is-side {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-toolkit-panel {
    transition: opacity 0.25s ease;
    filter: none !important;
  }
}

/* FAQ accordion */
.mkt-faq-section {
  border-top: 1px solid var(--border);
}

.mkt-faq-section > p {
  color: var(--text2);
  max-width: 58ch;
  margin: 0 0 20px;
}

.mkt-faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.mkt-faq-item {
  border: 1px solid var(--glass-border, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--glass, rgba(255, 255, 255, 0.72)) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mkt-faq-item[open] {
  border-color: rgba(46, 59, 255, 0.35);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.mkt-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.35;
  user-select: none;
}

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

.mkt-faq-item summary::after {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s;
  margin-top: -4px;
}

.mkt-faq-item[open] summary::after {
  transform: rotate(-135deg);
  opacity: 0.85;
  margin-top: 4px;
}

.mkt-faq-item summary:hover {
  color: var(--ultra-2, var(--accent));
}

.mkt-faq-answer {
  padding: 0 18px 16px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}

.mkt-faq-answer p {
  margin: 0 0 10px;
}

.mkt-faq-answer p:last-child {
  margin-bottom: 0;
}

.mkt-faq-answer ul {
  margin: 0 0 10px;
  padding-left: 1.15em;
}

.mkt-faq-answer li {
  margin-bottom: 6px;
}

.mkt-faq-answer li:last-child {
  margin-bottom: 0;
}

.mkt-faq-answer a {
  color: var(--ultra-2, var(--accent));
  font-weight: 560;
}

html:not([data-theme='light']) .mkt-faq-item {
  background: rgba(14, 16, 28, 0.72);
}

html:not([data-theme='light']) .mkt-faq-item[open] {
  border-color: rgba(91, 107, 255, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* Cookie consent modal */
.mkt-cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.mkt-cookie-banner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 15, 0.55);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

html[data-theme='light'] .mkt-cookie-banner-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.mkt-cookie-banner-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 32px), 520px);
  max-height: min(88vh, 640px);
  overflow: auto;
  margin: auto;
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.mkt-cookie-kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.mkt-cookie-banner-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
}

.mkt-cookie-banner-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
}

.mkt-cookie-banner-list {
  margin: 0 0 14px;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
}

.mkt-cookie-banner-list li + li {
  margin-top: 8px;
}

.mkt-cookie-banner-list strong {
  color: var(--text);
  font-weight: 600;
}

.mkt-cookie-banner-note {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text3);
}

.mkt-cookie-banner-note a {
  color: var(--accent);
}

.mkt-cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mkt-cookie-banner-actions .mkt-cookie-choice {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.mkt-cookie-banner-actions .mkt-cookie-choice.is-selected {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
}

html.mkt-cookie-banner-open {
  overflow: hidden;
}

html.mkt-cookie-banner-open body {
  overflow: hidden;
}

html.mkt-cookie-banner-open .app {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 520px) {
  .mkt-cookie-banner {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .mkt-cookie-banner-dialog {
    width: min(calc(100vw - 24px), 520px);
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .mkt-cookie-banner-actions {
    grid-template-columns: 1fr;
  }

  .mkt-cookie-banner-lead,
  .mkt-cookie-banner-list {
    font-size: 13px;
  }
}

.mkt-footer-nav button[data-mkt-cookie-settings] {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.mkt-footer-nav button[data-mkt-cookie-settings]:hover {
  color: var(--text);
}

/* Footer */
.mkt-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--marketing-pad) 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--text3);
  font-size: 13px;
}

.mkt-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 220px);
}

.mkt-footer-copy {
  color: var(--text2);
  font-weight: 500;
}

.mkt-footer-tagline {
  font-size: 12px;
  color: var(--text3);
}

.mkt-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.mkt-footer-nav a {
  color: var(--text2);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.mkt-footer-nav a:hover {
  color: var(--accent);
}

/* Login */
.login-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--marketing-pad);
}

.login-card {
  width: min(420px, 100%);
  padding: 32px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: relative;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.login-error {
  color: var(--danger);
  font-size: 13px;
  margin: 0 0 12px;
}

/* In-page sign-in dialog (blurred current page behind) */
.login-dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  margin: 0;
  max-width: none;
  width: 100%;
  height: 100%;
}

.login-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.login-dialog::backdrop {
  background: rgba(6, 7, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme='light'] .login-dialog::backdrop {
  background: rgba(244, 246, 250, 0.55);
}

.login-dialog-card {
  width: min(420px, 100%);
  margin: 0;
  box-shadow: var(--shadow);
}

.login-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.login-dialog-head h1 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  padding-right: 4px;
}

.login-dialog-close {
  position: static;
  flex: none;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
}

html.login-modal-open,
html.login-modal-open body {
  overflow: hidden;
}

/* Dashboard (app) */
.shell-view--dashboard {
  padding: 24px;
  overflow: auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-panel {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
}

.dashboard-panel h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.dash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.dash-item:last-child {
  border-bottom: none;
}

.dash-item h3 {
  margin: 0;
  font-size: 14px;
}

.dash-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text3);
}

.dash-empty {
  color: var(--text3);
  font-size: 13px;
}

.billing-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.billing-org {
  font-weight: 600;
}

.billing-balance {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.billing-alert {
  color: var(--danger);
  font-size: 12px;
  margin: 8px 0 0;
}

.billing-alert a {
  color: var(--accent);
}

.billing-warn {
  color: #fbbf24;
  font-size: 12px;
  margin: 8px 0 0;
}

.billing-hint {
  color: var(--text3);
  font-size: 13px;
}

.dash-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-toolbar-select {
  font-family: var(--sans);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  max-width: 160px;
}

/* Use drawer nav below 1100px so Tools dropdown is never clipped by a cramped bar */
@media (max-width: 1100px) {
  :root {
    --marketing-pad: clamp(16px, 4.5vw, 28px);
  }

  .mkt-header {
    position: fixed;
    top: 0;
    height: var(--header-h);
    min-height: var(--header-h);
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0 var(--marketing-pad);
    /* Keep brand + actions from stacking on top of each other */
    overflow: visible;
  }

  .mkt-header .shell-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .mkt-header .brand-glyph {
    flex-shrink: 0;
  }

  .mkt-header .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .mkt-header .brand-name {
    font-size: 15px;
  }

  .mkt-header .brand-sub {
    display: block;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .mkt-nav-toggle {
    display: inline-flex !important;
    order: 3;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .mkt-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--marketing-pad) 16px;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: color-mix(in srgb, var(--bg1, #0a0c17) 94%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    z-index: 40;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }

  html[data-theme='light'] .mkt-nav {
    background: rgba(246, 242, 234, 0.96);
  }

  .mkt-nav.is-open {
    display: flex;
  }

  .mkt-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
  }

  .mkt-nav-dropdown-panel {
    display: none;
    position: static;
    min-width: 0;
    margin: 4px 0 8px 12px;
    padding: 8px 0 4px;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    flex-direction: column;
    gap: 2px;
  }

  /* Touch devices must not use desktop :hover/:focus-within panel rules */
  .mkt-nav-dropdown:hover .mkt-nav-dropdown-panel,
  .mkt-nav-dropdown:focus-within .mkt-nav-dropdown-panel,
  .mkt-nav-dropdown.is-hover-open .mkt-nav-dropdown-panel {
    display: none;
  }

  .mkt-nav-dropdown.is-submenu-open .mkt-nav-dropdown-panel {
    display: flex;
  }

  .mkt-nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    touch-action: manipulation;
  }

  .mkt-nav .mkt-nav-dropdown-trigger--soon {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    cursor: default;
    pointer-events: none;
  }

  .mkt-nav-dropdown-trigger::after {
    display: inline-block;
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.65;
    transition: transform 0.2s ease;
  }

  .mkt-nav-dropdown.is-submenu-open .mkt-nav-dropdown-trigger::after {
    transform: rotate(-135deg);
  }

  .mkt-nav.is-open .mkt-nav-dropdown.is-submenu-open > .mkt-nav-dropdown-trigger:not(.mkt-nav-dropdown-trigger--soon) {
    color: var(--text);
    background: var(--accent-dim);
  }

  .mkt-actions {
    order: 2;
    margin-left: auto;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    flex-shrink: 0;
    gap: 4px;
    min-width: 0;
  }

  /* Eco lives inside the appearance popover — hide the duplicate bolt on narrow bars */
  .mkt-actions .mkt-eco-toggle {
    display: none !important;
  }

  .mkt-appearance-wrap {
    gap: 4px;
  }

  /* Both CTAs live in the drawer — a lone Sign in in the bar next to ☰ was cramped */
  .mkt-actions a.btn-primary,
  .mkt-actions a.btn-secondary,
  .mkt-actions a.mkt-nav-get-started {
    display: none !important;
  }

  .mkt-actions .btn-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .mkt-nav-mobile-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 8px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg1, #0a0c17) 94%, transparent);
  }

  html[data-theme='light'] .mkt-nav-mobile-ctas {
    background: rgba(246, 242, 234, 0.96);
  }

  .mkt-nav-mobile-ctas a.btn-primary,
  .mkt-nav-mobile-ctas a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    border-radius: 12px;
    white-space: nowrap;
  }

  .mkt-nav-mobile-ctas a.btn-primary,
  .mkt-nav-mobile-ctas a.btn-primary:hover,
  .mkt-nav-mobile-ctas a.btn-primary.is-active {
    background: linear-gradient(135deg, var(--ultra, #2e3bff), var(--ultra-2, #5b6bff)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
  }

  .mkt-nav-mobile-ctas a.btn-secondary,
  .mkt-nav-mobile-ctas a.btn-secondary:hover,
  .mkt-nav-mobile-ctas a.btn-secondary.is-active,
  .mkt-nav-mobile-ctas a.mkt-nav-get-started {
    background: color-mix(in srgb, var(--text) 8%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--accent, #54beff) 55%, var(--border)) !important;
    color: var(--text) !important;
  }

  html[data-theme='light'] .mkt-nav-mobile-ctas a.mkt-nav-get-started {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(30, 58, 138, 0.28) !important;
    color: #0f172a !important;
  }

  .mkt-main {
    padding: 28px var(--marketing-pad) 56px;
    max-width: 100%;
  }

  .mkt-hero {
    padding: 20px 0 32px;
  }

  .mkt-hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    overflow-wrap: anywhere;
  }

  .mkt-lead {
    max-width: none;
    font-size: 1rem;
  }

  .mkt-cta-row {
    width: 100%;
  }

  .mkt-cta-row a.btn-primary,
  .mkt-cta-row a.btn-secondary {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }

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

  .mkt-cards {
    grid-template-columns: 1fr !important;
  }

  .mkt-cards--modules .mkt-card--wide,
  .mkt-cards--modules .mkt-card:not(.mkt-card--wide) {
    grid-column: span 1 !important;
  }

  .mkt-section-head-cta {
    width: 100%;
    text-align: center;
  }

  .mkt-card--wide {
    grid-column: span 1 !important;
  }

  .cost-calculator-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cost-calculator-controls,
  .cost-calculator-results {
    max-width: 100%;
  }

  .cost-calculator-results {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tech-matrix {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .tech-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: auto;
    gap: 10px;
  }

  .tech-row-label {
    margin: 0;
  }

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

  .mkt-compare-wrap {
    overflow-x: auto;
  }

  .mkt-compare td:first-child {
    white-space: normal;
  }

  .mkt-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px var(--marketing-pad) 32px;
  }

  .mkt-footer-nav {
    gap: 10px 16px;
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .stack-canvas-wrap,
  #stack-diagram,
  .stack-diagram {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px) {
  .cost-calculator-results {
    grid-template-columns: 1fr;
  }

  .tech-chips {
    grid-template-columns: 1fr;
  }

  .cost-calculator-controls {
    padding: 14px;
  }
}

@media (min-width: 1101px) {
  .mkt-nav-toggle {
    display: none !important;
  }

  .mkt-nav-mobile-ctas {
    display: none !important;
  }
}

/* ── Wide marketing layout (stack map) ── */
.mkt-main--wide {
  max-width: min(1400px, 96vw);
}

.mkt-hero--compact {
  padding-bottom: 12px;
  min-height: 0 !important;
}

.mkt-cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ── Stack diagram landing ── */
.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text2);
}

.stack-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stack-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stack-legend-dot--ops { background: #38bdf8; }
.stack-legend-dot--core { background: #a78bfa; }
.stack-legend-dot--tech { background: #34d399; }

.stack-legend-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: stack-pulse 1.8s ease-out infinite;
}

@keyframes stack-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.stack-diagram-wrap {
  padding: 20px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  overflow: hidden;
}

.stack-diagram {
  position: relative;
  min-height: 520px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stack-diagram.is-ready {
  opacity: 1;
}

.stack-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stack-edge {
  fill: none;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1.5;
  transition: stroke 0.2s, stroke-width 0.2s;
}

.stack-edge.is-lit {
  stroke: var(--accent);
  stroke-width: 2.5;
}

.stack-packet {
  fill: var(--accent);
  opacity: 0.9;
}

.stack-packet--1 { fill: #a78bfa; opacity: 0.75; }
.stack-packet--2 { fill: #34d399; opacity: 0.65; }

.stack-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(140px, 1.2fr) minmax(120px, 1fr);
  grid-template-rows: repeat(6, auto);
  grid-template-areas:
    ". . router openrouter models"
    "client api agent openrouter models"
    ". . tools dataforseo google"
    ". ce flows dataforseo google"
    ". . skills postgres observability"
    ". . billing postgres observability";
  gap: 18px 14px;
  padding: 12px 8px 20px;
  min-height: 500px;
}

.stack-node {
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 168px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg1);
  text-align: center;
  cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}

.stack-node:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.stack-node.is-lit {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 8px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.stack-node.is-dim {
  opacity: 0.35;
}

.stack-node--ops { border-top: 3px solid #38bdf8; }
.stack-node--core { border-top: 3px solid #a78bfa; background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), var(--bg1)); }
.stack-node--tech { border-top: 3px solid #34d399; }

.stack-node-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--text2);
}

.stack-node-icon svg {
  width: 100%;
  height: 100%;
}

.stack-node-icon--brand svg {
  stroke: none;
}

.stack-node-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.stack-node-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  line-height: 1.35;
}

@media (max-width: 960px) {
  .stack-nodes {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: none;
    grid-auto-rows: auto;
  }

  .stack-node {
    grid-area: auto !important;
    max-width: none;
  }

  .stack-diagram {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-legend-pulse { animation: none; }
  .stack-packet { display: none; }
}

/* ── Version history timeline ── */
.version-timeline-wrap {
  margin-top: 4px;
  margin-bottom: 40px;
}

.version-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.version-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
  border-radius: 2px;
}

.version-entry {
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
}

.version-entry:last-child {
  margin-bottom: 0;
}

.version-marker {
  position: absolute;
  left: 4px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-hi, var(--border));
  background: var(--bg0);
  z-index: 1;
}

.version-entry--current .version-marker {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.version-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.version-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.version-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-left: auto;
}

.version-tag {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.version-tag--web { border-color: rgba(56, 189, 248, 0.5); color: #38bdf8; }
.version-tag--routing { border-color: rgba(167, 139, 250, 0.5); color: #a78bfa; }
.version-tag--fix { border-color: rgba(248, 113, 113, 0.5); color: #f87171; }
.version-tag--ops { border-color: rgba(251, 191, 36, 0.5); color: #fbbf24; }
.version-tag--ux { border-color: rgba(244, 114, 182, 0.5); color: #f472b6; }
.version-tag--billing { border-color: rgba(52, 211, 153, 0.5); color: #34d399; }
.version-tag--agent { border-color: rgba(129, 140, 248, 0.5); color: #818cf8; }
.version-tag--foundation { border-color: rgba(148, 163, 184, 0.5); color: var(--text2); }

.version-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.version-card p {
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.55;
}

.version-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
}

.version-footer-note {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.version-footer-note p {
  color: var(--text2);
  font-size: 14px;
}

/* ── Tutorials ── */
.tutorial-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.tutorial-hub-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.tutorial-hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tutorial-hub-card h2 {
  margin: 14px 16px 6px;
  font-size: 1.1rem;
}

.tutorial-hub-card p {
  margin: 0 16px 12px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  flex: 1;
}

.tutorial-hub-cta {
  display: block;
  margin: 0 16px 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.tutorial-notice {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.tutorial-notice p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
}

.tutorial-page {
  max-width: min(1100px, 96vw);
}

.tutorial-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 20px;
}

.tutorial-breadcrumb a {
  color: var(--text2);
  text-decoration: none;
}

.tutorial-breadcrumb a:hover {
  color: var(--accent);
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.tutorial-subnav {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tutorial-subnav a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
}

.tutorial-subnav a:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.tutorial-subnav a.is-active {
  background: var(--accent-dim);
  color: var(--text);
  font-weight: 600;
}

.tutorial-subnav-back {
  font-family: var(--mono);
  font-size: 11px !important;
  margin-bottom: 6px;
  color: var(--text3) !important;
}

.tutorial-content-head {
  margin-bottom: 32px;
}

.tutorial-content-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 12px;
  max-width: none;
}

.tutorial-step {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.tutorial-step:last-of-type {
  border-bottom: none;
}

.tutorial-step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.tutorial-step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.tutorial-step p {
  color: var(--text2);
  line-height: 1.6;
  margin: 0 0 16px;
}

.tutorial-bullets {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.55;
}

.tutorial-figure {
  margin: 0;
}

.tutorial-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text3);
}

.tutorial-figure--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tutorial-tabs-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tutorial-tab-pill {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text2);
}

.tutorial-page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tutorial-page-nav > span:empty {
  display: none;
}

.tutorial-page-nav a.tutorial-page-nav-prev,
.tutorial-page-nav a.tutorial-page-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border, var(--border));
  background: color-mix(in srgb, var(--glass, rgba(255, 255, 255, 0.72)) 88%, transparent);
  color: var(--text) !important;
  text-decoration: none !important;
  font-family: var(--font-sans, 'Instrument Sans', system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  line-height: 1.2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tutorial-page-nav a.tutorial-page-nav-next {
  margin-left: auto;
  background: color-mix(in srgb, var(--ultra, #2e3bff) 12%, var(--glass, rgba(255, 255, 255, 0.72)));
  border-color: color-mix(in srgb, var(--ultra, #2e3bff) 28%, var(--border));
}

.tutorial-page-nav a.tutorial-page-nav-prev:hover,
.tutorial-page-nav a.tutorial-page-nav-next:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ultra, #2e3bff) 40%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 28px rgba(46, 59, 255, 0.12);
  color: var(--text) !important;
}

.tutorial-page-nav a.tutorial-page-nav-prev:focus-visible,
.tutorial-page-nav a.tutorial-page-nav-next:focus-visible {
  outline: 2px solid var(--ultra, #2e3bff);
  outline-offset: 2px;
}

html[data-theme='dark'] .tutorial-page-nav a.tutorial-page-nav-prev,
html[data-theme='dark'] .tutorial-page-nav a.tutorial-page-nav-next {
  background: color-mix(in srgb, rgba(18, 20, 28, 0.88) 90%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .tutorial-page-nav a.tutorial-page-nav-next {
  background: color-mix(in srgb, var(--ultra, #2e3bff) 22%, rgba(18, 20, 28, 0.92));
}

/* Media placeholders — swap for <img> / <video> when UI is final */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(148, 163, 184, 0.45);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(148, 163, 184, 0.04) 8px,
      rgba(148, 163, 184, 0.04) 16px
    ),
    var(--bg1);
  text-align: center;
}

.media-placeholder--card {
  min-height: 140px;
  border-radius: 0;
  border: none;
  border-bottom: 1px dashed var(--border);
  background: var(--bg0);
}

.media-placeholder--wide {
  min-height: 280px;
  aspect-ratio: 16 / 9;
}

.media-placeholder--video {
  min-height: 260px;
  aspect-ratio: 16 / 9;
  border-color: rgba(56, 189, 248, 0.35);
  background:
    radial-gradient(ellipse at center, rgba(56, 189, 248, 0.06), transparent 70%),
    var(--bg1);
}

.media-placeholder-icon {
  font-size: 28px;
  opacity: 0.5;
}

.media-placeholder-play {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 18px;
  padding-left: 4px;
}

.media-placeholder-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.04em;
}

.media-placeholder-hint {
  font-size: 11px;
  color: var(--text3);
  max-width: 28ch;
  line-height: 1.4;
}

/* Lead form dialog */
.lead-dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--bg1);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lead-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.lead-dialog-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-dialog-form .field {
  margin-bottom: 0;
}

.lead-dialog-form .field-label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-dialog-form .input {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(15, 23, 42, 0.04);
}

.lead-dialog-form .input:focus {
  outline: none;
  border-color: var(--ultra, #2e3bff);
  box-shadow: 0 0 0 3px rgba(46, 59, 255, 0.18);
}

html:not([data-theme='light']) .lead-dialog-form .input {
  background: rgba(8, 10, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8ecf8;
}

.lead-dialog-form textarea.input {
  min-height: 96px;
}

.lead-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.lead-dialog-lead {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.lead-message {
  resize: vertical;
  min-height: 88px;
}

.lead-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.lead-form-status {
  font-size: 13px;
  margin: 0;
}

.lead-form-status.is-success {
  color: var(--accent);
}

.lead-form-status.is-error {
  color: #f87171;
}

.field-optional {
  font-weight: 400;
  color: var(--text3);
}

/* Contact page */
.mkt-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.mkt-contact-card {
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid var(--glass-border, var(--border));
}

.mkt-contact-card select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text3) 50%),
    linear-gradient(135deg, var(--text3) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.mkt-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mkt-contact-aside .mkt-card {
  margin: 0;
}

@media (max-width: 900px) {
  .mkt-contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Cost calculator */
.cost-calculator-section {
  border-top: 1px solid var(--border);
  overflow: visible;
}

.cost-calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}

.cost-calculator-controls,
.cost-calculator-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.cost-calculator-controls {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border, var(--border));
  background: color-mix(in srgb, var(--glass, rgba(255, 255, 255, 0.72)) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  align-self: start;
  height: fit-content;
}

.cost-calculator-controls .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.cost-calculator-controls .field:last-child {
  margin-bottom: 0;
}

.cost-calculator-controls .field-label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3, var(--text2));
}

/* Distinct from page cream — outlined glass fields */
.cost-calculator-controls .input,
.cost-calculator-controls select.input,
.cost-calculator-controls input[type='search'],
.cost-calculator-controls input[type='number'],
.cost-calculator-controls input[type='text'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.cost-calculator-controls select.input {
  padding-right: 40px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.cost-calculator-controls input[type='number'] {
  -moz-appearance: textfield;
}

.cost-calculator-controls input[type='number']::-webkit-outer-spin-button,
.cost-calculator-controls input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cost-calculator-controls .input::placeholder {
  color: var(--text3);
  font-weight: 400;
}

.cost-calculator-controls .input:hover,
.cost-calculator-controls select.input:hover {
  border-color: rgba(46, 59, 255, 0.35);
}

.cost-calculator-controls .input:focus,
.cost-calculator-controls select.input:focus {
  outline: none;
  border-color: var(--ultra, #2e3bff);
  box-shadow: 0 0 0 3px rgba(46, 59, 255, 0.18), 0 10px 24px rgba(46, 59, 255, 0.08);
  background: #fff;
}

.cost-calculator-controls .field-hint {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text3);
  max-width: 100%;
}

html:not([data-theme='light']) .cost-calculator-controls {
  background: rgba(14, 16, 28, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.25);
}

html:not([data-theme='light']) .cost-calculator-controls .input,
html:not([data-theme='light']) .cost-calculator-controls select.input,
html:not([data-theme='light']) .cost-calculator-controls input[type='search'],
html:not([data-theme='light']) .cost-calculator-controls input[type='number'],
html:not([data-theme='light']) .cost-calculator-controls input[type='text'] {
  background: rgba(8, 10, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8ecf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html:not([data-theme='light']) .cost-calculator-controls select.input {
  background-image:
    linear-gradient(45deg, transparent 50%, #9aa3bd 50%),
    linear-gradient(135deg, #9aa3bd 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: rgba(8, 10, 18, 0.92);
}

html:not([data-theme='light']) .cost-calculator-controls .input::placeholder {
  color: #6b728c;
}

.cost-calculator-policy {
  max-width: 52rem;
  margin: 0 0 8px;
}

.cost-calculator-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text3);
}

.cost-calculator-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

.cost-calculator-results .cost-stat {
  margin: 0;
  min-width: 0;
}

.cost-calculator-results .cost-chart-toolbar,
.cost-calculator-results .cost-chart-panel,
.cost-calculator-results .cost-chart-legend {
  grid-column: 1 / -1;
}

.cost-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--glass-border, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--glass, rgba(255, 255, 255, 0.7)) 90%, transparent);
  backdrop-filter: blur(10px);
  min-width: 0;
  overflow: hidden;
}

.cost-stat strong {
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ultra-2, var(--accent));
  overflow-wrap: anywhere;
}

.cost-stat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3, var(--text2));
}

.cost-stat--muted span:last-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
}

.cost-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 400px;
  border: 1px solid var(--glass-border, var(--border));
  border-radius: 16px;
  background: #fff;
  margin-top: 4px;
  display: block;
}

.cost-chart-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: start;
  margin-top: 8px;
}

.cost-chart-expand {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  align-self: center;
}

/* Chart gets full width; key wraps underneath so markers aren't crushed. */
.cost-chart-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
  min-width: 0;
}

.cost-chart-panel .cost-chart {
  width: 100%;
  min-width: 0;
  min-height: 400px;
}

.cost-chart-panel--expanded {
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 0.75fr);
  min-height: 520px;
}

.cost-chart-key {
  list-style: none;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--glass-border, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg1) 88%, transparent);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 8px;
  max-height: none;
  overflow: visible;
  min-width: 0;
}

.cost-chart-panel--expanded .cost-chart-key {
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow: auto;
  grid-template-columns: none;
}

.cost-chart-key-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.cost-chart-key-item.is-below-scale {
  opacity: 0.92;
}

.cost-chart-key-item:hover,
.cost-chart-key-item.is-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.cost-chart-key-n {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  font: 700 11px IBM Plex Mono, monospace;
  display: inline-grid;
  place-items: center;
}

.cost-chart-key-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-chart-key-meta {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text3);
}

.cost-chart-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  background: var(--bg0, #0a0c14);
  color: var(--text, #e8ecf4);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.cost-chart-dialog::backdrop {
  background: rgba(8, 10, 18, 0.62);
}

.cost-chart-dialog-inner {
  margin: 0;
  padding: 16px 18px 20px;
}

.cost-chart-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cost-chart-dialog-head h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.cost-chart-dialog-head p {
  margin: 0;
  font-size: 12px;
  color: var(--text3);
}

@media (max-width: 820px) {
  .cost-chart-panel--expanded {
    grid-template-columns: 1fr;
  }
  .cost-chart-panel--expanded .cost-chart-key {
    max-height: 240px;
  }
  .cost-chart {
    min-height: 320px;
  }
}

html:not([data-theme='light']) .cost-chart {
  background: rgba(8, 10, 18, 0.85);
}

.cost-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text2);
}

.cost-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cost-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 980px) {
  .cost-calculator-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Technologies matrix — icon chips + explainer panels */
.tech-matrix {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 22px;
  align-items: start;
}

.tech-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: start;
}

.tech-row-label {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.tech-row-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.tech-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #eef0f8;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.tech-chip img,
.tech-chip .tech-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.tech-chip .tech-icon-svg {
  display: block;
}

.tech-chip-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-chip-mark {
  min-width: 28px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ultra-2, #2e3bff);
}

.tech-chip-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
  margin-left: auto;
  margin-right: 2px;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s;
}

.tech-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 59, 255, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tech-chip.is-active {
  background: linear-gradient(135deg, var(--ultra, #2e3bff), var(--ultra-2, #5b6bff));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 32px rgba(46, 59, 255, 0.28);
}

.tech-chip.is-active .tech-chip-chev {
  transform: rotate(-135deg);
  opacity: 0.9;
  margin-top: 4px;
}

.tech-chip.is-active .tech-icon-svg:not(.tech-icon-brand) {
  color: #fff;
}

.tech-chip.is-active .tech-chip-mark {
  color: #fff;
}

.tech-explain {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #e8eaf3;
  padding: 18px 20px;
  animation: tech-explain-in 0.22s ease;
}

@keyframes tech-explain-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-explain-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.tech-explain-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  box-shadow: none;
}

.tech-explain-icon img,
.tech-explain-icon svg {
  width: 26px;
  height: 26px;
}

.tech-explain-mark {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ultra-2, #2e3bff);
}

.tech-explain-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.tech-explain-title-row strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.tech-explain-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 59, 255, 0.12);
  color: #2e3bff;
  font-size: 12px;
  font-weight: 500;
}

.tech-explain-copy p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  max-width: 68ch;
}

.tech-explain-features {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.tech-explain-features li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: #334155;
}

.tech-explain-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e3bff;
}

.tech-explain-link {
  font-size: 13px;
  font-weight: 600;
  color: #2e3bff;
  text-decoration: none;
}

.tech-explain-link:hover {
  text-decoration: underline;
}

/* Dark theme — opaque chips, natural brand colors (never invert icons) */
html:not([data-theme='light']) .tech-chip {
  background: #1e2130;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8ecf8;
}

html:not([data-theme='light']) .tech-chip img,
html:not([data-theme='light']) .tech-chip .tech-icon-svg,
html:not([data-theme='light']) .tech-explain-icon img,
html:not([data-theme='light']) .tech-explain-icon svg {
  filter: none;
}

html[data-theme='light'] .tech-chip img.tech-logo-brand--mono {
  filter: invert(1);
}

html:not([data-theme='light']) .tech-explain {
  background: #1e2130;
  border-color: rgba(255, 255, 255, 0.1);
}

html:not([data-theme='light']) .tech-explain-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html:not([data-theme='light']) .tech-explain-title-row strong,
html:not([data-theme='light']) .tech-explain-features li {
  color: #e8ecf8;
}

html:not([data-theme='light']) .tech-explain-copy p {
  color: #9aa3bd;
}

@media (max-width: 900px) {
  .tech-matrix {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .tech-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: auto;
    gap: 10px;
  }
  .tech-row-label {
    margin: 0;
  }
  .tech-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-subnav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tutorial-subnav-back {
    width: 100%;
  }

  .tutorial-figure--duo {
    grid-template-columns: 1fr;
  }
}

/* ── Tools marketing visuals (homepage feature-demo + carousel) ── */
.tools-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0 16px;
}

@media (min-width: 1100px) {
  .tools-hero-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: start;
  }
}

.tools-hero-visual-col,
.tools-mkt-hero-stage {
  width: 100%;
  min-width: 0;
}

/* Kill homepage scatter 3-col grid — empty side tracks were leaving a stray bar */
.tools-mkt-hero-stage.mkt-hero-stage,
.tools-mkt-hero-stage {
  display: block !important;
  grid-template-columns: none !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  margin-top: 28px !important;
  min-height: 0 !important;
}

/* Ambient drifting dots sit in the left gutter next to the console and read as junk */
body.marketing:has(.tools-mkt-hero-stage) .ambient-dot {
  display: none !important;
}

.tools-mkt-hero-stage .tools-showcase-console,
.tools-mkt-hero-stage .hero-console {
  grid-column: auto !important;
  grid-row: auto !important;
  max-width: min(720px, 100%);
  width: 100%;
  margin-inline: auto;
}

.tools-scene-stack {
  position: relative;
  min-height: 200px;
}

.tools-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease, ease), transform 0.55s var(--ease, ease), visibility 0.55s;
  padding: 0 16px 8px;
}

.tools-scene.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tools-scene-kicker {
  display: inline-flex;
  margin: 4px 16px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ultra-2, var(--accent));
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.tools-scene-kicker:hover {
  border-bottom-color: var(--ultra-2, var(--accent));
}

.tools-scene .feature-demo[data-demo='typing'] {
  margin: 0 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border, var(--border));
  background: rgba(120, 135, 200, 0.06);
}

.tools-scene-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--glass-border, var(--border));
}

.tools-scene-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.tools-scene-dot.is-active {
  background: var(--ultra, #2e3bff);
  transform: scale(1.35);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ultra) 25%, transparent);
}

.tool-hub-demo,
.tool-step-demo {
  min-height: 120px;
  margin: 0 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(120, 135, 200, 0.05);
  overflow: hidden;
}

.tool-hub-demo .feature-demo,
.tool-step-demo .feature-demo {
  min-height: clamp(96px, 22vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-hub-demo .feature-demo .demo-orch-svg,
.tool-hub-demo .feature-demo .demo-flow-svg,
.tool-step-demo .feature-demo .demo-orch-svg,
.tool-step-demo .feature-demo .demo-flow-svg {
  width: 100%;
  height: auto;
  max-height: 140px;
}

.tool-step-shot {
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: color-mix(in srgb, var(--panel, #12141c) 88%, transparent);
}

.tool-step-shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.tool-step-shot img:focus-visible {
  outline: 2px solid var(--accent, #7c8cff);
  outline-offset: 2px;
}

.tool-step-shot--hero {
  margin-top: 1.25rem;
}

body.shot-lightbox-open {
  overflow: hidden;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, #05060a 55%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shot-lightbox[hidden] {
  display: none !important;
}

.shot-lightbox.is-open {
  opacity: 1;
}

.shot-lightbox-img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: min(90vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border, #fff) 55%, transparent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: #0a0b10;
}

.shot-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  background: color-mix(in srgb, #12141c 75%, transparent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox-close:hover {
  background: color-mix(in srgb, #1c2030 90%, transparent);
}

.tutorial-step--has-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.tutorial-step--has-shot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 720px) {
  .tutorial-step--has-demo {
    grid-template-columns: minmax(168px, 240px) minmax(0, 1fr);
    gap: 22px;
  }

  .tutorial-step--has-shot {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: center;
  }
}

.tool-step-body {
  min-width: 0;
}

.tool-step-body > h2:first-child {
  margin-top: 0;
}

.tools-detail-console {
  margin: 20px 0 12px;
  overflow: hidden;
}

.tools-detail-demo-wrap {
  padding: 12px 16px 18px;
  min-height: 160px;
}

.tools-detail-demo-wrap .feature-demo {
  min-height: 140px;
}

.tools-detail-grid {
  padding: 12px 16px 18px !important;
}

.tools-detail-grid .feature-demo[data-demo='typing'] {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid var(--glass-border, var(--border));
}

.tools-hub-grid .tutorial-hub-card {
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s;
}

.tools-hub-grid .tutorial-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(46, 59, 255, 0.12);
}

.tools-hub-grid .tutorial-hub-card:hover .tool-hub-demo {
  border-color: color-mix(in srgb, var(--ultra) 35%, var(--border));
}

/* Tools landing — expandable hierarchy diagram */
.tools-hierarchy-section {
  scroll-margin-top: 96px;
  transition: min-height 0.25s ease;
}

.tools-hierarchy {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg, 16px);
  overflow: visible;
  min-height: 0;
}

.tools-h-root {
  text-align: center;
  padding: 20px 16px 8px;
}

.tools-h-root-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin: 10px 0 8px;
  font-weight: 600;
}

.tools-h-spine {
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
}

.tools-h-spine-line {
  display: block;
  width: 2px;
  height: 28px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ultra) 55%, transparent),
    color-mix(in srgb, var(--border) 80%, transparent)
  );
  border-radius: 2px;
}

.tools-h-layer--columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.tools-h-layer--quad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-h-layer--duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

@media (max-width: 960px) {
  .tools-h-layer--columns,
  .tools-h-layer--duo {
    grid-template-columns: 1fr;
  }
}

.tools-h-request-flow {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px dashed color-mix(in srgb, var(--ultra) 25%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}

.tools-h-subhead {
  font-size: 1rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.tools-h-desc--tight {
  margin-top: 0;
}

.tools-h-flow-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tools-h-flow-step {
  margin: 0;
}

.tools-h-flow-details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.tools-h-flow-details summary {
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  list-style: none;
}

.tools-h-flow-details summary::-webkit-details-marker {
  display: none;
}

.tools-h-flow-title {
  font-weight: 600;
}

.tools-h-flow-src {
  font-size: 0.75rem;
  opacity: 0.85;
}

.tools-h-flow-details .tools-h-desc {
  padding: 0 12px 12px;
  margin: 0;
}

.tools-h-registry-block {
  margin-top: 16px;
}

.tools-h-registry-block > .tools-h-node {
  border-color: color-mix(in srgb, var(--ultra) 30%, var(--border));
}

.tools-h-tool-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  overflow: visible;
}

.tools-h-node--registry .tools-h-tool-list {
  max-height: none;
}

.tools-h-tool {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}

.tools-h-tool-title {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}

/* Internal registry IDs — never show on marketing */
.tools-h-tool-id,
.tools-h-items--compact code,
.tools-h-tool--meta-note code {
  display: none !important;
}

.tools-h-tool-desc {
  font-size: 0.8rem;
  color: var(--muted, var(--text2));
  line-height: 1.45;
}

.tools-h-tool--meta-note {
  grid-template-columns: 1fr;
}

.tools-h-src {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.82em;
}

.tools-h-items--compact {
  font-size: 0.82rem;
  margin-top: 6px;
}

.tools-h-kit-grid--full {
  max-height: none;
}

.tools-h-badge[data-kind='service'] {
  border-color: color-mix(in srgb, var(--text2) 45%, var(--border));
  color: var(--text2);
}

.tools-h-intents .tools-h-node {
  margin-top: 0;
}

@media (max-width: 960px) {
  .tools-h-layer--columns {
    grid-template-columns: 1fr;
  }
}

.tools-h-node {
  border: 1px solid var(--glass-border, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  overflow: visible;
}

.tools-h-node--nested,
.tools-h-node--compact {
  font-size: 0.92rem;
}

.tools-h-node--module {
  border-color: color-mix(in srgb, var(--ultra) 22%, var(--border));
}

.tools-h-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 44px;
}

.tools-h-summary > :not(.tools-h-badge) {
  flex: 1 1 12rem;
  min-width: 0;
  word-break: break-word;
}

.tools-h-summary::-webkit-details-marker {
  display: none;
}

.tools-h-summary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-left: auto;
  margin-top: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.tools-h-node[open] > .tools-h-summary::after {
  transform: rotate(-135deg);
  margin-top: 10px;
}

.tools-h-badge {
  flex-shrink: 0;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--muted);
}

.tools-h-badge[data-kind='orchestrator'] {
  border-color: color-mix(in srgb, #f59e0b 45%, var(--border));
  color: #f59e0b;
}

.tools-h-badge[data-kind='module'] {
  border-color: color-mix(in srgb, var(--ultra) 40%, var(--border));
  color: var(--ultra);
}

.tools-h-badge[data-kind='meta'],
.tools-h-badge[data-kind='atomic'] {
  border-color: color-mix(in srgb, #38bdf8 40%, var(--border));
  color: #38bdf8;
}

.tools-h-badge[data-kind='pipeline'] {
  border-color: color-mix(in srgb, #34d399 40%, var(--border));
  color: #34d399;
}

.tools-h-badge[data-kind='integration'] {
  border-color: color-mix(in srgb, #a78bfa 40%, var(--border));
  color: #a78bfa;
}

.tools-h-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ultra) 35%, transparent);
}

.tools-h-title-link:hover {
  color: var(--ultra);
}

.tools-h-body {
  padding: 0 14px 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}

.tools-h-desc {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.tools-h-items {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
}

.tools-h-items li {
  margin: 4px 0;
}

.tools-h-children,
.tools-h-module-grid,
.tools-h-kit-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.tools-h-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.tools-h-kit-grid {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.tools-h-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.tools-h-legend strong {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-weight: 500;
  color: var(--text);
}

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

/* Marketing — compact appearance popover (hue, fonts, panel width) */
.mkt-appearance-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mkt-appearance-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(300px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg1, #0a0c17) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme='light'] .mkt-appearance-popover {
  background: rgba(255, 255, 255, 0.96);
}

.mkt-appearance-popover.hidden {
  display: none;
}

.mkt-appearance-kicker {
  margin: 0;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label-accent, var(--ultra-2, var(--accent)));
}

.mkt-appearance-eco {
  margin: 0;
}

.mkt-appearance-presets,
.mkt-appearance-fonts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mkt-appearance-chip {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg2, var(--surface)) 80%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
}

.mkt-appearance-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}

.mkt-appearance-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
}

.mkt-appearance-field strong {
  color: var(--label-accent, var(--ultra-2, var(--accent)));
  font-weight: 500;
}

.mkt-appearance-field input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}

.mkt-appearance-reset {
  align-self: flex-start;
}

/* Legal pages */
.mkt-legal {
  max-width: 720px;
}

.mkt-legal h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.mkt-legal p,
.mkt-legal li {
  color: var(--text2);
  line-height: 1.65;
  font-size: 0.98rem;
}

.mkt-legal ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

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

.mkt-legal-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted, var(--text3));
}

/* ── Homepage dynamic USP rotator (below feature carousel) ── */
.mkt-usp-rotator-wrap {
  width: min(100%, var(--marketing-max));
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 0 var(--marketing-pad);
}

.mkt-usp-rotator {
  --usp-accent-a: #38bdf8;
  --usp-accent-b: #6366f1;
  position: relative;
  padding: 0;
  overflow: visible;
}

.mkt-usp-rotator[data-usp-accent='cyan'] {
  --usp-accent-a: #22d3ee;
  --usp-accent-b: #3b82f6;
}

.mkt-usp-rotator[data-usp-accent='violet'] {
  --usp-accent-a: #a78bfa;
  --usp-accent-b: #6366f1;
}

.mkt-usp-rotator[data-usp-accent='lime'] {
  --usp-accent-a: #a3e635;
  --usp-accent-b: #22c55e;
}

.mkt-usp-rotator[data-usp-accent='pink'] {
  --usp-accent-a: #f472b6;
  --usp-accent-b: #ec4899;
}

.mkt-usp-rotator[data-usp-accent='gold'] {
  --usp-accent-a: #fbbf24;
  --usp-accent-b: #f97316;
}

.mkt-usp-rotator-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: clamp(14px, 2vw, 22px);
  padding-bottom: 12px;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 65%, var(--usp-accent-a) 35%);
}

.mkt-usp-rotator-index {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--usp-accent-a), var(--usp-accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mkt-usp-rotator-index-sep {
  opacity: 0.45;
  padding: 0 0.08em;
}

.mkt-usp-rotator-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text2);
}

.mkt-usp-rotator-stage {
  position: relative;
  min-height: clamp(168px, 22vw, 220px);
}

.mkt-usp-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.mkt-usp-item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mkt-usp-item-glow {
  position: absolute;
  top: -12%;
  left: -4%;
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--usp-accent-a) 38%, transparent) 0%, transparent 68%);
  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
  animation: mkt-usp-glow-pulse 4.5s ease-in-out infinite;
}

@keyframes mkt-usp-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

.mkt-usp-item-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(140px, 34%) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
}

.mkt-usp-stat {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  background: linear-gradient(135deg, var(--text) 20%, var(--usp-accent-a) 55%, var(--usp-accent-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mkt-usp-item-copy h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22ch;
}

.mkt-usp-item-copy p {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text2);
}

.mkt-usp-item-copy a {
  color: var(--usp-accent-b);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--usp-accent-b) 45%, transparent);
}

.mkt-usp-rotator-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(18px, 2.5vw, 28px);
}

.mkt-usp-rotator-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mkt-usp-tab {
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--usp-accent-a) 20%);
  border-radius: 999px;
  background: transparent;
  color: var(--text2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.mkt-usp-tab:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--usp-accent-a) 45%, var(--border));
}

.mkt-usp-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--usp-accent-a), var(--usp-accent-b));
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--usp-accent-b) 35%, transparent);
}

.mkt-usp-tab:focus-visible {
  outline: 2px solid var(--usp-accent-b);
  outline-offset: 2px;
}

.mkt-usp-rotator-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}

.mkt-usp-rotator-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 55%, transparent);
  overflow: hidden;
}

.mkt-usp-rotator-progress {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--usp-accent-a), var(--usp-accent-b));
  box-shadow: 0 0 14px color-mix(in srgb, var(--usp-accent-a) 55%, transparent);
}

@keyframes mkt-usp-progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-usp-item,
  .mkt-usp-item-glow {
    transition: none;
    animation: none;
  }
  .mkt-usp-rotator-progress {
    display: none;
  }
}

@media (max-width: 720px) {
  .mkt-usp-item-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mkt-usp-stat {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .mkt-usp-item-copy h3 {
    max-width: none;
  }
}

/* ── Homepage myth-busting ── */
.mkt-myths-section {
  padding-top: clamp(48px, 8vw, 72px);
}

.mkt-myths-lead {
  max-width: 58ch;
}

.mkt-myths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(20px, 3vw, 32px);
}

.mkt-myth-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.mkt-myth-block {
  padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.4vw, 24px);
}

.mkt-myth-block--myth {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg1) 40%, transparent);
}

.mkt-myth-block--real {
  flex: 1;
}

.mkt-myth-label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
}

.mkt-myth-label--real {
  color: var(--ultra-2, var(--accent));
}

.mkt-myth-block h3 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.mkt-myth-block--real p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text2);
}

.mkt-myth-block--real a {
  color: var(--ultra-2, var(--accent));
}

@media (max-width: 960px) {
  .mkt-myths-grid {
    grid-template-columns: 1fr;
  }
}
