/* Fliovoy — shared light/dark theme for the marketing site.
   Matches the app palette: matte lifted-black dark (default) + warm off-white
   light. Overrides each page's inline :root vars (both var sets — the
   midnight/white set used by most pages, and founder.html's navy/muted set).
   html[data-theme] beats the pages' :root on specificity. */

:root,
html[data-theme="dark"] {
  --midnight: #0c111e;
  --mid2: #141b2d;
  --mid3: #1c2438;
  --white: #dad4c8;            /* softened warm white (was #f5f0e8) */
  --gold: #cbae5c;             /* accent gold — readable on dark */
  --gold-l: #e0c87e;
  --gold-d: rgba(201, 168, 76, 0.15);
  --teal: #33c9b6;
  --teal-d: rgba(45, 212, 191, 0.12);
  --w60: rgba(218, 212, 200, 0.6);
  --w08: rgba(218, 212, 200, 0.08);
  --w07: rgba(218, 212, 200, 0.07);
  /* rgb bases for hardcoded rgba() spots converted to theme-aware */
  --white-rgb: 218, 212, 200;
  --bg-rgb: 12, 17, 30;
  --gold-rgb: 203, 174, 92;
  --teal-rgb: 51, 201, 182;
  /* founder.html set */
  --navy: #0c111e;
  --navy2: #1c2438;
  --muted: #9aa1b0;
  --dim: rgba(218, 212, 200, 0.72);
}

html[data-theme="light"] {
  --midnight: #f3eee4;         /* warm off-white page bg */
  --mid2: #ffffff;
  --mid3: #f6f1e8;
  --white: #24293a;            /* deep charcoal text */
  --gold: #7e6420;             /* darkened gold — clears AA as text on light (matches app) */
  --gold-l: #a07f2c;
  --gold-d: rgba(201, 168, 76, 0.16);
  --teal: #0b6e60;             /* darkened teal — readable as text on light */
  --teal-d: rgba(20, 150, 135, 0.1);
  --w60: rgba(36, 41, 58, 0.7); /* bumped from .62 so muted text clears AA 4.5 */
  --w08: rgba(36, 41, 58, 0.08);
  --w07: rgba(36, 41, 58, 0.06);
  --white-rgb: 36, 41, 58;
  --bg-rgb: 243, 238, 228;
  --gold-rgb: 138, 109, 36;
  --teal-rgb: 11, 110, 96;
  /* founder.html set */
  --navy: #f3eee4;
  --navy2: #eae2d2;
  --muted: #5a6472;
  --dim: rgba(36, 41, 58, 0.72);
}

/* Solid gold/teal buttons: their text is var(--midnight)/var(--navy) which flips
   to the light bg — force a vivid gold bg + fixed-dark text so they read in both
   modes. !important beats pages that set the text color !important (founder). */
html[data-theme="light"] .btn-gold,
html[data-theme="light"] .nav-cta,
html[data-theme="light"] .nav-cta-btn,
html[data-theme="light"] .hero-book a,
html[data-theme="light"] .price-cta-filled,
html[data-theme="light"] .rc.rec .rc-cta,
html[data-theme="light"] .lc-cta {
  background: #c9a84c !important;
  color: #12151f !important;
}
html[data-theme="light"] .btn-teal {
  background: #17a594 !important;
  color: #12151f !important;
}

/* Footer legal links stayed at bright teal in light — force the darkened teal. */
html[data-theme="light"] .footer-legal-link,
html[data-theme="light"] .footer-legal {
  color: var(--teal) !important;
}

/* Smooth theme change + toggle button (injected by theme.js). */
body {
  transition: background-color 0.25s ease, color 0.25s ease;
}
.flio-theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--w60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.flio-theme-toggle:hover {
  color: var(--gold);
}
.flio-theme-toggle svg {
  width: 19px;
  height: 19px;
}
.mob-menu .flio-theme-toggle {
  width: auto;
  height: auto;
  gap: 10px;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 300;
}
.mob-menu .flio-theme-toggle svg {
  width: 22px;
  height: 22px;
}
