/* ScanBeyond premium surface — electric blue, modern light & dark.
   Loaded after style.css. Brand accent: classic #0a84ff.
   Selectors beat style.css :root[data-theme="light"] / body rules. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;600;700&family=Onest:wght@400;500;600;700&display=swap");

:root,
:root[data-theme="light"],
html[data-theme="light"] {
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Onest", "Avenir Next", "Segoe UI", sans-serif;

  --ink: #0b1220;
  --ink-soft: #15233f;
  --mist: #eef4fb;
  --mist-deep: #e2ecf8;
  --paper: #f7faff;
  --blue: #0a84ff;
  --blue-deep: #0066d6;
  --blue-soft: #3d9eff;
  --line: rgba(15, 23, 42, 0.12);
  --muted-ink: rgba(15, 23, 42, 0.68);

  --bg-900: #e4eef9;
  --bg-800: #eef4fb;
  --bg-700: #f7faff;
  --panel: #ffffff;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(15, 23, 42, 0.1);
  --muted: rgba(15, 23, 42, 0.64);
  --text: #0b1220;
  --accent: #0a84ff;
  --accent-2: #0066d6;
  --radius: 12px;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --regional-border: rgba(10, 132, 255, 0.16);
  --regional-heading: #0b4f9c;
  --regional-card-bg: #ffffff;
  --regional-card-border: rgba(10, 132, 255, 0.14);
  --regional-title: #0b1220;
  --regional-text: rgba(15, 23, 42, 0.68);
  --regional-badge-bg: rgba(10, 132, 255, 0.1);
  --regional-badge-text: #0b4f9c;
  --regional-chevron: rgba(10, 132, 255, 0.55);
}

:root[data-theme="dark"],
html[data-theme="dark"] {
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Onest", "Avenir Next", "Segoe UI", sans-serif;

  --ink: #f4f7fb;
  --ink-soft: #dbe7f5;
  --mist: #070b14;
  --mist-deep: #0b1220;
  --paper: #0a101a;
  --blue: #3d9eff;
  --blue-deep: #0a84ff;
  --blue-soft: #7cc4ff;
  --line: rgba(226, 236, 248, 0.14);
  --muted-ink: rgba(226, 236, 248, 0.72);

  --bg-900: #05070c;
  --bg-800: #0b0f17;
  --bg-700: #121826;
  --panel: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --muted: rgba(226, 236, 248, 0.68);
  --text: #eef3f9;
  --accent: #0a84ff;
  --accent-2: #3d9eff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --regional-border: rgba(10, 132, 255, 0.22);
  --regional-heading: #8ab4ff;
  --regional-card-bg: rgba(255, 255, 255, 0.03);
  --regional-card-border: rgba(10, 132, 255, 0.2);
  --regional-title: #f4f7fb;
  --regional-text: rgba(226, 236, 248, 0.7);
  --regional-badge-bg: rgba(10, 132, 255, 0.18);
  --regional-badge-text: #8ab4ff;
  --regional-chevron: rgba(61, 158, 255, 0.65);
}

/* Document scroll (style.css contain:paint pins scroll otherwise) */
html {
  contain: none !important;
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
}

body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

html,
body,
:root[data-theme="light"] body,
html[data-theme="light"] body,
[data-theme="light"] body {
  font-family: var(--font-body) !important;
  background:
    radial-gradient(110% 70% at 8% -12%, rgba(10, 132, 255, 0.16), transparent 44%),
    radial-gradient(90% 60% at 96% 0%, rgba(61, 158, 255, 0.1), transparent 46%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 55%, var(--mist-deep) 100%) !important;
  color: var(--text);
}

