/* NeatScore · all-light theme. Loaded last. Turns every dark surface light.
   Palette: #F8FAFC #E2E8F0 #7DD3FC #2563EB #0F172A */
:root {
  --lime: #2563EB;            /* old "accent on dark" is now the blue accent */
  --night: #F8FAFC;
  --midnight: #F1F5F9;
  --night-card: #FFFFFF;
}
html, body { background: #fff; color: #0F172A; }

/* ---------- Header pill ---------- */
.site-header .wrap {
  background: rgba(255,255,255,.88);
  box-shadow: inset 0 0 0 1px #E2E8F0, 0 10px 30px -14px rgba(15,23,42,.22);
}
.brand span { color: #0F172A; }
.nav a, .header-cta .signin { color: #475569; }
.nav a:hover, .header-cta .signin:hover { color: #0F172A; background: rgba(15,23,42,.06); }
.nav a.is-active, .nav a[aria-current="page"] { color: #0F172A; }
@media (max-width: 900px) {
  .nav { background: #fff; box-shadow: inset 0 0 0 1px #E2E8F0, 0 20px 40px -20px rgba(15,23,42,.25); }
}

/* ---------- Heroes (home, generic, inner pages, blog) ---------- */
.h-hero, .hero, .page-hero, .post-hero, .blog-hero { background: #F8FAFC; color: #0F172A; }
.h-hero::before, .hero::before, .page-hero::before, .post-hero::before, .blog-hero::before {
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(37,99,235,.13), transparent 62%),
    radial-gradient(600px 420px at 50% 105%, rgba(125,211,252,.22), transparent 60%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}
.h-hero::after, .page-hero::after, .post-hero::after, .blog-hero::after {
  background-image: radial-gradient(rgba(15,23,42,.10) 1px, transparent 1px);
}
.h-hero h1, .hero h1, .page-hero h1, .post-hero h1, .blog-hero h1 { color: #0F172A; }
.h-hero h1 em, .hero h1 em, .page-hero h1 em, .page-hero h2 em, .post-hero h1 em, .blog-hero h1 em { color: #2563EB; }
.h-hero .lede, .hero .lede, .page-hero p, .hero-note, .h-terms, .post-hero .post-meta, .post-byline, .post-lede,
.blog-hero p { color: #475569; }
.hero-badges { border-top-color: #E2E8F0; }
.hero-badges span { color: #475569; }
.h-pill { background: #fff; box-shadow: inset 0 0 0 1px #E2E8F0, 0 4px 14px -8px rgba(15,23,42,.2); color: #334155; }
.h-pill:hover { background: #F1F5F9; }
.h-pill b { background: #2563EB; color: #fff; }
.page-hero .eyebrow, .h-hero .eyebrow, .lp-use .eyebrow, .h-features .eyebrow, .section--dark .eyebrow {
  background: #EFF6FF; color: #1D4ED8; box-shadow: inset 0 0 0 1px #DBEAFE;
}
.crumbs li { color: #64748B; } .crumbs li + li::before { color: #94A3B8; } .crumbs a { color: #475569; }
.h-sample { color: #94A3B8; }
.btn--ghost-light { border-color: #CBD5E1; color: #0F172A; background: #fff; }
.btn--ghost-light:hover { background: #F1F5F9; border-color: #94A3B8; }
.h-hero .btn--ghost, .hero .btn--ghost { color: #0F172A; border-color: #CBD5E1; background: #fff; }
.h-hero .btn--ghost:hover, .hero .btn--ghost:hover { background: #F1F5F9; }
.h-terms li, .h-hero .h-terms { color: #475569; }
/* the phone stays a dark device, on a light page */
.h-phone, .h-device { box-shadow: inset 0 0 0 1.5px rgba(15,23,42,.18), 0 -20px 80px -10px rgba(37,99,235,.22), 0 40px 80px rgba(15,23,42,.28); }
.h-note, .h-float, [class*="h-f"] { }

/* ---------- Trust strip ---------- */
.h-strip { background: #fff; }
.h-strip li { background: #F8FAFC; box-shadow: inset 0 0 0 1px #E2E8F0; color: #334155; }

/* ---------- Dark sections -> light ---------- */
.section--dark, .h-features { background: #F8FAFC; color: #0F172A; }
.section--dark h2, .section--dark .section-head h2 { color: #0F172A; }
.section--dark h2 em, .cta h2 em, .h-final-box h2 em { color: #2563EB; }
.section--dark .section-head p:not(.eyebrow), .section--dark p { color: #475569; }
.section--dark .eyebrow::before { background: #2563EB; }
.h-tab { color: #475569; }
.h-tab:hover { background: #fff; color: #0F172A; }
.h-tab[aria-selected="true"] { background: #fff; color: #0F172A; box-shadow: inset 0 0 0 1px #E2E8F0, 0 8px 24px -14px rgba(15,23,42,.25); }
.h-tab b, .h-tab strong { color: #0F172A; }
.h-panel { background: #fff; box-shadow: inset 0 0 0 1px #E2E8F0; }

.h-vs-new { background: #EFF6FF; color: #0F172A; box-shadow: inset 0 0 0 1px #BFDBFE; }
.h-vs-new li { color: #334155; }
.h-vs-new h3, .h-vs-new b { color: #0F172A; }

.h-roi-out { background: #EFF6FF; color: #0F172A; }
.h-roi-out small, .h-roi-out p { color: #475569; }
.h-roi-out b { color: #0F172A; }

/* ---------- Final CTA + site CTA panel ---------- */
.h-final-box, .cta .wrap { background: #EFF6FF; color: #0F172A; box-shadow: inset 0 0 0 1px #DBEAFE; }
.h-final-box::after { background-image: radial-gradient(rgba(15,23,42,.08) 1px, transparent 1px); }
.h-final-box h2, .cta h2 { color: #0F172A; }
.h-final-box p, .cta p { color: #475569; }
.h-final-box .btn--ghost, .cta .btn--ghost { color: #0F172A; border-color: #CBD5E1; background: #fff; }

/* sticky mobile CTA bar */
.h-sticky, .sticky-cta { background: rgba(255,255,255,.94); color: #0F172A; box-shadow: inset 0 0 0 1px #E2E8F0, 0 10px 30px -10px rgba(15,23,42,.3); }

/* ---------- Offers, callouts ---------- */
.offer, .h-offer, .callout { background: #EFF6FF; color: #0F172A; box-shadow: inset 0 0 0 1px #DBEAFE; }
.offer h3, .h-offer h3 { color: #0F172A; }
.offer p, .h-offer p, .callout { color: #475569; }
.offer a { color: #1D4ED8; }
.offer .offer-kicker, .h-offer b { color: #2563EB; }

/* ---------- Footer ---------- */
.site-footer { background: #F8FAFC; color: #475569; border-top: 1px solid #E2E8F0; }
.site-footer .top { border-bottom-color: #E2E8F0; }
.site-footer .brand span, .site-footer h4, .site-footer .footer-title, .site-footer .tagline { color: #0F172A; }
.site-footer a { color: #475569; }
.site-footer a:hover { color: #2563EB; }

/* ---------- Misc dark bits on local + blog pages ---------- */
.lp-use { background: #F8FAFC; color: #0F172A; }
.lp-use h2, .lp-use h3 { color: #0F172A; }
.lp-use p, .lp-use li { color: #475569; }

/* product mock stays a dark device; avatar and badges keep contrast */
.h-screen-top { background: #0F172A; color: #fff; }
.h-avatar { background: #2563EB; color: #fff; }
.h-photo::before { }

/* ---------- "Still in testing" notice bar (inserted by site.js) ---------- */
.beta-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 7px 40px 7px 16px; background: #0F172A; color: #F8FAFC; font-size: 13px; line-height: 1.4; text-align: center; }
.beta-bar p { margin: 0; }
.beta-bar a { color: #F8FAFC; text-decoration: underline; }
.beta-bar-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #F8FAFC; font-size: 20px; line-height: 1; cursor: pointer; }
.beta-bar-x:hover { background: rgba(248,250,252,.15); }
.has-beta-bar body { padding-top: var(--beta-h, 0px); }
.has-beta-bar .site-header { top: var(--beta-h, 0px); }
@media print { .beta-bar { display: none; } .has-beta-bar body { padding-top: 0; } }
.nav-toggle span { background: #0F172A; }
.nav-toggle:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.prose a.btn--primary, .prose a.btn--primary:hover { color: #fff; text-decoration: none; font-weight: 600; }
.prose a.btn--ghost { color: #0F172A; text-decoration: none; font-weight: 600; }
.lp-float--score { background: #0F172A; color: #fff; }
.lp-float--score b { color: #7DD3FC; }
.lp-use .lp-split-head p { color: #475569; }
.lp-steps li { color: #334155; background: #fff; border: 1px solid #E2E8F0; }
.lp-steps li::before { color: #fff; }
.lp-rel--hub { background: #0F172A; border-color: #0F172A; color: #fff; }
.lp-rel--hub span { color: #7DD3FC; }
.lp-rel--hub b::after { color: #7DD3FC; }
.lp-local-note { background: #EFF6FF; color: #334155; border: 1px solid #DBEAFE; }
.h-sample { color: #64748B; }
.nav .nav-signin { display: none; }
@media (max-width: 900px) { .nav .nav-signin { display: block; } }

/* ---------- Blog: dark surfaces that became near-white (fixes unreadable text) ---------- */
.post-cta { background: #EFF6FF; color: #0F172A; box-shadow: inset 0 0 0 1px #DBEAFE; }
.post-cta-title { color: #0F172A; }
.post-cta p { color: #475569; }
.post-cta .btn--ghost { background: #fff; color: #0F172A; border-color: #CBD5E1; }
.post-cta .btn--ghost:hover { background: #F1F5F9; color: #0F172A; }
.post-body pre { background: #0F172A; color: #E7ECEF; }
.post-body pre code { color: #E7ECEF; background: transparent; }
.pager--numbers .is-current { background: #2563EB; border-color: #2563EB; color: #fff; }
.lp-feature-grid li::before { background-color: #0F172A; }
.crumbs li[aria-current] { color: #0F172A; }
.crumbs a:hover { color: #0F172A; }

/* ---------- Header: even spacing between nav links and the Sign in / Dashboard / button group ---------- */
@media (min-width: 901px) {
  .site-header .wrap { gap: 0; }
  .header-cta { margin-left: 4px; gap: 10px; }
  .header-cta .signin { padding: 8px 13px; }
}

/* Header "Sign out" button (ghost style) must stay readable in the mobile menu too */
.site-header a.btn--ghost, .nav a.btn--ghost, .header-cta a.btn--ghost { color: #0F172A; background: #fff; border-color: #CBD5E1; }
.site-header a.btn--ghost:hover { background: #F1F5F9; color: #0F172A; }

/* ---- Language menu (added to every page by scripts/i18n/site_i18n.mjs) ---- */
.lang-menu { position: relative; margin-right: 2px; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #475569; letter-spacing: .02em; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.lang-menu > summary:hover, .lang-menu[open] > summary { color: #0F172A; background: rgba(15,23,42,.06); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.12); padding: 6px; display: flex; flex-direction: column; }
.lang-list a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: #0F172A; text-decoration: none; }
.lang-list a:hover { background: #F1F5F9; }
.lang-list a[aria-current] { font-weight: 700; color: #2563EB; }
.lang-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.lang-foot a { color: inherit; opacity: .75; text-decoration: none; }
.lang-foot a:hover { opacity: 1; text-decoration: underline; }
.lang-foot a[aria-current] { opacity: 1; font-weight: 700; }
.nav-lang { display: none; }
@media (max-width: 900px) {
  .nav .nav-lang { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0 2px; border-top: 1px solid #E2E8F0; margin-top: 6px; }
  .nav .nav-lang a { padding: 6px 10px; font-size: 14px; }
  .nav .nav-lang a[aria-current] { font-weight: 700; color: #2563EB; }
}

/* ---- Tables on legal pages (service providers) ---- */
.prose .table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid #E2E8F0; border-radius: 12px; }
.prose .sp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.prose .sp-table th { text-align: left; background: #F8FAFC; color: #475569; font-weight: 600; font-size: 13px; padding: 10px 14px; border-bottom: 1px solid #E2E8F0; }
.prose .sp-table td { padding: 12px 14px; border-bottom: 1px solid #EEF2F7; vertical-align: top; line-height: 1.5; }
.prose .sp-table tr:last-child td { border-bottom: 0; }
.prose .sp-table .muted { color: #64748B; font-size: 13px; }
.h-terms a { color: #2563EB; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
