/* ==========================================================================
   Swastik Payroll — public website
   Standalone stylesheet (the logged-in app uses the prebuilt Tailwind bundle).
   ========================================================================== */

:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #5b6b82;
    --line: #e3e8f0;
    --line-2: #cfd8e6;
    --bg: #ffffff;
    --tint: #f5f7fb;
    --tint-blue: #f1f5ff;

    --brand: #1e3a8a;
    --brand-800: #172f72;
    --brand-50: #eef3ff;
    --brand-100: #dce6fd;
    --navy: #0b1740;
    --accent: #d92d20;
    --accent-50: #fef1f0;
    --teal: #0f766e;
    --teal-50: #e7f5f3;
    --amber: #b45309;
    --amber-50: #fdf6e7;

    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px -10px rgba(15, 23, 42, .16);
    --shadow-lg: 0 30px 70px -28px rgba(11, 23, 64, .38);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    --header-h: 68px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.35rem); letter-spacing: -0.035em; font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); letter-spacing: -0.028em; }
h3 { font-size: 1.125rem; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
button { font: inherit; }
.icon {
    width: 1.2em; height: 1.2em;
    display: inline-block; vertical-align: -0.2em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Same widths as Tailwind's `container` (sm 640 / md 768 / lg 1024 / xl 1280 / 2xl 1536),
   centred with Tailwind's usual gutters: mx-auto px-4 sm:px-6 lg:px-8. */
.container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; padding-inline: 1.5rem; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }
.container.container--narrow { max-width: 860px; }

/* Utility classes live at the end of the file so they override component margins. */

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn--lg { padding: .9rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(30, 58, 138, .7); }
.btn--primary:hover { background: var(--brand-800); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-800); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-800); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .6); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand strong { font-weight: 800; color: var(--brand); }

.nav { display: none; flex: 1; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px;
    font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
    background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--ink); background: var(--tint); }
.nav__link .icon { width: 15px; height: 15px; transition: transform .15s; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }

