/* =========================================================
   RankMySalon — unified marketing surfaces (light + dark)
   Uses --rms-* tokens from theme.css. Load after styles.css.
========================================================= */

html[data-theme="light"]:has(body.route-marketing) {
  background: var(--rms-bg) !important;
}

html[data-theme="dark"]:has(body.route-marketing) {
  background: #0d0b1f !important;
}

html[data-theme="light"] body.route-marketing,
html[data-theme="dark"] body.route-marketing {
  background: var(--rms-mkt-page-bg) !important;
  color: var(--rms-text) !important;
}

/* ── Cards & section shells ───────────────────────────────── */
html[data-theme="light"] body.route-marketing .card,
html[data-theme="dark"] body.route-marketing .card,
html[data-theme="light"] body.route-marketing .intel-report-hero.card,
html[data-theme="dark"] body.route-marketing .intel-report-hero.card,
html[data-theme="light"] body.route-marketing .intel-search-toolbar.card,
html[data-theme="dark"] body.route-marketing .intel-search-toolbar.card,
html[data-theme="light"] body.route-marketing .intel-table-card.card,
html[data-theme="dark"] body.route-marketing .intel-table-card.card,
html[data-theme="light"] body.route-marketing .about-page-hero.card,
html[data-theme="dark"] body.route-marketing .about-page-hero.card,
html[data-theme="light"] body.route-marketing .about-page-section.card,
html[data-theme="dark"] body.route-marketing .about-page-section.card,
html[data-theme="light"] body.route-marketing .legal-page-shell.card,
html[data-theme="dark"] body.route-marketing .legal-page-shell.card,
html[data-theme="light"] body.route-marketing .assistant-panel,
html[data-theme="dark"] body.route-marketing .assistant-panel,
html[data-theme="light"] body.route-marketing .assistant-stage,
html[data-theme="dark"] body.route-marketing .assistant-stage,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-hero,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-hero,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-google-cse,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-google-cse,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-toolbar,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-toolbar,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-detail-hero,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-detail-hero,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-detail-shell--report,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-detail-shell--report,
html[data-theme="light"] body.route-marketing .lb-detail-error.card,
html[data-theme="dark"] body.route-marketing .lb-detail-error.card,
html[data-theme="light"] body.route-marketing .intel-brief-report,
html[data-theme="dark"] body.route-marketing .intel-brief-report,
html[data-theme="light"] body.route-marketing .intel-brief-report.card,
html[data-theme="dark"] body.route-marketing .intel-brief-report.card {
  background: var(--rms-mkt-card-bg) !important;
  border-color: var(--rms-mkt-card-border) !important;
  box-shadow: var(--rms-mkt-card-shadow) !important;
  color: var(--rms-text) !important;
}

/* ── Typography ───────────────────────────────────────────── */
html[data-theme="light"] body.route-marketing .marketing-section-kicker,
html[data-theme="dark"] body.route-marketing .marketing-section-kicker,
html[data-theme="light"] body.route-marketing .about-page-form-label,
html[data-theme="dark"] body.route-marketing .about-page-form-label,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-detail-kicker,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-detail-kicker,
html[data-theme="light"] body.route-marketing .intel-table thead th,
html[data-theme="dark"] body.route-marketing .intel-table thead th {
  color: var(--rms-kicker) !important;
}

