:root {
  --ink: #10253f;
  --ink-soft: #516074;
  --paper: #f4f7f8;
  --card: #ffffff;
  --line: #dfe7e9;
  --green: #087f68;
  --green-dark: #075f51;
  --green-soft: #dff4ee;
  --coral: #e46f51;
  --navy: #0c2948;
  --shadow: 0 20px 55px rgba(16, 37, 63, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 20; background: var(--navy); color: white; padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { top: 18px; }

.site-header { background: rgba(244, 247, 248, .92); border-bottom: 1px solid rgba(16,37,63,.08); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); }
.header-inner { height: 78px; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--navy); color: white; border-radius: 10px 10px 10px 3px; font-size: 18px; }
.brand-dot { color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.main-nav a { padding: 28px 0 24px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--green); }
.verified-pill { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--green-dark); background: var(--green-soft); padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.verified-pill .verified-icon { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-size: 11px; }

.workspace { padding: 42px 0 38px; }
.intro-row { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 64px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .14em; }
h1, h2 { letter-spacing: -.045em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 4.4vw, 56px); max-width: 660px; }
h2 { font-size: clamp(28px, 3vw, 40px); }
.intro-copy { margin: 0 0 6px; color: var(--ink-soft); font-size: 17px; max-width: 490px; }