:root[data-theme="dark"],
:root[data-theme="dark"] body,
html[data-theme="dark"],
html[data-theme="dark"] body,
[data-theme="dark"] body {
  background:
    radial-gradient(110% 70% at 10% -10%, rgba(10, 132, 255, 0.2), transparent 42%),
    radial-gradient(80% 55% at 95% 4%, rgba(61, 158, 255, 0.12), transparent 48%),
    linear-gradient(180deg, #05070c 0%, #0b0f17 52%, #101624 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

html[data-theme="dark"] body::before {
  opacity: 0.16;
  mix-blend-mode: overlay;
}

html::before,
html::after,
body::after {
  display: none !important;
}

header,
.premium-hero,
main.container,
.directory-section,
.education-section,
.trust-bar-section,
.home-after-hero {
  position: relative;
  z-index: 1;
}

/* —— Header —— */
header {
  position: sticky !important;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.1);
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}

html.premium-header-solid header {
  background: rgba(247, 250, 255, 0.92) !important;
  border-bottom-color: var(--line) !important;
}

html[data-theme="dark"].premium-header-solid header {
  background: rgba(8, 12, 20, 0.9) !important;
}

html:not(.premium-header-solid) .logo,
html:not(.premium-header-solid) #appName,
html:not(.premium-header-solid) .header-auth-link,
html:not(.premium-header-solid) .theme-toggle,
html:not(.premium-header-solid) .header-greeting {
  color: #f8fbff !important;
}

html:not(.premium-header-solid) #appName,
html:not(.premium-header-solid) .brand-text strong {
  background: none !important;
  -webkit-text-fill-color: #f8fbff !important;
  color: #f8fbff !important;
  animation: none !important;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}

html.premium-header-solid #appName,
html.premium-header-solid .brand-text strong {
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
  color: var(--ink) !important;
  animation: none !important;
}

.electric-logo,
[data-theme="light"] .electric-logo,
.logo:hover .electric-logo {
  filter: none !important;
  color: var(--blue) !important;
}

html:not(.premium-header-solid) .electric-logo {
  color: #7cc4ff !important;
}

.header-auth-link,
.theme-toggle,
#headerLoginLink,
#headerSignupLink {
  border-radius: 10px !important;
}

html:not(.premium-header-solid) #headerLoginLink,
html:not(.premium-header-solid) .theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

html:not(.premium-header-solid) .header-auth-links {
  background: rgba(8, 18, 36, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 4px !important;
}

html:not(.premium-header-solid) #headerSignupLink {
  background: #ffffff !important;
  color: #0b1220 !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
}

html.premium-header-solid #headerSignupLink,
html[data-theme="light"].premium-header-solid #headerSignupLink {
  background: var(--blue) !important;
  color: #ffffff !important;
  border: 1px solid var(--blue-deep) !important;
  box-shadow: none !important;
}

html.premium-header-solid #headerLoginLink,
html[data-theme="light"].premium-header-solid #headerLoginLink {
  color: var(--ink-soft) !important;
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="dark"].premium-header-solid #headerLoginLink {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--ink) !important;
}

html[data-theme="light"].premium-header-solid .header-auth-links {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* —— Hero: one full-bleed composition —— */
.premium-hero {
  position: relative;
  min-height: 100svh;
  margin: -72px 0 0;
  padding: calc(72px + clamp(2.2rem, 7vh, 5rem)) clamp(1.25rem, 4vw, 2.75rem) clamp(2.6rem, 7vh, 4.5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.premium-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 50% at 78% 28%, rgba(61, 158, 255, 0.42), transparent 62%),
    radial-gradient(40% 38% at 18% 72%, rgba(10, 132, 255, 0.22), transparent 70%),
    linear-gradient(125deg, #040812 0%, #0a1a36 36%, #0a3d78 72%, #0a84ff 130%),
    url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.055'%3E%3Cpath d='M0 36h72M36 0v72'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, auto, 72px 72px;
  transform: scale(1.03);
  animation: premiumAtmosphereDrift 20s ease-in-out infinite alternate;
}

html[data-theme="light"] .premium-hero-atmosphere {
  background:
    radial-gradient(58% 52% at 82% 26%, rgba(124, 196, 255, 0.5), transparent 60%),
    radial-gradient(42% 40% at 12% 78%, rgba(10, 132, 255, 0.28), transparent 68%),
    linear-gradient(122deg, #071833 0%, #0a4a96 40%, #0a7ef0 78%, #4aa8ff 120%),
    url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.09'%3E%3Cpath d='M0 36h72M36 0v72'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, auto, 72px 72px;
}

.premium-hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.18) 0%, transparent 28%, transparent 72%, rgba(4, 8, 18, 0.35) 100%);
  pointer-events: none;
}

