/* Taxeaz calculators */
.tool-hero { background: radial-gradient(900px 340px at 85% -10%, rgba(13,148,136,.14), transparent 60%), radial-gradient(800px 320px at 0% 0%, rgba(79,70,229,.12), transparent 60%), #f8fafc; }
.tcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -26px rgba(15,23,42,.25); min-width: 0; }
@media (min-width: 640px) { .tcard { padding: 1.75rem; } }
.tcard h2.th { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: 1.1rem; }
.tf { margin-bottom: 1.3rem; }
.tf-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.tf-h label { font-size: .85rem; font-weight: 700; color: #334155; }
.tf-box { display: flex; align-items: center; gap: .25rem; background: #eef2ff; border: 1.5px solid transparent; border-radius: .7rem; padding: .32rem .7rem; font-weight: 800; color: #3730a3; min-width: 0; }
.tf-box:focus-within { border-color: #6366f1; background: #fff; }
.tf-box input { width: 6.8rem; max-width: 40vw; text-align: right; background: transparent; border: 0; outline: 0; font: inherit; color: inherit; padding: 0; }
.tf-box span { color: #6366f1; font-weight: 700; font-size: .85rem; }
.tf-m { display: flex; justify-content: space-between; font-size: .68rem; color: #94a3b8; font-weight: 600; margin-top: .35rem; }
.tf-r { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border-radius: 99px; outline: 0; cursor: pointer; background: linear-gradient(90deg, #4f46e5, #0d9488) 0 / var(--p, 0%) 100% no-repeat, #e2e8f0; }
.tf-r::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #4f46e5; box-shadow: 0 2px 6px rgba(79,70,229,.4); }
.tf-r::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid #4f46e5; box-shadow: 0 2px 6px rgba(79,70,229,.4); }
.tf-r:focus-visible::-webkit-slider-thumb { outline: 3px solid #a5b4fc; }
.tf-r:focus-visible::-moz-range-thumb { outline: 3px solid #a5b4fc; }
.seg { display: inline-flex; flex-wrap: wrap; background: #f1f5f9; border-radius: .75rem; padding: 3px; gap: 2px; }
.seg button { padding: .42rem .85rem; border-radius: .6rem; font-size: .78rem; font-weight: 700; color: #64748b; }
.seg button.on { background: #fff; color: #4338ca; box-shadow: 0 1px 3px rgba(15,23,42,.14); }
.ctl { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ctl > span { font-size: .85rem; font-weight: 700; color: #334155; }
.sel { background: #eef2ff; color: #3730a3; font-weight: 700; font-size: .85rem; border-radius: .6rem; padding: .4rem .6rem; border: 1.5px solid transparent; }
.sel:focus { outline: 0; border-color: #6366f1; }
.sw { position: relative; display: inline-flex; width: 2.7rem; height: 1.5rem; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; margin: 0; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1; transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sw input:checked + i { background: linear-gradient(135deg, #4f46e5, #0d9488); }
.sw input:checked + i::after { transform: translateX(1.2rem); }
.sw input:focus-visible + i { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.res-main { background: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%); color: #fff; border-radius: 1.2rem; padding: 1.2rem 1.4rem; }
.res-main small { display: block; font-size: .78rem; font-weight: 700; opacity: .85; }
.res-main b { display: block; font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.res-main em { font-style: normal; font-size: .78rem; opacity: .9; font-weight: 600; }
.stat { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; padding: .8rem 1rem; min-width: 0; }
.stat small { display: block; font-size: .72rem; font-weight: 700; color: #64748b; }
.stat b { display: block; font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-top: 2px; overflow-wrap: anywhere; }
.stat.ok { background: #ecfdf5; border-color: #a7f3d0; } .stat.ok b { color: #047857; }
.dn { position: relative; width: 11.5rem; max-width: 100%; aspect-ratio: 1; flex: none; margin: 0 auto; }
.dn svg { width: 100%; height: 100%; display: block; }
.dn-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 1.8rem; }
.dn-c small { font-size: .68rem; font-weight: 700; color: #64748b; }
.dn-c b { font-size: 1.02rem; font-weight: 900; color: #0f172a; }
.lg { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: #475569; font-weight: 600; }
.lg i { width: .8rem; height: .8rem; border-radius: 4px; flex: none; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; }
.tt { position: absolute; top: 6px; transform: translateX(-50%); background: #0f172a; color: #fff; border-radius: .75rem; padding: .55rem .75rem; font-size: .74rem; line-height: 1.5; pointer-events: none; white-space: nowrap; box-shadow: 0 12px 28px -10px rgba(15,23,42,.5); z-index: 5; }
.tt b { font-weight: 800; }
.tt-r { display: flex; justify-content: space-between; gap: 1rem; }
.tt-r i { display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; margin-right: .4rem; }
.tw { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 1rem; max-height: 30rem; overflow-y: auto; }
.tw table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 38rem; }
.tw th { position: sticky; top: 0; background: #f1f5f9; color: #475569; font-weight: 800; text-align: right; padding: .65rem .8rem; white-space: nowrap; z-index: 1; }
.tw td { text-align: right; padding: .6rem .8rem; border-top: 1px solid #eef2f7; color: #334155; white-space: nowrap; }
.tw th:first-child, .tw td:first-child { text-align: left; }
.tw tr.yr td { font-weight: 700; color: #0f172a; background: #fff; }
.tw tr.mo td { background: #f8fafc; font-size: .78rem; }
.tw tr.mo td:first-child { padding-left: 1.7rem; }
.tw .xp { width: 1.4rem; height: 1.4rem; border-radius: .4rem; background: #eef2ff; color: #4338ca; font-size: .6rem; margin-right: .45rem; }
.tw .xp[aria-expanded="true"] i { transform: rotate(90deg); }
.tw .xp i { transition: transform .15s; }
.btn-o { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: .8rem; border: 1px solid #c7d2fe; color: #4338ca; font-weight: 700; font-size: .8rem; background: #fff; }
.btn-o:hover { background: #eef2ff; }
.chip { padding: .4rem .85rem; border-radius: 99px; background: #fff; border: 1px solid #e2e8f0; font-size: .78rem; font-weight: 700; color: #475569; }
.chip:hover, .chip.on { background: #eef2ff; border-color: #a5b4fc; color: #3730a3; }
.adv > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: .9rem; color: #3730a3; padding: .8rem 1rem; background: #eef2ff; border-radius: .9rem; }
.adv > summary::-webkit-details-marker { display: none; }
.adv[open] > summary i { transform: rotate(180deg); }
.adv > summary i { transition: transform .2s; }
.adv-b { padding-top: 1.2rem; }
.sub { font-size: .72rem; font-weight: 800; color: #64748b; text-transform: none; margin: 1.2rem 0 .8rem; padding-top: 1rem; border-top: 1px dashed #e2e8f0; }
.prose-t h2 { font-size: 1.4rem; font-weight: 900; color: #0f172a; margin: 2rem 0 .7rem; letter-spacing: -.01em; }
.prose-t h3 { font-size: 1.05rem; font-weight: 800; color: #1e293b; margin: 1.4rem 0 .4rem; }
.prose-t p, .prose-t li { color: #475569; line-height: 1.75; font-size: .96rem; }
.prose-t p { margin: .6rem 0; }
.prose-t ul { list-style: disc; padding-left: 1.3rem; margin: .6rem 0; }
.prose-t li { margin: .3rem 0; }
.formula { background: #0f172a; color: #e2e8f0; border-radius: 1rem; padding: 1rem 1.2rem; font-size: .92rem; overflow-x: auto; margin: .9rem 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.faq details { border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: #0f172a; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: #4f46e5; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 1.2rem 1.1rem; color: #475569; line-height: 1.7; font-size: .93rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .sw i, .sw i::after, .tw .xp i { transition: none; } }
.tw .xp { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
/* hero promo: slim panel on desktop, hidden on small screens so the calculator stays first */
.tool-hero .bp-hr { display: none; }
@media (min-width: 1024px) {
  .tool-hero .bp-hr { display: block; }
  .tool-hero .bp-split { grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; }
}
.th-promo { display: grid; gap: .35rem; padding: 1.2rem 1.3rem; border-radius: 1.2rem; color: #fff; background: linear-gradient(135deg, #4f46e5, #0d9488); box-shadow: 0 18px 36px -20px rgba(79,70,229,.7); }
.th-promo b { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.th-promo span { font-size: .85rem; opacity: .9; }
.th-promo a { margin-top: .6rem; text-align: center; background: #fff; color: #4f46e5; font-weight: 800; padding: .6rem 1rem; border-radius: .8rem; font-size: .9rem; }

/* Flashy / shiny promotions */
.th-promo, .tool-page .bp-promo, .tp-cta { position: relative; overflow: hidden; background: linear-gradient(115deg, #4f46e5, #0d9488, #6366f1, #0d9488); background-size: 260% 100%; animation: tpFlow 7s ease-in-out infinite; }
.th-promo::before, .bp-promo::before, .tp-cta::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 28%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: tpShine 3.6s ease-in-out infinite; pointer-events: none; }
.th-promo > *, .bp-promo > *, .tp-cta > * { position: relative; }
.th-promo a, .bp-promo a, .tp-cta a.tp-btn { position: relative; animation: tpPulse 2.2s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(255,255,255,.65); }
.th-promo a::after { content: ""; }
.th-promo b::before { content: "\2728  "; }
.bp-promo-t b::before { content: "\2728  "; }
@keyframes tpFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes tpShine { 0% { left: -40%; } 55%, 100% { left: 140%; } }
@keyframes tpPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); transform: scale(1); } 60% { box-shadow: 0 0 0 12px rgba(255,255,255,0); transform: scale(1.04); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .th-promo, .bp-promo, .tp-cta, .th-promo::before, .bp-promo::before, .tp-cta::before, .th-promo a, .bp-promo a, .tp-cta a.tp-btn { animation: none !important; } }

/* Service pages */
.sv-hero .bp-hr { display: block; }
.sv-hero .bp-split { align-items: end; gap: 1rem; }
.sv-tara { display: flex; justify-content: center; }
.sv-stage { position: relative; width: 100%; max-width: 20rem; display: flex; justify-content: flex-end; padding-right: 1.2rem; }
.sv-stage img { height: 11rem; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(15,23,42,.22)); }
.sv-bub { position: absolute; top: .4rem; left: 0; max-width: 58%; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem 1rem 1rem .25rem; padding: .55rem .75rem; font-size: .76rem; font-weight: 700; line-height: 1.35; color: #1e293b; box-shadow: 0 10px 24px -14px rgba(15,23,42,.4); }
.sv-name { position: absolute; right: 0; bottom: 4%; background: #4f46e5; color: #fff; font-size: .7rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; }
@media (min-width: 1024px) {
  .sv-hero .bp-split { grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; }
  .sv-stage img { height: 14.5rem; }
  .sv-bub { font-size: .8rem; top: 1.2rem; }
}
.sv-card { padding: 1.3rem 1.4rem; }
.sv-h { display: flex; align-items: center; gap: .65rem; font-size: 1.02rem; font-weight: 800; color: #0f172a; margin-bottom: .9rem; }
.sv-ic { width: 2rem; height: 2rem; flex: none; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; background: linear-gradient(135deg, #4f46e5, #0d9488); }
.sv-list { display: grid; gap: .55rem; }
.sv-list li { position: relative; padding-left: 1.4rem; font-size: .9rem; line-height: 1.55; color: #475569; }
.sv-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #0d9488; font-weight: 900; }
.sv-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: .7rem; font-size: .88rem; font-weight: 600; color: #334155; }
.sv-link i { color: #4f46e5; width: 1.1rem; text-align: center; font-size: .85rem; }
.sv-link:hover { background: #eef2ff; color: #4338ca; }
.tp-cta { padding-right: 1.75rem; }
.sv-cta-img { display: none; }
@media (min-width: 768px) {
  .sv-cta-img { display: block; position: absolute; right: 9.5rem; bottom: 0; height: 7.6rem; width: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
  .tp-cta:has(.sv-cta-img) { padding-right: 18rem; }
}