.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: 22px; align-items: stretch; }
.input-panel, .result-panel { border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.input-panel { background: var(--card); border: 1px solid var(--line); }
.result-panel { background: var(--navy); color: white; position: relative; overflow: hidden; }
.result-panel::after { content: ""; position: absolute; width: 280px; height: 280px; right: -120px; top: -130px; border: 48px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none; }
.direction-switch { border: 0; padding: 0; margin: 0 0 28px; display: flex; gap: 8px; }
.direction-switch legend { position: absolute; clip: rect(0,0,0,0); }
.direction-switch label { flex: 1; }
.direction-switch input { position: absolute; opacity: 0; pointer-events: none; }
.direction-switch span { display: block; text-align: center; padding: 11px; background: #eef3f4; color: var(--ink-soft); border-radius: 11px; font-size: 14px; font-weight: 650; border: 1px solid transparent; }
.direction-switch input:checked + span { background: var(--green-soft); color: var(--green-dark); border-color: #a8dacf; }
.direction-switch input:focus-visible + span { outline: 3px solid rgba(8,127,104,.24); }
.field-label, .field-row label, .advanced-grid label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 650; }
.money-field { height: 70px; display: flex; align-items: center; gap: 12px; border: 2px solid #cfdadd; border-radius: 15px; padding: 0 19px; transition: .2s; }
.money-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(8,127,104,.11); }
.money-field span { font-weight: 600; color: var(--green); font-size: 25px; }
.money-field input { width: 100%; border: 0; outline: 0; color: var(--ink); font-weight: 800; font-size: 29px; letter-spacing: -.03em; background: transparent; font-variant-numeric: tabular-nums; }
.salary-settings-button { position: relative; flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #f3f7f7; color: var(--ink-soft); }
.salary-settings-button:hover, .salary-settings-button.active { border-color: #8fcfc0; background: var(--green-soft); color: var(--green-dark); }
.salary-settings-button.schedule-active { box-shadow: 0 0 0 4px rgba(8,127,104,.12), 0 0 18px rgba(8,127,104,.2); }
.salary-settings-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.salary-settings-button.active::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--green); }
.salary-settings-button::before { content: attr(data-tooltip); position: absolute; z-index: 8; right: -8px; bottom: calc(100% + 10px); width: max-content; max-width: 240px; padding: 7px 9px; border-radius: 8px; background: var(--navy); color: white; font-size: 11px; font-weight: 600; line-height: 1.3; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s; }
.salary-settings-button:hover::before, .salary-settings-button:focus-visible::before { opacity: 1; transform: translateY(0); }
.field-hint { margin: 8px 0 22px; color: var(--ink-soft); font-size: 13px; }
.field-row, .advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select { min-height: 46px; appearance: none; background: #f8fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23516074' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); padding: 0 38px 0 13px; }
.quick-values { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.quick-values button { min-height: 44px; border: 1px solid var(--line); background: white; color: var(--ink-soft); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.quick-values button:hover { border-color: var(--green); color: var(--green-dark); }
.quick-values button:disabled { cursor: default; opacity: .45; border-color: var(--line); color: var(--ink-soft); }
.label-with-help { display: flex; align-items: center; gap: 6px; }
.field-help { position: relative; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #bfd0d4; border-radius: 50%; background: white; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.field-help::after { content: attr(data-tooltip); position: absolute; z-index: 12; left: 50%; bottom: calc(100% + 9px); width: 220px; padding: 8px 10px; border-radius: 8px; background: var(--navy); color: white; font-size: 11px; font-weight: 500; line-height: 1.4; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .16s, transform .16s; }
.field-help:hover::after, .field-help:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.select-hint { min-height: 15px; margin-top: -3px; color: var(--ink-soft); font-size: 11px; font-weight: 500; }
.advanced-options { border-block: 1px solid var(--line); padding: 15px 0; margin-bottom: 20px; }
.advanced-options summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 650; cursor: pointer; }
.advanced-options summary::-webkit-details-marker { display: none; }
.advanced-options summary::after { content: "+"; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.advanced-options[open] summary::after { content: "−"; }
.advanced-options summary span { margin-left: auto; margin-right: 14px; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.advanced-options.has-changes summary span { padding: 4px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.advanced-grid { padding-top: 16px; }
.agi-options { margin-top: 17px; padding-top: 15px; border-top: 1px dashed var(--line); }
.agi-options > p { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.agi-options > p small { color: var(--ink-soft); font-weight: 500; margin-left: 6px; }
.calculate-button { width: 100%; height: 54px; border: 0; border-radius: 13px; background: var(--green); color: white; display: flex; justify-content: center; align-items: center; gap: 15px; font-weight: 700; box-shadow: 0 10px 25px rgba(8,127,104,.2); }
.calculate-button:hover { background: var(--green-dark); }
.calculate-button .calculate-icon { font-size: 20px; }
.calculate-button.calculated { background: var(--green-dark); }
.form-message { min-height: 20px; margin: 9px 0 -9px; color: #b34732; font-size: 13px; }
.form-message.warning { margin-top: 12px; padding: 10px 12px; border: 1px solid #e8c98b; border-radius: 9px; background: #fff7e6; color: #795416; line-height: 1.4; }
.form-message.warning strong, .form-message.warning span { display: block; }
.form-message.warning strong { margin-bottom: 2px; color: #68430b; }

.result-head { display: flex; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
.result-period-picker { position: relative; z-index: 2; }
.result-month-label { display: block; margin: 0 0 6px; color: #8fe0ca; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.result-month { min-height: 0; height: 40px; width: 154px; margin-bottom: 10px; padding: 0 36px 0 12px; color: white; border: 1px solid rgba(143,224,202,.58); border-radius: 10px; background-color: rgba(68,197,164,.13); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238fe0ca' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); font-weight: 700; box-shadow: 0 0 0 3px rgba(68,197,164,.06); }
.result-month:hover, .result-month:focus { border-color: #8fe0ca; background-color: rgba(68,197,164,.2); outline: none; }
.result-month option { color: var(--ink); background: white; }
.result-head h2 { font-size: 18px; letter-spacing: -.02em; }
.result-badge { align-self: start; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #c9d8e6; padding: 7px 10px; border-radius: 999px; font-size: 12px; }
.primary-result { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 21px; font-size: clamp(45px, 5vw, 66px); font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.primary-result small { font-size: 24px; font-weight: 600; color: #8fe0ca; }
.number-changing { animation: number-rise .48s ease-out; transition: color .2s; }
.number-changing.number-up { color: #08715c; }
.number-changing.number-down { color: #ad3f2d; }
.result-panel .number-changing.number-up { color: #6ee0c1; }
.result-panel .number-changing.number-down { color: #ff9a80; }
.number-refresh { animation: number-refresh .48s ease-out; }
@keyframes number-rise {
  0% { opacity: .55; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes number-refresh {
  0% { opacity: .55; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.result-panel.month-shift-forward { animation: result-forward .42s ease-out; }
.result-panel.month-shift-back { animation: result-back .42s ease-out; }
@keyframes result-forward { from { opacity: .82; transform: translateX(9px); } to { opacity: 1; transform: translateX(0); } }
@keyframes result-back { from { opacity: .82; transform: translateX(-9px); } to { opacity: 1; transform: translateX(0); } }
.result-delta { width: fit-content; margin: -12px 0 17px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.result-delta.up { background: rgba(68,197,164,.16); color: #8fe0ca; }
.result-delta.down { background: rgba(228,111,81,.16); color: #ffad98; }
.distribution { width: 100%; height: 10px; display: flex; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.distribution span { transition: width .45s ease; }
.distribution-net { background: #44c5a4; }
.distribution-cut { background: var(--coral); }
.distribution-legend { display: flex; justify-content: space-between; color: #b9cada; font-size: 12px; margin-top: 9px; }
.distribution-legend span { display: flex; align-items: center; gap: 6px; }
.distribution-legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend-net { background: #44c5a4; }.legend-cut { background: var(--coral); }
.distribution-legend strong { color: white; font-variant-numeric: tabular-nums; }
.breakdown-list { margin: 23px 0 0; }
.breakdown-list div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); }
.breakdown-list dt { color: #b9cada; }
.breakdown-list dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.breakdown-list .employer-row { margin-top: 3px; color: #9ce0ce; }
.breakdown-list .employer-row dt { color: #9ce0ce; }
.result-overview { margin-top: 20px; }
.result-note { margin: 13px 0 0; color: #95abc0; font-size: 12px; }
.month-navigation { display: flex; justify-content: space-between; gap: 9px; margin-top: 16px; }
.month-navigation button { min-width: 116px; min-height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.07); color: #d5e2ee; padding: 9px 12px; font-size: 12px; font-weight: 650; }
.month-navigation button:hover:not(:disabled) { background: rgba(255,255,255,.13); color: white; }
.month-navigation button:disabled { cursor: default; opacity: .35; }

.salary-dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 28px 90px rgba(9,29,51,.28); }
.salary-dialog::backdrop { background: rgba(9,29,51,.54); backdrop-filter: blur(4px); }
.salary-dialog-head { display: flex; justify-content: space-between; gap: 24px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.salary-dialog-head h2 { font-size: 25px; }
.salary-dialog-head p:last-child { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; }
.salary-dialog-head > button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink-soft); font-size: 22px; }
.dialog-month-table { margin: 14px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.dialog-table-head, .dialog-month-item { display: grid; grid-template-columns: 104px minmax(0, 1fr) 62px; align-items: center; }
.dialog-table-head { min-height: 32px; padding: 0 12px; background: #eef3f4; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dialog-month-grid { display: block; }
.dialog-month-item { min-width: 0; min-height: 38px; padding: 3px 12px; border-top: 1px solid var(--line); background: white; }
.dialog-month-item > span { font-size: 12px; font-weight: 650; }
.dialog-month-item > div { height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-left: 1px solid var(--line); background: white; }
.dialog-month-item > div:focus-within { background: #f1f8f6; box-shadow: inset 3px 0 0 var(--green); }
.dialog-month-item i { color: var(--green); font-style: normal; font-size: 12px; }
.dialog-month-item input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dialog-month-item.disabled { opacity: .45; }
.month-change-status { color: transparent; text-align: right; font-size: 10px; font-weight: 700; }
.dialog-month-item.changed { background: #f4faf8; }
.dialog-month-item.changed .month-change-status { color: var(--green-dark); }
.salary-dialog-actions { display: flex; justify-content: space-between; gap: 10px; padding: 13px 24px 17px; border-top: 1px solid var(--line); }
.salary-dialog-actions button { min-height: 43px; border-radius: 10px; padding: 0 16px; font-weight: 700; }
.salary-dialog-actions .secondary { border: 1px solid var(--line); background: white; color: var(--ink-soft); }
.salary-dialog-actions .primary { border: 0; background: var(--green); color: white; }

.annual-section { padding: 54px 0 66px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.annual-summary { text-align: right; }
.annual-summary span { display: block; color: var(--ink-soft); font-size: 13px; }
.annual-summary strong { font-size: 25px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.trend-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px rgba(16,37,63,.05); }
.trend-metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.trend-metrics div { padding: 21px 24px; border-right: 1px solid var(--line); }
.trend-metrics div:last-child { border: 0; }
.trend-metrics span { display: block; color: var(--ink-soft); font-size: 12px; margin-bottom: 5px; }
.trend-metrics strong { font-size: 19px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.annual-total-metric { background: #f0f8f6; }
.annual-total-metric strong { color: var(--green-dark); }
.chart-wrap { padding: 22px 24px 10px; min-height: 290px; }
#salaryChart { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #e7edef; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.animate { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: chart-draw .72s ease-out forwards; }
.chart-area { fill: url(#areaGradient); }
.chart-area.animate { animation: chart-area-in .72s ease-out; }
.chart-dot { fill: white; stroke: var(--green); stroke-width: 3; }
.chart-point { outline: none; cursor: default; }
.chart-point:focus .chart-dot { stroke-width: 5; }
.chart-tooltip { opacity: 0; pointer-events: none; transition: opacity .14s; }
.chart-point:hover .chart-tooltip, .chart-point:focus .chart-tooltip { opacity: 1; }
.chart-tooltip rect { fill: var(--navy); filter: drop-shadow(0 4px 7px rgba(9,29,51,.18)); }
.chart-tooltip text { fill: #dce7f0; font-size: 9px; font-family: Inter, sans-serif; text-anchor: middle; font-variant-numeric: tabular-nums; }
.chart-tooltip .chart-tooltip-month { fill: white; font-size: 11px; font-weight: 700; }
.chart-label { fill: #738194; font-size: 12px; font-family: Inter, sans-serif; text-anchor: middle; }
.payroll-details { margin-top: 15px; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.payroll-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 22px; border-top: 1px solid var(--line); background: #fafcfc; }
.payroll-toolbar p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.payroll-toolbar > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.payroll-toolbar button { border: 1px solid #a8dacf; background: var(--green-soft); color: var(--green-dark); border-radius: 10px; padding: 9px 13px; font-size: 12px; font-weight: 700; }
.payroll-toolbar button:hover { background: #ccebe3; }
.payroll-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 19px 22px; font-weight: 700; }
.payroll-details summary::-webkit-details-marker { display: none; }
.payroll-details summary::after { content: "+"; font-size: 20px; color: var(--green); }
.payroll-details[open] summary::after { content: "−"; }
.payroll-details summary small { margin-left: auto; margin-right: 18px; color: var(--ink-soft); font-weight: 500; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 1120px; font-size: 13px; }
.payroll-details.show-employer table { min-width: 1480px; }
.payroll-details:not(.show-employer) .employer-column { display: none; }
th, td { padding: 13px 16px; text-align: right; border-bottom: 1px solid #edf1f2; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
th { background: #f7f9fa; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
td:last-child { color: var(--green-dark); font-weight: 650; }
tbody tr:not(.inactive) { cursor: pointer; transition: background .15s; }
tbody tr:not(.inactive):hover { background: #f1f8f6; }
tbody tr.selected { background: var(--green-soft); }
tbody tr.inactive { color: #aab3bd; background: #fafbfb; }
.chart-dot.selected { fill: var(--green); stroke: white; filter: drop-shadow(0 2px 4px rgba(8,127,104,.35)); transform-box: fill-box; transform-origin: center; animation: chart-point-pulse .7s ease-out; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-area-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes chart-point-pulse { 0% { transform: scale(.45); } 55% { transform: scale(1.45); } 100% { transform: scale(1); } }

button:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(8,127,104,.32); outline-offset: 3px; }
.result-month:focus-visible { outline: 3px solid #8fe0ca; outline-offset: 3px; }

.trust-section { background: #e5f0ee; padding: 62px 0; }
.trust-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.trust-grid > div > p:last-child { color: var(--ink-soft); max-width: 470px; }
.trust-grid > div > .last-updated { margin: 12px 0 0; color: var(--green-dark); font-size: 12px; font-weight: 650; }
.trust-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-points div { background: rgba(255,255,255,.72); padding: 20px; border-radius: 15px; }
  .trust-points span { color: var(--green); font-size: 12px; font-weight: 800; }
.trust-points p { margin: 18px 0 0; color: var(--ink-soft); font-size: 13px; }
.trust-points strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 5px; }
.method-card { margin-top: 26px; }
.method-card details { overflow: hidden; border: 1px solid rgba(8,127,104,.18); border-radius: 16px; background: rgba(255,255,255,.72); }
.method-card summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 21px; list-style: none; cursor: pointer; color: var(--ink); font-weight: 700; }
.method-card summary::-webkit-details-marker { display: none; }
.method-card summary::after { content: "+"; color: var(--green); font-size: 21px; }
.method-card details[open] summary::after { content: "−"; }
.method-content { display: grid; grid-template-columns: 1.35fr .65fr; gap: 44px; padding: 4px 21px 24px; border-top: 1px solid rgba(8,127,104,.12); }
.method-content h3 { margin: 20px 0 11px; font-size: 14px; }
.method-content ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.method-content a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(8,127,104,.13); color: var(--green-dark); font-size: 13px; font-weight: 650; }
.method-content a:hover { text-decoration: underline; }
.faq-section { padding: 62px 0 76px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
.faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-list summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; list-style: none; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--green); font-size: 20px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 18px 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.tools-section { padding: 66px 0 80px; }
.section-heading.compact { margin-bottom: 22px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-grid a { min-height: 156px; background: white; border: 1px solid var(--line); border-radius: 17px; padding: 22px; position: relative; transition: transform .2s, box-shadow .2s; }
.tool-grid a:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(16,37,63,.07); }
.tool-grid span { display: block; color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.tool-grid strong { display: block; max-width: 250px; font-size: 17px; }
.tool-grid i { position: absolute; right: 20px; bottom: 18px; color: var(--green); font-style: normal; font-size: 21px; }
.site-footer { background: #091d33; color: white; padding: 31px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; }
.footer-brand .brand-mark { background: var(--green); }
.footer-inner p { margin: 0; color: #9fb2c6; font-size: 12px; }
.footer-inner div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; color: #bdc9d5; font-size: 13px; }

@media (max-width: 950px) {
  .main-nav { display: none; }
  .intro-row, .calculator-grid, .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-row { align-items: start; }
  .trend-metrics { grid-template-columns: 1fr 1fr; }
  .trend-metrics div { border-bottom: 1px solid var(--line); }
  .trend-metrics div:nth-child(even) { border-right: 0; }
  .trend-metrics div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .trust-points, .tool-grid { grid-template-columns: 1fr; }
  .method-content, .faq-list { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner div { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { height: 68px; }
  .verified-pill { display: none; }
  .workspace { padding-top: 36px; }
  .intro-row { margin-bottom: 23px; }
  h1 { font-size: 40px; }
  .input-panel, .result-panel { padding: 22px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .field-row, .advanced-grid { grid-template-columns: 1fr; }
  .primary-result { font-size: 45px; }
  .dialog-month-table { margin-inline: 18px; }
  .dialog-table-head, .dialog-month-item { grid-template-columns: 70px minmax(0, 1fr) 50px; }
  .salary-dialog-head, .salary-dialog-actions { padding-inline: 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .annual-summary { text-align: left; }
  .payroll-details summary small { display: none; }
  .payroll-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  body { background: white; }
  .site-header, .intro-row, .input-panel, .trust-section, .tools-section, .site-footer, .month-navigation, .payroll-toolbar { display: none !important; }
  .workspace, .annual-section { width: 100%; padding: 12px 0; }
  .calculator-grid { display: block; }
  .result-panel, .trend-card, .payroll-details { box-shadow: none; break-inside: avoid; }
  .result-panel { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .payroll-details { display: block; }
  .payroll-details > summary { display: none; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 10px; }
  th, td { padding: 7px 5px; }
}
