/* === Payroll Calculator. Airfleet-style: spacious horizontal rows + stacked metrics === */

/* Hero. Darker blue, centered */
.pc-hero {
    background: linear-gradient(180deg, #003e82 0%, #0058b8 100%);
    padding: 36px 22px 26px;
    border-bottom: none;
    text-align: center;
}
.pc-hero-inner { max-width: 1080px; margin: 0 auto; }

.pc-hero-crumbs {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
    font-size: var(--extra-small);
    color: rgba(255, 255, 255, .75);
    margin-bottom: 14px;
}
.pc-hero-crumbs a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.pc-hero-crumbs a:hover { border-bottom-color: #fff; }
.pc-hero-crumbs span[aria-hidden] { color: rgba(255, 255, 255, .45); }

.pc-hero-title {
    margin: 0 0 8px;
    font-size: 32px; font-weight: 800; letter-spacing: -0.025em;
    color: #fff; line-height: 1.15;
}

.pc-hero-deck {
    margin: 0 auto; max-width: 520px;
    font-size: var(--default);
    color: rgba(255, 255, 255, .88);
    line-height: 1.5;
}

.pc-hero-meta {
    margin-top: 12px;
    font-size: var(--extra-small);
    color: rgba(255, 255, 255, .70);
}
.pc-hero-meta strong { color: #fff; font-weight: 700; }

@media (max-width: 720px) {
    .pc-hero { padding: 24px 16px 18px; }
    .pc-hero-title { font-size: 24px; }
    .pc-hero-deck { font-size: var(--small); }
}

/* Section continues the darker blue gradient seamlessly */
.pc-section {
    background: linear-gradient(180deg, #0058b8 0%, #1f7ad6 45%, #6ba8eb 100%);
    padding: 26px 22px 56px;
}

/* === ONE unified card with two halves === */
.pc-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(17, 24, 39, .04);
    box-shadow: 0 24px 48px -12px rgba(17, 24, 39, .14), 0 8px 20px rgba(17, 24, 39, .04);
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 920px) {
    .pc-shell { grid-template-columns: 1fr; }
}

.pc-form {
    padding: 30px 32px;
}

.pc-result {
    padding: 30px 28px;
    background: linear-gradient(180deg, #f6f9ff 0%, #eff4ff 100%);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

@media (max-width: 920px) {
    .pc-result { border-left: none; border-top: 1px solid var(--border-subtle); }
    .pc-form { padding: 24px; }
    .pc-result { padding: 24px; }
}

/* Header for each side */
.pc-half-eyebrow {
    font-size: var(--extra-small);
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 4px;
}

.pc-half-title {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.2;
}

/* === FORM: clean horizontal rows + prominent first row for gross === */

.pc-row-gross { padding-top: 4px; padding-bottom: 18px; }
.pc-row-gross .pc-row-label { font-size: var(--default); font-weight: 700; }

/* Gross input. Visually larger without a boxed background */
.pc-input-gross {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

/* Horizontal row inputs */
.pc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.pc-row:last-of-type { border-bottom: none; }

.pc-row-label {
    font-size: var(--small);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.pc-row-help {
    display: block;
    margin-top: 4px;
    font-size: var(--extra-small);
    color: var(--text-muted);
    font-weight: 500;
}

.pc-row-control { width: 100%; }

.pc-row-control-wrap {
    position: relative;
}

.pc-row-control-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--small);
    font-weight: 600;
    pointer-events: none;
}

.pc-input,
.pc-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: var(--small);
    font-family: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pc-row-control-prefix + .pc-input { padding-left: 26px; }

.pc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' fill='none' stroke='%235b6476' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.pc-input:hover,
.pc-select:hover { border-color: #c9cfdb; }

.pc-input:focus,
.pc-select:focus,
.pc-input:focus-visible,
.pc-select:focus-visible {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 235, .14);
}

/* Toggle row. Full width, no right column */
.pc-row-toggle {
    grid-template-columns: 1fr;
    padding: 14px 0;
}

.pc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.pc-toggle:hover { border-color: var(--blue); background: #f5f8ff; }

.pc-toggle input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}

.pc-toggle-text {
    font-size: var(--small);
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.4;
}

/* Reset button */
.pc-btn-reset {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: var(--extra-small);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.pc-btn-reset:hover { border-color: var(--blue); color: var(--blue); background: #f5f8ff; }
.pc-btn-reset:focus-visible {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 235, .14);
}

/* === Monthly / Annual toggle (segmented pill, lives inside the primary metric block) === */
.pc-period-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 3px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    flex-shrink: 0;
    align-self: flex-start;
}
.pc-period-option {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--extra-small);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    transition: background-color .15s ease, color .15s ease;
    line-height: 1.2;
}
.pc-period-option:hover:not(.is-active) { color: var(--text-main); }
.pc-period-option.is-active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 113, 235, 0.25);
}
.pc-period-option:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 235, 0.20);
}

