/*
 * Pricing page (pricing.php): the package cards with their plan tiles, what every package
 * includes, the comparison, the terms and the questions. Colours come from the tokens in
 * marketing.css, so everything here works in both appearances.
 */

.mk-pricing-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 28px; color: var(--mk-muted); font-size: 15px; font-weight: 600; }
.mk-pricing-facts li { display: inline-flex; align-items: center; }
.mk-pricing-facts li:not(:last-child)::after { content: ""; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%; background: var(--mk-muted); }
.mk-preview-notice { margin-bottom: 8px; font-weight: 400; }
.mk-preview-notice p { font-weight: 600; }
.mk-preview-notice ul { margin: 10px 0 0 20px; display: grid; gap: 4px; }

/* ---- Package cards ---- */
.mk-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.mk-plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 24px; border: 1px solid var(--mk-line); border-radius: 6px; background: var(--mk-surface); }
.mk-plan--featured { border: 2px solid var(--mk-ink); }
.mk-plan__flag { position: absolute; top: -13px; left: 22px; padding: 3px 10px; border-radius: 2px; background: var(--mk-ink); color: var(--mk-bg); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mk-plan__head { display: flex; align-items: center; gap: 16px; }
.mk-plan__name { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.mk-plan__suits { margin-top: 2px; color: var(--mk-muted); font-size: 15px; }
.mk-plan__price { padding-block: 16px; border-block: 1px solid var(--mk-line); }
.mk-plan__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: var(--mk-ink); }
.mk-plan__from, .mk-plan__period { font-size: 16px; font-weight: 600; color: var(--mk-muted); }
.mk-plan__period { margin-left: -4px; }
.mk-plan__figure { font-size: 38px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.mk-plan__basis { margin-top: 6px; font-weight: 600; color: var(--mk-ink); font-size: 15px; }
.mk-plan__placeholder { margin-top: 10px; color: var(--mk-warning); font-size: 13px; font-weight: 600; }
.mk-plan__options legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-muted); }
.mk-plan__option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--mk-control-line); border-radius: var(--mk-radius); cursor: pointer; }
.mk-plan__option + .mk-plan__option { margin-top: 8px; }
.mk-plan__option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mk-ink); flex: none; }
.mk-plan__option:has(input:checked) { border-color: var(--mk-ink); box-shadow: inset 0 0 0 1px var(--mk-ink); }
.mk-plan__option-text { display: flex; flex-direction: column; font-size: 15px; }
.mk-plan__option-text span { color: var(--mk-muted); font-size: 14px; }
.mk-plan__allowances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.mk-plan__allowances div { padding: 10px 12px; border-radius: var(--mk-radius); background: var(--mk-bg-alt); }
.mk-plan__allowances dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-muted); }
.mk-plan__allowances dd { margin: 2px 0 0; font-weight: 700; color: var(--mk-ink); font-size: 15px; }
.mk-plan__includes { font-weight: 700; color: var(--mk-ink); font-size: 15px; }
.mk-plan__features { list-style: none; display: grid; gap: 10px; margin-top: -8px; }
.mk-plan__features li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; color: var(--mk-text); }
.mk-plan__features .mk-icon { width: 18px; height: 18px; margin-top: 2px; }
.mk-plan__note { margin-top: auto; padding-top: 4px; color: var(--mk-muted); font-size: 14px; }
.mk-plan__action { width: 100%; }
.mk-plans__after { margin-top: 24px; color: var(--mk-muted); font-size: 15px; }

/* ---- Included in every package ---- */
.mk-included { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-self: center; }
.mk-included li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--mk-line); font-weight: 600; color: var(--mk-ink); }

/* ---- Comparison ---- */
.mk-compare { width: 100%; margin-top: 36px; border-collapse: collapse; font-size: 15px; }
.mk-compare th, .mk-compare td { padding: 14px 16px; border-bottom: 1px solid var(--mk-line); text-align: left; vertical-align: top; }
.mk-compare thead th, .mk-compare thead td { position: sticky; top: 0; z-index: 2; background: var(--mk-bg); border-bottom: 0; box-shadow: inset 0 -2px 0 var(--mk-ink); }
.mk-compare__plan { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: var(--mk-ink); }
.mk-compare__plan .mk-tile { --tile: 44px; }
.mk-compare tbody th { width: 34%; font-weight: 600; color: var(--mk-ink); }
.mk-compare td { width: 22%; color: var(--mk-text); }
.mk-compare__option { display: block; }
.mk-compare__option + .mk-compare__option { margin-top: 6px; }
.mk-compare__detail { display: block; margin-top: 2px; font-weight: 400; font-size: 13.5px; color: var(--mk-muted); }
.mk-compare__group th { padding-top: 28px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-muted); border-bottom: 1px solid var(--mk-line); }
.mk-compare .mk-icon { width: 20px; height: 20px; }
.mk-compare td.is-excluded { color: var(--mk-subtle); }
.mk-compare__actions th, .mk-compare__actions td { border-bottom: 0; padding-top: 20px; }

/* ---- Terms and questions ---- */
.mk-terms { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--mk-line); }
.mk-terms div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--mk-line); }
.mk-terms dt { font-weight: 700; color: var(--mk-ink); }
.mk-terms dd { margin: 0; color: var(--mk-muted); }
.mk-faq { max-width: 860px; }
.mk-faq h2 { margin-bottom: 24px; }
.mk-faq details { border-bottom: 1px solid var(--mk-line); }
.mk-faq details:first-of-type { border-top: 1px solid var(--mk-line); }
.mk-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; color: var(--mk-ink); font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.mk-faq details[open] summary::after { transform: rotate(-135deg); }
.mk-faq details p { padding-bottom: 18px; color: var(--mk-muted); }

@media (max-width: 640px) {
    .mk-pricing-facts { flex-direction: column; gap: 6px; }
    .mk-pricing-facts li { align-items: flex-start; }
    .mk-pricing-facts li:not(:last-child)::after { display: none; }
    .mk-pricing-facts li::before { content: ""; flex: none; width: 4px; height: 4px; margin: calc(0.8em - 2px) 12px 0 0; border-radius: 50%; background: var(--mk-muted); }
}
@media (max-width: 1023px) {
    .mk-plans { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
}
/* Phones: the comparison becomes one block per row, each value labelled with its package,
   so the page never scrolls sideways. */
@media (max-width: 720px) {
    .mk-compare, .mk-compare tbody, .mk-compare tr, .mk-compare th, .mk-compare td { display: block; width: auto; }
    .mk-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .mk-compare tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--mk-line); }
    .mk-compare tbody th, .mk-compare tbody td { width: auto; padding: 0; border: 0; }
    .mk-compare tbody th { grid-column: 1 / -1; }
    .mk-compare td::before { content: attr(data-plan); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-muted); }
    .mk-compare td { font-size: 14px; overflow-wrap: anywhere; }
    .mk-compare__group { padding-top: 24px !important; }
    .mk-compare__group th { padding: 0; }
    .mk-included { grid-template-columns: minmax(0, 1fr); }
    .mk-terms div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .mk-plan { padding: 26px 18px 20px; }
    .mk-plan__figure { font-size: 34px; }
}
