/* =============================================
   inqtax.com - Light mode
   =============================================
   The site is designed dark. When a visitor flips the sun/moon switch,
   theme.js adds class "inq-light" to <html> and these rules repaint the
   dark Tailwind colors as light ones. Nothing here applies in dark mode.
   Every rule starts with html.inq-light so it always wins over the
   page's own Tailwind classes, whatever order they load in. */

html.inq-light { color-scheme: light; }

/* ---- Page ---- */
html.inq-light body {
    background-color: #f5f7fb !important;
    color: #1e293b !important;
}
html.inq-light ::-webkit-scrollbar-track { background: #eef2f7; }
html.inq-light ::-webkit-scrollbar-thumb { background: #cbd5e1; }
html.inq-light ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html.inq-light ::selection { background: #bfdbfe; color: #0f172a; }

/* ---- Backgrounds ---- */
html.inq-light .bg-darkbg,
html.inq-light .bg-gray-900,
html.inq-light .bg-gray-950 { background-color: #f5f7fb; }
html.inq-light .bg-darkbg\/80,
html.inq-light .bg-gray-900\/80,
html.inq-light .bg-gray-900\/90,
html.inq-light .bg-gray-900\/95 { background-color: rgba(255, 255, 255, 0.88); }
html.inq-light .bg-darkcard,
html.inq-light .bg-darkcard\/90,
html.inq-light .bg-darkcard\/60,
html.inq-light .bg-darkcard\/40 { background-color: #ffffff; }
html.inq-light .bg-gray-900\/60,
html.inq-light .bg-gray-900\/50,
html.inq-light .bg-gray-900\/30,
html.inq-light .bg-gray-950\/40 { background-color: rgba(241, 245, 249, 0.8); }
html.inq-light .bg-gray-800 { background-color: #eef2f7; }
html.inq-light .bg-gray-800\/50,
html.inq-light .bg-gray-800\/40,
html.inq-light .bg-gray-800\/30 { background-color: rgba(226, 232, 240, 0.5); }
html.inq-light .bg-gray-700 { background-color: #e2e8f0; }
html.inq-light .bg-gray-600 { background-color: #cbd5e1; }
html.inq-light .bg-black { background-color: #e2e8f0; }
html.inq-light .bg-black\/90 { background-color: rgba(15, 23, 42, 0.6); } /* modal backdrops stay dimmed */
html.inq-light .hover\:bg-gray-800:hover,
html.inq-light .hover\:bg-gray-800\/60:hover { background-color: #e2e8f0; }
html.inq-light .hover\:bg-gray-700:hover,
html.inq-light .hover\:bg-gray-600:hover { background-color: #cbd5e1; }

/* Footer: a soft gray band */
html.inq-light footer { background-color: #eef2f7 !important; }

/* Frosted "glass" cards */
html.inq-light .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}
html.inq-light .glass-card-hover:hover { box-shadow: 0 12px 28px -10px rgba(59, 130, 246, 0.25); }

/* Dark gradient bands (e.g. the savings banner) become pastel */
html.inq-light .from-emerald-950\/40,
html.inq-light .from-darkcard { --tw-gradient-from: #ecfdf5 var(--tw-gradient-from-position); --tw-gradient-to: rgb(236 253 245 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html.inq-light .from-darkcard { --tw-gradient-from: #ffffff var(--tw-gradient-from-position); }
html.inq-light .via-blue-950\/30 { --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #eff6ff var(--tw-gradient-via-position), var(--tw-gradient-to); }
html.inq-light .to-emerald-950\/40 { --tw-gradient-to: #ecfdf5 var(--tw-gradient-to-position); }
html.inq-light .to-blue-950\/20 { --tw-gradient-to: #eff6ff var(--tw-gradient-to-position); }
html.inq-light .bg-blue-950\/10,
html.inq-light .bg-red-950\/10 { background-color: rgba(241, 245, 249, 0.7); }

/* ---- Text ---- */
html.inq-light .text-white,
html.inq-light .hover\:text-white:hover,
html.inq-light .group:hover .group-hover\:text-white { color: #0f172a; }
html.inq-light .text-gray-100,
html.inq-light .text-gray-200 { color: #1e293b; }
html.inq-light .text-gray-300,
html.inq-light .hover\:text-gray-300:hover { color: #334155; }
html.inq-light .text-gray-400 { color: #475569; }
html.inq-light .text-gray-500 { color: #64748b; }
html.inq-light .text-gray-600 { color: #94a3b8; }
html.inq-light .placeholder-gray-500::placeholder { color: #94a3b8; }

/* Colored accent text: the bright -300/-400 shades are made for dark
   backgrounds, so use the deeper shade of the same color on light. */
html.inq-light .text-blue-300, html.inq-light .text-blue-400,
html.inq-light .hover\:text-blue-300:hover, html.inq-light .hover\:text-blue-400:hover,
html.inq-light .group:hover .group-hover\:text-blue-400 { color: #2563eb; }
html.inq-light .text-cyan-300, html.inq-light .text-cyan-400 { color: #0891b2; }
html.inq-light .text-teal-300, html.inq-light .text-teal-400 { color: #0d9488; }
html.inq-light .text-emerald-300, html.inq-light .text-emerald-400,
html.inq-light .hover\:text-emerald-300:hover { color: #047857; }
html.inq-light .text-green-300, html.inq-light .text-green-400,
html.inq-light .hover\:text-green-300:hover { color: #15803d; }
html.inq-light .text-purple-300, html.inq-light .text-purple-400,
html.inq-light .hover\:text-purple-300:hover { color: #7c3aed; }
html.inq-light .text-red-300, html.inq-light .text-red-400 { color: #dc2626; }
html.inq-light .text-yellow-300, html.inq-light .text-yellow-400 { color: #b45309; }
html.inq-light .text-amber-300, html.inq-light .text-amber-400 { color: #b45309; }
html.inq-light .text-orange-300, html.inq-light .text-orange-400 { color: #c2410c; }
html.inq-light .text-indigo-300, html.inq-light .text-indigo-400 { color: #4f46e5; }
html.inq-light .text-pink-300, html.inq-light .text-pink-400 { color: #db2777; }

/* White text that sits ON a solid colored button or badge stays white. */
html.inq-light [class*="bg-gradient"].text-white,
html.inq-light [class*="bg-blue-5"].text-white, html.inq-light [class*="bg-blue-6"].text-white, html.inq-light [class*="bg-blue-7"].text-white,
html.inq-light [class*="bg-emerald-5"].text-white, html.inq-light [class*="bg-emerald-6"].text-white,
html.inq-light [class*="bg-green-5"].text-white, html.inq-light [class*="bg-green-6"].text-white,
html.inq-light [class*="bg-purple-5"].text-white, html.inq-light [class*="bg-purple-6"].text-white,
html.inq-light [class*="bg-red-5"].text-white, html.inq-light [class*="bg-red-6"].text-white,
html.inq-light [class*="bg-cyan-5"].text-white, html.inq-light [class*="bg-cyan-6"].text-white,
html.inq-light [class*="bg-indigo-5"].text-white, html.inq-light [class*="bg-indigo-6"].text-white,
html.inq-light [class*="bg-yellow-5"].text-white, html.inq-light [class*="bg-orange-5"].text-white,
html.inq-light .bg-blue-600 .text-white,
html.inq-light .bg-emerald-600 .text-white { color: #ffffff; }
/* ...but translucent tints like bg-blue-500/10 are light, so their text goes dark again */
html.inq-light [class*="bg-blue-500/"].text-white,
html.inq-light [class*="bg-emerald-500/"].text-white,
html.inq-light [class*="bg-green-500/"].text-white,
html.inq-light [class*="bg-purple-500/"].text-white,
html.inq-light [class*="bg-red-500/"].text-white { color: #0f172a; }
/* Gradient-filled headline text keeps its gradient */
html.inq-light .bg-clip-text.text-transparent { color: transparent; }
/* ...in deeper shades, since the bright dark-mode ones wash out on white */
html.inq-light .bg-clip-text.from-blue-400 { --tw-gradient-from: #2563eb var(--tw-gradient-from-position); --tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html.inq-light .bg-clip-text.via-cyan-300 { --tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to); }
html.inq-light .bg-clip-text.via-blue-500 { --tw-gradient-stops: var(--tw-gradient-from), #1d4ed8 var(--tw-gradient-via-position), var(--tw-gradient-to); }
html.inq-light .bg-clip-text.to-teal-300,
html.inq-light .bg-clip-text.to-teal-500 { --tw-gradient-to: #0d9488 var(--tw-gradient-to-position); }
html.inq-light .bg-clip-text.to-cyan-400,
html.inq-light .bg-clip-text.to-cyan-500 { --tw-gradient-to: #0891b2 var(--tw-gradient-to-position); }

/* Inside a solid blue/green button (e.g. the selected product tab),
   small accent labels keep their bright dark-mode color. */
html.inq-light [class~="bg-blue-600"] .text-green-400,
html.inq-light [class~="bg-blue-600"] .text-emerald-400 { color: #86efac; }
html.inq-light [class~="bg-blue-600"] .text-blue-400,
html.inq-light [class~="bg-blue-600"] .text-gray-300,
html.inq-light [class~="bg-blue-600"] .text-gray-400 { color: #dbeafe; }

/* ---- Borders & dividers ---- */
html.inq-light .border-darkborder,
html.inq-light .border-gray-800,
html.inq-light .border-gray-800\/80,
html.inq-light .border-gray-700\/50 { border-color: #e2e8f0; }
html.inq-light .border-gray-700 { border-color: #d6dde8; }
html.inq-light .border-gray-600,
html.inq-light .hover\:border-gray-600:hover,
html.inq-light .hover\:border-gray-500:hover { border-color: #cbd5e1; }
html.inq-light .divide-gray-800 > :not([hidden]) ~ :not([hidden]),
html.inq-light .divide-gray-800\/60 > :not([hidden]) ~ :not([hidden]) { border-color: #e2e8f0; }

/* ---- Forms ---- */
html.inq-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.inq-light select,
html.inq-light textarea {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* ---- Page-specific pieces with their own dark styling ---- */
/* S-Corp calculator's black "high-visibility" inputs */
html.inq-light .form-input { background-color: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
html.inq-light .form-input::placeholder { color: #94a3b8 !important; }
html.inq-light select.form-input option { background-color: #ffffff !important; color: #0f172a !important; }
/* Payment plan's result card */
html.inq-light .print-card { background: #ffffff !important; border-color: #e2e8f0 !important; }
/* Features page product pills */
html.inq-light .product-pill:not(.active):hover { background-color: #e2e8f0; color: #0f172a; }
/* Savings calculator monthly/annual switch */
html.inq-light .toggle-track { background: #eef2f7; border-color: #cbd5e1; }
html.inq-light .toggle-option:not(.active) { color: #475569; }

/* ---- Images & screenshots ----
   Product screenshots are pictures of the (dark) app, which is how it
   looks by default. A light frame keeps them from looking like holes. */
html.inq-light main img:not([src$=".svg"]) { box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.35); }

/* ---- The switch itself ---- */
.inq-theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fbbf24; cursor: pointer; flex-shrink: 0;
    transition: background-color .2s, border-color .2s, transform .2s;
}
.inq-theme-toggle:hover { background: rgba(255, 255, 255, 0.1); transform: rotate(-12deg); }
.inq-theme-toggle:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
html.inq-light .inq-theme-toggle { border-color: #cbd5e1; background: #ffffff; color: #4f46e5; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
html.inq-light .inq-theme-toggle:hover { background: #eef2ff; }

/* Smooth color fade only while switching (not on page load) */
html.inq-theme-anim, html.inq-theme-anim * {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}
/* Exactly one switch shows: next to the menu button on phones, in the
   header's button group on wider screens. */
@media (max-width: 639.98px) { .inq-theme-toggle.inq-tt-wide { display: none; } }
@media (min-width: 640px) { .inq-theme-toggle.inq-tt-phone { display: none; } }

/* Pale accent text (-100/-200) is for dark backgrounds; deepen it on
   light ones, but leave it alone inside solid blue/gradient panels. */
html.inq-light .text-blue-100:not([class*="bg-gradient"] *):not([class~="bg-blue-600"] *),
html.inq-light .text-blue-200:not([class*="bg-gradient"] *):not([class~="bg-blue-600"] *) { color: #1e40af; }
html.inq-light .text-teal-200:not([class*="bg-gradient"] *) { color: #0f766e; }

/* ---- Nov 22: light is now the default, so a few more dark-only colors ---- */
html.inq-light .bg-gray-900\/70 { background-color: #ffffff; }
html.inq-light .bg-gray-800\/60 { background-color: #ffffff; }
html.inq-light .bg-gray-700\/60 { background-color: #e2e8f0; }
html.inq-light .bg-\[\#161a22\] { background-color: #ffffff; }
html.inq-light .text-green-500, html.inq-light .text-green-600 { color: #15803d; }
html.inq-light .text-emerald-500 { color: #047857; }
html.inq-light [style*="color:#34d399"], html.inq-light [style*="color: #34d399"] { color: #047857 !important; }
html.inq-light .cmp-beta { color: #b45309; border-color: rgba(180, 83, 9, .4); background: rgba(251, 191, 36, .14); }
html.inq-light .cmp-link { color: #2563eb; }
html.inq-light .text-\[\#5c6374\] { color: #64748b; }