/* === RESULT panel: stacked metric blocks === */

.pc-result-stack {
    display: grid;
    gap: 0;
}

.pc-result-block {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 113, 235, .14);
}
.pc-result-block:first-child { padding-top: 0; }

.pc-result-eyebrow {
    margin: 0 0 6px;
    font-size: var(--extra-small);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.pc-result-value {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.pc-result-sub {
    margin: 6px 0 0;
    font-size: var(--extra-small);
    color: var(--text-muted);
}

/* Primary result. Net take-home (big bold blue) */
.pc-result-block-primary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.pc-result-block-primary-text { min-width: 0; flex: 1; }
.pc-result-block-primary .pc-result-eyebrow { color: var(--blue); }
.pc-result-block-primary .pc-result-value {
    font-size: 38px;
    color: var(--blue);
    letter-spacing: -0.025em;
    line-height: 1;
}
@media (max-width: 480px) {
    .pc-result-block-primary { flex-direction: column; }
    .pc-result-block-primary .pc-period-toggle { align-self: stretch; justify-content: center; }
}

/* Secondary values stay in primary text color. Clean, not "trading app" */
.pc-result-block-deductions .pc-result-value { color: var(--text-main); }
.pc-result-block-employer .pc-result-value { color: var(--text-main); }

/* Always-visible breakdown */
.pc-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 113, 235, .14);
}
.pc-details-title {
    margin: 0 0 12px;
    font-size: var(--extra-small);
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.pc-details-body { }

.pc-table { width: 100%; border-collapse: collapse; }
.pc-table thead th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: var(--extra-extra-small);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 0 0 6px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 113, 235, .14);
}
.pc-table thead th:first-child { text-align: left; }

.pc-table th,
.pc-table td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 113, 235, .08);
    text-align: right;
    font-size: var(--small);
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}
.pc-table th:first-child,
.pc-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-main);
}
.pc-table tbody tr:last-child td { border-bottom: none; }

.pc-meta-row {
    display: flex; flex-wrap: wrap;
    gap: 4px 16px; align-items: center;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .6);
    border-radius: 8px;
    font-size: var(--extra-small);
    color: var(--text-muted);
}
.pc-meta-row strong {
    color: var(--text-main); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* CTA at bottom of right panel */
.pc-cta {
    margin-top: auto;
    padding-top: 22px;
}
.pc-cta-button {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: var(--blue);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    font-size: var(--default);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 113, 235, .25);
    transition: background-color .15s ease, transform .1s ease;
}
.pc-cta-button:hover { background: var(--blue-hover); }
.pc-cta-button:active { transform: translateY(1px); }
.pc-cta-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 235, .22);
}

.pc-cta-secondary {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: var(--extra-small);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}
.pc-cta-secondary:hover { color: var(--blue); }

/* Disclaimer */
.pc-disclaimer {
    margin-top: 14px;
    font-size: var(--extra-extra-small);
    color: var(--text-muted);
    line-height: 1.55;
    text-align: center;
}
.pc-disclaimer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.pc-disclaimer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .pc-input, .pc-select, .pc-toggle, .pc-btn-reset, .pc-cta-button { transition: none; }
}

