/* The v3 homepage HTML is supplied by site settings. Style only its page root. */
html:not(.dark) #app .caomei-home[data-caomei-home-version="3"] {
  color-scheme: light;
  --base: #e7efeb;
  --surface: #dce8e2;
  --panel: #f2f5f2;
  --raised: #edf3ef;
  --line: #bbcfc5;
  --line-strong: #638075;
  --primary: #146052;
  --primary-strong: #10483f;
  --primary-ink: #f2f5f2;
  --wire: #567e73;
  --sky: #2b6285;
  --text: #192e2c;
  --soft: #2c4743;
  --muted: #415b55;
  --quiet: #4b645e;
  --home-mist: #e0ece6;
  --home-selected: #c8dfd4;
  --home-blue-tint: #e2ebf0;
  --home-hub: #16473f;

  & .site-header:not([data-scrolled="false"]) {
    background: #e7efebf5;
    border-bottom-color: var(--line);
  }

  & .site-header[data-scrolled="false"] {
    background: var(--base);
    border-bottom-color: transparent;
  }

  & .brand img {
    box-shadow: 0 0 0 1px #192e2c33;
  }

  & :is(.mobile-nav nav, .button.secondary, .flow-app, .flow-group, .pricing-box, .connection, .tool-row) {
    background: var(--panel);
    border-color: var(--line);
  }

  & :is(.hero, .footer, .icon-tile, .flow-model, .pricing-controls, .prices thead, .endpoint-row, .endpoint-path) {
    background: var(--home-mist);
    border-color: var(--line);
  }

  & :is(.header-register, .header-theme-switch, .mobile-nav summary, .button.secondary) {
    border-color: var(--line-strong);
    color: var(--soft);
  }

  & :is(.header-register, .header-theme-switch, .mobile-nav summary, .button.secondary):hover {
    border-color: var(--primary);
    color: var(--primary-strong);
  }

  & :is(.desktop-nav a, .mobile-nav nav a, .mobile-theme-switch, .tool-item):hover,
  & .prices tbody tr:hover > * {
    background: var(--home-mist);
    color: var(--primary-strong);
  }

  & .hero-flow {
    background: var(--surface);
    border-color: var(--line-strong);
    box-shadow: 0 14px 32px -24px #193e3570;
  }

  & .hero-flow::before {
    background: radial-gradient(#567e7352 .8px, transparent 1.2px) 10px 10px / 20px 20px;
  }

  & .flow-hub {
    background: var(--home-hub);
    border-color: var(--home-hub);
    color: var(--primary-ink);
    box-shadow: 0 0 0 5px #14605216;
  }

  /* Reuse the original bright logo treatment against the dark hub. */
  & .hero-flow .flow-mark > img:first-child {
    filter: url(#caomei-h2-flow-logo-alpha);
  }

  & .hero-flow .flow-logo-details {
    filter: none;
  }

  & .gpt .flow-model {
    background: var(--home-blue-tint);
    border-color: #bdced9;
  }

  & .packet {
    background: var(--primary-strong);
    box-shadow: 0 0 0 2px var(--surface);
  }

  & .fork-line .packet.right {
    background: var(--sky);
  }

  & :is(.segmented, .caomei-currency) {
    background: var(--base);
    border-color: var(--line-strong);
  }

  & :is(.segmented, .caomei-currency) button {
    color: var(--muted);
  }

  & :is(.segmented, .caomei-currency) button[aria-pressed="true"],
  & :is(.copy, .step-no) {
    background: var(--home-selected);
    color: var(--primary-strong);
    box-shadow: inset 0 0 0 1px var(--line-strong);
  }

  & :is(.copy:hover, .copy.is-done, .tool-item:hover .icon-tile, .guide-item:hover .icon-tile) {
    background: var(--surface);
    border-color: var(--wire);
  }

  & :is(.price-notes a, .faq-list p a) {
    text-decoration-color: var(--wire);
  }

  & :is(.price-status-btn, .section-fallback, .home-pricing-status) {
    color: var(--muted);
  }
}
