/* ————————————————————————————————————————————————————————————————
   King AI · Static SEO page theming
   Loaded AFTER each page's inline <style>. The inline styles remain the
   default (dark) look; the rules below layer a light theme on top when
   <html> carries the `light` class, and style the shared header controls
   (language switcher + theme toggle) that mirror the main React site.
   ———————————————————————————————————————————————————————————————— */

/* ————————————————————————— Shared header controls ————————————————————————— */

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 26%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px rgba(1, 107, 255, 0.35);
}

.seo-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 9px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.seo-lang:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.seo-lang > svg {
  width: 14px;
  height: 14px;
  color: #7fb2ff;
  flex-shrink: 0;
  pointer-events: none;
}

.seo-lang select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Native dropdown menus render on a light surface on most platforms, so
   keep option text dark regardless of the page theme. */
.seo-lang select option {
  color: #0b1220;
  background: #ffffff;
}

.seo-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.seo-theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.seo-theme-toggle svg {
  width: 14px;
  height: 14px;
  color: #7fb2ff;
  flex-shrink: 0;
}

/* Legal pages get a compact top bar for the brand + theme toggle. */
.seo-legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.seo-legal-bar .back {
  margin-bottom: 0;
  align-items: center;
  gap: 12px;
  font-family: "FSP DEMO - PODIUM Sharp 4.11", Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
}

/* ——————————————————————————— Light theme ——————————————————————————— */

html.light .seo-lang,
html.light .seo-theme-toggle {
  border-color: rgba(2, 6, 23, 0.16);
  background: rgba(2, 6, 23, 0.04);
}

html.light .seo-lang:hover,
html.light .seo-theme-toggle:hover {
  border-color: rgba(2, 6, 23, 0.4);
}

html.light .seo-lang > svg,
html.light .seo-theme-toggle svg {
  color: #016bff;
}

/* Marketing pages ------------------------------------------------------- */

html.light body.seo {
  background: #f7f8fb;
  color: #0b1220;
}

/* The header wrapper stays transparent; the floating pill (.bar) carries the
   translucent surface in both themes. */
html.light body.seo header {
  background: transparent;
  border-bottom-color: transparent;
}

html.light body.seo header .bar {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(2, 6, 23, 0.06);
  box-shadow: none;
}

html.light body.seo header .bar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(2, 6, 23, 0.1);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.14);
}

html.light body.seo .brand .crown {
  border-color: rgba(2, 6, 23, 0.16);
  background: rgba(2, 6, 23, 0.05);
}

html.light body.seo .btn {
  border-color: rgba(2, 6, 23, 0.16);
  background: rgba(2, 6, 23, 0.04);
  color: #0b1220;
}

html.light body.seo .btn:hover {
  border-color: rgba(2, 6, 23, 0.4);
}

/* Keep the primary CTA royal-blue with white text in both themes. The
   generic `.btn` light override above outranks the inline `.btn-primary`
   rule, so restore its fill/border/text here at matching specificity. */
html.light body.seo .btn-primary {
  background: #016bff;
  border-color: #016bff;
  color: #ffffff;
}

html.light body.seo .trust .chip {
  border-color: rgba(2, 6, 23, 0.12);
  background: rgba(2, 6, 23, 0.05);
  color: rgba(11, 18, 32, 0.74);
}

html.light body.seo section {
  border-top-color: rgba(2, 6, 23, 0.08);
}

html.light body.seo .lede {
  color: rgba(11, 18, 32, 0.74);
}

html.light body.seo .sub {
  color: rgba(11, 18, 32, 0.64);
}

html.light body.seo .muted {
  color: rgba(11, 18, 32, 0.62);
}

html.light body.seo .grad {
  background: linear-gradient(90deg, #016bff, #0b1220, #016bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.light body.seo .card {
  border-color: rgba(2, 6, 23, 0.1);
  background: rgba(2, 6, 23, 0.03);
}

html.light body.seo .card p {
  color: rgba(11, 18, 32, 0.62);
}

html.light body.seo .step {
  border-top-color: rgba(2, 6, 23, 0.08);
}

html.light body.seo .step .n {
  color: rgba(2, 6, 23, 0.26);
}

html.light body.seo .step p {
  color: rgba(11, 18, 32, 0.64);
}

html.light body.seo .faq details {
  border-color: rgba(2, 6, 23, 0.1);
  background: rgba(2, 6, 23, 0.03);
}

html.light body.seo .faq summary::after {
  color: rgba(2, 6, 23, 0.45);
}

html.light body.seo .faq p {
  color: rgba(11, 18, 32, 0.66);
}

html.light body.seo .crosslink {
  border-color: rgba(2, 6, 23, 0.1);
  background: rgba(2, 6, 23, 0.03);
}

html.light body.seo .crosslink:hover {
  border-color: rgba(2, 6, 23, 0.4);
}

html.light body.seo .crosslink p {
  color: rgba(11, 18, 32, 0.6);
}

html.light body.seo .band {
  background: linear-gradient(140deg, #eef2ff, #ffffff 45%, #f5f3ff);
  border-color: rgba(2, 6, 23, 0.1);
}

html.light body.seo .band p {
  color: rgba(11, 18, 32, 0.68);
}

html.light body.seo footer {
  border-top-color: rgba(2, 6, 23, 0.08);
}

html.light body.seo footer .row {
  color: rgba(11, 18, 32, 0.56);
}

html.light body.seo footer a:hover {
  color: #0b1220;
}

/* Legal pages ----------------------------------------------------------- */

html.light body.legal {
  background: #f7f8fb;
  color: #0b1220;
}

html.light body.legal a {
  color: #0b57d0;
}

html.light body.legal .back {
  color: #0b1220;
}

html.light body.legal p,
html.light body.legal li {
  color: rgba(11, 18, 32, 0.74);
}

html.light body.legal .eyebrow {
  color: rgba(11, 18, 32, 0.55);
}

html.light body.legal .meta {
  border-color: rgba(2, 6, 23, 0.14);
  background: rgba(2, 6, 23, 0.05);
  color: rgba(11, 18, 32, 0.7);
}

html.light body.legal .button {
  border-color: rgba(2, 6, 23, 0.18);
  background: rgba(2, 6, 23, 0.05);
  color: #0b1220;
}
