/* x2xPro light theme. Applied when <html data-theme="light"> (dark stays the default).
   Style: clean, airy, Coinbase-web-app-like: white panes, #F7F8FA bands, thin #E5E7EB dividers,
   soft rounded cards, near-black text (#0A0B0D), grey secondary (#4B5563 / #5B616E),
   pill buttons. Accent = existing x2xPro blue (#0057ff / #2050F5). */
html[data-theme="light"]{
  color-scheme:light;
  --lt-bg:#FFFFFF; --lt-panel:#F7F8FA; --lt-card:#FFFFFF; --lt-line:#E5E7EB; --lt-ink:#0A0B0D;
  --lt-sub:#4B5563; --lt-sub2:#5B616E; --lt-accent:#0057FF; --lt-accent-h:#0046CC; --lt-pill:#EEF0F3; --lt-pill-h:#E4E7EB;
  --xr-ink:#0A0B0D; --xr-sub:#4B5563;
  --ink:#0A0B0D; --muted:#5B616E; --line:#E5E7EB; --paper:#F7F8FA; --navy:#FFFFFF;
  --background:#FFFFFF; --foreground:#0A0B0D;
}
html[data-theme="light"],html[data-theme="light"] body{background:#fff;color:#0A0B0D}
html[data-theme="light"] ::selection{background:rgba(0,87,255,.2);color:#0A0B0D}
html[data-theme="light"] .skip-link{background:#fff;color:#0A0B0D;border:1px solid #E5E7EB}

/* ---- Footer ---- */
html[data-theme="light"] footer{background:#F7F8FA;border-top:1px solid #E5E7EB;color:#0A0B0D}
html[data-theme="light"] footer [class*="text-white"]{color:#4B5563}
html[data-theme="light"] footer p.font-display{color:#0A0B0D}
html[data-theme="light"] footer a{color:#0A0B0D}
html[data-theme="light"] footer a:hover{color:#0057FF}
html[data-theme="light"] footer .decoration-white\/25{text-decoration-color:rgba(10,11,13,.3)}
html[data-theme="light"] footer .border-white\/10{border-color:#E5E7EB}

/* ---- Hero (.mesh) ---- */
html[data-theme="light"] .mesh{
  background:radial-gradient(900px 460px at 90% -10%,rgba(0,87,255,.10),transparent 60%),radial-gradient(700px 380px at 0% 0%,rgba(0,87,255,.05),transparent 55%),#F7F8FA;
  color:#0A0B0D;border-bottom:1px solid #E5E7EB;
}
html[data-theme="light"] .mesh .mesh-shift,
html[data-theme="light"] .mesh .grid-overlay,
html[data-theme="light"] .mesh .xr-glow{display:none}
html[data-theme="light"] .mesh [class*="text-white"]:not(.bg-\[\#0057ff\]){color:#4B5563}
html[data-theme="light"] .mesh h1,html[data-theme="light"] .mesh h2,html[data-theme="light"] .mesh [class*="text-white"].font-display,
html[data-theme="light"] .mesh .text-white:is(h1,h2,h3,p.font-semibold){color:#0A0B0D}
html[data-theme="light"] .mesh .text-xs.uppercase{color:#0057FF}
html[data-theme="light"] .mesh .bg-white\/10{background:#EEF0F3;color:#0A0B0D;--tw-ring-color:#E5E7EB;box-shadow:0 0 0 1px #E5E7EB}
html[data-theme="light"] .mesh .bg-white\/10:hover{background:#E4E7EB}
html[data-theme="light"] .mesh .bg-white\/10[class*="text-white"]{color:#0A0B0D}

/* ---- Buttons / utilities (original blue accent, pill shapes) ---- */
html[data-theme="light"] .bg-\[\#0057ff\]{background-color:#0057FF;color:#fff}
html[data-theme="light"] .hover\:bg-\[\#0046cc\]:hover{background-color:#0046CC}
html[data-theme="light"] .bg-white\/10{background-color:#EEF0F3}
html[data-theme="light"] .ring-white\/20{--tw-ring-color:#E5E7EB}
html[data-theme="light"] .border-white\/10{border-color:#E5E7EB}

/* ---- Cards & bands on Next pages (original light surfaces, refined) ---- */
html[data-theme="light"] section.bg-white,
html[data-theme="light"] .bg-\[\#f5f7fa\]{background-color:#F7F8FA}
html[data-theme="light"] .bg-white{background-color:#fff}
html[data-theme="light"] .border-\[\#e3e8ef\],html[data-theme="light"] .border-\[\#c9d3de\],html[data-theme="light"] .border-\[\#c5d0dc\],html[data-theme="light"] .border-\[\#d5dee8\]{border-color:#E5E7EB}
html[data-theme="light"] .text-\[\#0b1220\],html[data-theme="light"] .text-\[\#12181f\],html[data-theme="light"] .text-\[\#1c2833\]{color:#0A0B0D}
html[data-theme="light"] .text-\[\#3e4d5f\],html[data-theme="light"] .text-\[\#31404d\],html[data-theme="light"] .text-\[\#5c6d7c\],html[data-theme="light"] .text-\[\#6a7888\],html[data-theme="light"] .text-\[\#6b7c8d\]{color:#4B5563}
html[data-theme="light"] .text-\[\#0057ff\]{color:#0057FF}
html[data-theme="light"] .rounded-3xl,html[data-theme="light"] .rounded-2xl{border-radius:20px}
html[data-theme="light"] main .shadow-sm,html[data-theme="light"] main .shadow{box-shadow:0 1px 2px rgba(10,11,13,.04)}

/* ---- Alliance section ---- */
html[data-theme="light"] .xr-alliance{background:radial-gradient(120% 90% at 85% 0,rgba(0,87,255,.08),transparent 60%),#F7F8FA;border-top-color:#E5E7EB;color:#0A0B0D}
html[data-theme="light"] .xr-alliance [class*="text-white"]:not(.bg-\[\#0057ff\]){color:#4B5563}
html[data-theme="light"] .xr-alliance h1,html[data-theme="light"] .xr-alliance h2,html[data-theme="light"] .xr-alliance h3{color:#0A0B0D}
html[data-theme="light"] .xr-eyebrow{color:#0057FF}

/* ---- Intake / forms ---- */
html[data-theme="light"] .xr-intake{background:transparent;color:#0A0B0D}
html[data-theme="light"] .xr-intake h1,html[data-theme="light"] .xr-intake label{color:#0A0B0D}
html[data-theme="light"] .xr-intake form{background:#fff;border-color:#E5E7EB;color:#0A0B0D}
html[data-theme="light"] .xr-intake input,html[data-theme="light"] .xr-intake select,html[data-theme="light"] .xr-intake textarea{background:#fff;border-color:#D1D5DB;color:#0A0B0D}
html[data-theme="light"] .xr-intake input::placeholder,html[data-theme="light"] .xr-intake textarea::placeholder{color:#6B7280}
html[data-theme="light"] .xr-intake option{background:#fff;color:#0A0B0D}
html[data-theme="light"] .xr-intake button{background:#0057FF;color:#fff}
html[data-theme="light"] .xr-intake button:hover{background:#0046CC}
html[data-theme="light"] .xr-intake a{color:#0057FF}
html[data-theme="light"] .xr-intake .notice{color:#4B5563}
html[data-theme="light"] .xr-intake .preview,html[data-theme="light"] .preview{background:#EEF4FF;border-color:#C7D7FE;color:#0046CC}
html[data-theme="light"] .xr-intake #status.error{color:#B42318}
html[data-theme="light"] .xr-intake input[aria-invalid="true"],html[data-theme="light"] .xr-intake textarea[aria-invalid="true"],html[data-theme="light"] .xr-intake select[aria-invalid="true"]{border-color:#B42318;color:#0A0B0D}
html[data-theme="light"] :focus-visible{outline-color:#0057FF}

/* ---- Partner API page (.pa-page uses its own variables) ---- */
html[data-theme="light"] .pa-page{
  --navy:#FFFFFF;--navy-2:#F7F8FA;--navy-3:#FFFFFF;--accent:#0057FF;--accent-hover:#0046CC;--accent-soft:#0057FF;
  --outline:#E5E7EB;--subtext:#4B5563;--ink:#0A0B0D;--muted:#4B5563;--line:#E5E7EB;--paper:#F7F8FA;--xr-sub:#4B5563;
  background:#fff;color:#0A0B0D;
}

/* ---- Dark feature cards become light cards ---- */
html[data-theme="light"] .bg-\[\#0b1220\]{background:#F7F8FA;color:#0A0B0D;border-color:#E5E7EB}
html[data-theme="light"] .bg-\[\#0b1220\] .text-white{color:#0A0B0D}
html[data-theme="light"] .bg-\[\#0b1220\] [class*="text-white/"],html[data-theme="light"] .bg-\[\#0b1220\] [class*="text-\[\#"]{color:#4B5563}
html[data-theme="light"] .bg-\[\#0b1220\] [class*="border-white"]{border-color:#E5E7EB}

/* ---- Sub-page hero (product, who-its-for, legal, thank-you): main>article>header ---- */
html[data-theme="light"] main>article>header:first-child{color:#0A0B0D}
html[data-theme="light"] main>article>header:first-child:before{background:radial-gradient(900px 420px at 90% -20%,rgba(0,87,255,.10),transparent 60%),#F7F8FA;border-bottom:1px solid #E5E7EB}
html[data-theme="light"] main>article>header:first-child h1{color:#0A0B0D}
html[data-theme="light"] main>article>header:first-child p{color:#4B5563}
html[data-theme="light"] main>article>header:first-child p.uppercase{color:#0057FF}
html[data-theme="light"] main>article>header:first-child a:not([class*=bg-]){color:#0057FF}

/* ---- Alliance (deck-palette variables) ---- */
html[data-theme="light"]{--x-deck-navy:#F7F8FA;--x-deck-panel:#FFFFFF;--x-deck-accent:#0057FF;--x-deck-text:#0A0B0D;--x-deck-muted:#4B5563}
html[data-theme="light"] .xr-step{border-color:#E5E7EB;background:#fff;box-shadow:0 1px 2px rgba(10,11,13,.04)}
html[data-theme="light"] .xr-step-t{color:#0A0B0D}
html[data-theme="light"] .xr-link{color:#0057FF}
html[data-theme="light"] .xr-btn:focus-visible,html[data-theme="light"] .xr-link:focus-visible{outline-color:#0057FF}
html[data-theme="light"] .xr-alliance-title{color:#0A0B0D}

/* ---- Partner API ---- */
html[data-theme="light"] .pa-page > header.sticky{background:var(--hdr-bg);border-bottom-color:var(--hdr-line)}
html[data-theme="light"] .pa-page > footer{background:#F7F8FA;border-top-color:#E5E7EB}
html[data-theme="light"] .pa-hero,html[data-theme="light"] .pa-page .mesh.pa-hero,html[data-theme="light"] .pa-hero.mesh{color:#0A0B0D;
  background:radial-gradient(900px 520px at 90% -10%,rgba(0,87,255,.10),transparent 60%),radial-gradient(700px 400px at 0% 0%,rgba(0,87,255,.05),transparent 55%),#F7F8FA;border-bottom:1px solid #E5E7EB}
html[data-theme="light"] .pa-hero .mesh-shift{display:none}
html[data-theme="light"] .pa-hero h1,html[data-theme="light"] .pa-section h2,html[data-theme="light"] .pa-section-navy h2,
html[data-theme="light"] .pa-path h3,html[data-theme="light"] .pa-card h3,html[data-theme="light"] .pa-step h3,html[data-theme="light"] .pa-sec h3,
html[data-theme="light"] .pa-use h3,html[data-theme="light"] .pa-request-aside h3,html[data-theme="light"] .pa-dx-own h3,html[data-theme="light"] .pa-buildout h3,
html[data-theme="light"] .xr-intake.pa-intake label,html[data-theme="light"] .xr-intake .pa-buildout .pa-check label,html[data-theme="light"] .pa-input-prefix{color:#0A0B0D}
html[data-theme="light"] .pa-kicker,html[data-theme="light"] .pa-eyebrow,html[data-theme="light"] .pa-path-label,html[data-theme="light"] .pa-use .pa-kicker,html[data-theme="light"] .pa-use .pa-use-label,
html[data-theme="light"] .pa-faq-contact a,html[data-theme="light"] .xr-intake.pa-intake a{color:#0057FF}
html[data-theme="light"] .pa-section-navy{background:radial-gradient(900px 480px at 85% 0,rgba(0,87,255,.07),transparent 58%),#fff;color:#0A0B0D}
html[data-theme="light"] .pa-section-paper{background:#F7F8FA}
html[data-theme="light"] .pa-section-white,html[data-theme="light"] .pa-paths-section{background:#fff}
html[data-theme="light"] .pa-btn-ghost{background:#EEF0F3;color:#0A0B0D;border-color:#E5E7EB}
html[data-theme="light"] .pa-btn-ghost:hover{background:#E4E7EB;color:#0A0B0D;border-color:#D1D5DB}
html[data-theme="light"] .pa-card,html[data-theme="light"] .pa-path,html[data-theme="light"] .pa-sec,html[data-theme="light"] .pa-use,html[data-theme="light"] .pa-dx-own,
html[data-theme="light"] .pa-request-aside,html[data-theme="light"] .pa-est-controls,html[data-theme="light"] .pa-est-summary{background:#fff;border-color:#E5E7EB;box-shadow:0 1px 2px rgba(10,11,13,.04)}
html[data-theme="light"] .pa-icon{background:#EEF4FF;color:#0057FF}
html[data-theme="light"] .pa-steps:before{background:#E5E7EB}
html[data-theme="light"] .pa-faq,html[data-theme="light"] .pa-faq details{border-color:#E5E7EB}
html[data-theme="light"] .pa-faq summary{color:#0A0B0D}
html[data-theme="light"] .pa-faq summary:after{border-color:#0057FF}
html[data-theme="light"] .xr-intake.pa-intake form,html[data-theme="light"] .pa-features{background:#fff;border-color:#E5E7EB}
html[data-theme="light"] .xr-intake.pa-intake input,html[data-theme="light"] .xr-intake.pa-intake select,html[data-theme="light"] .xr-intake.pa-intake textarea,html[data-theme="light"] .pa-input-affix{background:#fff;border-color:#D1D5DB;color:#0A0B0D}
html[data-theme="light"] .xr-intake.pa-intake .pa-input-affix input{background:transparent;border:0}
html[data-theme="light"] .xr-intake.pa-intake textarea::placeholder{color:#6B7280}
html[data-theme="light"] .xr-intake.pa-intake option{background:#fff;color:#0A0B0D}
html[data-theme="light"] .pa-features legend{color:#0A0B0D}
html[data-theme="light"] .pa-buildout,html[data-theme="light"] .pa-est-note{background:#EEF4FF;border-color:#0057FF;color:#0A0B0D}
html[data-theme="light"] .pa-network-tabs label{background:#fff;color:#4B5563;border-color:#E5E7EB}
html[data-theme="light"] .pa-network-tabs label:hover{color:#0A0B0D;border-color:#0057FF}
html[data-theme="light"] .pa-network-visual{background:#0B1220;border-color:#0B1220} /* diagram stays dark by design: white labels, arrows */
html[data-theme="light"] .pa-est h3,html[data-theme="light"] .pa-est-sub,html[data-theme="light"] .pa-est-row-head label,html[data-theme="light"] .pa-est-row-est strong{color:#0A0B0D}
html[data-theme="light"] .pa-est-lead,html[data-theme="light"] .pa-est-help,html[data-theme="light"] .pa-est-hint,html[data-theme="light"] .pa-est-row-est,html[data-theme="light"] .pa-est-scale{color:#4B5563}
html[data-theme="light"] .pa-est-value{color:#0057FF}
html[data-theme="light"] .pa-est-budgets{border-color:#E5E7EB}
html[data-theme="light"] .pa-est input[type=range]::-webkit-slider-runnable-track{background:#D1D5DB}
html[data-theme="light"] .pa-est input[type=range]::-moz-range-track{background:#D1D5DB}
/* code blocks keep a dark editor surface (readable syntax colours) */
html[data-theme="light"] .pa-code-block{box-shadow:0 8px 24px rgba(10,11,13,.12)}
html[data-theme="light"] .pa-est-sum-row{color:#4B5563;border-bottom-color:#E5E7EB}
html[data-theme="light"] .pa-est-sum-row strong{color:#0A0B0D}
html[data-theme="light"] .pa-est-sum-lead,html[data-theme="light"] .pa-est-sum-lead strong,html[data-theme="light"] .pa-est-total strong,html[data-theme="light"] .pa-est-empty{color:#0057FF}
html[data-theme="light"] .pa-est-sum-lead{border-bottom-color:#E5E7EB}
html[data-theme="light"] .pa-est-total{color:#0A0B0D}
html[data-theme="light"] .pa-est-toggle label{color:#0A0B0D}
html[data-theme="light"] .pa-est-row.is-off .pa-est-toggle label,html[data-theme="light"] .pa-est-row.is-off .pa-est-row-est,html[data-theme="light"] .pa-est-row.is-off .pa-est-value,
html[data-theme="light"] .pa-est-row.is-off .pa-est-hint,html[data-theme="light"] .pa-est-row.is-off .pa-est-row-est strong,
html[data-theme="light"] .pa-est-sum-row.is-off,html[data-theme="light"] .pa-est-sum-row.is-off strong{color:#6B7280}

/* ---- x2xCapital investor page (own site.css, hardcoded dark) ---- */
html[data-theme="light"] .bg{background:#fff}
html[data-theme="light"] .inv,html[data-theme="light"] .inv h1,html[data-theme="light"] .inv h2,html[data-theme="light"] .inv h3,html[data-theme="light"] .hero h1,html[data-theme="light"] .step h3,html[data-theme="light"] .kpi .v,html[data-theme="light"] .doc h3{color:#0A0B0D}
html[data-theme="light"] .hero h1 em{color:#0057FF}
html[data-theme="light"] .inv .sub,html[data-theme="light"] .doc p,html[data-theme="light"] .kpi p,html[data-theme="light"] .step p,html[data-theme="light"] .platform,html[data-theme="light"] .hero p.lede,html[data-theme="light"] .risks ul{color:#4B5563}
html[data-theme="light"] .kpi p b,html[data-theme="light"] .platform b,html[data-theme="light"] .risks .sum{color:#0A0B0D}
html[data-theme="light"] .kpi,html[data-theme="light"] .doc,html[data-theme="light"] .step{background:#fff;border-color:#E5E7EB;box-shadow:0 1px 2px rgba(10,11,13,.04)}
html[data-theme="light"] .steps{background:#E5E7EB;border-color:#E5E7EB}
html[data-theme="light"] .kpi .k,html[data-theme="light"] .eyebrow,html[data-theme="light"] .step .n{color:#0057FF}
html[data-theme="light"] .conf{background:#EEF4FF;border-color:#C7D7FE;color:#1E3A8A}
html[data-theme="light"] .risks{background:#FEF3F2;border-color:#F5B8B3}
html[data-theme="light"] .risks h3{color:#7A1D16}
html[data-theme="light"] .risks ul{color:#3D1C1A}
html[data-theme="light"] .gallery img{border-color:#E5E7EB}
html[data-theme="light"] .btn.ghost{border-color:#D1D5DB;color:#0A0B0D;background:#EEF0F3}
html[data-theme="light"] .btn.ghost:hover{background:#E4E7EB;border-color:#D1D5DB}
html[data-theme="light"] .btn.primary{background:#0057FF;color:#fff}
html[data-theme="light"] .badge{color:#7A1D16}
html[data-theme="light"] .foot,html[data-theme="light"] .disclaimer{color:#4B5563}
html[data-theme="light"] section.contact{background:#F7F8FA}