.premium-hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: -25% 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(124, 196, 255, 0.22) 48%,
    transparent 56%
  );
  animation: premiumScanSweep 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.premium-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.premium-hero-orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  right: -6%;
  top: 12%;
  background: radial-gradient(circle, rgba(124, 196, 255, 0.35) 0%, transparent 68%);
  animation: premiumOrbFloat 14s ease-in-out infinite alternate;
}

.premium-hero-orb--b {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  left: -4%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.28) 0%, transparent 70%);
  animation: premiumOrbFloat 17s ease-in-out infinite alternate-reverse;
}

.premium-hero-inner {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  text-align: left;
  color: #f5f8fa;
}

.premium-hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.85rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(4, 12, 28, 0.25);
  animation: premiumRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.premium-hero-brand::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #7cc4ff, #0a84ff 60%, transparent);
  transform-origin: left center;
  animation: premiumBrandLine 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.premium-hero .headline,
.premium-hero #headline,
html[data-theme="light"] .premium-hero .headline,
html[data-theme="light"] .premium-hero #headline,
html[data-theme="dark"] .premium-hero .headline {
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  max-width: 15ch;
  font-family: var(--font-display) !important;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem) !important;
  font-weight: 550 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  text-align: left !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #ffffff !important;
  animation: premiumRise 0.8s 0.06s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.premium-hero .headline-subtitle,
.premium-hero #headlineSubtitle {
  margin: 0 0 1.75rem !important;
  max-width: 32rem;
  font-family: var(--font-body) !important;
  font-size: clamp(1.05rem, 2vw, 1.22rem) !important;
  font-weight: 450 !important;
  line-height: 1.55 !important;
  color: rgba(232, 242, 255, 0.9) !important;
  text-align: left !important;
  animation: premiumRise 0.85s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.premium-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: premiumRise 0.9s 0.14s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.premium-hero-free {
  margin: 1rem 0 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(226, 236, 248, 0.78);
  animation: premiumRise 0.95s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.premium-hero-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.82rem 1.35rem;
  border-radius: 10px !important;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: none !important;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.premium-hero-mark {
  position: absolute;
  right: clamp(-1rem, 2vw, 4rem);
  top: 50%;
  width: min(44vw, 460px);
  height: min(44vw, 460px);
  transform: translateY(-48%);
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(61, 158, 255, 0.45), transparent 64%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' fill='none'%3E%3Cpath d='M100 12 L178 44 V110 C178 168 142 210 100 228 C58 210 22 168 22 110 V44 Z' stroke='%23ffffff' stroke-width='5.5'/%3E%3Cpath d='M68 118 L92 142 L136 90' stroke='%237cc4ff' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/68% no-repeat;
  animation: premiumMarkPulse 10s ease-in-out infinite;
}

@media (max-width: 860px) {
  .premium-hero-mark,
  .premium-hero-orb {
    display: none;
  }
}

.premium-hero-cta a:focus-visible {
  outline: 2px solid rgba(124, 196, 255, 0.95);
  outline-offset: 3px;
}

.premium-hero-cta a.primary,
.premium-hero-cta a.primary.primary {
  background: #ffffff !important;
  color: #0b1220 !important;
  border: 1px solid #ffffff !important;
}

.premium-hero-cta a.primary:hover {
  transform: translateY(-2px);
  background: #f0f7ff !important;
}

.premium-hero-cta a.secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.premium-hero-cta a.secondary:hover {
  transform: translateY(-2px);
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

@keyframes premiumAtmosphereDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(-1.4%, 1.2%, 0); }
}

@keyframes premiumScanSweep {
  0% { transform: translateY(-32%); opacity: 0; }
  16% { opacity: 1; }
  52% { opacity: 0.8; }
  100% { transform: translateY(58%); opacity: 0; }
}

