/* Color vision palette, quick exit, and the phone tab bar.
   Loaded from the hub bundle and from /app pages. */

html[data-cv="on"] {
  color-scheme: light;
  --paper: #e7eef8;
  --cream: #f4f8fc;
  --ink: #071422;
  --ink-soft: #16324d;
  --terra: #c2410c;
  --plum: #0b3d75;
  --forest: #0c4a6e;
  --tone-cycle: #c2410c;
  --tone-fertility: #0b4f8c;
  --tone-pregnancy: #9a3412;
  --tone-postpartum: #b45309;
  --tone-pcos-perimenopause: #1d4e89;
  --tone-mental-wellness: #0f3a5f;
  --bg-abyss: #071422;
  --bg-deep: #0c1c30;
  --bg-card: #12304c;
  --bg: #071422;
  --card-bg: #12304c;
  --terracotta: #ff8a1e;
  --terracotta-glow: #ffc14d;
  --warm-gold: #ffb020;
  --gold-bright: #ffe08a;
  --cream-soft: #d9e7f6;
  --warm-white: #e7eef8;
  --text-dark: #071422;
  --text-muted: #1e3a52;
  --body-text: #f4f8fc;
  --muted: #d6e6f5;
  --rose: #ff8a1e;
  --rose-deep: #e36a00;
  --peach: #ffb020;
  --gold: #ffb020;
  --mint: #7ec8ff;
  --lavender: #ffd27a;
  --sky: #7ec8ff;
  --orchid: #ffd27a;
  --blush: #ffc14d;
  --border: rgba(255, 176, 32, 0.7);
  --border-hover: #ffb020;
}

html[data-cv="on"] body {
  background: #e7eef8;
  color: #071422;
}

html[data-cv="on"] a {
  color: #0b4f8c;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

html[data-cv="on"] .nav-brand,
html[data-cv="on"] .quick-exit,
html[data-cv="on"] .nav-cta,
html[data-cv="on"] .post-cta-btn,
html[data-cv="on"] .waitlist-btn,
html[data-cv="on"] .tabbar-link,
html[data-cv="on"] a.btn {
  text-decoration: none;
}

html[data-cv="on"] header.nav,
html[data-cv="on"] .tabbar {
  background: #071422 !important;
  color: #f4f8fc;
  border-color: #ff9f1c !important;
}

html[data-cv="on"] header.nav {
  border-bottom-color: #ff9f1c !important;
}

html[data-cv="on"] .tabbar {
  border-top-color: #ff9f1c !important;
}

html[data-cv="on"] nav.nav .nav-link,
html[data-cv="on"] header.nav .nav-link,
html[data-cv="on"] header.nav .nav-brand,
html[data-cv="on"] header.nav .brand-mark,
html[data-cv="on"] header.nav .wordmark,
html[data-cv="on"] .footer-links a,
html[data-cv="on"] .mobile-menu-link,
html[data-cv="on"] .band a,
html[data-cv="on"] footer.footer a,
html[data-cv="on"] .footer a {
  color: #f4f8fc;
}

html[data-cv="on"] .article-body a,
html[data-cv="on"] .post-body a,
html[data-cv="on"] .product-links a,
html[data-cv="on"] .path-sources a {
  color: #0b4f8c;
}

html[data-cv="on"] .cv-toggle {
  color: #e8f4ff;
  border-color: #7ec8ff;
  background: #0b3d75;
}

html[data-cv="on"] .cv-toggle[aria-pressed="true"] {
  background: #7ec8ff;
  color: #071422;
  border-color: #7ec8ff;
}

html[data-cv="on"] .quick-exit {
  background: #ff9f1c;
  color: #071422;
  border-color: #071422;
}

html[data-cv="on"] .quick-exit:hover {
  background: #071422;
  color: #ff9f1c;
}

html[data-cv="on"] .tabbar-link[aria-current="page"] {
  color: #ff9f1c;
  box-shadow: inset 0 -3px 0 #ff9f1c;
}

html[data-cv="on"] .light-section,
html[data-cv="on"] .screenshots-section,
html[data-cv="on"] .privacy-section,
html[data-cv="on"] .subnav,
html[data-cv="on"] .crumb-bar {
  background: #e7eef8;
  color: #071422;
}

html[data-cv="on"] .section-divider svg path {
  fill: #e7eef8;
}

html[data-cv="on"] .facts dt {
  color: #ffb020;
}

html[data-cv="on"] :focus-visible {
  outline-color: #ff9f1c;
}

@media (prefers-contrast: more) {
  :root {
    --ink: #000000;
    --ink-soft: #1a120e;
    --paper: #ffffff;
    --cream: #ffffff;
  }

  :focus-visible {
    outline-width: 4px;
  }

  a {
    text-decoration-thickness: 3px;
  }
}

.nav-utilities {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: none;
}

.cv-toggle,
.quick-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cv-toggle {
  background: transparent;
  color: #f8f3eb;
  border: 2px solid #f8f3eb;
  border-radius: 0;
  padding: 0.45rem 0.75rem;
}

.cv-toggle svg {
  display: block;
  flex: none;
}

.cv-toggle[aria-pressed="true"] {
  background: #f8f3eb;
  color: #141210;
}

.cv-toggle:focus-visible,
.quick-exit:focus-visible,
.tabbar-link:focus-visible {
  outline: 3px solid #141210;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff8ef;
}

.quick-exit {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  bottom: auto;
  background: #9a3018;
  color: #f8f3eb;
  border: 2px solid #f8f3eb;
  padding: 0.45rem 0.85rem;
}

.quick-exit:hover {
  background: #141210;
  color: #f8f3eb;
}

.tabbar {
  display: none;
}

@media (max-width: 1099px) {
  body {
    padding-bottom: calc(4.85rem + env(safe-area-inset-bottom));
  }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    margin: 0;
    padding: 0.15rem max(0.35rem, env(safe-area-inset-right)) calc(0.15rem + env(safe-area-inset-bottom))
      max(0.35rem, env(safe-area-inset-left));
    background: #140e0c;
    border-top: 4px solid #9a3018;
    justify-content: space-between;
    gap: 0.15rem;
  }

  .hero {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }
}

.tabbar-link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 48px;
  min-width: 44px;
  padding: 0.35rem 0.15rem 0.4rem;
  color: #f8f3eb;
  text-decoration: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.tabbar-link svg {
  display: block;
  width: 22px;
  height: 22px;
}

.tabbar-link[aria-current="page"] {
  color: #fff8ef;
  box-shadow: inset 0 -3px 0 #fff8ef;
}

nav.nav .nav-link.active {
  color: #fff8ef;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

nav.nav .nav-link.active::after {
  background: #fff8ef;
}

footer .footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
