/* Standalone HTML pages use the same saved preference as the Next app.
   The original palettes remain the defaults; only the alternate mode is
   overridden. Brand media and colored actions keep their original contrast. */
.static-theme-toggle {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #55515f;
  border-radius: 999px;
  background: #212024;
  color: #f2f6fd;
  box-shadow: 0 4px 16px rgb(0 0 0 / 18%);
  font:
    500 14px/1.2 "Outfit",
    system-ui,
    sans-serif;
  cursor: pointer;
}
.static-theme-toggle[hidden] {
  display: none;
}
.static-theme-toggle:focus-visible {
  outline: 3px solid #8977ff;
  outline-offset: 3px;
}
.static-theme-toggle:hover {
  border-color: #8977ff;
}
.static-theme-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.static-theme-toggle .theme-moon {
  display: none;
}
:root.light .static-theme-toggle {
  background: #fff;
  color: #212024;
  border-color: #c5c1ce;
}
:root.light .static-theme-toggle .theme-sun {
  display: none;
}
:root.light .static-theme-toggle .theme-moon {
  display: block;
}

/* Prospecting, LinkedIn, intent, influencer and technographic campaigns. */
:root.light:is(
    [data-static-theme="campaign"],
    [data-static-theme="prospecting"]
  ) {
  --background: #f7f7fb;
  --background-lighter: #f0eff6;
  --surface: #ffffff;
  --surface-lighter: #eeedf5;
  --border: #d9d6e3;
  --border-light: #c4bfce;
  --text-primary: #19171f;
  --text-secondary: #514c60;
  --text-muted: #656071;
  --primary-light: #5b47d8;
  --accent-gold: #936a00;
  --accent-teal: #087d70;
  --accent-blue: #e7edf8;
}
:root.light:is(
    [data-static-theme="campaign"],
    [data-static-theme="prospecting"]
  )
  :is(.header, #navbar, #navbar.scrolled) {
  background: rgb(247 247 251 / 94%);
  border-color: var(--border);
}
:root.light[data-static-theme="campaign"] .hero {
  background: radial-gradient(
    ellipse at center,
    #e9e4ff 0%,
    var(--background) 100%
  );
}
:root.light:is(
    [data-static-theme="campaign"],
    [data-static-theme="prospecting"]
  )
  .hero-title {
  color: var(--text-primary);
}
:root.light:is(
    [data-static-theme="campaign"],
    [data-static-theme="prospecting"]
  )
  .gradient-orb {
  opacity: 0.12;
}
:root.light[data-static-theme="campaign"]
  :is(.platform-badge, .trust-badge, .btn-outline) {
  background: rgb(25 23 31 / 4%);
  border-color: var(--border);
}
:root.light[data-static-theme="campaign"]
  :is(.btn-outline:hover, .mode-option:not(.active):hover) {
  background: rgb(25 23 31 / 8%);
}
/* These labels sit on filled brand controls, so must stay white. */
:root.light[data-static-theme="campaign"]
  :is(.step-number, .pricing-popular, .mode-option.active) {
  color: #fff;
}

/* The three prospecting variants share a terminal/query-builder palette. */
:root.light[data-static-theme="prospecting"] {
  --primary: #087c9f;
  --primary-light: #086d8a;
  --terminal-bg: #ffffff;
  --terminal-border: #d9d6e3;
  --terminal-input-bg: #f3f2f8;
  --color-filter-bg: #eeedf5;
  --color-filter-text: #514c60;
  --color-filter-bg-hover: #e1deeb;
  --color-query-chip-bg: #e1deeb;
  --color-location: #087d5e;
  --color-industry: #936a00;
  --color-intent: #a52a70;
  --color-jobtitle: #2459b8;
  --color-technology: #08748b;
  --color-revenue: #507200;
  --color-headcount: #345fac;
}
:root.light[data-static-theme="prospecting"] .search-box::placeholder,
:root.light[data-static-theme="prospecting"] .context-textarea::placeholder,
:root.light[data-static-theme="prospecting"]
  .quiz-context-textarea::placeholder,
