:root {
  --fpc-ink: #17352d;
  --fpc-muted: #64746f;
  --fpc-green: #0a8f5a;
  --fpc-green-dark: #08734a;
  --fpc-green-soft: #eaf8f1;
  --fpc-orange: #e87520;
  --fpc-orange-dark: #b94f0a;
  --fpc-orange-soft: #fff3e9;
  --fpc-blue: #2473c8;
  --fpc-blue-soft: #edf5ff;
  --fpc-line: #dce8e3;
  --fpc-panel: #ffffff;
  --fpc-page: #f7faf8;
  --fpc-danger: #a93627;
  --fpc-danger-soft: #fff1ef;
}

.final-paycheck-page { background: var(--fpc-page); color: var(--fpc-ink); }
.final-paycheck-page * { box-sizing: border-box; }
.fpc-skip { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.fpc-skip:focus { left:16px; top:16px; width:auto; height:auto; z-index:10000; padding:10px 14px; border-radius:8px; background:#fff; color:var(--fpc-ink); box-shadow:0 8px 30px rgba(0,0,0,.15); }

.fpc-hero {
  background:
    radial-gradient(circle at 86% 20%, rgba(232,117,32,.24), transparent 26%),
    radial-gradient(circle at 9% 84%, rgba(36,115,200,.12), transparent 30%),
    linear-gradient(135deg, #0b6f4a 0%, #0a8f5a 55%, #087a50 100%);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.fpc-hero-inner { max-width:1180px; margin:0 auto; padding:64px 24px 58px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:48px; align-items:center; }
.fpc-kicker { display:inline-flex; align-items:center; gap:8px; font:700 12px/1.2 "DM Sans",sans-serif; letter-spacing:.08em; text-transform:uppercase; color:#d5f4e6; }
.fpc-kicker::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.fpc-hero h1 { margin:14px 0 16px; max-width:760px; font:800 clamp(38px,5.2vw,64px)/.98 "Bricolage Grotesque",sans-serif; letter-spacing:-.045em; }
.fpc-hero-copy { margin:0; max-width:780px; color:rgba(255,255,255,.9); font-size:18px; line-height:1.66; }
.fpc-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.fpc-btn { display:inline-flex; min-height:46px; align-items:center; justify-content:center; padding:11px 17px; border-radius:11px; font-weight:800; text-decoration:none; border:1px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fpc-btn:hover { transform:translateY(-2px); }
.fpc-btn-primary { background:var(--fpc-orange); color:#fff; box-shadow:0 10px 28px rgba(110,46,4,.25); }
.fpc-btn-primary:hover { background:#f0832f; box-shadow:0 14px 32px rgba(110,46,4,.32); }
.fpc-btn-secondary { background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.32); }
.fpc-btn-secondary:hover { background:rgba(255,255,255,.17); }
.fpc-privacy-inline { margin-top:20px; display:flex; align-items:flex-start; gap:9px; max-width:720px; color:#dff6eb; font-size:13px; line-height:1.5; }
.fpc-privacy-inline svg { flex:0 0 auto; margin-top:1px; }

.fpc-example { align-self:stretch; border:1px solid rgba(255,255,255,.18); border-radius:20px; padding:24px; background:rgba(255,255,255,.11); backdrop-filter:blur(6px); box-shadow:0 18px 45px rgba(4,65,43,.22); }
.fpc-example-label { display:inline-block; padding:6px 9px; border-radius:999px; background:rgba(255,243,233,.14); border:1px solid rgba(255,230,210,.26); color:#ffe5d1; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.fpc-example h2 { margin:14px 0 18px; font:800 25px/1.1 "Bricolage Grotesque",sans-serif; }
.fpc-example-row,.fpc-example-total { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid rgba(255,255,255,.15); font-size:14px; }
.fpc-example-row span,.fpc-example-total span { color:#dcf2e8; }
.fpc-example-row strong,.fpc-example-total strong { text-align:right; }
.fpc-example-total { margin-top:4px; padding-top:16px; }
.fpc-example-total strong { color:#ffd2b1; font-size:18px; }

.fpc-shell { max-width:1180px; margin:0 auto; padding:42px 24px 76px; }
.fpc-tool-layout { display:grid; grid-template-columns:minmax(0,1.22fr) minmax(320px,.78fr); gap:24px; align-items:start; }
.fpc-panel { background:var(--fpc-panel); border:1px solid var(--fpc-line); border-radius:18px; box-shadow:0 10px 32px rgba(26,72,58,.06); }
.fpc-input-panel { overflow:hidden; }
.fpc-panel-head { padding:26px 28px 20px; background:linear-gradient(180deg,#fff,#fbfdfc); border-bottom:1px solid var(--fpc-line); }
.fpc-panel-head h2,.fpc-results-head h2,.fpc-side h2,.fpc-content h2 { font-family:"Bricolage Grotesque",sans-serif; color:var(--fpc-ink); letter-spacing:-.025em; }
.fpc-panel-head h2 { margin:8px 0 8px; font-size:29px; line-height:1.08; }
.fpc-panel-head p { margin:0; color:var(--fpc-muted); line-height:1.62; }
.fpc-form { padding:26px 28px 30px; }
.fpc-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fpc-field { display:flex; flex-direction:column; gap:7px; color:#29473f; font-size:14px; font-weight:800; }
.fpc-field small { color:var(--fpc-muted); font-size:12px; font-weight:500; line-height:1.45; }
.fpc-money-input,.fpc-hours-input { position:relative; display:flex; align-items:center; }
.fpc-money-input > span:first-child { position:absolute; left:13px; color:#577069; font-weight:800; z-index:1; }
.fpc-money-input input { padding-left:31px; }
.fpc-hours-input > span { position:absolute; right:12px; color:#71817c; font-weight:700; font-size:12px; }
.fpc-hours-input input { padding-right:58px; }
.fpc-field input,.fpc-field select { width:100%; min-height:46px; border:1px solid #cddbd5; border-radius:10px; background:#fff; color:#17352d; padding:10px 12px; font:600 16px/1.3 "DM Sans",sans-serif; outline:none; transition:border-color .18s ease, box-shadow .18s ease; }
.fpc-field input:focus,.fpc-field select:focus { border-color:var(--fpc-green); box-shadow:0 0 0 3px rgba(10,143,90,.12); }
.fpc-method-panel { margin:20px 0 22px; padding:16px 17px; border:1px solid #f2d5be; border-left:4px solid var(--fpc-orange); border-radius:12px; background:var(--fpc-orange-soft); }
.fpc-method-panel h3 { margin:0 0 5px; font-size:15px; }
.fpc-method-panel p { margin:0; color:#765641; font-size:13px; line-height:1.55; }
.fpc-section-label { margin-top:4px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--fpc-green); }
.fpc-section-copy { margin:6px 0 14px; color:var(--fpc-muted); font-size:14px; line-height:1.55; }
.fpc-week-rows { display:grid; gap:10px; }
.fpc-week-row { padding:14px; border:1px solid #dce8e3; border-radius:13px; background:#fbfdfc; }
.fpc-week-row-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.fpc-week-row-head strong { font-size:14px; }
.fpc-remove-week { border:0; background:none; color:#a84432; font-weight:800; cursor:pointer; padding:4px 6px; }
.fpc-add-week { margin-top:12px; min-height:42px; border:1px dashed #aac9bb; border-radius:10px; background:#f3fbf7; color:var(--fpc-green-dark); padding:9px 13px; font-weight:800; cursor:pointer; }
.fpc-add-week:hover:not(:disabled) { background:#e9f7ef; }
.fpc-add-week:disabled { opacity:.55; cursor:not-allowed; }
.fpc-confirm { margin-top:22px; display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; padding:15px; border:1px solid #cdded7; border-radius:12px; background:#f8fbfa; color:#3f5750; font-size:13px; line-height:1.52; }
.fpc-confirm input { margin-top:3px; width:17px; height:17px; accent-color:var(--fpc-green); }
.fpc-form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.fpc-submit,.fpc-reset,.fpc-print { min-height:45px; border-radius:10px; padding:10px 15px; font-weight:800; cursor:pointer; }
.fpc-submit { border:1px solid var(--fpc-green); background:var(--fpc-green); color:#fff; flex:1 1 240px; }
.fpc-submit:hover { background:var(--fpc-green-dark); }
.fpc-reset,.fpc-print { border:1px solid #cbd9d3; background:#fff; color:#28463e; }
.fpc-reset:hover,.fpc-print:hover { background:#f3f7f5; }
.fpc-error { margin:0 28px 28px; padding:13px 15px; border:1px solid #efc5bf; border-radius:11px; background:var(--fpc-danger-soft); color:var(--fpc-danger); font-weight:700; line-height:1.45; }

.fpc-results { overflow:hidden; margin-bottom:24px; }
.fpc-results-head { padding:22px 24px 16px; border-bottom:1px solid var(--fpc-line); background:linear-gradient(180deg,#effaf4,#fff); }
.fpc-results-head span { color:var(--fpc-green); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.fpc-results-head h2 { margin:6px 0 0; font-size:25px; }
.fpc-primary-result { margin:20px 22px 14px; padding:18px; border-radius:15px; background:linear-gradient(135deg,#fff2e6,#fff9f4); border:1px solid #f3cfae; }
.fpc-primary-result .label { display:block; color:#8a4b1c; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.fpc-primary-result .value { display:block; margin-top:6px; color:var(--fpc-orange-dark); font:800 34px/1 "Bricolage Grotesque",sans-serif; }
.fpc-primary-result .definition { margin:10px 0 0; color:#705a49; font-size:12px; line-height:1.5; }
.fpc-metrics { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:0 22px 20px; }
.fpc-metric { min-width:0; padding:12px; border:1px solid #e0e9e5; border-radius:11px; background:#fbfdfc; }
.fpc-metric span { display:block; color:var(--fpc-muted); font-size:11px; line-height:1.3; }
.fpc-metric strong { display:block; margin-top:4px; overflow-wrap:anywhere; font-size:15px; }
.fpc-trace { margin:0 22px 16px; padding:14px; border-radius:11px; background:#eff6ff; border:1px solid #d2e5fa; }
.fpc-trace strong { display:block; margin-bottom:5px; color:#245b94; font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.fpc-trace code { color:#315c86; white-space:normal; font-size:12px; line-height:1.5; }
.fpc-note { margin:0 22px 18px; padding:14px; border-radius:11px; border:1px solid #d6e8df; background:#f2faf6; }
.fpc-note strong { color:#1d684a; font-size:13px; }
.fpc-note p { margin:5px 0 0; color:#536a62; font-size:12px; line-height:1.5; }
.fpc-breakdown { padding:0 22px 22px; }
.fpc-breakdown h3 { margin:0 0 9px; font-size:15px; }
.fpc-breakdown-table-wrap { overflow-x:auto; border:1px solid #dfe9e4; border-radius:11px; }
.fpc-breakdown-table { width:100%; border-collapse:collapse; min-width:660px; font-size:12px; }
.fpc-breakdown-table th,.fpc-breakdown-table td { padding:9px 10px; text-align:right; border-bottom:1px solid #e6eeea; }
.fpc-breakdown-table th:first-child,.fpc-breakdown-table td:first-child { text-align:left; }
.fpc-breakdown-table th { color:#4d645d; background:#f7faf8; font-weight:800; }
.fpc-breakdown-table tbody tr:last-child td { border-bottom:0; }
.fpc-result-actions { padding:0 22px 22px; }

.fpc-side { padding:24px; }
.fpc-side h2 { margin:8px 0 10px; font-size:25px; line-height:1.08; }
.fpc-side > p { color:var(--fpc-muted); line-height:1.62; }
.fpc-side ul { list-style:none; padding:0; margin:18px 0 0; display:grid; gap:14px; }
.fpc-side li { display:grid; grid-template-columns:32px 1fr; gap:10px; align-items:start; color:#51665f; font-size:13px; line-height:1.48; }
.fpc-side li > span { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--fpc-blue-soft); color:var(--fpc-blue); font-weight:800; }
.fpc-side li strong { color:#213f37; }

.fpc-trust-strip { margin:24px 0 44px; display:grid; grid-template-columns:repeat(3,1fr); overflow:hidden; border:1px solid var(--fpc-line); border-radius:16px; background:#fff; }
.fpc-trust-strip > div { padding:17px 18px; border-right:1px solid var(--fpc-line); }
.fpc-trust-strip > div:last-child { border-right:0; }
.fpc-trust-strip strong,.fpc-trust-strip span { display:block; }
.fpc-trust-strip strong { font-size:13px; }
.fpc-trust-strip span { margin-top:4px; color:var(--fpc-muted); font-size:12px; line-height:1.45; }

.fpc-content { display:grid; gap:44px; }
.fpc-content section { scroll-margin-top:90px; }
.fpc-content .fpc-section-head { max-width:800px; margin-bottom:18px; }
.fpc-content .fpc-section-head h2 { margin:5px 0 8px; font-size:31px; line-height:1.08; }
.fpc-content .fpc-section-head p { margin:0; color:var(--fpc-muted); line-height:1.65; }
.fpc-formula-block { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.72fr); gap:22px; }
.fpc-formula-visual { padding:24px; border-radius:17px; color:#fff; background:linear-gradient(135deg,#165f47,#0a8f5a); box-shadow:0 14px 34px rgba(10,95,68,.13); }
.fpc-formula-visual > span { display:block; color:#cff1e1; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; margin-bottom:12px; }
.fpc-formula-visual strong { font-size:16px; line-height:1.7; }
.fpc-formula-note { padding:23px; border:1px solid #f0d1b9; border-radius:17px; background:var(--fpc-orange-soft); }
.fpc-formula-note h3 { margin:0 0 8px; font:800 20px/1.1 "Bricolage Grotesque",sans-serif; }
.fpc-formula-note p { margin:0; color:#6c594a; line-height:1.62; }
.fpc-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.fpc-card { padding:20px; border:1px solid var(--fpc-line); border-radius:15px; background:#fff; }
.fpc-card .fpc-card-icon { width:38px; height:38px; display:grid; place-items:center; margin-bottom:13px; border-radius:11px; background:var(--fpc-green-soft); color:var(--fpc-green); font-weight:900; }
.fpc-card:nth-child(2) .fpc-card-icon { background:var(--fpc-orange-soft); color:var(--fpc-orange-dark); }
.fpc-card:nth-child(3) .fpc-card-icon { background:var(--fpc-blue-soft); color:var(--fpc-blue); }
.fpc-card h3 { margin:0 0 8px; font-size:17px; }
.fpc-card p { margin:0; color:var(--fpc-muted); line-height:1.58; font-size:14px; }
.fpc-two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.fpc-copy-panel { padding:24px; border:1px solid var(--fpc-line); border-radius:16px; background:#fff; }
.fpc-copy-panel h2,.fpc-copy-panel h3 { margin-top:0; }
.fpc-copy-panel p,.fpc-copy-panel li { color:var(--fpc-muted); line-height:1.65; }
.fpc-copy-panel ul { padding-left:20px; }
.fpc-sources { padding:24px; border:1px solid #d5e6f8; border-radius:16px; background:#f4f9ff; }
.fpc-sources h2 { margin-top:0; }
.fpc-sources p { color:#5d6d7c; line-height:1.65; }
.fpc-source-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.fpc-source-links a { padding:9px 11px; border-radius:9px; background:#fff; border:1px solid #cfe0f4; color:#205d9c; font-weight:800; font-size:13px; text-decoration:none; }
.fpc-source-links a:hover { border-color:#9fc4ea; background:#eef6ff; }
.fpc-faq { display:grid; gap:10px; }
.fpc-faq details { border:1px solid var(--fpc-line); border-radius:12px; background:#fff; overflow:hidden; }
.fpc-faq summary { padding:15px 17px; cursor:pointer; font-weight:800; }
.fpc-faq details p { margin:0; padding:0 17px 16px; color:var(--fpc-muted); line-height:1.62; }
.fpc-related { display:flex; justify-content:space-between; gap:22px; align-items:flex-start; padding:25px; border-radius:17px; background:#123e32; color:#fff; }
.fpc-related h2 { margin:0 0 6px; color:#fff; }
.fpc-related p { margin:0; color:#c8e4da; max-width:580px; line-height:1.55; }
.fpc-related-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; max-width:500px; }
.fpc-related-links a { padding:8px 10px; border-radius:9px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); color:#fff; font-size:12px; font-weight:800; text-decoration:none; }
.fpc-related-links a:hover { background:rgba(255,255,255,.14); }

@media (max-width:900px) {
  .fpc-hero-inner,.fpc-tool-layout,.fpc-formula-block { grid-template-columns:1fr; }
  .fpc-hero-inner { gap:28px; padding-top:48px; }
  .fpc-example { max-width:620px; }
  .fpc-trust-strip { grid-template-columns:1fr; }
  .fpc-trust-strip > div { border-right:0; border-bottom:1px solid var(--fpc-line); }
  .fpc-trust-strip > div:last-child { border-bottom:0; }
  .fpc-card-grid { grid-template-columns:1fr; }
  .fpc-related { flex-direction:column; }
  .fpc-related-links { justify-content:flex-start; max-width:none; }
}

@media (max-width:620px) {
  .fpc-hero-inner,.fpc-shell { padding-left:16px; padding-right:16px; }
  .fpc-hero-inner { padding-top:38px; padding-bottom:40px; }
  .fpc-hero-copy { font-size:16px; }
  .fpc-grid-2,.fpc-metrics,.fpc-two-col { grid-template-columns:1fr; }
  .fpc-panel-head,.fpc-form { padding-left:18px; padding-right:18px; }
  .fpc-error { margin-left:18px; margin-right:18px; }
  .fpc-primary-result,.fpc-trace,.fpc-note { margin-left:16px; margin-right:16px; }
  .fpc-metrics,.fpc-breakdown,.fpc-result-actions { padding-left:16px; padding-right:16px; }
  .fpc-related { padding:20px; }
}

@media print {
  #main-nav,.ps-drawer,.app-tabbar,footer,.fpc-hero,.fpc-input-panel,.fpc-side,.fpc-trust-strip,.fpc-content,.fpc-result-actions { display:none !important; }
  body.final-paycheck-page { background:#fff; }
  .fpc-shell { max-width:none; padding:0; }
  .fpc-tool-layout { display:block; }
  #final-paycheck-results { display:block !important; box-shadow:none; border:0; }
}