@keyframes premiumRise {
  from {
    opacity: 0.01;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes premiumBrandLine {
  from {
    opacity: 0.2;
    transform: scaleX(0.35);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes premiumOrbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -4%, 0) scale(1.08); }
}

@keyframes premiumMarkPulse {
  0%, 100% { opacity: 0.18; transform: translateY(-48%) scale(1); }
  50% { opacity: 0.28; transform: translateY(-50%) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .premium-hero-atmosphere,
  .premium-hero-atmosphere::after,
  .premium-hero-brand,
  .premium-hero-brand::after,
  .premium-hero .headline,
  .premium-hero .headline-subtitle,
  .premium-hero-cta,
  .premium-hero-mark,
  .premium-hero-orb {
    animation: none !important;
  }
}

/* —— Listing invite (businesses / agencies) —— */
.listing-invite-section {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.75rem auto 2.5rem;
  padding: 1.6rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(10, 132, 255, 0.1), transparent 55%),
    #ffffff;
}

html[data-theme="dark"] .listing-invite-section {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(10, 132, 255, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.listing-invite-inner {
  display: grid;
  gap: 0.55rem;
  max-width: 42rem;
}

.listing-invite-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.listing-invite-copy {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.listing-invite-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.35rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  background: var(--blue);
  border: 1px solid var(--blue-deep);
  color: #ffffff !important;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.listing-invite-cta:hover {
  transform: translateY(-1px);
  background: var(--blue-deep);
}

.discovery-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.discovery-modal .subscribe-btn.secondary {
  background: transparent !important;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

/* Keep public pricing sections hidden if any remnant CSS surfaces them */
.pricing-section,
#pricingSection {
  display: none !important;
}

/* —— Below hero —— */
.home-after-hero {
  width: min(1100px, calc(100% - 2rem));
  margin: 2.85rem auto 0;
}

.home-after-hero .trust-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 2rem;
  margin: 0 0 2.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-after-hero .trust-value-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border-top: 2px solid rgba(10, 132, 255, 0.3) !important;
  padding-top: 1.05rem !important;
  transition: border-color 0.25s ease;
}

.home-after-hero .trust-value-card:hover {
  border-top-color: #0a84ff !important;
}

.home-after-hero .trust-value-index {
  font-family: var(--font-display);
  color: var(--blue-deep);
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-weight: 650;
  font-size: 0.95rem;
}

html[data-theme="dark"] .home-after-hero .trust-value-index {
  color: var(--blue-soft);
}

.home-after-hero .trust-value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.45rem;
}

.home-after-hero .trust-value-card p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-kb-search-wrap--top {
  margin: 0 0 1.9rem !important;
}

.home-kb-search-inner {
  border-radius: 12px !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
}

html[data-theme="dark"] .home-kb-search-inner {
  background: rgba(255, 255, 255, 0.04) !important;
}

.home-kb-search-input,
.home-kb-search-input::placeholder {
  color: var(--ink) !important;
}

.home-kb-search-input::placeholder {
  color: var(--muted-ink) !important;
  opacity: 1;
}

.home-kb-browse-link {
  color: var(--blue-deep) !important;
}

html[data-theme="dark"] .home-kb-browse-link {
  color: var(--blue-soft) !important;
}

.home-kb-quick-link {
  border-radius: 10px !important;
  box-shadow: none !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-soft) !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-kb-quick-link:hover {
  border-color: rgba(10, 132, 255, 0.4) !important;
  background: rgba(10, 132, 255, 0.06) !important;
  color: var(--blue-deep) !important;
  transform: translateY(-1px);
}

html[data-theme="dark"] .home-kb-quick-link {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--ink-soft) !important;
}

html[data-theme="dark"] .home-kb-quick-link:hover {
  background: rgba(10, 132, 255, 0.12) !important;
  color: #dbeafe !important;
}

/* —— Panels / CTAs —— */
main.container {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] main.container {
  background: rgba(255, 255, 255, 0.035) !important;
}

main.container:hover {
  transform: none !important;
}

.directory-section .directory-container,
.trusted-search-section .directory-container {
  background:
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.08), transparent 34%),
    var(--panel) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow) !important;
}