.menu {
    position: absolute; top: calc(100% + 10px); left: -8px; z-index: 60;
    min-width: 290px; padding: 8px; display: none;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu--wide { min-width: 620px; }
.menu__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.nav__item.is-open .menu { display: block; }
@media (hover: hover) { .has-menu:hover .menu { display: block; } }
.menu__heading { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 10px 10px 4px; }
.menu__link { display: block; padding: 8px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.menu__link:hover { background: var(--tint); color: var(--ink); }
.menu__link span { display: block; font-weight: 600; font-size: .92rem; }
.menu__link small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.menu__link--compact { padding-block: 7px; }
.menu__footer { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; text-decoration: none; }
.menu__footer .icon { width: 15px; height: 15px; }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__login { display: none; padding: 8px 10px; font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav__login:hover { color: var(--brand); }
.header-cta { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding-block: 8px 24px; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav details a { display: block; padding: 8px 0 8px 12px; color: var(--ink-2); text-decoration: none; }
.mobile-nav details[open] { padding-bottom: 10px; }
.mobile-nav__link { display: block; padding: 14px 0; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav__cta { display: grid; gap: 10px; margin-top: 20px; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
    .nav { display: block; }
    .nav__login { display: inline-block; }
    .nav-toggle, .mobile-nav { display: none !important; }
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.breadcrumbs { background: var(--tint); border-bottom: 1px solid var(--line); font-size: .84rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b3bfd1; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 500; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.section--alt { background: var(--tint); border-block: 1px solid var(--line); }
.section--dark { background: var(--navy); color: #c3cdef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 740px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
    font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.eyebrow a { color: inherit; text-decoration: none; }
.section--dark .eyebrow { color: #a9bcff; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); line-height: 1.65; color: var(--ink-2); }
.section--dark .lead { color: #c3cdef; }
.link-cards__heading { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-bottom: 20px; }

/* ── Heroes ───────────────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    padding-block: clamp(48px, 7vw, 100px);
    background:
        radial-gradient(900px 480px at 88% -8%, #dbe6ff 0%, rgba(219, 230, 255, 0) 62%),
        radial-gradient(600px 300px at -10% 110%, #fdeceb 0%, rgba(253, 236, 235, 0) 60%),
        linear-gradient(#fbfcff, #fff);
    border-bottom: 1px solid var(--line);
}
.hero__grid, .page-hero__grid { display: grid; gap: 48px; align-items: center; }
/* Let grid/flex children shrink below their content width (wide tables scroll inside instead). */
.hero__grid > *, .page-hero__grid > *, .split > *, .calc > *, .contact-grid > *, .article-layout > *, .grid > * { min-width: 0; }
@media (min-width: 1024px) {
    .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; }
    .page-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--brand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--ink-2); }
.hero__points li { display: inline-flex; align-items: center; gap: 7px; }
.hero__points .icon { color: var(--teal); width: 18px; height: 18px; }

.page-hero {
    padding-block: clamp(40px, 6vw, 76px);
    background: radial-gradient(800px 360px at 92% -20%, #e3ebff 0%, rgba(227, 235, 255, 0) 65%), linear-gradient(180deg, #f8faff, #fff);
    border-bottom: 1px solid var(--line);
}
.page-hero .lead { max-width: 760px; }
.page-hero__grid .lead { max-width: none; }
.page-hero--tool { padding-bottom: clamp(28px, 4vw, 44px); }

/* ── Grid & cards ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card p + p, .card p + ul, .card ul + p { margin-top: .7em; }
.card ul { color: var(--muted); font-size: .94rem; padding-left: 1.1em; margin: .6em 0 0; }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.card__icon .icon { width: 22px; height: 22px; }
.card__icon--teal { background: var(--teal-50); color: var(--teal); }
.card__icon--accent { background: var(--accent-50); color: var(--accent); }
.card__icon--amber { background: var(--amber-50); color: var(--amber); }
.card--link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { color: inherit; border-color: #b8c7ef; box-shadow: var(--shadow); transform: translateY(-2px); }
.card--link h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card--link h3 .icon { width: 18px; height: 18px; color: var(--brand); transition: transform .15s; }
.card--link:hover h3 .icon { transform: translateX(3px); }
.card--flat { box-shadow: none; background: transparent; border-color: transparent; padding: 0; }
.section--dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section--dark .card p { color: #b3bfe6; }
.section--dark .card__icon { background: rgba(143, 176, 255, .14); color: #b9cbff; }

/* ── Lists, steps, split ──────────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .15em; width: 21px; height: 21px; border-radius: 50%;
    background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist li strong { color: var(--ink); }
@media (min-width: 640px) { .checklist--2col { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps--2, .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps > li::before {
    content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
    border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
    .split--reverse > :first-child { order: 2; }
}
.split h2 { margin-bottom: 16px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pill .icon { width: 12px; height: 12px; }
.pill--teal { background: var(--teal-50); color: var(--teal); }
.pill--amber { background: var(--amber-50); color: var(--amber); }
.pill--accent { background: var(--accent-50); color: var(--accent); }

/* ── Callouts, tables, FAQ ────────────────────────────────────────────── */
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid #cfdcff; background: #f3f7ff; color: var(--ink-2); font-size: .95rem; }
.callout > .icon { color: var(--brand); margin-top: 3px; }
.callout p { margin: 0; }
.callout p + p { margin-top: .5em; }
.callout--warn { border-color: #f3d9a4; background: var(--amber-50); }
.callout--warn > .icon { color: var(--amber); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0 0 1.5em; }
table.data { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.data th, .data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data thead th { background: var(--tint); color: var(--ink); font-weight: 600; font-size: .85rem; }
.data tbody tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data tfoot td { background: var(--tint); font-weight: 700; border-top: 1px solid var(--line-2); border-bottom: 0; }

.faq { display: grid; gap: 12px; max-width: 880px; }
.faq--center { margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { position: relative; padding: 18px 36px 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .faq__answer { padding: 0 0 18px; color: var(--ink-2); }
.faq .faq__answer > :last-child { margin-bottom: 0; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-band {
    display: grid; gap: 24px; align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: 20px; color: #c9d3f3;
    background: radial-gradient(700px 300px at 95% -10%, rgba(92, 128, 255, .45), transparent 60%), var(--navy);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1.4fr) auto; gap: 40px; } }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Product illustrations ────────────────────────────────────────────── */
.mock-figure { margin: 0; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .82rem; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #dde3ec; }
.mock__title { margin-left: 8px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__status { margin-left: auto; }
.mock__body { padding: 16px; }
.mock__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mock__stat { background: var(--tint); border-radius: 10px; padding: 10px 12px; }
.mock__stat b { display: block; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.mock__stat span { color: var(--muted); font-size: .72rem; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { padding: 6px 8px; text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.mock td { padding: 8px; color: var(--ink-2); border-bottom: 1px solid #f1f4f8; white-space: nowrap; }
.mock tr:last-child td { border-bottom: 0; }
.mock .num { text-align: right; font-variant-numeric: tabular-nums; }
.mock pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: .76rem; line-height: 1.7; color: #1e293b; background: #fbfcfe; }
.mock__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.mock__caption { margin-top: 12px; font-size: .75rem; color: var(--muted); text-align: center; }
@media (max-width: 520px) { .mock .hide-sm { display: none; } }

.att-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.att-grid span { display: grid; place-items: center; height: 34px; border-radius: 8px; font-size: .7rem; font-weight: 700; background: var(--tint); color: var(--muted); }
.att-grid .p { background: var(--teal-50); color: var(--teal); }
.att-grid .h { background: #eaf1ff; color: var(--brand); }
.att-grid .a { background: var(--accent-50); color: var(--accent); }
.att-grid .l { background: var(--amber-50); color: var(--amber); }
.att-grid .o { background: #f1f5f9; color: #94a3b8; }
.att-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .72rem; color: var(--muted); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label, .field__label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: .66rem .8rem; font: inherit; font-size: .95rem; color: var(--ink);
    background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 58, 138, .16); }
.field__help { margin: 5px 0 0; font-size: .8rem; color: var(--muted); }
.field .errorlist, .form-errors { list-style: none; margin: 5px 0 0; padding: 0; color: #b42318; font-size: .84rem; }
.form-errors { padding: 12px 14px; border: 1px solid #fecdca; background: #fef3f2; border-radius: 10px; margin: 0; }
.field--invalid input, .field--invalid select { border-color: #f04438; }
.input-affix { position: relative; }
.input-affix > span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .92rem; pointer-events: none; }
.input-affix > span:first-child { left: .8rem; }
.input-affix > span:last-child:not(:first-child) { right: .8rem; }
.input-affix input { padding-left: 1.75rem; }
.input-affix--suffix input { padding-left: .8rem; padding-right: 2.6rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--tint); border: 1px solid var(--line); border-radius: 11px; }
.segmented label { position: relative; margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 13px; border-radius: 8px; font-size: .87rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented input:checked + span { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid #8fb0ff; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

/* ── Calculators ──────────────────────────────────────────────────────── */
.calc { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.calc__panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.calc__panel > h2 { font-size: 1.12rem; margin-bottom: 18px; }
.calc__fields { display: grid; gap: 16px; }
@media (min-width: 560px) { .calc__fields--2 { grid-template-columns: 1fr 1fr; } }
.calc__group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc__group-title { margin: 0 0 12px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.calc__result { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(20px, 3vw, 30px); border-radius: 16px; background: var(--navy); color: #c3cdef; }
.calc__result h2 { font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.result-hero { margin: 10px 0 20px; }
.result-hero small { display: block; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: #9eb0e3; }
.result-hero output, .result-hero strong { display: block; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.result-hero span { font-size: .88rem; color: #9eb0e3; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .93rem; }
.result-list li b, .result-list li output { color: #fff; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-list li.is-total { color: #fff; font-weight: 700; }
.result-list li.is-deduction b, .result-list li.is-deduction output { color: #fecdca; }
.result-list li.is-sub { padding-left: 14px; font-size: .86rem; color: #9eb0e3; }
.result-note { margin: 14px 0 0; font-size: .8rem; color: #9eb0e3; }
.result-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(110, 231, 183, .16); color: #86efac; }
.result-badge--no { background: rgba(253, 164, 175, .14); color: #fda4af; }
.calc__result .btn { margin-top: 18px; }
.calc__result a:not(.btn), .aside-cta a:not(.btn), .section--dark a:not(.btn):not(.card) { color: #b9cbff; }
.calc__result a:not(.btn):hover, .aside-cta a:not(.btn):hover, .section--dark a:not(.btn):not(.card):hover { color: #fff; }
.calc__fields + .calc__fields, .calc__result h2 + .calc__fields, .result-list + h2, .compare + h2 { margin-top: 20px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.compare__col { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.compare__col.is-best { border-color: rgba(110, 231, 183, .55); background: rgba(110, 231, 183, .07); }
.compare__col small { display: block; font-size: .74rem; color: #9eb0e3; text-transform: uppercase; letter-spacing: .06em; }
.compare__col strong { display: block; font-size: 1.25rem; color: #fff; font-variant-numeric: tabular-nums; }

/* ── Long-form content ────────────────────────────────────────────────── */
.prose { max-width: 760px; font-size: 1.05rem; line-height: 1.75; color: #1e293b; }
.prose--centered { margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin: 1.7em 0 .5em; font-size: 1.2rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose .table-wrap, .prose .callout, .prose .example, .prose .formula { margin: 1.5em 0; }
.prose code { padding: .1em .35em; font-size: .88em; font-family: var(--mono); background: var(--tint); border-radius: 5px; }
.prose .data { font-size: .92rem; }
.key-points { margin: 0 0 2.2em; padding: 18px 22px; background: var(--tint-blue); border: 1px solid #d6e2ff; border-radius: 14px; }
.key-points > p:first-child { margin: 0 0 .5em; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.key-points ul { margin: 0; }
.example { padding: 16px 20px; background: #fbfefd; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; }
.example > p:first-child { margin: 0 0 .4em; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.example > :last-child { margin-bottom: 0; }
.formula { padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: .9rem; line-height: 1.65; color: #e2e8f0; background: #0f172a; border-radius: 10px; white-space: pre-wrap; }
.disclaimer { margin-top: 3em !important; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .85rem; line-height: 1.6; color: var(--muted); }

.article-hero { padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 32px); background: linear-gradient(180deg, #f8faff, #fff); }
.article-hero h1 { max-width: 900px; font-size: clamp(1.95rem, 1.4rem + 2.1vw, 2.9rem); }
.article-hero .lead { max-width: 780px; }
.article-meta { margin: 0; font-size: .88rem; color: var(--muted); }
.article-layout { display: grid; gap: 48px; padding-block: 28px 72px; }
.article-aside { display: none; }
@media (min-width: 1100px) {
    .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; }
    .article-aside { display: block; }
}
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.toc { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: .87rem; }
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; }
.toc a:hover, .toc a.is-active { color: var(--brand); }
.aside-cta { padding: 20px; border-radius: 14px; background: var(--navy); color: #c3cdef; font-size: .9rem; }
.aside-cta h3 { color: #fff; font-size: 1rem; }
.aside-links { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: .88rem; }
.aside-links p { margin: 0 0 8px; font-weight: 700; }
.aside-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.aside-links a { text-decoration: none; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { padding-block: 64px 28px; background: #0a1433; color: #9aa8cf; font-size: .92rem; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; } }
.site-footer h2 { margin: 4px 0 14px; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #b8c3e4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__brand .brand { color: #fff; margin-bottom: 14px; }
.footer__brand .brand strong { color: #a9bcff; }
.footer__brand > p { max-width: 340px; }
.footer__brand > p a, .footer__bottom p a { color: #dfe6fb; text-decoration: underline; text-decoration-color: rgba(223, 230, 251, .35); text-underline-offset: 3px; }
.footer__brand > p a:hover, .footer__bottom p a:hover { color: #fff; text-decoration-color: #fff; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .icon { color: #7f92c9; width: 17px; height: 17px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }
.footer__bottom p { margin: 0; }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ── Contact, hubs, company pages ─────────────────────────────────────── */
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); } }
.contact-form { padding: clamp(22px, 3vw, 34px); }
.contact-form h2, .contact-aside__title { font-size: 1.15rem; margin-bottom: 18px; }
.contact-aside { display: grid; gap: 20px; }
.contact-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-methods li { display: flex; align-items: center; gap: 14px; }
.contact-methods .card__icon { margin: 0; width: 40px; height: 40px; }
.contact-methods b { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.contact-methods a, .contact-methods span { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-methods a:hover { color: var(--brand); }
.contact-methods div span { font-weight: 500; font-size: .92rem; }
.contact-hours { display: flex; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.contact-hours .icon { margin-top: 2px; }
.mini-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--ink-2); font-size: .94rem; }
.mini-steps li::marker { color: var(--brand); font-weight: 700; }
.req { color: var(--accent); }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-50); color: var(--teal); }
.thanks-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.thanks-actions { justify-content: center; }
.faq-page h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin: 48px 0 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-page h2:first-child { margin-top: 0; }
.hub-intro p { margin: 0; max-width: 780px; }
.hub-category-head { margin-bottom: 20px; }
.hub-category-head .link-cards__heading { margin-bottom: 4px; }
.hub-category-head a { color: var(--ink); text-decoration: none; }
.hub-category-head a:hover { color: var(--brand); }
.hub-category-head p { margin: 0; max-width: 760px; }
.about-table { min-width: 0; }
.about-table th { width: 34%; color: var(--muted); font-weight: 600; background: none; }

/* ── Vertical rhythm between stacked blocks ───────────────────────────── */
/* Cards, steps, tables, callouts and FAQs placed one after another inside a
   container (or inside a column of a split) always get breathing room. */
:is(.container:not(.split):not(.contact-grid):not(.article-layout):not(.hero__grid):not(.page-hero__grid), .split > div, .calc__panel)
    > :is(.grid, .steps, .table-wrap, .callout, .faq, .checklist, .mock-figure, .cta-band, .card, .form-errors, .hub-category-head)
    + :is(.grid, .steps, .table-wrap, .callout, .faq, .checklist, .mock-figure, .cta-band, .card, .link-cards__heading, .hub-category-head, h2, h3, p, .btn) {
    margin-top: 32px;
}

/* ── Utilities (keep last) ────────────────────────────────────────────── */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ── Misc ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .breadcrumbs, .cta-band, .no-print { display: none !important; }
    body { background: #fff; }
}
