/* ==========================================================================
   PADM India — theme on top of Bootstrap 5.3
   Modern, light, fintech-style. Only overrides + a few components; the grid,
   forms, buttons, navbar, offcanvas and utilities come from Bootstrap.
   ========================================================================== */

/* ---- Web font (self-hosted Inter variable, SIL OFL 1.1 — see ../fonts/LICENSE-Inter.txt) ---- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens -------------------------------------------------------- */
:root {
    --padm-nav-h: 64px;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
    --bs-body-color: #1e293b;
    --bs-body-color-rgb: 30, 41, 59;
    --bs-heading-color: #0b1b3f;
    --bs-secondary-color: #64748b;
    --bs-border-color: #e2e8f0;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-xl: 1.5rem;
    --bs-link-color: #2457f5;
    --bs-link-color-rgb: 36, 87, 245;
    --bs-link-hover-color: #1a41c2;
    --bs-link-hover-color-rgb: 26, 65, 194;

    --bs-primary: #2457f5;
    --bs-primary-rgb: 36, 87, 245;
    --bs-success: #0f9d76;
    --bs-success-rgb: 15, 157, 118;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: #dc2626;
    --bs-danger-rgb: 220, 38, 38;
    --bs-dark: #0b1b3f;
    --bs-dark-rgb: 11, 27, 63;

    --padm-navy: #0b1b3f;
    --padm-navy-2: #12285e;
    --padm-primary-dark: #1a41c2;
    --padm-soft: #f4f7ff;
    --padm-soft-2: #eef2ff;
    --padm-mint: #ecfdf5;
    --padm-amber: #fff7e6;
    --padm-shadow-sm: 0 1px 2px rgba(11, 27, 63, .06), 0 1px 3px rgba(11, 27, 63, .08);
    --padm-shadow: 0 10px 30px -10px rgba(11, 27, 63, .18);
    --padm-shadow-lg: 0 30px 60px -20px rgba(11, 27, 63, .28);
    --padm-gradient: linear-gradient(135deg, #2457f5 0%, #6d5dfc 55%, #0ea5a4 130%);
}
@media (min-width: 992px) { :root { --padm-nav-h: 72px; } }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--padm-nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700; letter-spacing: -0.02em;
}
.display-4, .display-5 { font-weight: 800; }
.lead { color: var(--bs-secondary-color); font-weight: 400; }
main { display: block; }
img, svg { max-width: 100%; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: .75rem; --bs-btn-padding-x: 1.25rem; --bs-btn-padding-y: .7rem; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease; }
.btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1.05rem; --bs-btn-border-radius: .9rem; }
.btn-sm { --bs-btn-border-radius: .55rem; }
.btn-primary {
    --bs-btn-bg: #2457f5; --bs-btn-border-color: #2457f5;
    --bs-btn-hover-bg: #1a41c2; --bs-btn-hover-border-color: #1a41c2;
    --bs-btn-active-bg: #163aa8; --bs-btn-active-border-color: #163aa8;
    --bs-btn-disabled-bg: #2457f5; --bs-btn-disabled-border-color: #2457f5;
    --bs-btn-focus-shadow-rgb: 36, 87, 245;
    box-shadow: 0 8px 20px -8px rgba(36, 87, 245, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(36, 87, 245, .75); }
.btn-outline-primary {
    --bs-btn-color: #2457f5; --bs-btn-border-color: #c7d2fe;
    --bs-btn-hover-bg: #eef2ff; --bs-btn-hover-color: #1a41c2; --bs-btn-hover-border-color: #2457f5;
    --bs-btn-active-bg: #e0e7ff; --bs-btn-active-color: #1a41c2; --bs-btn-active-border-color: #2457f5;
    --bs-btn-focus-shadow-rgb: 36, 87, 245;
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: #1a41c2; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-border-color: #f1f5f9; --bs-btn-hover-color: #163aa8; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-border-color: #fff; }
.btn[aria-busy="true"] { cursor: progress; opacity: .75; }

/* ---- Forms ---------------------------------------------------------------- */
.form-label { font-weight: 600; font-size: .9rem; color: var(--bs-heading-color); }
.form-label small, .form-label .muted { font-weight: 400; }
.form-control, .form-select { border-radius: .7rem; padding: .7rem .95rem; border-color: #dbe2ee; background-color: #fff; }
.form-control-lg, .form-select-lg { padding: .85rem 1.05rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: #2457f5; box-shadow: 0 0 0 .25rem rgba(36, 87, 245, .18); }
.form-control::placeholder { color: #94a3b8; }
.input-group-text { border-radius: .7rem; border-color: #dbe2ee; background: var(--padm-soft); color: var(--bs-secondary-color); font-weight: 600; }
.form-text, .form-hint { color: var(--bs-secondary-color); font-size: .875rem; }
.form-hint { display: flex; gap: .5rem; align-items: flex-start; margin: .25rem 0 0; }
.form-hint i { line-height: 1.5; }
.req { color: var(--bs-danger); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.invalid-feedback { font-weight: 500; }
.btn-check + .btn { font-weight: 600; }
.regime-group .btn { flex: 1 1 0; padding-left: .5rem; padding-right: .5rem; }
.regime-group .btn small { display: block; line-height: 1.1; }
@media (min-width: 576px) { .regime-group .btn small { display: inline; } }
fieldset.calc-fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
fieldset.calc-fieldset legend { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-primary); margin-bottom: 1rem; float: none; width: auto; }
.form-alert { border-radius: .9rem; }

/* ---- Accessibility ---------------------------------------------------------- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--padm-navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(36, 87, 245, .55); outline-offset: 2px; }
.btn:focus-visible { outline: none; }

/* ---- Top bar ---------------------------------------------------------------- */
.topbar { background: var(--padm-navy); color: rgba(255, 255, 255, .85); font-size: .85rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .bi { color: #8fb0ff; }
.topbar .social a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topbar .social a:hover { background: var(--bs-primary); color: #fff; }

/* ---- Navbar ------------------------------------------------------------------ */
.site-nav { min-height: var(--padm-nav-h); background: #fff; border-bottom: 1px solid var(--bs-border-color); }
/* No transform/filter/backdrop-filter on the sticky header: any of them would turn it into the
   containing block of the position:fixed offcanvas and clip the mobile menu to the header height. */
.offcanvas.offcanvas-end { height: 100dvh; }
.navbar-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; color: var(--padm-navy); font-size: 1.25rem; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--padm-gradient); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 8px 18px -8px rgba(36, 87, 245, .8); }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .28em; font-weight: 600; color: var(--bs-secondary-color); margin-top: 4px; line-height: 1; }
.site-nav .nav-link { font-weight: 600; color: #334155; padding: .6rem .9rem !important; border-radius: .6rem; white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .site-nav .nav-link { padding: .6rem .6rem !important; font-size: .95rem; } }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--bs-primary); background: var(--padm-soft); }
.site-nav .nav-link.active { color: var(--bs-primary); }
.site-nav .dropdown-menu { border: 0; border-radius: 1rem; box-shadow: var(--padm-shadow); padding: .5rem; min-width: 260px; }
.site-nav .dropdown-item { border-radius: .6rem; padding: .55rem .8rem; font-weight: 500; display: flex; gap: .65rem; align-items: center; }
.site-nav .dropdown-item .bi { color: var(--bs-primary); font-size: 1.05rem; }
.site-nav .dropdown-item:active { background: var(--padm-soft-2); color: var(--bs-primary); }
.navbar-toggler { border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(36, 87, 245, .25); }
.offcanvas.offcanvas-end { width: min(86vw, 340px); }
@media (max-width: 991.98px) {
    .site-nav .nav-link { padding: .8rem .9rem !important; font-size: 1.05rem; }
    .site-nav .dropdown-menu { box-shadow: none; background: var(--padm-soft); }
}

/* ---- Sections --------------------------------------------------------------- */
.section { padding: 3rem 0; }
.section-soft { background: var(--padm-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bs-primary); margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--padm-gradient); }
.eyebrow.centered { justify-content: center; }
.section-title { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.6rem); line-height: 1.15; }
.section-lead { color: var(--bs-secondary-color); font-size: 1.05rem; max-width: 640px; }
.text-gradient { background: var(--padm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Cards ---------------------------------------------------------------- */
.card { border: 1px solid var(--bs-border-color); border-radius: 1.25rem; box-shadow: var(--padm-shadow-sm); }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--padm-shadow); border-color: #c7d2fe; }
.icon-tile { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; background: var(--padm-soft-2); color: var(--bs-primary); }
.icon-tile.sm { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
.icon-tile.mint { background: var(--padm-mint); color: var(--bs-success); }
.icon-tile.amber { background: var(--padm-amber); color: #b45309; }
.icon-tile.navy { background: var(--padm-navy); color: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--padm-soft); color: #475569; border: 1px solid var(--bs-border-color); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow .bi { transition: transform .15s ease; }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---- Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 1.75rem 0 2rem; background: radial-gradient(1200px 600px at 85% -10%, #e0e7ff 0%, rgba(224, 231, 255, 0) 60%), radial-gradient(900px 500px at -10% 110%, #d1fae5 0%, rgba(209, 250, 229, 0) 60%), linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%); }
@media (min-width: 768px) { .hero { padding: 2.25rem 0 2.5rem; } }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .5rem; border-radius: 999px; background: #fff; border: 1px solid var(--bs-border-color); box-shadow: var(--padm-shadow-sm); font-size: .82rem; font-weight: 600; color: #334155; }
.hero-badge .dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--padm-mint); color: var(--bs-success); font-size: .8rem; }
.hero-title { font-size: clamp(1.6rem, 2.4vw + .75rem, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem .75rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--bs-border-color); }
@media (min-width: 576px) { .hero-stats { display: flex; flex-wrap: wrap; gap: .75rem 2rem; } }
@media (min-width: 992px) { .hero-stats { margin-top: 1.4rem; padding-top: 1.1rem; } }
.hero-stats .stat h3 { font-size: 1.4rem; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.hero-stats .stat h3 span { color: var(--bs-primary); }
.hero-stats .stat p { margin: 0; color: var(--bs-secondary-color); font-size: .8rem; font-weight: 500; }

/* Hero panel: live deadlines + updates + a compact rate ticker. Replaces the old decorative
   mock-invoice visual — same slot, but every pixel is now real, clickable data. */
.hero-panel { background: #fff; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; box-shadow: var(--padm-shadow); overflow: hidden; }
.hp-block { padding: .9rem 1rem; }
.hp-block + .hp-block { border-top: 1px solid var(--bs-border-color); }
.hp-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.hp-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.hp-title .bi { color: var(--bs-primary); font-size: .95rem; }
.hp-link { font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hp-link .bi { font-size: .7rem; }
.hp-empty { font-size: .85rem; color: var(--bs-secondary-color); }

.hp-deadlines, .hp-updates { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.hp-deadlines a { display: flex; align-items: center; gap: .65rem; padding: .35rem .4rem; border-radius: .6rem; text-decoration: none; color: inherit; }
.hp-deadlines a:hover { background: var(--padm-soft); }
.hp-date { flex: 0 0 auto; width: 38px; text-align: center; border-radius: .5rem; background: var(--padm-soft-2); padding: .2rem 0; line-height: 1.05; }
.hp-date b { display: block; font-size: .95rem; color: var(--padm-navy); }
.hp-date small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); }
.hp-info { min-width: 0; flex: 1 1 auto; }
.hp-name { display: block; font-size: .84rem; font-weight: 600; color: var(--padm-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-sub { display: block; font-size: .72rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-days { flex: 0 0 auto; font-size: .68rem; font-weight: 700; padding: .18rem .45rem; border-radius: 999px; background: var(--padm-soft-2); color: var(--padm-primary-dark); white-space: nowrap; }
.hp-days.is-soon { background: var(--padm-amber); color: #92400e; }
.hp-days.is-today { background: #fee2e2; color: #991b1b; }

.hp-updates li { display: flex; align-items: baseline; gap: .4rem; font-size: .82rem; line-height: 1.35; }
.hp-updates .badge { flex: 0 0 auto; font-size: .6rem; padding: .2rem .4rem; }
.hp-updates a { color: var(--padm-navy); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; line-clamp: 1; overflow: hidden; }
.hp-updates a:hover { color: var(--bs-primary); text-decoration: underline; }

.hp-ticker { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .6rem 1rem; background: var(--padm-navy); text-decoration: none; }
.hp-tick { display: inline-flex; align-items: baseline; gap: .3rem; font-size: .74rem; white-space: nowrap; }
.hp-tick small { color: rgba(255, 255, 255, .62); }
.hp-tick b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-tick i { font-style: normal; font-weight: 600; }
.hp-tick i.dir-up { color: #6ee7b7; }
.hp-tick i.dir-down { color: #fca5a5; }
.hp-tick i.dir-flat { color: rgba(255, 255, 255, .62); }

/* Calculator rail: all ten calculators reachable from the banner in one tap. Wraps on every
   breakpoint (no horizontal scroll) so nothing is hidden off-screen on a phone. */
.calc-rail { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.calc-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--bs-border-color); box-shadow: var(--padm-shadow-sm); font-size: .78rem; font-weight: 600; color: #334155; text-decoration: none; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.calc-chip .bi { font-size: .9rem; color: var(--bs-primary); }
.calc-chip:hover, .calc-chip:focus-visible { border-color: var(--bs-primary); background: var(--padm-soft-2); color: var(--padm-primary-dark); }
.calc-chip.more { background: var(--padm-soft-2); border-color: #c7d2fe; color: var(--padm-primary-dark); }
.calc-chip.more .bi { color: var(--padm-primary-dark); }

.hero-lead { color: var(--bs-secondary-color); font-size: 1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
/* The compact hero drops btn-lg, so pin a 44px minimum tap target explicitly (WCAG 2.5.8)
   instead of inheriting it from the larger button size. */
.hero-actions .btn, .quick-card, .calc-chip { min-height: 44px; }
.calc-chip { padding-block: .5rem; }

/* ---- Quick actions ------------------------------------------------------------ */
.quick-strip { padding: 1rem 0; background: #fff; border-bottom: 1px solid var(--bs-border-color); }
.quick-row { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .quick-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick-card { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: inherit; padding: .7rem .85rem; min-width: 0; background: #fff; border: 1px solid var(--bs-border-color); border-radius: .9rem; box-shadow: var(--padm-shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; height: 100%; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--padm-shadow); border-color: #c7d2fe; color: inherit; }
.quick-card > div { min-width: 0; }
.quick-card strong { display: block; color: var(--padm-navy); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-card span { display: block; color: var(--bs-secondary-color); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-card .bi-arrow-right { margin-left: auto; color: var(--bs-primary); }

/* ---- Services --------------------------------------------------------------- */
.service-card .card-body { padding: 1.75rem; }
.service-card.compact .card-body { padding: 1.05rem 1.15rem; }
.service-card.compact .sc-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.service-card.compact h3 { font-size: 1rem; margin: 0; }
.service-card.compact p { font-size: .855rem; line-height: 1.5; color: var(--bs-secondary-color); }
.service-card.compact .tag { font-size: .7rem; }
.service-card h3 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
.service-card p { color: var(--bs-secondary-color); }
.service-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ---- About / features -------------------------------------------------------- */
.feature { display: flex; gap: 1rem; }
.feature h4 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { color: var(--bs-secondary-color); margin: 0; }
.about-panel { position: relative; border-radius: 1.5rem; background: var(--padm-navy); color: #fff; padding: 2rem; overflow: hidden; }
.about-panel::after { content: ""; position: absolute; inset: auto -30% -50% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 87, 245, .55), rgba(36, 87, 245, 0)); }
.about-panel .big { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.about-panel .grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; position: relative; z-index: 1; }
.about-panel .grid > div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 1rem; padding: .9rem 1rem; }
.about-panel .grid b { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.about-panel .grid small { color: rgba(255, 255, 255, .7); }

/* ---- Process ------------------------------------------------------------------ */
.step { position: relative; height: 100%; }
.step-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid #c7d2fe; color: var(--bs-primary); font-weight: 800; font-size: 1.05rem; position: relative; z-index: 1; }
.step h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.step p { color: var(--bs-secondary-color); margin: 0; }
@media (min-width: 992px) {
    .step-col:not(:last-child) .step::after { content: ""; position: absolute; top: 27px; left: 68px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, #c7d2fe 0 8px, transparent 8px 16px); }
}

/* ---- Testimonials ------------------------------------------------------------- */
.testimonial { height: 100%; }
.testimonial .card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.testimonial .stars + blockquote { flex: 1; }
.testimonial .stars { color: var(--bs-warning); font-size: .95rem; }
.testimonial blockquote { margin: 0; font-size: 1rem; color: #334155; }
.avatar { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--padm-gradient); color: #fff; font-weight: 700; flex: none; }
.testimonial .who strong { display: block; font-size: .95rem; }
.testimonial .who span { color: var(--bs-secondary-color); font-size: .82rem; }

/* ---- CTA band --------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: 1.75rem; background: var(--padm-gradient); color: #fff; padding: 3rem 1.5rem; text-align: center; box-shadow: var(--padm-shadow-lg); }
@media (min-width: 768px) { .cta-band { padding: 4rem 3rem; } }
.cta-band::before { content: ""; position: absolute; inset: -40% auto auto -10%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .85); }
.cta-band > * { position: relative; }

/* ---- Contact -------------------------------------------------------------- */
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item h4 { font-size: 1rem; margin-bottom: .15rem; }
.contact-item p { margin: 0; color: var(--bs-secondary-color); }
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: var(--bs-primary); }
.contact-form-card { border-radius: 1.5rem; box-shadow: var(--padm-shadow); }
.contact-form-card .card-body { padding: 1.75rem; }
@media (min-width: 768px) { .contact-form-card .card-body { padding: 2.25rem; } }

/* ---- Footer ---------------------------------------------------------------- */
.footer { background: var(--padm-navy); color: rgba(255, 255, 255, .72); }
.footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer .navbar-brand { color: #fff; padding: 0; margin: 0; }
.footer .brand-text { color: #fff; }
.footer .brand-text small { color: rgba(255, 255, 255, .6); }
.footer .social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.footer .social a:hover { background: var(--bs-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---- Page hero band (inner pages) -------------------------------------------- */
.page-hero { background: radial-gradient(900px 400px at 90% -20%, #e0e7ff 0%, rgba(224, 231, 255, 0) 60%), linear-gradient(180deg, #fff 0%, #f4f7ff 100%); padding: 1.5rem 0 1.5rem; border-bottom: 1px solid var(--bs-border-color); }
@media (min-width: 768px) { .page-hero { padding: 2.5rem 0 2rem; } }
.breadcrumb { --bs-breadcrumb-divider-color: #94a3b8; font-size: .875rem; }
.breadcrumb a { text-decoration: none; }

/* ---- Calculator -------------------------------------------------------------- */
.calc-card { border-radius: 1.5rem; }
.calc-card .card-body { padding: 1.5rem; }
@media (min-width: 768px) { .calc-card .card-body { padding: 2rem; } }
.calc-sticky { position: sticky; top: calc(var(--padm-nav-h) + 16px); }
.results-empty { text-align: center; padding: 2.5rem 1.25rem; color: var(--bs-secondary-color); }
.results-empty .bi { font-size: 2.5rem; color: #c7d2fe; display: block; margin-bottom: 1rem; }
.results-empty h2 { font-size: 1.15rem; color: var(--padm-navy); }
.result-card { border-radius: 1.5rem; background: #fff; border: 1px solid var(--bs-border-color); box-shadow: var(--padm-shadow); overflow: hidden; }
.result-head { background: var(--padm-navy); color: #fff; padding: 1.5rem 1.5rem 1.35rem; background-image: radial-gradient(600px 200px at 100% 0%, rgba(36, 87, 245, .55), rgba(36, 87, 245, 0)); }
.result-label { margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.result-total { margin: 0; font-size: clamp(2.2rem, 3vw + 1rem, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.result-sub { margin: .5rem 0 0; color: rgba(255, 255, 255, .78); font-size: .875rem; }
.regime-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 1.25rem 1.25rem 0; }
.regime-box { position: relative; border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .9rem 1rem; background: var(--padm-soft); display: grid; gap: .15rem; }
.regime-box.is-better { background: var(--padm-mint); border-color: #a7f3d0; }
.regime-box.is-chosen { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.regime-name { font-size: .78rem; font-weight: 700; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .06em; }
.regime-tax { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--padm-navy); font-variant-numeric: tabular-nums; }
.regime-badge { position: absolute; top: -10px; right: 10px; background: var(--bs-success); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.compare-note { padding: .85rem 1.25rem 0; margin: 0; font-size: .9rem; color: #334155; }
.breakdown { padding: 1rem 1.25rem 0; }
.breakdown summary { cursor: pointer; font-weight: 700; color: var(--padm-navy); padding: .5rem 0; list-style: none; display: flex; align-items: center; gap: .5rem; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .85rem; transition: transform .2s ease; }
.breakdown[open] summary::before { transform: rotate(90deg); }
.breakdown summary::before { display: inline-block; }
.breakdown-table { margin: .5rem 0 0; font-size: .9rem; --bs-table-bg: transparent; }
.breakdown-table th { font-weight: 500; color: #334155; }
.breakdown-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.breakdown-table tr.subtotal th, .breakdown-table tr.subtotal td { font-weight: 700; background: var(--padm-soft); }
.breakdown-table tr.total th, .breakdown-table tr.total td { font-weight: 800; font-size: 1rem; color: var(--padm-navy); border-top: 2px solid var(--padm-navy); }
.result-card > .small { padding: .75rem 1.25rem 1.25rem; margin: 0; }
.slab-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 700; }
.info-card ol, .info-card ul { padding-left: 1.2rem; color: #334155; }
.info-card li + li { margin-top: .35rem; }
.muted { color: var(--bs-secondary-color); }

/* ---- Error page ------------------------------------------------------------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--padm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Small screens ------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .hero-lead { font-size: .95rem; }
    .hero-title { margin-top: .6rem !important; margin-bottom: .5rem !important; }
    .hero-panel { margin-top: .25rem; }
    .hero-actions .btn { flex: 1 1 auto; }
    .navbar-brand { font-size: 1.1rem; }
    .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
    .btn-lg { --bs-btn-padding-x: 1.2rem; --bs-btn-padding-y: .8rem; --bs-btn-font-size: 1rem; }
    .hero-stats .stat h3 { font-size: 1.25rem; }
    .hero-stats .stat p { font-size: .74rem; }
    .calc-chip { font-size: .74rem; padding: .34rem .55rem; }
    .regime-compare { grid-template-columns: 1fr; }
    .about-panel .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
    html { font-size: 15px; }
    .quick-card span { display: none; }
}

/* ---------- Service pages ---------- */
.page-hero h1 .icon-tile.sm { vertical-align: -0.35em; }
.service-contact-card { border-radius: 1.25rem; box-shadow: var(--padm-shadow); }
.service-contact-card a { color: var(--bs-body-color); text-decoration: none; font-weight: 600; }
.service-contact-card a:hover { color: var(--bs-primary); }
.service-subnav { position: sticky; top: calc(var(--padm-nav-h) + 1.5rem); }
.service-subnav .nav-link { padding: .4rem .75rem; border-left: 2px solid var(--bs-border-color); border-radius: 0; color: var(--bs-secondary-color); font-weight: 500; font-size: .95rem; }
.service-subnav .nav-link:hover, .service-subnav .nav-link.active { color: var(--bs-primary); border-left-color: var(--bs-primary); }
.service-block { scroll-margin-top: calc(var(--padm-nav-h) + 1rem); padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--bs-border-color); }
.service-block:last-of-type { border-bottom: 0; }
.service-block h2 { margin-bottom: 1rem; }
.service-body p { color: #334155; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .bi { color: var(--bs-primary); flex: 0 0 auto; margin-top: .2rem; }
@media (min-width: 768px) { .check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.rules-table th[scope="row"] { width: 34%; font-weight: 600; background: var(--padm-soft); }
.rules-table td, .rules-table th { padding: .8rem .9rem; vertical-align: top; font-size: .95rem; }
@media (min-width: 768px) { .text-nowrap-md { white-space: nowrap; } }
.process-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.process-list li { display: flex; gap: 1rem; align-items: flex-start; }
.process-list .step-num { flex: 0 0 auto; width: 44px; height: 44px; font-size: .9rem; }
.process-list p { margin: 0; }
.service-faq .accordion-button { font-weight: 600; padding-left: 0; padding-right: 0; }
.service-faq .accordion-button:not(.collapsed) { background: transparent; color: var(--bs-primary); box-shadow: none; }
.service-faq .accordion-button:focus { box-shadow: none; }
.service-faq .accordion-body { padding-left: 0; padding-right: 0; color: #334155; }
.service-sources { background: var(--padm-soft); border-radius: 1rem; padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.service-sources ul { padding-left: 1.1rem; }
.service-sources a { word-break: break-word; }
.service-card .link-secondary { color: var(--bs-secondary-color); }
.service-card .link-secondary:hover { color: var(--bs-primary); }

/* ---------- Tax & Compliance Calendar ---------- */
.text-bg-primary-soft { background: var(--padm-soft-2); color: var(--bs-primary); }
.calendar-filters { border-radius: 1.25rem; }
.month-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.month-pills .btn { min-width: 3.1rem; }
.calendar-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 576px) { .calendar-summary { grid-template-columns: repeat(5, 1fr); } }
.calendar-summary > div { background: #fff; border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .85rem 1rem; display: flex; flex-direction: column; }
.calendar-summary > div:first-child { grid-column: 1 / -1; }
@media (min-width: 576px) { .calendar-summary > div:first-child { grid-column: auto; } }
.calendar-summary strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--padm-navy); }
.calendar-summary span { font-size: .8rem; color: var(--bs-secondary-color); font-weight: 500; }
.calendar-summary .c-today strong { color: #dc3545; }
.calendar-summary .c-soon strong { color: #b45309; }
.calendar-summary .c-upcoming strong { color: var(--bs-primary); }
.calendar-summary .c-passed strong { color: #64748b; }
.calendar-month { margin-bottom: 2rem; scroll-margin-top: calc(var(--padm-nav-h) + 1rem); }
.calendar-month-title { position: sticky; top: var(--padm-nav-h); z-index: 2; background: rgba(255, 255, 255, .96); padding: .6rem 0; margin: 0 0 .5rem; border-bottom: 1px solid var(--bs-border-color); }
.deadline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.deadline { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--bs-border-color); border-left-width: 4px; border-radius: 1rem; padding: 1rem; }
.deadline.status-due_today { border-left-color: #dc3545; }
.deadline.status-due_soon { border-left-color: #f59e0b; }
.deadline.status-upcoming { border-left-color: var(--bs-primary); }
.deadline.status-expired { border-left-color: #cbd5e1; opacity: .8; }
.deadline.key .deadline-title::after { content: "Key"; font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--padm-amber); color: #b45309; border-radius: 999px; padding: .15rem .5rem; margin-left: .5rem; vertical-align: middle; }
.deadline-date { flex: 0 0 auto; width: 58px; text-align: center; background: var(--padm-soft); border-radius: .85rem; padding: .5rem .25rem; align-self: flex-start; }
.deadline-date .d { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--padm-navy); }
.deadline-date .m { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--bs-primary); margin-top: .2rem; }
.deadline-date .w { display: block; font-size: .7rem; color: var(--bs-secondary-color); }
.deadline-body { flex: 1 1 auto; min-width: 0; }
.deadline-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.deadline-top .badge { font-weight: 600; }
.badge.cat-income_tax { background: #e0e7ff; color: #3730a3; }
.badge.cat-tds { background: #fce7f3; color: #9d174d; }
.badge.cat-advance_tax { background: #fef3c7; color: #92400e; }
.badge.cat-gst { background: #dcfce7; color: #166534; }
.badge.cat-corporate { background: #e0f2fe; color: #075985; }
.badge.cat-other { background: #f1f5f9; color: #334155; }
.form-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; color: #475569; background: var(--padm-soft); border-radius: .4rem; padding: .15rem .45rem; }
.deadline-title { font-size: 1.05rem; margin: 0 0 .15rem; }
.deadline-meta { margin: 0 0 .35rem; font-size: .9rem; color: var(--bs-secondary-color); }
.deadline-desc { margin: 0 0 .5rem; font-size: .92rem; color: #334155; }
.deadline-override { margin: 0 0 .5rem; font-size: .88rem; background: var(--padm-soft-2); color: #1e293b; border-radius: .6rem; padding: .5rem .75rem; }
.deadline-override .bi { color: var(--bs-primary); margin-right: .25rem; }
.deadline-foot { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; color: var(--bs-secondary-color); }
.deadline-foot .source { text-decoration: none; font-weight: 600; }
.deadline-foot .legal { font-style: italic; }
.upcoming-card { border-radius: 1.25rem; }
@media (min-width: 992px) { .upcoming-card { position: sticky; top: calc(var(--padm-nav-h) + 1rem); } }
.upcoming-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.upcoming-list li { display: flex; gap: .75rem; align-items: center; padding: .55rem .6rem; border-radius: .75rem; border: 1px solid var(--bs-border-color); border-left-width: 3px; }
.upcoming-list li.status-due_today { border-left-color: #dc3545; }
.upcoming-list li.status-due_soon { border-left-color: #f59e0b; }
.upcoming-list li.status-upcoming { border-left-color: var(--bs-primary); }
.up-date { flex: 0 0 auto; width: 44px; text-align: center; line-height: 1.05; }
.up-date .d { display: block; font-weight: 800; font-size: 1.15rem; color: var(--padm-navy); }
.up-date .m { display: block; font-size: .65rem; text-transform: uppercase; font-weight: 700; color: var(--bs-primary); }
.up-body { min-width: 0; display: flex; flex-direction: column; }
.up-title { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.up-meta { font-size: .75rem; color: var(--bs-secondary-color); }
.legend { display: grid; gap: .4rem; }
@media (min-width: 768px) { .legend { grid-template-columns: 1fr 1fr; } }
.legend li { display: flex; align-items: center; gap: .5rem; margin: 0; }
.calendar-note { border-top: 1px solid var(--bs-border-color); padding-top: 1rem; }

/* ---------- India Today ---------- */
.freshness-banner { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 1rem; border: 1px solid var(--bs-border-color); background: #fff; }
.freshness-banner .bi { font-size: 1.25rem; margin-top: .1rem; }
.freshness-banner strong { display: block; }
.freshness-banner span { font-size: .85rem; color: var(--bs-secondary-color); }
.freshness-banner.fresh .bi { color: #16a34a; }
.freshness-banner.delayed .bi { color: #d97706; }
.freshness-banner.stale .bi { color: #dc2626; }
.freshness-banner.unavailable .bi { color: #64748b; }
.fresh-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
.fresh-pill.fresh { background: #dcfce7; color: #166534; }
.fresh-pill.delayed { background: #fef3c7; color: #92400e; }
.fresh-pill.stale { background: #fee2e2; color: #991b1b; }
.fresh-pill.unavailable { background: #f1f5f9; color: #475569; }
.market-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .market-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .market-grid { grid-template-columns: repeat(5, 1fr); } }
.market-card { background: #fff; border: 1px solid var(--bs-border-color); border-radius: 1.25rem; padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--padm-shadow-sm); min-width: 0; }
.market-card.fresh-stale { border-color: #fecaca; }
.market-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon name" "pill pill"; gap: .25rem .75rem; align-items: center; }
.market-head .icon-tile { grid-area: icon; }
.market-head > div { grid-area: name; min-width: 0; }
.market-head .fresh-pill { grid-area: pill; justify-self: start; margin-top: .25rem; }
@media (min-width: 576px) and (max-width: 1199.98px) { .market-head { grid-template-columns: auto 1fr auto; grid-template-areas: "icon name pill"; } .market-head .fresh-pill { margin-top: 0; } }
.market-name { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.2; white-space: nowrap; }
.market-unit { font-size: .75rem; color: var(--bs-secondary-color); white-space: nowrap; }
.market-value { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); font-weight: 800; letter-spacing: -.01em; color: var(--padm-navy); margin: .25rem 0 0; line-height: 1.1; overflow-wrap: anywhere; }
.market-value.muted { color: #94a3b8; font-size: 1.25rem; font-weight: 600; }
.market-change { margin: 0; font-size: .85rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.market-change.dir-up { color: #15803d; }
.market-change.dir-down { color: #b91c1c; }
.market-change.dir-flat { color: #475569; }
.market-change .text-secondary { font-weight: 400; }
.market-meta { margin: .25rem 0 0; display: grid; gap: .2rem; font-size: .78rem; }
.market-meta div { display: flex; gap: .4rem; }
.market-meta dt { font-weight: 600; color: #475569; flex: 0 0 3.2rem; }
.market-meta dd { margin: 0; color: var(--bs-secondary-color); min-width: 0; }
.market-source { margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--bs-border-color); font-size: .72rem; color: var(--bs-secondary-color); overflow-wrap: anywhere; }
.update-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.update-filters .count { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .25rem; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: .72rem; font-weight: 700; text-align: center; }
.update-filters .btn-dark .count { background: rgba(255, 255, 255, .2); }
.update-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.update-item { background: #fff; border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: 1rem 1.1rem; }
.update-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; color: var(--bs-secondary-color); margin-bottom: .35rem; }
.update-top .badge { font-weight: 600; }
.badge.cat-rbi { background: #ede9fe; color: #5b21b6; }
.badge.cat-economy { background: #ffedd5; color: #9a3412; }
.update-date { margin-left: auto; white-space: nowrap; }
.update-title { font-size: 1rem; margin: 0 0 .25rem; line-height: 1.4; }
.update-title a { color: var(--padm-navy); text-decoration: none; }
.update-title a:hover { color: var(--bs-primary); text-decoration: underline; }
.update-summary { margin: 0; font-size: .9rem; color: #334155; }
.side-card { border-radius: 1.25rem; }
.side-card .check-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; color: var(--bs-primary); flex: 0 0 auto; margin-top: .1rem; }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.source-list a { font-weight: 600; overflow-wrap: anywhere; }
.cta-side { background: var(--padm-soft); border-color: #c7d2fe; }

/* ---------- Homepage: India Today snapshot / quick tax / deadlines (Phase 5) ---------- */
.snap-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767.98px) { .snap-grid .snap-tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 768px) { .snap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .snap-grid { grid-template-columns: repeat(5, 1fr); } }
.snap-tile { display: flex; flex-direction: column; justify-content: flex-start; gap: .15rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--bs-border-color); border-radius: 1rem; text-decoration: none; color: inherit; min-width: 0; box-shadow: var(--padm-shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.snap-tile:hover { transform: translateY(-2px); box-shadow: var(--padm-shadow); color: inherit; }
.snap-tile.fresh-stale { border-color: #fecaca; }
.snap-name { font-size: .8rem; font-weight: 700; color: #475569; display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline; }
.snap-name small { font-weight: 500; color: var(--bs-secondary-color); }
.snap-value { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); font-weight: 800; color: var(--padm-navy); letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.snap-value.muted { color: #94a3b8; font-size: 1rem; font-weight: 600; }
.snap-change { font-size: .8rem; font-weight: 600; }
.snap-change.dir-up { color: #15803d; }
.snap-change.dir-down { color: #b91c1c; }
.snap-change.dir-flat { color: #475569; }
.snap-change .text-secondary { font-weight: 400; }
.snap-state { margin-top: .25rem; font-size: .68rem; font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .25rem; }
.snap-state.fresh { color: #166534; }
.snap-state.delayed { color: #92400e; }
.snap-state.stale { color: #991b1b; }
.snap-state.unavailable { color: #475569; }
.snap-updates, .snap-note { border-radius: 1rem; }
.snap-update-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.snap-update-list li { display: grid; grid-template-columns: auto 1fr; gap: .25rem .6rem; align-items: baseline; font-size: .92rem; }
.snap-update-list .badge { font-weight: 600; }
.snap-update-list a { color: var(--padm-navy); text-decoration: none; font-weight: 600; }
.snap-update-list a:hover { color: var(--bs-primary); text-decoration: underline; }
.snap-update-meta { grid-column: 2; font-size: .75rem; color: var(--bs-secondary-color); }
.snap-note { background: var(--padm-soft); border-color: #c7d2fe; }
.quick-tax-card { border-radius: 1.25rem; box-shadow: var(--padm-shadow); }
.quick-tax-result { margin-top: 1.25rem; }
.quick-tax-result .qt-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .quick-tax-result .qt-grid { grid-template-columns: 1fr 1fr; } }
.qt-regime { border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: 1rem 1.1rem; position: relative; }
.qt-regime.best { border-color: var(--bs-primary); background: var(--padm-soft); }
.qt-regime .qt-tag { position: absolute; top: -.6rem; right: .9rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--bs-primary); color: #fff; border-radius: 999px; padding: .15rem .55rem; }
.qt-regime .qt-label { font-size: .8rem; font-weight: 600; color: #475569; margin: 0; }
.qt-regime .qt-total { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--padm-navy); margin: .1rem 0 .25rem; }
.qt-regime .qt-sub { font-size: .78rem; color: var(--bs-secondary-color); margin: 0; }
.qt-summary { font-size: .9rem; margin: .75rem 0 0; }
.deadline-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .deadline-strip { grid-template-columns: repeat(2, 1fr); } .deadline-strip .deadline-tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 992px) { .deadline-strip { grid-template-columns: repeat(5, 1fr); } .deadline-strip .deadline-tile:last-child:nth-child(odd) { grid-column: auto; } }
.deadline-tile a { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: .9rem 1rem; background: #fff; border: 1px solid var(--bs-border-color); border-top: 3px solid var(--bs-primary); border-radius: 1rem; text-decoration: none; color: inherit; box-shadow: var(--padm-shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.deadline-tile a:hover { transform: translateY(-2px); box-shadow: var(--padm-shadow); color: inherit; }
.deadline-tile.status-due_today a { border-top-color: #dc3545; }
.deadline-tile.status-due_soon a { border-top-color: #f59e0b; }
.dt-date { display: inline-flex; align-items: baseline; gap: .3rem; }
.dt-date .d { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--padm-navy); letter-spacing: -.02em; }
.dt-date .m { font-size: .8rem; font-weight: 700; text-transform: uppercase; color: #475569; }
.dt-body { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 auto; }
.dt-title { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.dt-meta { font-size: .75rem; color: var(--bs-secondary-color); }
.dt-days { align-self: flex-start; }
@media (min-width: 576px) and (max-width: 991.98px) { .deadline-tile a { flex-direction: row; align-items: center; } .dt-days { align-self: center; } }

/* ---------- Phase 7: mobile legibility & tap targets ----------
   Lighthouse "legible font sizes" wants ≥ 12px for body-ish text and 48×48 CSS px tap targets
   (24px minimum with spacing). Small labels are kept small on desktop but floored on phones,
   and dense text links get vertical padding so they are easier to hit. */
@media (max-width: 575.98px) {
    html { font-size: 16px; }
    .badge, .tag, .form-code, .fresh-pill, .snap-state, .dt-meta, .dt-days, .up-meta, .market-unit, .market-source, .market-meta,
    .snap-update-meta, .update-top, .update-source, .update-date, .update-filters .count, .qt-sub, .deadline-date .m, .up-date .m,
    .eyebrow, .brand-text small, .hero-stats .stat p, .regime-name, .result-label { font-size: .8rem; }
    .deadline-date .w { font-size: .75rem; }
    .deadline.key .deadline-title::after, .qt-regime .qt-tag, .regime-badge { font-size: .72rem; }
    .market-meta dt, .market-meta dd { font-size: .8rem; }
    small, .small { font-size: .85rem; }
}
/* Text links inside footers and meta rows: minimum 24px hit height + spacing (WCAG 2.5.8). */
.footer ul a, .footer-bottom a, .service-subnav .nav-link, .deadline-foot a, .snap-update a, .breadcrumb-item a, .up-list a, .dt-list a,
.source-list a, .update-title a { display: inline-block; padding: .3rem 0; min-height: 24px; }
/*
 * Breadcrumb alignment.
 *
 * The rule above gives each link a .3rem vertical padding for the WCAG hit area, but the
 * current-page crumb is plain text with no <a>, so it picked up none of it: it sat on a
 * different baseline from its siblings and contributed no height to the row. Bootstrap's "/"
 * divider is a ::before with float: left, which compounds it — a float is pulled to the top of
 * the line box and ignores the link's padding, so the separators rode high as well.
 *
 * Making each item a flex row fixes both at once: float has no effect on a flex item, so the
 * divider becomes a normal box, and align-items: center puts divider, link and current-page
 * text on one centred line. The item keeps the same vertical padding as the links so the row
 * has consistent top/bottom spacing whether or not the last crumb is a link.
 */
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item.active { padding: .3rem 0; }
.breadcrumb-item + .breadcrumb-item::before { float: none; }
.footer ul { gap: .15rem; }
.footer-bottom .d-flex.gap-3 a { padding: .5rem .25rem; }

/* ---- Generic calculators (POST-MVP) ------------------------------------------ */
.intro-text { color: #334155; }
.intro-text:last-of-type { margin-bottom: 1.5rem; }
.split-bar-wrap { padding: 1.25rem 1.25rem 0; }
.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--padm-soft); }
.split-seg { display: block; height: 100%; }
.split-seg-0 { background: var(--bs-primary); }
.split-seg-1 { background: #f59e0b; }
.split-seg-2 { background: #10b981; }
.split-seg-3 { background: #8b5cf6; }
.split-legend { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .35rem; font-size: .875rem; color: #334155; }
.split-legend li { display: flex; align-items: center; gap: .5rem; }
.split-legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.split-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: 0 0 auto; }
.schedule-table th[scope="col"] { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 700; }
.schedule-table th[scope="col"]:not(:first-child) { text-align: right; }
.result-notes { margin: 1rem 0 0; padding: 0 1.25rem 0 2.4rem; font-size: .85rem; color: var(--bs-secondary-color); }
.result-notes li + li { margin-top: .35rem; }
.result-cta { padding: 1rem 1.25rem 1.25rem; color: var(--bs-secondary-color); }
/* 320 px safety: long labels and rupee amounts must never push the layout wider than the viewport. */
.result-total { overflow-wrap: anywhere; }
.result-label, .result-sub { overflow-wrap: anywhere; }
.breakdown-table th { overflow-wrap: anywhere; }
.split-legend li { flex-wrap: wrap; }
.split-legend strong { overflow-wrap: anywhere; }

/* ---- Homepage density (page-home only) ---------------------------------------
   AGENT.md pins the shared `.section` rhythm at 3rem 0, so the compact homepage
   layout is scoped to .page-home instead of altering that rule. Inner pages keep
   the original spacing. */
.page-home .section { padding: 2rem 0; }
@media (min-width: 992px) { .page-home .section { padding: 2.25rem 0; } }
.page-home .section-title { letter-spacing: -.02em; }
.page-home .section-lead { font-size: 1rem; }
.page-home .cta-band { padding: 1.75rem 1.25rem; }
.page-home .about-panel .big { font-size: 2.75rem; }
.page-home .step { padding: 1.1rem; }
.page-home .testimonial .card-body { padding: 1.15rem; }
.page-home .testimonial blockquote { font-size: .9rem; }

/* ---- Calculator mode switch (segmented radios) --------------------------------
   Used where one choice reshapes the whole form (EMI calculator). A radio group, not a
   <select>, so every option is visible at a glance and switchable in one tap. Real radio
   inputs are kept and only visually hidden, so keyboard and screen-reader behaviour is the
   native one. */
.mode-switch { border: 0; padding: 0; margin: 0 0 .25rem; }
.mode-switch legend { float: none; width: auto; margin-bottom: .4rem; }
.mode-options { display: grid; gap: .4rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .mode-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode-option { position: relative; display: flex; }
.mode-option input {
    position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.mode-option span {
    display: flex; align-items: center; width: 100%; min-height: 44px; padding: .55rem .75rem;
    border: 1px solid var(--bs-border-color); border-radius: .75rem; background: #fff;
    font-size: .85rem; font-weight: 600; line-height: 1.25; color: #475569;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.mode-option input:hover + span { border-color: #c7d2fe; background: var(--padm-soft); }
.mode-option input:checked + span {
    border-color: var(--bs-primary); background: var(--padm-soft-2);
    color: var(--padm-primary-dark); box-shadow: inset 0 0 0 1px var(--bs-primary);
}
.mode-option input:focus-visible + span { outline: 2px solid var(--bs-primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- Scenario comparison blocks */
/* Used by the Target Savings Planner: one collapsed <details> per interest rate. */
.scenario-list { margin-top: 1.25rem; display: grid; gap: .5rem; }

.scenario {
    border: 1px solid var(--line, #e2e6ea);
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
}

.scenario > summary {
    cursor: pointer;
    padding: .75rem .9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
    font-size: .95rem;
    list-style: none;
}

.scenario > summary::-webkit-details-marker { display: none; }

.scenario > summary::after {
    content: "\203A";
    margin-left: auto;
    transform: rotate(90deg);
    opacity: .55;
    font-size: 1.1rem;
    line-height: 1;
}

.scenario[open] > summary::after { transform: rotate(-90deg); }

.scenario-rate { font-weight: 600; }

.scenario-badge {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .12rem .45rem;
    border-radius: .25rem;
    background: var(--accent-soft, #e7f1ff);
    color: var(--accent-strong, #0a4d8c);
    white-space: nowrap;
}

.scenario-summary { color: var(--muted, #5b6570); font-size: .88rem; }

.scenario-user { border-color: var(--accent, #0d6efd); box-shadow: inset 3px 0 0 var(--accent, #0d6efd); }

.scenario-body { padding: 0 .9rem .75rem; }

.scenario-body > .breakdown { margin-top: .5rem; }

/* The schedule tables scroll inside their own wrapper, so narrow screens never overflow. */
@media (max-width: 480px) {
    .scenario > summary { font-size: .9rem; padding: .65rem .75rem; }
    .scenario-summary { flex-basis: 100%; }
}

/* Last-synced line in the market card footer: secondary to the source attribution above it. */
.market-synced {
    display: block;
    margin-top: .2rem;
    font-size: .78rem;
    color: var(--muted, #6c757d);
}

/* ------------------------------------------------------------------ Share button (top right) */
/* Lives inside the sticky .site-nav, so per AGENT.md it must not use transform, filter or
   backdrop-filter — those create a containing block and break position: sticky in Safari. */
.padm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    padding: .5rem .85rem;
    border-radius: .6rem;
    color: var(--bs-primary);
    background: var(--padm-soft);
    border: 1px solid transparent;
    white-space: nowrap;
}

.padm-share-btn:hover,
.padm-share-btn:focus-visible {
    color: #fff;
    background: var(--bs-primary);
}

.padm-share-btn .bi { font-size: 1rem; }

.padm-share-btn.is-copied {
    color: #fff;
    background: var(--bs-success, #198754);
}

.padm-share-menu {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--padm-shadow);
    padding: .5rem;
    min-width: 210px;
}

.padm-share-menu .dropdown-item {
    border-radius: .6rem;
    padding: .55rem .8rem;
    font-weight: 500;
    display: flex;
    gap: .65rem;
    align-items: center;
}

.padm-share-menu .dropdown-item .bi { color: var(--bs-primary); font-size: 1.05rem; }

/* The label costs ~48px that the narrowest phones need for the brand and menu button;
   the icon alone still reads as "share", and the button keeps its accessible name. */
@media (max-width: 400px) {
    .padm-share-label { display: none; }
    .padm-share-btn { padding: .5rem .6rem; }
}
