/* Pricing page (template-pricing-v2.php).
   Shares components with the home, CPD and EdTech v2 pages; only page-specific additions live here. */

/* Section head with the currency switch on the right */
.prc2 .prc2-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.prc2 .prc2-head .cpdv2-head { margin-bottom: 0; max-width: 760px; }
.prc2 .prc2-head .cpdv2-currency { margin-left: 0; background: var(--cpd-white); }

/* Engagements: three plans */
.prc2 .prc2-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prc2 .prc2-plans .home2-plan__top { min-height: 0; }
.prc2 .home2-plan__note { white-space: normal; }
/* Side by side, the cards share row heights (subgrid), so descriptions, prices, buttons and lists line up */
@media (min-width: 1101px) {
    .prc2 .prc2-plans { grid-template-rows: repeat(4, auto); row-gap: 0; }
    .prc2 .prc2-plans .home2-plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 24px; align-content: start; }
    .prc2 .prc2-plans .home2-plan > .primary-button { align-self: start; }
    .prc2 .prc2-plans .home2-plan__price { align-self: start; }
}

/* LMS integrations add-on: one wide row under the plans */
.prc2 .prc2-addon { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.6fr) auto; gap: 28px; align-items: center;
    padding: clamp(24px, 2.6vw, 32px); border-radius: 22px; background: var(--cpd-white); border: 1px dashed var(--cpd-line-2); }
.prc2 .prc2-addon__main { display: flex; flex-direction: column; gap: 8px; }
.prc2 .prc2-addon__tag { align-self: flex-start; padding: 3px 10px; border-radius: 9px; background: var(--cpd-bg); color: var(--cpd-red); font-size: 11px; line-height: 18px; text-transform: uppercase; }
.prc2 .prc2-addon__price { display: flex; flex-direction: column; }
.prc2 .prc2-addon__price .home2-plan__amount { white-space: nowrap; }
.prc2 .prc2-addon__price .home2-plan__note { display: block; margin-top: 6px; }
.prc2 .prc2-addon__label { display: block; margin-bottom: 10px; font-size: 12px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--cpd-muted); }
.prc2 .prc2-addon__list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.prc2 .prc2-addon__list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--cpd-bg); font-size: 14px; line-height: 20px; color: var(--cpd-ink); }
.prc2 .prc2-addon__list li svg { color: var(--cpd-red); width: 14px; height: 14px; flex: 0 0 auto; }
.prc2 .prc2-addon__action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Text link with arrow */
.prc2 .prc2-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--cpd-red); text-decoration: none; }
.prc2 .prc2-link::after { content: "→"; transition: transform .2s ease; }
.prc2 a.prc2-link:hover::after, .prc2 .prc2-case:hover .prc2-link::after { transform: translateX(3px); }

/* Support tiers */
.prc2 .prc2-tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.prc2 .prc2-tier { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; border-radius: 18px; background: var(--cpd-white); border: 1px solid var(--cpd-line); }
.prc2 .prc2-tier.is-popular { border: 2px solid var(--cpd-red); box-shadow: 0 12px 32px -18px rgba(212, 16, 40, .45); }
.prc2 .prc2-tier__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.prc2 .prc2-tier__name { margin: 0; font-size: 18px; line-height: 24px; font-weight: 500; color: var(--cpd-ink); }
.prc2 .prc2-tier__badge { padding: 2px 8px; border-radius: 8px; background: var(--cpd-red); color: var(--cpd-white); font-size: 11px; line-height: 18px; text-transform: uppercase; }
.prc2 .prc2-tier__price { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--cpd-line); }
.prc2 .prc2-tier__amount { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.prc2 .prc2-tier__meta { margin-left: 6px; font-size: 14px; color: var(--cpd-muted); }
.prc2 .prc2-tier__note { font-size: 13px; line-height: 18px; color: var(--cpd-green); }
.prc2 .prc2-tier__text { margin: 0; font-size: 15px; line-height: 22px; color: var(--cpd-muted); }

/* Which engagement fits */
.prc2 .prc2-fits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prc2 .prc2-fit { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--cpd-white); border: 1px solid var(--cpd-line); }
.prc2 .prc2-fit__shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cpd-bg); padding: 20px 20px 0; }
.prc2 .prc2-fit__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 10px 10px 0 0; box-shadow: 0 10px 30px -14px rgba(16, 24, 40, .35); }
.prc2 .prc2-fit__body { display: flex; flex-direction: column; gap: 16px; padding: 24px; flex: 1; }
.prc2 .prc2-fit__title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 500; color: var(--cpd-ink); }
.prc2 .prc2-fit__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prc2 .prc2-fit__list li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; color: var(--cpd-ink-2); }
.prc2 .prc2-fit__list svg { flex: 0 0 auto; margin-top: 2px; color: var(--cpd-red); }