:root.light[data-static-theme="prospecting"] .query-area.empty::before,
:root.light[data-static-theme="prospecting"]
  .query-chip
  .chip-input::placeholder {
  color: var(--text-muted);
}
:root.light[data-static-theme="prospecting"]
  :is(.quiz-progress-track, .quiz-option-letter) {
  background: #e9e6f0;
  border-color: var(--border);
}
:root.light[data-static-theme="prospecting"]
  :is(.query-chip .chip-remove, .query-chip .chip-remove:hover) {
  color: var(--text-secondary);
}
:root.light[data-static-theme="prospecting"] .query-chip .chip-remove:hover {
  background: #d2cedf;
}
:root.light[data-static-theme="prospecting"]
  :is(.search-submit-btn, .btn-search) {
  background: var(--primary);
}
:root.light[data-static-theme="prospecting"]
  :is(.form-error, .quiz-error-text) {
  color: #b42335;
}
:root.light[data-static-theme="prospecting"] .stat-value {
  background: linear-gradient(
    180deg,
    var(--text-primary),
    var(--text-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
}
:root.light[data-static-theme="prospecting"] footer {
  background: var(--background-lighter);
}
:root.light[data-static-theme="prospecting"]
  :is(.footer-support a:hover, .footer-legal a:hover) {
  color: var(--text-primary);
}

/* Ready-to-sell and its booking confirmation use a separate legacy scale. */
:root.light[data-static-theme="rts"] {
  --black: #f7f7fb;
  --white: #19171f;
  --gray-100: #eeedf5;
  --gray-200: #e8e5ef;
  --gray-300: #d9d6e3;
  --gray-400: #656071;
  --gray-500: #656071;
  --gray-600: #514c60;
  --gray-700: #393443;
  --gray-800: #f0eff6;
  --gray-900: #19171f;
  --navy: #f0eff6;
  --primary-light: #5b47d8;
  --green: #087d50;
  --off-white: #656071;
}
:root.light[data-static-theme="rts"] body::before {
  background:
    radial-gradient(ellipse at 20% 30%, #e8e2ff, transparent 55%),
    radial-gradient(ellipse at 80% 70%, #e2f2fb, transparent 55%), #f7f7fb;
}
:root.light[data-static-theme="rts"] :is(header, header.scrolled) {
  background: rgb(247 247 251 / 96%);
  border-color: var(--gray-300);
}
:root.light[data-static-theme="rts"] :is(.logo img, .footer-logo img) {
  filter: brightness(0);
}
:root.light[data-static-theme="rts"]
  :is(
    .hero-description,
    .social-proof-text,
    .section-description,
    .platform-card p,
    .two-column-header p,
    .documents-tab h3,
    .features-tab-btn,
    .features-tab-list li,
    .testimonial-quote,
    .testimonial-author p,
    .coverage-desc,
    .faq-answer p,
    .cta-text > p,
    .cta-benefit,
    .cta-note,
    .footer-brand p,
    .footer-column a,
    .footer-copy,
    .nav-back,
    .thank-you-description,
    .step-text p,
    .confirmation-item,
    .footer-links a
  ) {
  color: var(--gray-600);
}
:root.light[data-static-theme="rts"]
  :is(
    .section-dark,
    .section-gray,
    .problem-section,
    .platform-overview-section,
    .how-it-works-section,
    .features-section-redesign,
    .testimonials-section,
    .faq-section,
    footer
  ) {
  background: rgb(235 232 244 / 55%);
}
:root.light[data-static-theme="rts"]
  :is(
    .platform-card.light,
    .features-tabs-container,
    .testimonial-card,
    .coverage-card,
    .faq-list,
    .next-steps-card
  ) {
  background: #ffffff;
  border-color: var(--gray-300);
}
:root.light[data-static-theme="rts"]
  :is(
    .hero-social-proof,
    .documents-tab,
    .documents-tab:first-child,
    .features-tab-image,
    .faq-item,
    .footer-bottom,
    .next-step-item,
    .btn-secondary
  ) {
  border-color: var(--gray-300);
}
:root.light[data-static-theme="rts"] :is(.social-proof-divider, .faq-icon) {
  background: var(--gray-300);
}
:root.light[data-static-theme="rts"] :is(.btn-primary, .nav-cta, .section-tag) {
  color: #fff;
}
:root.light[data-static-theme="rts"] :is(.btn-primary:hover, .nav-cta:hover) {
  color: var(--white);
}
:root.light[data-static-theme="rts"] .problem-card::before,
:root.light[data-static-theme="rts"] .cta-section::before {
  opacity: 0.06;
}
/* Desktop links inherit the header surface; the mobile drawer is opaque. */
:root.light[data-static-theme="rts"] .nav-menu {
  background: transparent;
}
@media (max-width: 768px) {
  :root.light[data-static-theme="rts"] .nav-menu {
    background: #f7f7fb;
  }
}
:root.light[data-static-theme="rts"] .btn-secondary {
  color: var(--white);
  border-color: var(--gray-300);
}
:root.light[data-static-theme="rts"] .btn-secondary:hover {
  color: var(--black);
  background: var(--white);
}

/* Document slides keep their photographic dark backgrounds. */
:root.light[data-static-theme="rts"] .documents-text {
  --white: #fff;
  color: #fff;
}

/* Original business-leads page: keep its yellow actions and media unchanged. */
:root.light[data-static-theme="business"] {
  --grey: #565161;
  --grey-dark: #eeedf5;
  --grey-darker: #f3f2f8;
  --placeholder-text: #656071;
  --border-color: #d9d6e3;
}
:root.light[data-static-theme="business"] :is(body, .go-page-container) {
  background: #f7f7fb;
  color: #19171f;
}
:root.light[data-static-theme="business"]
  :is(
    .feature-card,
    .testimonial-card,
    .testimonial-card:hover,
    .producthunt,
    footer
  ) {
  background: #eeedf5;
  border-color: var(--border-color);
}
:root.light[data-static-theme="business"]
  :is(.feature-card-heading, .testimonial-content, .go-page-input) {
  color: #19171f;
}
:root.light[data-static-theme="business"] .feature-card-description,
:root.light[data-static-theme="business"] .go-page-input::placeholder {
  color: #565161;
  opacity: 1;
}
:root.light[data-static-theme="business"] :is(.input-toggle, .trust-badge) {
  background: #e7e4f0;
}
:root.light[data-static-theme="business"] .go-page-input {
  background: #fff;
  border-color: var(--border-color);
}
:root.light[data-static-theme="business"] .highlight-text {
  color: #5b47d8;
}

/* Inactive input tabs inherit readable text while the selected tab stays white. */
:root.light[data-static-theme="business"] .toggle-option:not(.active) {
  color: #19171f;
}
:root.light[data-static-theme="prospecting"] .hero-title-highlight {
  background: linear-gradient(135deg, #086d8a, #087c9f);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Shared Pearl Diver playbooks are light by default, with deliberate dark
   sidebar and hero panels. Only their paper/ink palette changes in dark mode. */
:root.dark[data-static-theme="playbook"] {
  --paper: #121822;
  --tint: #192232;
  --tint-2: #222e43;
  --ink-1: #f0f4fc;
  --ink-2: #c2cddd;
  --ink-3: #a0afc6;
  --line: #344155;
  --line-2: #45546c;
  --accent: #81b3ff;
  --accent-ink: #a3c8ff;
  --accent-tint: #203554;
  --accent-line: #456692;
  --danger-ink: #ffb6b6;
  --danger-bg: #39232b;
  --danger-line: #78404d;
}

@media print {
  .static-theme-toggle {
    display: none;
  }
  :root.dark[data-static-theme="playbook"] {
    --paper: #fff;
    --tint: #f5f7fa;
    --tint-2: #e9eef5;
    --ink-1: #091836;
    --ink-2: #494b5c;
    --ink-3: #68748a;
    --line: #e4ebf3;
    --line-2: #d3dce8;
    --accent-ink: #14459f;
  }
}