.directory-section h2,
.trusted-search-section h2,
.education-title,
.directory-subtitle,
.trusted-search-mode-hint {
  color: var(--ink) !important;
}

.directory-subtitle,
.trusted-search-mode-hint,
.local-business-helper-text,
.local-business-trust-copy {
  color: var(--muted-ink) !important;
}

.wisdom-quote,
[data-theme="light"] .wisdom-quote {
  color: rgba(15, 23, 42, 0.78) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .wisdom-quote,
[data-theme="dark"] .wisdom-quote {
  color: rgba(226, 236, 248, 0.78) !important;
}

.directory-section h2,
.trusted-search-section h2,
.education-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.025em;
}

.primary,
button.primary,
[data-theme="light"] button.primary,
[data-theme="light"] .primary,
.directory-btn,
#localBusinessSearchSubmit {
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.2) !important;
  background: linear-gradient(180deg, #1a8fff 0%, #0a84ff 55%, #0066d6 100%) !important;
  border: 1px solid #0066d6 !important;
  color: #ffffff !important;
}

.primary:hover,
button.primary:hover,
[data-theme="light"] button.primary:hover,
.directory-btn:hover {
  background: linear-gradient(180deg, #0a84ff 0%, #0066d6 100%) !important;
}

.trusted-search-mode {
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
  color: var(--ink-soft) !important;
}

.trusted-search-mode.is-active,
.trusted-search-mode[aria-selected="true"] {
  border-color: rgba(10, 132, 255, 0.45) !important;
  background: rgba(10, 132, 255, 0.1) !important;
  color: var(--blue-deep) !important;
}

html[data-theme="dark"] .trusted-search-mode {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--ink-soft) !important;
}

html[data-theme="dark"] .trusted-search-mode.is-active,
html[data-theme="dark"] .trusted-search-mode[aria-selected="true"] {
  background: rgba(10, 132, 255, 0.18) !important;
  color: #dbeafe !important;
}

.local-business-trust-badge {
  background: rgba(10, 132, 255, 0.12) !important;
  border-color: rgba(10, 132, 255, 0.28) !important;
  color: var(--blue-deep) !important;
}

html[data-theme="dark"] .local-business-trust-badge {
  color: #bfdbfe !important;
}

.local-business-field label,
.local-business-quick-picks-label {
  color: var(--ink-soft) !important;
}

.local-business-field input,
.directory-search input {
  color: var(--ink) !important;
  border-color: var(--line) !important;
  background: #ffffff !important;
}

html[data-theme="dark"] .local-business-field input,
html[data-theme="dark"] .directory-search input {
  background: rgba(8, 13, 28, 0.78) !important;
  color: var(--ink) !important;
}

.local-business-field input::placeholder,
.directory-search input::placeholder {
  color: var(--muted-ink) !important;
  opacity: 1;
}

.scan-mode-kicker,
.scan-mode-intro h3 {
  color: var(--ink) !important;
}

.scan-mode-intro p {
  color: var(--muted-ink) !important;
}

html[data-theme="light"] .scan-mode-panel {
  background: #ffffff !important;
  border-color: var(--line) !important;
}

html[data-theme="light"] .secondary-actions .secondary {
  color: var(--ink-soft) !important;
  border-color: var(--line) !important;
  background: #ffffff !important;
}

.chat-widget-launcher,
#chatWidgetLauncher,
button.chat-widget-toggle {
  background: var(--blue) !important;
  border-color: var(--blue-deep) !important;
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.22) !important;
}

@media (max-width: 800px) {
  .premium-hero {
    min-height: 100svh;
    place-items: center stretch;
    padding-top: calc(72px + 1.5rem);
    padding-bottom: 2.4rem;
  }

  .premium-hero-inner {
    width: 100%;
  }

  .home-after-hero .trust-value-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 520px) {
  .premium-hero-brand {
    font-size: clamp(2.55rem, 14vw, 3.5rem);
  }

  .premium-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .premium-hero-cta a {
    width: 100%;
  }
}