/* Case studies */
.prc2 .prc2-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prc2 .prc2-case { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--cpd-white); border: 1px solid var(--cpd-line); color: inherit; text-decoration: none; transition: box-shadow .3s ease, transform .3s ease; }
.prc2 .prc2-case:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(16, 24, 40, .35); }
.prc2 .prc2-case__media { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #2A2A2A; }
.prc2 .prc2-case__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.prc2 .prc2-case:hover .prc2-case__media img { transform: scale(1.03); }
.prc2 .prc2-case__body { display: flex; flex-direction: column; gap: 14px; padding: 24px; flex: 1; }
.prc2 .prc2-case__title { margin: 0; font-size: 19px; line-height: 26px; font-weight: 500; color: var(--cpd-ink); }
.prc2 .prc2-case__label { font-size: 12px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--cpd-muted); }
.prc2 .prc2-case__results { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prc2 .prc2-case__results > span { display: flex; gap: 10px; font-size: 15px; line-height: 22px; color: var(--cpd-ink-2); }
.prc2 .prc2-case__results svg { flex: 0 0 auto; margin-top: 2px; color: var(--cpd-red); }

/* Track record band: spaced from the case studies above, more compact than the full-size bands */
.prc2 #track-record { margin-top: var(--cpd-section); }
.prc2 #track-record .cpdv2-band__inner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.prc2 #track-record .cpdv2-h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; }
.prc2 #track-record .cpdv2-lead { font-size: 17px; line-height: 26px; }
.prc2 .prc2-record { display: flex; flex-direction: column; gap: 32px; }
.prc2 .prc2-record .cpdv2-head { max-width: 760px; }
.prc2 .prc2-record__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prc2 .prc2-record__stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.prc2 .prc2-record__stat strong { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-white); }
.prc2 .prc2-record__stat span { font-size: 15px; line-height: 22px; color: #B2B5BC; }
.prc2 .prc2-record__stat--wide { grid-column: span 1; background: var(--cpd-red); border-color: var(--cpd-red); }
.prc2 .prc2-record__stat--wide strong { font-size: clamp(20px, 1.8vw, 24px); }
.prc2 .prc2-record__stat--wide span { color: rgba(255, 255, 255, .85); }

/* FAQ answers keep their line breaks and bold labels */
.prc2 .prc2-faq__a { display: flex; flex-direction: column; gap: 10px; padding: 0 24px 22px; }
.prc2 .prc2-faq__a p { padding: 0; margin: 0; font-size: 16px; line-height: 24px; color: var(--cpd-muted); }
.prc2 .prc2-faq__a strong { color: var(--cpd-ink); font-weight: 500; }

@media (max-width: 1240px) {
    .prc2 .prc2-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prc2 .prc2-addon { grid-template-columns: minmax(0, 1fr) auto; }
    .prc2 .prc2-addon__list { grid-column: 1 / -1; }
    .prc2 .prc2-addon__action { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 1100px) {
    .prc2 .prc2-plans { grid-template-columns: 1fr; }
    .prc2 .prc2-fits, .prc2 .prc2-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prc2 .prc2-record__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .prc2 .prc2-head { flex-direction: column; align-items: flex-start; }
    .prc2 .prc2-head .cpdv2-currency { align-self: flex-start; }
    .prc2 .prc2-link { min-height: 44px; }
    .prc2 .prc2-record__stat:not(.prc2-record__stat--wide) { padding: 18px 14px; }
    .prc2 .prc2-record__stat:not(.prc2-record__stat--wide) strong { font-size: 22px; white-space: nowrap; }
    .prc2 .prc2-record__stat--wide strong { font-size: 22px; }
    .prc2 .prc2-record__stat:nth-child(5) { grid-column: 1 / -1; }
    .prc2 .prc2-tiers, .prc2 .prc2-fits, .prc2 .prc2-cases { grid-template-columns: 1fr; }
    .prc2 .prc2-addon { grid-template-columns: 1fr; gap: 20px; }
    .prc2 .prc2-addon__action { flex-direction: column; align-items: stretch; }
    .prc2 .prc2-addon__action .primary-button { width: 100%; }
    .prc2 .prc2-record__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .prc2 .prc2-record__stat { padding: 18px 16px; }
    .prc2 .prc2-record__stat span { font-size: 14px; line-height: 20px; }
    .prc2 .prc2-record__stat--wide { grid-column: 1 / -1; }
    .prc2 .prc2-faq__a { padding: 0 20px 20px; }
}
