/*
 * pricing.v1.css
 * Pricing page (/pricing/) regroup, SLS-R2: bundle cards, modules, accountant banner spacing,
 * how it works, compact comparison table and "Need more?". Loaded only on /pricing/, after
 * style.v5.css, redesign.v2.css and pricing-redesign.css (plan-card, accountant and FAQ styles reused).
 * Mobile-first: base rules are for 320px; wider screens only adjust inside @media (min-width: ...).
 * Versioned by filename: edit = new filename (pricing.v2.css), never in place.
 */

/* Visually hidden text for screen readers (table ticks) */
.pr-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pr-center { text-align: center; margin-top: 28px; }

/* Hero buttons */
.pr-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.pr-hero-ctas .btn { width: 100%; }

/* Section rhythm */
.pr-bundles-section,
.pr-modules-section,
.pr-how-section,
.pr-compare-section,
.pr-more-section { padding: 48px 0; }
.pr-modules-section,
.pr-compare-section { background: var(--section-bg); }
.pr-bundles-section .section-header,
.pr-modules-section .section-header,
.pr-how-section .section-header,
.pr-compare-section .section-header { margin-bottom: 32px; }

/* Bundle cards: one column at 320px */
.pr-bundles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.pr-bundles > * { min-width: 0; }
body.pricing .pr-bundle { padding: 28px 20px; }
body.pricing .pr-bundle .plan-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.7rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 8px;
}
.pr-promise {
    color: var(--body-text);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 20px;
}
body.pricing .pr-bundle .plan-badge { padding: 6px 12px; }

/* Module cards */
.pr-modules {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.pr-modules > * { min-width: 0; }
.pr-module {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.pr-module-title {
    color: var(--navy);
    font-size: 1.1rem;
    margin: 0 0 14px;
}
body.pricing .pr-module-list { margin-bottom: 16px; }
.pr-module-tag {
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}
.pr-modules-note {
    text-align: center;
    margin: 28px 0 0;
    color: var(--body-text);
}
.pr-modules-note a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.pr-modules-section .accountant-banner { margin-top: 40px; padding: 24px 20px; }
.pr-modules-section .accountant-grid { grid-template-columns: 1fr; gap: 24px; }

/* How it works */
.pr-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.pr-step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
}
.pr-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}
.pr-step h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.1rem; }
.pr-step p { margin: 0; color: var(--body-text); font-size: 15px; line-height: 1.55; }

/* Compact comparison table: scrolls inside its own box, never the page */
.pr-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.pr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pr-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    padding: 12px 6px;
    text-align: center;
}
.pr-table thead th:first-child { text-align: left; padding-left: 12px; }
.pr-table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--body-text);
    padding: 12px 6px 12px 12px;
    border-bottom: 1px solid var(--border);
    line-height: 1.45;
}
.pr-table tbody td {
    text-align: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    width: 18%;
    color: var(--body-text);
}
.pr-table tbody td:nth-child(3) { background: #EDF3FB; }
.pr-table .pr-word { font-size: 12.5px; line-height: 1.3; }
.pr-table .pr-yes { color: var(--green); vertical-align: middle; }
.pr-table .pr-no { color: #B5BCC4; vertical-align: middle; }
.pr-table tr.pr-table-group th {
    background: var(--section-bg);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px;
}
/* Phone widths: the feature column keeps a readable width, the three bundle
   columns stay narrow, and the table scrolls sideways inside .pr-table-wrap
   (never the page). The feature column stays pinned on the left while scrolling. */
.pr-compare-section .container { min-width: 0; }
.pr-table-wrap { max-width: 100%; min-width: 0; position: relative; } /* contains the absolutely positioned .pr-sr text */
.pr-table { min-width: 24.5rem; }
.pr-table thead th:first-child,
.pr-table tbody tr:not(.pr-table-group) th {
    min-width: 11rem;
    position: sticky;
    left: 0;
    z-index: 1;
}
.pr-table thead th:first-child { background: var(--navy); }
.pr-table tbody tr:not(.pr-table-group) th {
    background: #fff;
    box-shadow: 1px 0 0 var(--border);
}
.pr-table tbody td { width: auto; min-width: 4.5rem; }
.pr-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #EEF2F8;
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

/* Need more? */
.pr-more {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 20px;
    box-shadow: var(--shadow-sm);
}
.pr-more h2 { color: var(--navy); margin: 0 0 12px; }
.pr-more p { color: var(--body-text); margin: 0 auto 20px; max-width: 560px; }

@media (min-width: 640px) {
    .pr-hero-ctas { flex-direction: row; justify-content: center; }
    .pr-hero-ctas .btn { width: auto; }
    .pr-modules { grid-template-columns: repeat(2, 1fr); }
    .pr-table { font-size: 14px; }
    .pr-table tbody th { padding-left: 16px; }
    .pr-table thead th { padding: 14px 10px; }
    .pr-table tbody td { padding: 13px 10px; }
}

@media (min-width: 960px) {
    .pr-bundles-section,
    .pr-modules-section,
    .pr-how-section,
    .pr-compare-section,
    .pr-more-section { padding: 72px 0; }
    .pr-bundles { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
    .pr-modules { grid-template-columns: repeat(3, 1fr); }
    .pr-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .pr-modules-section .accountant-banner { padding: 36px; }
    .pr-modules-section .accountant-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .pr-more { padding: 40px; }
}
