:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-deep: #111827;
  --surface: #f4f7fc;
  --surface-2: #eaf2ff;
  --panel: #ffffff;
  --panel2: #f4f7fc;
  --text: #17191f;
  --muted: #5f6673;
  --line: #d9e1ec;
  --lime: #2459e0;
  --mint: #2459e0;
  --yellow: #ffbf47;
  --green: #2459e0;
  --btn: #2459e0;
  --focus: #0b57d0;
  --purple: #2459e0;
  --purple-bright: #2459e0;
  --purple-deep: #1745bd;
  --purple-ink: #111827;
  --purple-glow: rgba(36, 89, 224, .18);
  --title: #17191f;
  --accent: #2459e0;
  --accent2: #1745bd;
  --border: #d9e1ec;
  --ok: #147a4a;
  --warn: #9a5b00;
  --codebg: #f1f4f8;
  --btn-hover: #1745bd;
  --shadow: 0 18px 48px rgba(26, 43, 73, .10);
  --radius: 18px;
}

html { color-scheme: light; }

body,
.content-page,
.pricing-page {
  background: #ffffff !important;
  color: var(--text);
}

a { text-decoration-color: rgba(36, 89, 224, .55); }
a:hover { color: #1745bd; }

main h1,
main h2,
main h3 {
  color: var(--text) !important;
  border-color: var(--line) !important;
}

main a:not(.button):not(.path-card):not(.resource-card):not(.brand) {
  color: #174fcf !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(11, 87, 208, .16);
}

::selection { background: #cfe0ff; color: #0d1b3d; }

.site-header,
.modern-bar {
  background: rgba(255, 255, 255, .96) !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 5px 22px rgba(26, 43, 73, .05);
}

.brand { color: #17191f !important; }
.brand > span,
.modern-brand > span {
  display: inline-flex;
  align-items: baseline;
  color: inherit;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.18em;
  font-style: normal;
  font-weight: 850 !important;
  letter-spacing: -.055em;
  line-height: 1;
}
.brand > span > span,
.modern-brand strong {
  margin-left: .04em;
  color: inherit !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.08em;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -.045em;
}
.eyebrow,
.text-link,
.card-link,
.resource-card .tag,
.resource-card b,
.feature-grid > a > span,
.feature-grid b,
.compare-card.good > span,
.compare-card a,
.content-main h2,
.breadcrumb a {
  color: #2459e0 !important;
}

.nav-toggle,
.modern-toggle {
  color: #17191f !important;
  border-color: #cdd7e5 !important;
  background: #ffffff !important;
  border-radius: 999px !important;
}

.nav-toggle:hover,
.modern-toggle:hover {
  color: #1745bd !important;
  border-color: #2459e0 !important;
  background: #edf3ff !important;
}

.primary-nav,
.modern-nav {
  color: #17191f !important;
  background: #ffffff !important;
  border-color: #d9e1ec !important;
  box-shadow: 0 24px 60px rgba(21, 35, 61, .16) !important;
}

.primary-nav a,
.modern-nav a { color: #303641 !important; }

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.modern-nav a:hover,
.modern-nav a[aria-current="page"] {
  color: #1745bd !important;
  background: #edf3ff !important;
}

.primary-nav .nav-cta,
.modern-nav .modern-cta {
  color: #ffffff !important;
  border-color: #2459e0 !important;
  background: #2459e0 !important;
  border-radius: 999px !important;
}

.primary-nav .nav-cta:hover,
.modern-nav .modern-cta:hover {
  color: #ffffff !important;
  background: #1745bd !important;
  box-shadow: 0 10px 24px rgba(36, 89, 224, .22);
}

.section-grid {
  background-image:
    radial-gradient(circle at 14% 5%, rgba(255,255,255,.9), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.38), transparent 58%) !important;
}

.hero,
.hub-hero,
.pricing-hero {
  background: linear-gradient(135deg, #dcecff 0%, #edf5ff 58%, #ffffff 100%) !important;
}

.hero h1,
.hub-hero h1,
.pricing-hero h1 { color: #17191f !important; }

.hero h1 em,
.hub-hero h1 em {
  color: #17191f !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  text-shadow: none;
}

.hero-lede,
.hub-hero > div > p:last-child,
.pricing-hero > .shell > p:not(.eyebrow):not(.pricing-currency) {
  color: #505866 !important;
}

.hero-proof { color: #4f5968 !important; }
.hero-proof span { color: #2459e0 !important; }

.button,
.button-primary,
button[type="submit"],
body:not(.failure-lab) button:not(.nav-toggle):not(.modern-toggle):not(.scan-metric) {
  border-radius: 999px !important;
}

.button-primary,
button[type="submit"],
body:not(.failure-lab) button:not(.nav-toggle):not(.modern-toggle):not(.scan-metric) {
  color: #ffffff !important;
  background: #2459e0 !important;
  border-color: #2459e0 !important;
  box-shadow: 0 10px 24px rgba(36, 89, 224, .18);
}

.button-primary:hover,
button[type="submit"]:hover,
body:not(.failure-lab) button:not(.nav-toggle):not(.modern-toggle):not(.scan-metric):hover {
  color: #ffffff !important;
  background: #1745bd !important;
  border-color: #1745bd !important;
  box-shadow: 0 13px 28px rgba(36, 89, 224, .24);
  transform: translateY(-1px);
}

body:not(.failure-lab) button:not(.nav-toggle):not(.modern-toggle) a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.button-secondary,
.plan-button.secondary-plan {
  color: #17191f !important;
  border-color: #8a98ab !important;
  background: transparent !important;
  box-shadow: none !important;
}

.button-secondary:hover,
.plan-button.secondary-plan:hover {
  color: #1745bd !important;
  border-color: #2459e0 !important;
  background: #edf3ff !important;
}

.check-console,
.path-card,
.feature-grid > a,
.compare-card,
.resource-card,
.value-card,
.contact-form,
.card,
.callout,
.pricing-card {
  color: #17191f !important;
  background: #f4f7fc !important;
  border-color: #d9e1ec !important;
  box-shadow: 0 14px 38px rgba(26, 43, 73, .07) !important;
}

.path-card:hover,
.feature-grid > a:hover,
.resource-card:hover {
  border-color: #8db0f8 !important;
  background: #eaf2ff !important;
  box-shadow: 0 18px 42px rgba(36, 89, 224, .12) !important;
}

.check-console:before { border-color: rgba(36, 89, 224, .12) !important; }
.console-bar { border-bottom-color: #d9e1ec !important; }
.console-bar > span:last-child { color: #147a4a !important; }
.console-list > div { background: #ffffff !important; border-color: #dfe6ef !important; }
.console-list small,
.console-note { color: #646c78 !important; }
.console-list b { color: #147a4a !important; }
.console-list b.review { color: #8a5200 !important; }

.score-ring {
  border-color: #d8e5fb !important;
  border-top-color: #2459e0 !important;
  border-right-color: #2459e0 !important;
  box-shadow: none;
}

.score-ring strong,
.metric-grid strong,
.path-icon,
.steps > li > span,
.check-icon { color: #2459e0 !important; }

.score-ring span,
.path-card p,
.feature-grid p,
.resource-card p,
.content-main p,
.content-main li { color: #5f6673 !important; }

.check-icon { background: #e9f1ff !important; }
.review-icon { color: #8a5200 !important; background: #fff4d9 !important; }
.status-dot { background: #2459e0 !important; box-shadow: 0 0 12px rgba(36,89,224,.4) !important; }

.metric-grid {
  background: #ffffff !important;
  border-color: #cfd9e7 !important;
}
.metric-grid > div {
  background: #f4f7fc !important;
  border-color: #d9e1ec !important;
}

.section-tint { background: #f4f7fc !important; }
.steps { border-color: #d9e1ec !important; }
.steps li { border-color: #d9e1ec !important; }

.section-cta,
.pricing-cta {
  color: #17191f !important;
  background: #dcecff !important;
}

.section-cta h2,
.pricing-cta h2 { color: #17191f !important; }
.section-cta .eyebrow,
.pricing-cta .eyebrow { color: #1745bd !important; }
.section-cta .button-primary,
.pricing-cta .button-primary {
  color: #ffffff !important;
  background: #111827 !important;
  border-color: #111827 !important;
}
.section-cta .button-secondary {
  color: #17191f !important;
  border-color: #677286 !important;
  background: transparent !important;
}

.site-footer,
.content-footer-note {
  color: #f8fafc !important;
  background: #111827 !important;
  border-top-color: #273247 !important;
}

.site-footer .brand { color: #ffffff !important; }
.site-footer .brand > span > span { color: inherit !important; }
.site-footer h2 { color: #a9c6ff !important; }
.site-footer p,
.site-footer a,
.footer-bottom,
.content-footer-note { color: #b9c2d1 !important; }
.site-footer a:hover { color: #ffffff !important; }
.footer-bottom { border-top-color: #273247 !important; }

.content-main table,
table {
  border-color: #d9e1ec !important;
  background: #ffffff !important;
}
.content-main th,
th { color: #17191f !important; background: #eaf2ff !important; }
.content-main tr + tr td,
tr + tr td { border-top-color: #e2e8f0 !important; }
.content-main code { color: #1745bd !important; background: #edf3ff !important; }

input,
textarea,
select {
  color: #17191f !important;
  background: #ffffff !important;
  border-color: #aab6c6 !important;
}
input::placeholder,
textarea::placeholder { color: #737b88 !important; }
input:focus,
textarea:focus,
select:focus { border-color: #2459e0 !important; }

.notice,
.contact-note,
.content-main .callout,
.tip,
.callout {
  color: #394150 !important;
  border-left-color: #2459e0 !important;
  background: #eaf2ff !important;
}

.failure-lab .toggle[aria-pressed="true"] {
  color: #1745bd !important;
  border-color: #2459e0 !important;
  background: #eaf2ff !important;
}
.failure-lab .modern-context a,
.failure-lab .toc h2,
.failure-lab a:not(.modern-brand) { color: #174fcf; }

.skip-link:focus { color: #ffffff !important; background: #1745bd !important; }

/* Extension-style web scanner, restyled to the light reference system. */
.page-scanner {
  background: #eef5ff !important;
  border-block-color: #d9e4f4 !important;
}
.scanner-heading h2 { color: #17191f !important; }
.scanner-heading > p:last-child,
.scanner-fine-print { color: #5f6673 !important; }
.scanner-kicker { color: #1745bd !important; }
.scanner-kicker::before { background: #2459e0 !important; box-shadow: 0 0 14px rgba(36,89,224,.28) !important; }
.scanner-card {
  color: #17191f !important;
  background: #ffffff !important;
  border-color: #d3deeb !important;
  box-shadow: 0 20px 50px rgba(26,43,73,.09) !important;
}
.scanner-consent { color: #303641 !important; }
.scanner-consent input { accent-color: #2459e0 !important; }
.scanner-url-wrap input { border-color: #9cacc0 !important; }
.scanner-url-wrap::before { border-color: #59677a !important; }
.scanner-url-wrap::after { background: #59677a !important; }
.scanner-status { color: #465063 !important; }
.scanner-status[data-type="error"] { color: #a51d2d !important; }
.scanner-status[data-type="success"] { color: #087443 !important; }
.scanner-progress { background: #e1e8f2 !important; }
.scanner-progress::before { background: #2459e0 !important; }
.scan-results-header,
.scan-summary,
.scan-toolbar,
.scan-result-context,
.scan-findings,
.scan-export-card {
  background: #ffffff !important;
  border-color: #d9e1ec !important;
}
.scan-results-header h3 { color: #17191f !important; }
.scan-results-header p,
.scan-result-context { color: #616a78 !important; }
body:not(.failure-lab) button.scan-metric {
  color: #17191f !important;
  background: #f4f7fc !important;
  border-color: #d9e1ec !important;
  box-shadow: none !important;
}
body:not(.failure-lab) button.scan-metric[aria-pressed="true"] {
  color: #ffffff !important;
  background: #2459e0 !important;
  border-color: #2459e0 !important;
  box-shadow: inset 0 0 0 2px #ffffff !important;
}
.scan-metric.score { color: #17191f !important; background: #f4f7fc !important; border-color: #d9e1ec !important; }
.scan-metric.fail strong { color: #a51d2d !important; }
.scan-metric.review strong { color: #8a5200 !important; }
.scan-metric.pass strong { color: #087443 !important; }
.scan-metric.score strong { color: #174fcf !important; }
button.scan-metric[aria-pressed="true"] strong,
button.scan-metric[aria-pressed="true"] span { color: #ffffff !important; }
.scan-toolbar input,
.scan-toolbar select { color: #17191f !important; background: #ffffff !important; border-color: #aab6c6 !important; }
.scan-finding { background: #f8fafc !important; border-color: #d9e1ec !important; }
.scan-finding-title strong,
.scan-empty-state h4 { color: #17191f !important; }
.scan-finding-title small,
.scan-finding-body > p,
.scan-node p,
.scan-truncated { color: #5f6673 !important; }
.scan-finding-body { border-top-color: #dfe6ef !important; }
.scan-chip { color: #1745bd !important; background: #e4edff !important; }
.scan-node { background: #eef2f7 !important; }
.scan-node code { color: #1d2c4a !important; }
.scan-node-actions button,
.scan-export-actions button {
  color: #1745bd !important;
  background: #eaf2ff !important;
  border-color: #b9cbee !important;
  box-shadow: none !important;
}

/* Pricing cards retain their layout while adopting the reference palette. */
.pricing-currency,
.journey { color: #174fcf !important; }
.pricing-card,
.pricing-card.featured-plan { border-color: #d9e1ec !important; box-shadow: 0 14px 38px rgba(26,43,73,.08) !important; }
.pricing-card h2,
.pricing-card h3,
.price strong { color: #17191f !important; }
.price span,
.billing,
.from,
.pricing-card-intro > p:first-of-type,
.pricing-note { color: #5f6673 !important; }
.plan-features { border-top-color: #d9e1ec !important; }
.plan-features li { color: #394150 !important; }
.plan-features li::before { color: #2459e0 !important; }
.plan-button { color: #ffffff !important; background: #2459e0 !important; border-color: #2459e0 !important; }

@media (prefers-reduced-motion: reduce) {
  .button-primary:hover,
  button[type="submit"]:hover { transform: none; }
}
