/* MTP guide pricing.
   Built within the MTP Field Green direction: one accent, 8px radius,
   hairline borders rather than heavy elevation, no motion. */

.mtp-pricing {
    --p-accent: var(--ocf-primary, #15803D);
    --p-ink: var(--ocf-heading, #1B1B0D);
    --p-body: var(--ocf-body, #111827);
    --p-border: var(--ocf-border-light, #E5E7E4);
    --p-ground: var(--ocf-bg, #F8FAFC);
    max-width: 820px;
}

.mtp-pricing__intro {
    font-size: 17px;
    line-height: 1.65;
    max-width: 62ch;
    margin: 0 0 2rem;
}

.mtp-pricing__group { margin: 0 0 2.5rem; }

.mtp-pricing__heading {
    font-family: var(--ocf-font-heading, "Cormorant Garamond", serif);
    font-weight: 600;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.15;
    color: var(--p-ink);
    margin: 0 0 0.85rem;
}

/* A three-column table can exceed a phone's width, so scroll it in place
   rather than letting the layout break. */
.mtp-pricing__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mtp-pricing__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.mtp-pricing__table thead th {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--p-body) 65%, var(--p-ground));
    padding: 0 0 0.6rem;
    border-bottom: 1px solid var(--p-border);
}

.mtp-pricing__table th.is-figure,
.mtp-pricing__table td.is-figure {
    text-align: right;
    white-space: nowrap;
}

.mtp-pricing__table tbody th {
    text-align: left;
    font-weight: 400;
    color: var(--p-body);
    padding: 0.85rem 1rem 0.85rem 0;
    border-bottom: 1px solid var(--p-border);
}

.mtp-pricing__table tbody td {
    padding: 0.85rem 0 0.85rem 1rem;
    border-bottom: 1px solid var(--p-border);
    font-weight: 600;
    color: var(--p-ink);
}

.mtp-pricing__table tbody tr:last-child th,
.mtp-pricing__table tbody tr:last-child td { border-bottom: 0; }

.mtp-pricing__note {
    margin: 0.9rem 0 0;
    padding: 0.75rem 0.9rem;
    background: var(--p-ground);
    border-left: 3px solid var(--p-accent);
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.mtp-pricing__assurances {
    list-style: none;
    margin: 2rem 0 0;
    padding: 1.25rem;
    display: grid;
    gap: 0.7rem;
    background: var(--p-ground);
    border: 1px solid var(--p-border);
    border-radius: 8px;
}

.mtp-pricing__assurances li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 15.5px;
    line-height: 1.55;
}

.mtp-pricing__assurances svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--p-accent);
}

.mtp-pricing__disclaimer {
    margin: 1.25rem 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: color-mix(in srgb, var(--p-body) 70%, var(--p-ground));
}

.mtp-pricing__cta { margin: 2rem 0 0; }

/* The generic page template wraps content in .prose / .page-content-body,
   whose global rule colours every link with the accent and underlines it.
   That rule outranks .btn-primary, so the button rendered green-on-green with
   an underline. Restore the button's own treatment inside that context. */
.prose .mtp-pricing .btn-primary,
.page-content-body .mtp-pricing .btn-primary,
.prose .mtp-pricing a.btn-primary:hover,
.page-content-body .mtp-pricing a.btn-primary:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* .prose caps its children at 68ch, which squeezes the three-column table.
   Widen only the wrapper that actually holds the pricing block. */
.ocf-standard-page__content:has(.mtp-pricing) {
    max-width: none;
}

/* ---------- Service page badge ---------- */

.mtp-service-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.9rem;
    margin: 0 0 1.75rem;
    padding: 1rem 1.15rem;
    background: color-mix(in srgb, var(--ocf-primary, #15803D) 6%, #FFFFFF);
    border: 1px solid color-mix(in srgb, var(--ocf-primary, #15803D) 30%, transparent);
    border-radius: 8px;
}

.mtp-service-price__figure {
    font-family: var(--ocf-font-heading, "Cormorant Garamond", serif);
    font-weight: 600;
    font-size: clamp(22px, 3vw, 27px);
    line-height: 1.1;
    color: var(--ocf-primary, #15803D);
}

.mtp-service-price__note {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ocf-body, #111827);
}

.mtp-service-price__note a {
    color: var(--ocf-primary-hover, #0F5132);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Quoted-on-survey reads as information, not as a price. */
.mtp-service-price.is-survey {
    background: var(--ocf-bg, #F8FAFC);
    border-color: var(--ocf-border-light, #E5E7E4);
}

.mtp-service-price.is-survey .mtp-service-price__figure {
    color: var(--ocf-heading, #1B1B0D);
    font-size: clamp(19px, 2.4vw, 22px);
}

/* ---------- Home page summary ---------- */

.mtp-pricecard-section { padding: var(--section-pad, 4rem) 0; }

.mtp-pricecard-title { margin: 0 0 0.4rem; }

.mtp-pricecard-sub {
    margin: 0 0 1.75rem;
    max-width: 58ch;
    font-size: 16.5px;
    line-height: 1.6;
}

/* auto-fit rather than a fixed four columns, so the row stays balanced
   whether there are two priced services or four. */
.mtp-pricecards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.mtp-pricecard {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid var(--ocf-border-light, #E5E7E4);
    border-radius: 8px;
}

.mtp-pricecard__label {
    font-size: 14.5px;
    color: color-mix(in srgb, var(--ocf-body, #111827) 72%, var(--ocf-bg, #F8FAFC));
}

.mtp-pricecard__price {
    font-family: var(--ocf-font-heading, "Cormorant Garamond", serif);
    font-weight: 600;
    font-size: clamp(20px, 2.6vw, 25px);
    line-height: 1.12;
    color: var(--ocf-primary, #15803D);
}

.mtp-pricecard-actions { margin: 1.75rem 0 0; }

@media (max-width: 900px) {
    .mtp-pricecards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .mtp-pricecards { grid-template-columns: minmax(0, 1fr); }
    .mtp-pricing__table { font-size: 15px; }
}