html[data-theme="light"] body.route-marketing .marketing-title,
html[data-theme="dark"] body.route-marketing .marketing-title,
html[data-theme="light"] body.route-marketing .marketing-title-small,
html[data-theme="dark"] body.route-marketing .marketing-title-small,
html[data-theme="light"] body.route-marketing .legal-page-title,
html[data-theme="dark"] body.route-marketing .legal-page-title,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card-name,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card-name,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card-name a,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card-name a,
html[data-theme="light"] body.route-marketing .intel-brief-header h1,
html[data-theme="dark"] body.route-marketing .intel-brief-header h1,
html[data-theme="light"] body.route-marketing .intel-brief-overall-title,
html[data-theme="dark"] body.route-marketing .intel-brief-overall-title,
html[data-theme="light"] body.route-marketing .intel-brief-metric-value,
html[data-theme="dark"] body.route-marketing .intel-brief-metric-value,
html[data-theme="light"] body.route-marketing .intel-brief-score-num,
html[data-theme="dark"] body.route-marketing .intel-brief-score-num,
html[data-theme="light"] body.route-marketing .intel-brief-cta-head h2,
html[data-theme="dark"] body.route-marketing .intel-brief-cta-head h2 {
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing .marketing-body,
html[data-theme="dark"] body.route-marketing .marketing-body,
html[data-theme="light"] body.route-marketing .marketing-body-wide,
html[data-theme="dark"] body.route-marketing .marketing-body-wide,
html[data-theme="light"] body.route-marketing .legal-page-intro,
html[data-theme="dark"] body.route-marketing .legal-page-intro,
html[data-theme="light"] body.route-marketing .legal-page-list,
html[data-theme="dark"] body.route-marketing .legal-page-list,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card-meta,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card-meta,
html[data-theme="light"] body.route-marketing .intel-td-address,
html[data-theme="dark"] body.route-marketing .intel-td-address,
html[data-theme="light"] body.route-marketing .intel-brief-overall-summary,
html[data-theme="dark"] body.route-marketing .intel-brief-overall-summary,
html[data-theme="light"] body.route-marketing .intel-brief-location,
html[data-theme="dark"] body.route-marketing .intel-brief-location,
html[data-theme="light"] body.route-marketing .intel-brief-section-label,
html[data-theme="dark"] body.route-marketing .intel-brief-section-label,
html[data-theme="light"] body.route-marketing .intel-brief-cta-head p,
html[data-theme="dark"] body.route-marketing .intel-brief-cta-head p,
html[data-theme="light"] body.route-marketing .intel-brief-cta-feature,
html[data-theme="dark"] body.route-marketing .intel-brief-cta-feature {
  color: var(--rms-text-soft) !important;
}

html[data-theme="light"] body.route-marketing .legal-page-updated,
html[data-theme="dark"] body.route-marketing .legal-page-updated,
html[data-theme="light"] body.route-marketing .intel-brief-preview,
html[data-theme="dark"] body.route-marketing .intel-brief-preview,
html[data-theme="light"] body.route-marketing .intel-brief-generated,
html[data-theme="dark"] body.route-marketing .intel-brief-generated,
html[data-theme="light"] body.route-marketing .intel-brief-cta-footnote,
html[data-theme="dark"] body.route-marketing .intel-brief-cta-footnote {
  color: var(--rms-text-muted) !important;
}

/* ── Links ────────────────────────────────────────────────── */
html[data-theme="light"] body.route-marketing a.landing-link,
html[data-theme="dark"] body.route-marketing a.landing-link,
html[data-theme="light"] body.route-marketing a.intel-salon-link,
html[data-theme="dark"] body.route-marketing a.intel-salon-link,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card-menu-item--link,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card-menu-item--link,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-detail-topbar .lb-back,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-detail-topbar .lb-back {
  color: var(--rms-link) !important;
}

html[data-theme="light"] body.route-marketing a.landing-link:hover,
html[data-theme="dark"] body.route-marketing a.landing-link:hover,
html[data-theme="light"] body.route-marketing a.intel-salon-link:hover,
html[data-theme="dark"] body.route-marketing a.intel-salon-link:hover {
  color: var(--rms-link-hover) !important;
}

/* ── Inputs & selects ─────────────────────────────────────── */
html[data-theme="light"] body.route-marketing .intel-search-input,
html[data-theme="dark"] body.route-marketing .intel-search-input,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-search-input,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-search-input,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-select,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-select,
html[data-theme="light"] body.route-marketing .about-page-form-control,
html[data-theme="dark"] body.route-marketing .about-page-form-control,
html[data-theme="light"] body.route-marketing .about-page-form-select,
html[data-theme="dark"] body.route-marketing .about-page-form-select {
  background: var(--rms-input-bg) !important;
  border-color: var(--rms-input-border) !important;
  color: var(--rms-input-text) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.route-marketing .intel-search-input::placeholder,
html[data-theme="dark"] body.route-marketing .intel-search-input::placeholder,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-search-input::placeholder,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-search-input::placeholder,
html[data-theme="light"] body.route-marketing .about-page-form-control::placeholder,
html[data-theme="dark"] body.route-marketing .about-page-form-control::placeholder {
  color: var(--rms-input-placeholder) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-select-wrap,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-select-wrap,
html[data-theme="light"] body.route-marketing .intel-search-label,
html[data-theme="dark"] body.route-marketing .intel-search-label,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-count,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-count,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-pager-meta,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-pager-meta {
  color: var(--rms-text-muted) !important;
}

/* ── Ghost / secondary buttons ──────────────────────────── */
html[data-theme="light"] body.route-marketing .ghost,
html[data-theme="dark"] body.route-marketing .ghost,
html[data-theme="light"] body.route-marketing button.ghost.lb-pager-btn,
html[data-theme="dark"] body.route-marketing button.ghost.lb-pager-btn,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-search-btn,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-search-btn,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-hero-request,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-hero-request,
html[data-theme="light"] body.route-marketing .intel-list-cta,
html[data-theme="dark"] body.route-marketing .intel-list-cta {
  background: var(--rms-ghost-bg) !important;
  border-color: var(--rms-ghost-border) !important;
  color: var(--rms-ghost-text) !important;
}

html[data-theme="light"] body.route-marketing .ghost:hover:not(:disabled),
html[data-theme="dark"] body.route-marketing .ghost:hover:not(:disabled),
html[data-theme="light"] body.route-marketing button.ghost.lb-pager-btn:hover:not(:disabled),
html[data-theme="dark"] body.route-marketing button.ghost.lb-pager-btn:hover:not(:disabled),
html[data-theme="light"] body.route-marketing .intel-list-cta:hover,
html[data-theme="dark"] body.route-marketing .intel-list-cta:hover {
  background: var(--rms-ghost-hover-bg) !important;
  border-color: rgba(232, 160, 213, 0.45) !important;
  color: var(--rms-link-hover) !important;
}

/* ── Category pills ───────────────────────────────────────── */
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-cat-pill,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-cat-pill {
  background: var(--rms-pill-bg) !important;
  border-color: var(--rms-pill-border) !important;
  color: var(--rms-pill-text) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-cat-pill.is-active,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-cat-pill.is-active {
  background: var(--rms-pill-active-bg) !important;
  border-color: transparent !important;
  color: var(--rms-pill-active-text) !important;
}

/* ── Tabs ─────────────────────────────────────────────────── */
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-tabs,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-tabs {
  border-bottom-color: var(--rms-mkt-card-border) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-tab,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-tab {
  color: var(--rms-tab-muted) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-tab.is-active,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-tab.is-active {
  color: var(--rms-tab-active) !important;
  border-bottom-color: var(--rms-tab-active-border) !important;
}

/* ── Leaderboard metrics & stats ──────────────────────────── */
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-metrics .lb-metric,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-metrics .lb-metric,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-metric-muted,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-metric-muted,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-stat,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-stat {
  background: var(--rms-mkt-inset) !important;
  border-color: var(--rms-mkt-card-border) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-metric-val,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-metric-val,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-stat-val,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-stat-val,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-hero .marketing-title,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-hero .marketing-title {
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-metric-lbl,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-metric-lbl,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-stat-lbl,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-stat-lbl,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-stat-sub,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-stat-sub,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-hero-sub,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-hero-sub,
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-live-pill,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-live-pill {
  color: var(--rms-text-soft) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-hero-accent,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-hero-accent {
  color: var(--rms-gold) !important;
}

/* ── Table rows ───────────────────────────────────────────── */
html[data-theme="light"] body.route-marketing .intel-table thead th,
html[data-theme="dark"] body.route-marketing .intel-table thead th {
  background: var(--rms-mkt-inset) !important;
  border-bottom-color: var(--rms-mkt-card-border) !important;
}

html[data-theme="light"] body.route-marketing .intel-table tbody td,
html[data-theme="dark"] body.route-marketing .intel-table tbody td {
  border-bottom-color: var(--rms-mkt-card-border) !important;
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing .intel-table-row:hover td,
html[data-theme="dark"] body.route-marketing .intel-table-row:hover td {
  background: var(--rms-gold-soft) !important;
}

html[data-theme="light"] body.route-marketing .intel-metric strong,
html[data-theme="dark"] body.route-marketing .intel-metric strong {
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing .intel-error,
html[data-theme="dark"] body.route-marketing .intel-error {
  color: var(--rms-danger) !important;
}

/* ── Brief report internals ───────────────────────────────── */
html[data-theme="light"] body.route-marketing .marketing-page-intel-brief,
html[data-theme="dark"] body.route-marketing .marketing-page-intel-brief {
  background: transparent !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-overall,
html[data-theme="dark"] body.route-marketing .intel-brief-overall,
html[data-theme="light"] body.route-marketing .intel-brief-scorecard,
html[data-theme="dark"] body.route-marketing .intel-brief-scorecard,
html[data-theme="light"] body.route-marketing .intel-brief-growth,
html[data-theme="dark"] body.route-marketing .intel-brief-growth,
html[data-theme="light"] body.route-marketing .intel-brief-competitors,
html[data-theme="dark"] body.route-marketing .intel-brief-competitors {
  border-color: var(--rms-mkt-card-border) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-service-row,
html[data-theme="dark"] body.route-marketing .intel-brief-service-row {
  background: var(--rms-mkt-inset) !important;
  color: var(--rms-text-soft) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-bar-track,
html[data-theme="dark"] body.route-marketing .intel-brief-bar-track {
  background: var(--rms-mkt-inset) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-cta,
html[data-theme="dark"] body.route-marketing .intel-brief-cta {
  border-color: rgba(232, 160, 213, 0.35) !important;
  background: var(--rms-mkt-card-bg) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-cta-price,
html[data-theme="dark"] body.route-marketing .intel-brief-cta-price {
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-cta-actions .intel-offer-pay-btn,
html[data-theme="dark"] body.route-marketing .intel-brief-cta-actions .intel-offer-pay-btn {
  background: var(--rms-cta-pay-bg) !important;
  color: var(--rms-cta-pay-text) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-score-label,
html[data-theme="dark"] body.route-marketing .intel-brief-score-label {
  color: var(--rms-text-soft) !important;
}

/* Score badge colors stay semantic in both themes */
html[data-theme="light"] body.route-marketing .intel-brief-badge--success,
html[data-theme="dark"] body.route-marketing .intel-brief-badge--success {
  background: rgba(52, 211, 153, 0.15) !important;
  color: var(--rms-score-good) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-badge--warning,
html[data-theme="dark"] body.route-marketing .intel-brief-badge--warning {
  background: rgba(251, 191, 36, 0.15) !important;
  color: var(--rms-score-fair) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-badge--danger,
html[data-theme="dark"] body.route-marketing .intel-brief-badge--danger {
  background: rgba(248, 113, 113, 0.12) !important;
  color: var(--rms-score-weak) !important;
}

html[data-theme="light"] body.route-marketing .intel-brief-competitors-lock,
html[data-theme="dark"] body.route-marketing .intel-brief-competitors-lock {
  background: color-mix(in srgb, var(--rms-bg-card) 82%, transparent) !important;
}

/* ── Popovers & menus ─────────────────────────────────────── */
html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card-menu-popover,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card-menu-popover {
  background: var(--rms-bg-card-2) !important;
  border-color: var(--rms-mkt-card-border) !important;
  box-shadow: var(--rms-shadow-soft) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card-menu-item,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card-menu-item {
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing.route-leaderboard .lb-card-menu-item:hover,
html[data-theme="dark"] body.route-marketing.route-leaderboard .lb-card-menu-item:hover {
  background: var(--rms-gold-soft) !important;
}

/* ── Contact modal ────────────────────────────────────────── */
html[data-theme="light"] body.route-marketing .marketing-contact-modal-panel,
html[data-theme="dark"] body.route-marketing .marketing-contact-modal-panel {
  background: var(--rms-mkt-card-bg) !important;
  border-color: var(--rms-mkt-card-border) !important;
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing .marketing-contact-modal-title,
html[data-theme="dark"] body.route-marketing .marketing-contact-modal-title {
  color: var(--rms-text) !important;
}

html[data-theme="light"] body.route-marketing .marketing-contact-modal-lead,
html[data-theme="dark"] body.route-marketing .marketing-contact-modal-lead {
  color: var(--rms-text-soft) !important;
}

/* ── Analysis admin tabs (Maps → report) ─────────────────── */
.intel-analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.intel-analysis-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-border, rgba(0, 0, 0, 0.12));
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--panel, #fff) 88%, transparent);
}

.intel-analysis-tab.is-active {
  border-color: color-mix(in srgb, var(--accent, #c45c26) 55%, transparent);
  background: color-mix(in srgb, var(--accent, #c45c26) 12%, var(--panel, #fff));
}

.intel-map-generate-panel {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.intel-map-generate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ── Zoca-style desktop homepage sections ───────────────── */
@keyframes rmsFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rmsGlowDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(18px, 12px) scale(1.08);
  }
}

@keyframes rmsAccentPulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes rmsPillFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.rms-overview-desktop {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  max-width: 1180px;
  margin: 0 auto;
}

.rms-overview-desktop > section,
.rms-overview-desktop > .card,
.rms-overview-desktop > footer {
  animation: rmsFadeUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rms-overview-desktop > *:nth-child(1) {
  animation-delay: 0.04s;
}

.rms-overview-desktop > *:nth-child(2) {
  animation-delay: 0.1s;
}

.rms-overview-desktop > *:nth-child(3) {
  animation-delay: 0.16s;
}

.rms-overview-desktop > *:nth-child(4) {
  animation-delay: 0.22s;
}

.rms-overview-desktop > *:nth-child(5) {
  animation-delay: 0.28s;
}

.rms-overview-desktop > *:nth-child(6) {
  animation-delay: 0.34s;
}

.rms-overview-desktop > *:nth-child(7) {
  animation-delay: 0.4s;
}

.rms-overview-desktop > *:nth-child(8) {
  animation-delay: 0.46s;
}

.rms-overview-desktop > *:nth-child(9) {
  animation-delay: 0.52s;
}

@media (prefers-reduced-motion: reduce) {
  .rms-overview-desktop > section,
  .rms-overview-desktop > .card,
  .rms-overview-desktop > footer,
  .marketing-zoca-hero-glow,
  .marketing-hero-benefit-pill,
  .marketing-stat-accent,
  .marketing-hero-rotate-track {
    animation: none !important;
    transition: none !important;
  }

  .marketing-agent-card:hover,
  .marketing-stat-card:hover {
    transform: none !important;
  }
}

.marketing-zoca-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 60px) clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(123, 110, 246, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(232, 160, 213, 0.24), transparent 32%),
    linear-gradient(165deg, color-mix(in srgb, var(--rms-mkt-card-bg, #1a1338) 100%, transparent), color-mix(in srgb, var(--rms-mkt-card-bg, #14102e) 100%, transparent));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.2);
}

.marketing-zoca-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.45;
}

.marketing-zoca-hero-glow--left {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -60px;
  background: rgba(232, 160, 213, 0.35);
  animation: rmsGlowDrift 9s ease-in-out infinite alternate;
}

.marketing-zoca-hero-glow--right {
  width: 320px;
  height: 320px;
  top: -40px;
  right: -80px;
  background: rgba(232, 160, 213, 0.28);
  animation: rmsGlowDrift 11s ease-in-out infinite alternate-reverse;
}

.marketing-zoca-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 18px;
}

.marketing-hero-rotate-headline {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  margin: 0;
  width: 100%;
}

.marketing-hero-rotate-lead {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.marketing-hero-rotate-tail {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.marketing-hero-rotate-slot {
  position: relative;
  display: block;
  width: min(100%, 720px);
  height: clamp(2.4rem, 5.5vw, 3.6rem);
  overflow: hidden;
  margin: 0.15rem auto 0;
}

.marketing-hero-rotate-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.marketing-hero-rotate-item {
  flex: 0 0 100%;
  height: clamp(2.4rem, 5.5vw, 3.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4.8vw, 3.15rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(118deg, #f4a8c7 0%, #d98be0 55%, #b15cc7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(177, 92, 199, 0.32));
}

.marketing-hero-rotate-headline--mobile .marketing-hero-rotate-lead,
.marketing-hero-rotate-headline--mobile .marketing-hero-rotate-tail {
  font-size: clamp(0.95rem, 3.8vw, 1.12rem);
}

.marketing-hero-rotate-headline--mobile .marketing-hero-rotate-slot {
  height: clamp(2rem, 8vw, 2.6rem);
  width: 100%;
}

.marketing-hero-rotate-headline--mobile .marketing-hero-rotate-item {
  height: clamp(2rem, 8vw, 2.6rem);
  font-size: clamp(1.45rem, 6.8vw, 2rem);
  white-space: normal;
  line-height: 1.08;
}

html[data-theme="light"] .marketing-hero-rotate-lead,
html[data-theme="light"] .marketing-hero-rotate-tail {
  color: rgba(21, 21, 21, 0.82);
}

html[data-theme="light"] .marketing-hero-rotate-item {
  background: linear-gradient(118deg, #6b3a8a 0%, #b15cc7 42%, #d98be0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marketing-hero-benefit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.marketing-hero-benefit-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 160, 213, 0.28);
  background: linear-gradient(135deg, rgba(232, 160, 213, 0.14), rgba(255, 255, 255, 0.04));
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.marketing-hero-benefit-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.marketing-hero-benefit-pill:nth-child(1) {
  animation: rmsPillFloat 5s ease-in-out infinite;
}

.marketing-hero-benefit-pill:nth-child(2) {
  animation: rmsPillFloat 5s ease-in-out 0.6s infinite;
}

.marketing-hero-benefit-pill:nth-child(3) {
  animation: rmsPillFloat 5s ease-in-out 1.2s infinite;
}

.marketing-hero-benefit-pill:nth-child(1) {
  border-color: rgba(123, 110, 246, 0.35);
  background: linear-gradient(135deg, rgba(123, 110, 246, 0.16), rgba(255, 255, 255, 0.03));
}

.marketing-hero-benefit-pill:nth-child(2) {
  border-color: rgba(232, 160, 213, 0.35);
}

.marketing-hero-benefit-pill:nth-child(3) {
  border-color: rgba(232, 160, 213, 0.35);
  background: linear-gradient(135deg, rgba(232, 160, 213, 0.14), rgba(255, 255, 255, 0.03));
}

.marketing-zoca-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.marketing-zoca-primary-cta {
  min-width: 220px;
  min-height: 54px;
  font-size: 1rem;
  box-shadow:
    0 18px 40px rgba(177, 92, 199, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.marketing-zoca-secondary-cta {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.rms-overview-desktop .marketing-hero-brief-trust {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rms-overview-desktop .marketing-trust-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.rms-overview-desktop .marketing-trust-list--brief {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rms-overview-desktop .marketing-trust-item {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.rms-overview-desktop .marketing-trust-item::before {
  display: none;
}

.marketing-results-stats {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(232, 160, 213, 0.14), transparent 42%),
    color-mix(in srgb, var(--rms-mkt-card-bg, #111) 96%, transparent);
}

.marketing-results-stats-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.marketing-results-stats-head .marketing-section-title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.12;
}

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

.marketing-stat-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 30px 18px 26px;
  border-radius: 24px;
  border: 1px solid var(--rms-mkt-card-border, rgba(255, 255, 255, 0.1));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    color-mix(in srgb, var(--rms-mkt-card-bg, #111) 94%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.marketing-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.marketing-stat-accent {
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--rms-gold, #e8a0d5), transparent);
  animation: rmsAccentPulse 3.2s ease-in-out infinite;
}

.marketing-stat-card:nth-child(1) .marketing-stat-accent {
  background: linear-gradient(90deg, transparent, #c89fe0, transparent);
}

.marketing-stat-card:nth-child(3) .marketing-stat-accent {
  background: linear-gradient(90deg, transparent, #d98be0, transparent);
}

.marketing-stat-value {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f4a8c7 0%, #e8a0d5 55%, #b15cc7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marketing-stat-label {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rms-text-soft, rgba(255, 255, 255, 0.72));
}

.marketing-agents-section,
.marketing-testimonials,
.marketing-growth-form,
.marketing-final-cta,
.marketing-faq {
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 24px;
}

.rms-overview-desktop .marketing-section.marketing-digital-human {
  border-radius: 24px;
  overflow: hidden;
}

.marketing-agents-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(123, 110, 246, 0.18), transparent 48%),
    color-mix(in srgb, var(--rms-mkt-card-bg, #111) 96%, transparent);
}

.marketing-agents-head,
.marketing-testimonials-head {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.marketing-agents-head .marketing-section-title,
.marketing-testimonials-head .marketing-section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.marketing-agents-body,
.marketing-growth-form-body {
  margin: 14px auto 0;
  max-width: 62ch;
  color: var(--rms-text-soft);
  line-height: 1.75;
}

.marketing-agents-grid,
.marketing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.marketing-agent-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 300px;
  border-radius: 22px;
  border: 1px solid var(--rms-mkt-card-border, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--rms-mkt-card-bg, #111) 94%, transparent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.marketing-agent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}

.marketing-agent-visual {
  position: relative;
  min-height: 148px;
  padding: 22px 22px 0;
}

.marketing-agent-step {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.marketing-agent-glow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.75;
}

.marketing-agent-icon {
  position: absolute;
  right: 22px;
  bottom: 8px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.marketing-agent-icon::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 12px;
  background: currentColor;
  opacity: 0.9;
}

.marketing-agent-card--visibility {
  border-color: rgba(111, 168, 255, 0.28);
}

.marketing-agent-card--visibility .marketing-agent-glow {
  background: rgba(111, 168, 255, 0.55);
}

.marketing-agent-card--visibility .marketing-agent-icon {
  color: #6fa8ff;
}

.marketing-agent-card--visibility .marketing-agent-icon::before {
  clip-path: polygon(50% 8%, 92% 34%, 78% 88%, 22% 88%, 8% 34%);
}

.marketing-agent-card--convert {
  border-color: rgba(227, 196, 101, 0.32);
}

.marketing-agent-card--convert .marketing-agent-glow {
  background: rgba(227, 196, 101, 0.5);
}

.marketing-agent-card--convert .marketing-agent-icon {
  color: #e8a0d5;
}

.marketing-agent-card--convert .marketing-agent-icon::before {
  border-radius: 999px;
}

.marketing-agent-card--retain {
  border-color: rgba(167, 139, 250, 0.3);
}

.marketing-agent-card--retain .marketing-agent-glow {
  background: rgba(167, 139, 250, 0.48);
}

.marketing-agent-card--retain .marketing-agent-icon {
  color: #a78bfa;
}

.marketing-agent-card--retain .marketing-agent-icon::before {
  clip-path: polygon(50% 0%, 100% 36%, 82% 100%, 18% 100%, 0% 36%);
}

.marketing-agent-content {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 22px 24px;
}

.marketing-agent-name {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.marketing-agent-tagline,
.marketing-testimonial-quote {
  margin: 0;
  color: var(--rms-text-soft);
  line-height: 1.7;
}

.marketing-agent-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.marketing-testimonials {
  background:
    radial-gradient(circle at 0% 100%, rgba(227, 196, 101, 0.08), transparent 40%),
    color-mix(in srgb, var(--rms-mkt-card-bg, #111) 96%, transparent);
}

.marketing-testimonial-card {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: 24px;
  border: 1px solid var(--rms-mkt-card-border, rgba(255, 255, 255, 0.1));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    color-mix(in srgb, var(--rms-mkt-card-bg, #111) 92%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.marketing-testimonial-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(227, 196, 101, 0.18);
  font-family: Georgia, serif;
}

.marketing-testimonial-quote {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
}

.marketing-testimonial-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 16px;
}

.marketing-testimonial-metric {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.marketing-testimonial-metric strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f4a8c7, #e8a0d5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marketing-testimonial-metric span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rms-text-muted);
}

.marketing-testimonial-footer {
  display: grid;
  gap: 4px;
  font-style: normal;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marketing-testimonial-footer cite {
  font-weight: 800;
  font-style: normal;
}

.marketing-growth-form {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
  background:
    radial-gradient(circle at 100% 0%, rgba(227, 196, 101, 0.12), transparent 38%),
    color-mix(in srgb, var(--rms-mkt-card-bg, #111) 96%, transparent);
}

.marketing-growth-form-copy .marketing-section-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.marketing-growth-form-shell .marketing-hero-brief-form {
  margin: 0;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.marketing-final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 4vw, 44px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(227, 196, 101, 0.16), rgba(111, 168, 255, 0.08)),
    color-mix(in srgb, var(--rms-mkt-card-bg, #111) 94%, transparent);
  border: 1px solid rgba(227, 196, 101, 0.22);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.marketing-final-cta-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.marketing-final-cta-body {
  margin: 0;
  color: var(--rms-text-soft);
  max-width: 52ch;
  line-height: 1.7;
}

.marketing-final-cta-btn {
  min-width: 240px;
  min-height: 56px;
  font-size: 1rem;
}

.marketing-faq-title {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.marketing-faq-list {
  display: grid;
  gap: 12px;
}

.marketing-faq-item {
  border-radius: 18px;
  border: 1px solid var(--rms-mkt-card-border, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--rms-mkt-card-bg, #111) 92%, transparent);
  padding: 0 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.marketing-faq-item[open] {
  border-color: rgba(227, 196, 101, 0.24);
  background: linear-gradient(180deg, rgba(227, 196, 101, 0.06), transparent);
}

.marketing-faq-question {
  cursor: pointer;
  font-weight: 800;
  padding: 18px 0;
  list-style: none;
}

.marketing-faq-question::-webkit-details-marker {
  display: none;
}

.marketing-faq-answer {
  margin: 0 0 18px;
  color: var(--rms-text-soft);
  line-height: 1.7;
}

html[data-theme="light"] .marketing-zoca-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 168, 255, 0.14), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(227, 196, 101, 0.16), transparent 32%),
    linear-gradient(165deg, rgba(255, 252, 242, 0.98), rgba(249, 244, 232, 0.98));
}

html[data-theme="light"] .marketing-stat-value,
html[data-theme="light"] .marketing-testimonial-metric strong {
  background: linear-gradient(135deg, #8c3aad 0%, #b15cc7 55%, #6b3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .marketing-agent-card,
html[data-theme="light"] .marketing-stat-card,
html[data-theme="light"] .marketing-testimonial-card {
  box-shadow: 0 16px 42px rgba(80, 66, 35, 0.12);
}

.about-page-inline-cta {
  margin-top: 20px;
}

.about-page-cta-actions {
  display: grid;
  gap: 14px;
  align-content: start;
}

.about-page-cta-primary {
  width: 100%;
}

/* ── Services page tier tabs (SPA + static) ─────────────── */
.services-page .services-content {
  margin: 18px 0 42px;
}

.services-page .services-hero {
  padding: 34px 36px;
  margin-bottom: 14px;
}

.services-page .services-kicker {
  margin: 0 0 10px;
  color: var(--rms-kicker, #8fb6e6);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-page .services-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.services-page .services-hero p {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--rms-text-soft);
  line-height: 1.75;
  font-size: 14px;
}

.services-page .tier-tabs-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.services-page .tier-tab-card {
  position: relative;
  overflow: hidden;
  min-height: 265px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--rms-mkt-card-border, rgba(117, 149, 208, 0.14));
  background: linear-gradient(180deg, color-mix(in srgb, var(--rms-mkt-card-bg, #111c2d) 100%, transparent), color-mix(in srgb, var(--rms-mkt-card-bg, #0b1322) 100%, transparent));
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--rms-mkt-card-shadow, 0 14px 40px rgba(0, 0, 0, 0.22));
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  font-family: inherit;
}

.services-page .tier-tab-card:hover,
.services-page .tier-tab-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(230, 195, 95, 0.32);
}

.services-page .tier-tab-card.popular {
  border-color: rgba(230, 195, 95, 0.36);
}

.services-page .popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6c35f, #f2dfa1);
  color: #07101c;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-page .tab-bg {
  position: absolute;
  right: -18px;
  bottom: 10px;
  width: 76%;
  height: 130px;
  border-radius: 22px;
  overflow: hidden;
  opacity: 0.22;
}

.services-page .tier-tab-card.popular .tab-bg {
  opacity: 0.34;
}

.services-page .tab-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-page .tab-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 28, 45, 0.92), transparent);
}

.services-page .tab-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 229px;
}

.services-page .tab-tier {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(143, 182, 230, 0.13);
  color: #a8c9f0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-page .tier-tab-card h2 {
  margin: 16px 0 8px;
  font-size: 22px;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.services-page .tier-tab-card p {
  margin: 0;
  max-width: 92%;
  color: var(--rms-text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.services-page .tab-price {
  margin-top: auto;
  color: var(--rms-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.services-page .tab-price strong {
  color: var(--rms-gold, #e6c35f);
  font-size: 20px;
  margin-left: 4px;
}

.services-page .tier-detail-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.services-page .detail-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.services-page .detail-text {
  margin: 12px 0 0;
  color: var(--rms-text-soft);
  line-height: 1.7;
  font-size: 13px;
}

.services-page .detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.services-page .detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8a0d5, #d98be0);
  color: #07101c;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.services-page .detail-contact-cta {
  min-height: 44px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
}

.services-page .detail-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.services-page .detail-products a {
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 1120px) {
  .marketing-agents-grid,
  .marketing-testimonials-grid,
  .marketing-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-growth-form {
    grid-template-columns: 1fr;
  }

  .services-page .tier-tabs-row {
    grid-template-columns: 1fr 1fr;
  }

  .services-page .tier-detail-panel {
    grid-template-columns: 1fr;
  }

  .services-page .detail-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .marketing-stats-grid,
  .marketing-agents-grid,
  .marketing-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .services-page .tier-tabs-row {
    grid-template-columns: 1fr;
  }

  .services-page .tier-detail-panel {
    display: none !important;
  }

  .services-page .tier-tab-card::after {
    content: "Tap to open →";
    position: relative;
    z-index: 3;
    display: inline-flex;
    margin-top: 14px;
    color: var(--rms-gold, #e6c35f);
    font-size: 13px;
    font-weight: 900;
  }
}
