/* Dark paint for the shared homepage layout. Geometry and type live with the components. */
html[data-theme="dark"] {
  color-scheme: dark;
  --muted: #b7b6c2;
  --line: #ffffff1a;
  --panel: #1b1a22;
}
html[data-theme="dark"] .hero h1 em {
  color: #acec00;
  background: transparent;
  box-shadow: none;
}
html[data-theme="dark"] .hero-description { color: #c2c2cd; }
html[data-theme="dark"] .hero .risk-strip { border-color: #3d5aa969; }
html[data-theme="dark"] .hero .risk-strip strong { color: #fff; }
html[data-theme="dark"] .hero .risk-strip small { color: #b8b9c8; }
html[data-theme="dark"] .hero .risk-strip svg { color: #acec00; }
html[data-theme="dark"] .channel-field {
  background: #191820;
  border-color: #3d5aa9a1;
  box-shadow: 0 5px 22px #00000024, 0 0 24px -12px #3d5aa93b;
}
html[data-theme="dark"] .channel-field:focus-within {
  border-color: #8da6ea;
  box-shadow: 0 0 0 3px #3d5aa938;
}
html[data-theme="dark"] .product-motion {
  box-shadow: -24px 30px 70px -16px #00000099, -4px 8px 22px #0000004d;
}
html[data-theme="dark"] .hero::before {
  background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px);
}
html[data-theme="dark"] .section-grid::after {
  background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px);
}

/* Match the local dark surfaces so the soft grid washes never appear white. */
html[data-theme="dark"] .hero h1::before,
html[data-theme="dark"] .hero .hero-description::before,
html[data-theme="dark"] .hero .risk-strip::before {
  background: #121119;
  filter: blur(24px);
}
html[data-theme="dark"] .hero .hero-description::before { filter: blur(16px); }
html[data-theme="dark"] .hero .risk-strip::before { filter: blur(18px); }
html[data-theme="dark"] .solution .section-intro::before {
  background: #131218;
  filter: blur(24px);
}
html[data-theme="dark"] .solution .feature-copy { --copy-grid-surface: #141319; }
html[data-theme="dark"] #payback { --copy-grid-surface: #131218; }
html[data-theme="dark"] #editor-brief { --copy-grid-surface: #15141a; }
html[data-theme="dark"] .solution .compact-feature { --copy-grid-surface: #16151a; }
html[data-theme="dark"] .solution .feature-copy::before,
html[data-theme="dark"] .solution .compact-feature > :is(.feature-kicker, h3, p)::before {
  background: var(--copy-grid-surface, #141319);
  filter: blur(18px);
}

/* Clear frames carry the same hierarchy as the light page. */
html[data-theme="dark"] :is(.problem .problem-panel, .solution .feature-art, .solution .mini-board, .solution .video-list-preview, .product-demo-frame, .stories .story-placeholder, .alternative) {
  border-color: #3d5aa975;
  box-shadow: 0 12px 30px -12px #00000045, 0 0 38px -16px #3d5aa937;
}
html[data-theme="dark"] .problem .problem-panel { background: #1b1a22; }
html[data-theme="dark"] .problem .problem-panel p { color: #b8b7c5; }
html[data-theme="dark"] .problem .problem-number { color: #fff; background: #3d5aa9; border-color: #3d5aa9; }
html[data-theme="dark"] .problem :is(.cost-stack, .next-video-preview) { border-color: #3d5aa961; }
html[data-theme="dark"] .problem :is(.receipt, .small-stat) { border-color: #3d5aa96b; }
html[data-theme="dark"] .problem .next-video-preview .next-video-cost { color: #c2c5d0; }
html[data-theme="dark"] .solution .mini-board article { border-color: #3d5aa953; }
html[data-theme="dark"] .stories .story-frame { border-color: #3d5aa96b; }

/* The third problem now has a dark illustration as well as a shared layout. */
html[data-theme="dark"] .problem .handoff-visual {
  background: radial-gradient(ellipse at 55% 40%, #3d5aa921, transparent 72%), #16151a;
  border-color: #3d5aa961;
  box-shadow: 0 0 30px -15px #3d5aa946;
}
html[data-theme="dark"] .problem .handoff-route { border-color: #7996df75; }
html[data-theme="dark"] .problem .handoff-gap {
  color: #c5d4f7;
  background: #191923;
  border-color: #6b88ce8c;
  box-shadow: 0 0 0 6px #191923;
}
html[data-theme="dark"] .problem .handoff-note {
  background: #242330;
  color: #fff;
  border-color: #617dc482;
  box-shadow: 0 12px 24px #00000029;
}
html[data-theme="dark"] .problem .handoff-label { color: #bfc7dd; }
html[data-theme="dark"] .problem .handoff-label svg { color: #9eb6f4; }
html[data-theme="dark"] .problem .handoff-insight strong { color: #fff; }
html[data-theme="dark"] .problem .handoff-underline { background: #acec00; }
html[data-theme="dark"] .problem .handoff-empty-line { border-color: #9daece6b; }
html[data-theme="dark"] .problem .handoff-brief small { color: #b7bed2; }
html[data-theme="dark"] .problem .handoff-upload {
  background: #3d5aa9;
  color: #fff;
  border-color: #758fcf;
  box-shadow: 0 6px 22px #00000029;
}

/* A navy assurance panel with explicit contrast for text, controls and focus. */
html[data-theme="dark"] .trust-panel {
  background: #09152b;
  color: #fff;
  border-color: #3d5aa9;
  box-shadow: 0 18px 50px #00000026, 0 0 60px -20px #3d5aa94d;
}
html[data-theme="dark"] .trust-panel::before {
  background: radial-gradient(ellipse at 0 100%, #3d5aa92b, transparent 62%);
  border-color: transparent;
  box-shadow: none;
}
html[data-theme="dark"] .trust-panel .eyebrow { color: #c9d7f4; }
html[data-theme="dark"] .trust-panel .section-index { color: #acec00; }
html[data-theme="dark"] .trust-panel h2,
html[data-theme="dark"] .trust-panel .trust-detail h3 { color: #fff; }
html[data-theme="dark"] .trust-panel .inverse-highlight { background: #acec00; color: #09152b; }
html[data-theme="dark"] .trust-panel > div > p,
html[data-theme="dark"] .trust-panel .trust-detail p,
html[data-theme="dark"] .trust-panel .trust-faq p { color: #d0dcf0; }
html[data-theme="dark"] .trust-panel .button {
  border-color: #fff;
  background: #fff;
  color: #09152b;
  box-shadow: 0 5px 22px #00000024;
}
html[data-theme="dark"] .trust-panel .button:hover {
  border-color: #acec00;
  background: #acec00;
  color: #09152b;
  box-shadow: 0 5px 25px #acec001c;
  filter: none;
}
html[data-theme="dark"] .trust-panel .button:active { border-color: #fff; background: #fff; color: #09152b; }
html[data-theme="dark"] .trust-panel .button:focus-visible,
html[data-theme="dark"] .trust-panel .trust-faq summary:focus-visible { outline-color: #acec00; }
html[data-theme="dark"] .trust-panel :is(.trust-details, .trust-detail) { border-color: #ffffff26; }
html[data-theme="dark"] .trust-panel .trust-detail > svg,
html[data-theme="dark"] .trust-panel .trust-symbol { border-color: #3d5aa98c; background: #3d5aa92b; color: #acec00; }
html[data-theme="dark"] .trust-panel .trust-faq { border-color: #3d5aa98c; background: #10223f; color: #fff; }
html[data-theme="dark"] .trust-panel .trust-faq summary { color: #fff; }
html[data-theme="dark"] .trust-panel .trust-faq summary:hover { background: #1b3459; color: #fff; }
html[data-theme="dark"] .trust-panel .trust-faq summary:active { background: #213e67; color: #fff; }
html[data-theme="dark"] .trust-panel .trust-faq summary span { background: #3d5aa9; color: #fff; }
html[data-theme="dark"] .trust-panel .trust-faq[open] { border-color: #6684d0; background: #13294b; }

/* The shared pricing frame keeps dark panels and a lime purchase action. */
html[data-theme="dark"] .pricing-section .pricing-heading-copy .eyebrow,
html[data-theme="dark"] .pricing-section .pricing-plan-kicker { color: #afc2f1; }
html[data-theme="dark"] .pricing-section :is(.pricing-heading-copy h2, .pricing-brand, .pricing-price, .pricing-billing-detail, .pricing-addon-card h3, .pricing-addon-price) { color: #fff; }
html[data-theme="dark"] .pricing-section :is(.pricing-heading-copy > p, .pricing-billing-label, .pricing-plan-description, .pricing-equivalent, .pricing-savings, .pricing-addon-description, .pricing-addon-detail) { color: #b9bfd0; }
html[data-theme="dark"] .pricing-section .pricing-toggle { background: #191820; border-color: #3d5aa991; box-shadow: 0 4px 14px #0000001c; }
html[data-theme="dark"] .pricing-section .pricing-toggle-button { color: #c4c9d8; }
html[data-theme="dark"] .pricing-section .pricing-toggle-button:hover { color: #fff; background: #2b2c3e; }
html[data-theme="dark"] .pricing-section .pricing-toggle-button[aria-pressed="true"] { color: #fff; background: #3d5aa9; border-color: #6e89ce; box-shadow: 0 3px 8px #00000026; }
html[data-theme="dark"] .pricing-section .pricing-save-badge { color: #09152b; background: #acec00; }
html[data-theme="dark"] .pricing-section .pricing-main-card { background: #1b1a22; border-color: #3d5aa98a; box-shadow: 0 18px 48px #0000002b, 0 0 44px -22px #3d5aa949; }
html[data-theme="dark"] .pricing-section .pricing-main-card::before { background: radial-gradient(ellipse at 0 0, #3d5aa917, transparent 60%); }
html[data-theme="dark"] .pricing-section .pricing-main-card:hover { border-color: #718bca; box-shadow: 0 18px 48px #00000036, 0 0 44px -22px #3d5aa963; }
html[data-theme="dark"] .pricing-section .pricing-feature-list li { color: #d2d6e2; border-color: #ffffff19; }
html[data-theme="dark"] .pricing-section .pricing-feature-list svg { color: #09152b; background: #acec00; }
html[data-theme="dark"] .pricing-section .pricing-plan-purchase { background: #09152b; border-color: #3d5aa975; }
html[data-theme="dark"] .pricing-section .pricing-price-unit,
html[data-theme="dark"] .pricing-section .pricing-addon-price > span { color: #bdc7dc; }
html[data-theme="dark"] .pricing-section .pricing-cta { background: #acec00; border-color: #acec00; color: #09152b; box-shadow: 0 5px 18px #00000021; }
html[data-theme="dark"] .pricing-section .pricing-cta:hover { background: #acec00; border-color: #acec00; color: #09152b; box-shadow: 0 8px 26px #acec0019; filter: brightness(1.04); }
html[data-theme="dark"] .pricing-section .pricing-trial-note { color: #b9c7df; }
html[data-theme="dark"] .pricing-section .pricing-trial-note strong { color: #e1e9fb; }
html[data-theme="dark"] .pricing-section .pricing-addon-card { background: #171d2b; border-color: #3d5aa9; box-shadow: 0 12px 36px #00000021; }
html[data-theme="dark"] .pricing-section .pricing-addon-card::before { background: radial-gradient(ellipse at 100% 100%, #3d5aa920, transparent 70%); }
html[data-theme="dark"] .pricing-section .pricing-addon-card:hover { border-color: #7a96d9; box-shadow: 0 12px 36px #3d5aa924; }
html[data-theme="dark"] .pricing-section .pricing-addon-icon { color: #fff; background: #3d5aa9; border-color: #607dc5; box-shadow: none; }

@media (max-width: 600px) {
  html[data-theme="dark"] .hero h1::before { filter: blur(20px); }
  html[data-theme="dark"] .solution .section-intro::before { filter: blur(20px); }
  html[data-theme="dark"] .solution .feature-copy::before,
  html[data-theme="dark"] .solution .compact-feature > :is(.feature-kicker, h3, p)::before { filter: blur(16px); }
  html[data-theme="dark"] .product-motion { box-shadow: -12px 20px 42px -8px #00000091; }
}