.pc-sr-only {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* === Prose section ("How it works") === */
.pc-prose-section {
    background: #fff;
    padding: 44px 22px 32px;
    border-top: 1px solid var(--border-subtle);
}
.pc-prose-inner {
    max-width: 760px;
    margin: 0 auto;
}
.pc-prose-header {
    margin-bottom: 22px;
    text-align: center;
}
.pc-prose-eyebrow {
    font-size: var(--extra-small);
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 4px;
}
.pc-prose-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}
.pc-prose-section p,
.pc-prose-section ul {
    margin: 0 0 14px;
    font-size: var(--default);
    color: var(--text-muted);
    line-height: 1.7;
}
.pc-prose-section ul {
    padding-left: 22px;
}
.pc-prose-section ul li { margin-bottom: 4px; }
.pc-prose-section h3 {
    margin: 24px 0 8px;
    font-size: var(--large);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.pc-prose-section strong { color: var(--text-main); font-weight: 700; }
.pc-prose-section em { font-style: italic; color: var(--text-main); }


/* === FAQ-style explainer (clean accordion, no boxes) === */
.pc-faq-section {
    background: linear-gradient(180deg, #e6efff 0%, #d8e5ff 100%);
    padding: 44px 22px 48px;
    border-top: 1px solid #c9d8f5;
}
/* Dividers inside the blue section need a tinted-blue line, not the default grey */
.pc-faq-section .pc-faq,
.pc-faq-section .pc-faq-item {
    border-color: rgba(0, 88, 184, 0.18);
}

/* Search-intent FAQ: stay on white to contrast with the blue definitions section above */
.pc-faq-section-alt {
    background: #fff;
}
.pc-faq-section-alt .pc-faq,
.pc-faq-section-alt .pc-faq-item {
    border-color: var(--border-subtle);
}
.pc-faq-inner { max-width: 760px; margin: 0 auto; }

.pc-faq-header { margin-bottom: 22px; text-align: center; }
.pc-faq-eyebrow {
    font-size: var(--extra-small); font-weight: 700;
    color: var(--blue);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin: 0 0 4px;
}
.pc-faq-title {
    margin: 0;
    font-size: 24px; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text-main);
}

.pc-faq {
    border-top: 1px solid var(--border-subtle);
}

.pc-faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.pc-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 4px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--default);
    font-weight: 600;
    color: var(--text-main);
    transition: color .15s ease;
}
.pc-faq-item summary::-webkit-details-marker { display: none; }
.pc-faq-item summary:hover { color: var(--blue); }

.pc-faq-item summary::after {
    content: '';
    margin-left: auto;
    width: 9px; height: 9px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform .2s ease, border-color .15s ease;
    flex-shrink: 0;
    margin-bottom: 3px;
}
.pc-faq-item[open] summary { color: var(--blue); }
.pc-faq-item[open] summary::after {
    border-color: var(--blue);
    transform: rotate(-135deg);
    margin-bottom: 0; margin-top: 3px;
}

.pc-faq-answer {
    padding: 0 4px 18px;
    font-size: var(--small);
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* === Related guides (centered + clean cards) === */
.pc-related-section {
    background: #fbfcff;
    padding: 36px 22px 50px;
    border-top: 1px solid var(--border-subtle);
}
.pc-related-inner { max-width: 1080px; margin: 0 auto; }

.pc-related-header { margin-bottom: 18px; text-align: center; }
.pc-related-eyebrow {
    font-size: var(--extra-small); font-weight: 700;
    color: var(--blue);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin: 0 0 4px;
}
.pc-related-title {
    margin: 0;
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text-main);
}

.pc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.pc-related-card {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 22px 24px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .03);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.pc-related-card:hover {
    border-color: var(--blue);
    box-shadow: 0 12px 28px rgba(0, 113, 235, .10);
    transform: translateY(-1px);
}

.pc-related-card-title {
    margin: 0 0 6px;
    font-size: var(--large);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.pc-related-card-text {
    margin: 0 0 12px;
    font-size: var(--small);
    color: var(--text-muted);
    line-height: 1.55;
}
.pc-related-card-cta {
    font-size: var(--extra-small);
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pc-related-card-cta::after { content: ' →'; }

/* Page-bottom legal disclaimer */
.pc-page-disclaimer {
    background: #fff;
    padding: 28px 22px 40px;
    border-top: 1px solid var(--border-subtle);
}
.pc-page-disclaimer-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.pc-page-disclaimer p {
    margin: 0;
    font-size: var(--small);
    color: var(--text-muted);
    line-height: 1.65;
}
.pc-page-disclaimer strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Mobile padding */
@media (max-width: 520px) {
    .pc-section { padding: 22px 12px 32px; }
    .pc-result-block-primary .pc-result-value { font-size: 30px; }
    .pc-row { grid-template-columns: 1fr; }
    .pc-faq-section { padding: 30px 18px 36px; }
    .pc-related-section { padding: 24px 14px 36px; }
    .pc-page-disclaimer { padding: 22px 16px 30px; }
}
