/* The pricing card (pricing page only).
   Phone: one compact column. Desktop (900px+): a dark price panel beside the plans,
   with every plan's rate visible so "train more, pay less" reads without a click. */

/* ---------- Card and tabs ---------- */
.pricing-card { max-width: 560px; margin-inline: auto; padding: 1.5rem 1.5rem 1.75rem; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.plan-tabs { display: flex; gap: 0.25rem; max-width: 420px; margin: 0 auto 1.5rem; padding: 0.25rem; border-radius: 999px; background: var(--paper-deep); }
.plan-tab { flex: 1; padding: 0.7rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 0.95rem var(--sans); cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.plan-tab.is-active { background: var(--ink); color: #fff; }
.pricing-card [hidden] { display: none !important; }

/* ---------- Price ---------- */
.cc-price { display: flex; align-items: baseline; justify-content: center; gap: 0.6rem; margin: 0.25rem 0 0.5rem; }
.cc-amount { font-family: var(--serif); font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.cc-unit { font-size: 1rem; font-weight: 600; color: var(--muted); }
.cc-deal { display: flex; align-items: center; justify-content: center; min-height: 1.9rem; margin-bottom: 1rem; font-size: 0.85rem; }
.cc-deal [data-coaching="discount"] { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.cc-compare { text-decoration: line-through; opacity: 0.55; font-weight: 600; }
.cc-pill { padding: 0.2rem 0.65rem; border-radius: 50px; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; }
.cc-note { opacity: 0.7; font-weight: 600; }

/* ---------- Controls ---------- */
.cc-control { display: grid; grid-template-columns: 5rem 1fr; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; text-align: left; }
.cc-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cc-seg { display: flex; gap: 0.5rem; }
.cc-seg > button { flex: 1; margin: 0; padding: 0.6rem 0.5rem; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); font: 700 0.9rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.cc-seg > button:hover { border-color: var(--ink); }
.cc-seg > button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cc-seg > button[data-billing="monthly"] { flex: 1.7; }
.cc-plan-rate, .cc-plan-total { display: none; }
.cc-hint, .cc-summary { text-wrap: balance; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.cc-hint { margin: 0.4rem 0 1rem; }

/* ---------- Total and summary ---------- */
.cc-total { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 12px; background: var(--paper); border: 2px solid var(--line); }
.cc-total__label { font-weight: 600; text-align: left; color: var(--muted); }
.cc-total__value { font-size: 1.6rem; font-weight: 800; color: var(--clay-deep); }
.cc-summary { margin: 0.6rem 0 1.1rem; }
.cc-cta { width: 100%; }

/* ---------- Consultation ---------- */
.cc-checks { display: grid; gap: 0.45rem; margin: 0.85rem 0 1.25rem; text-align: left; }
.cc-checks li { display: flex; gap: 0.6rem; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.cc-checks li::before { content: '✓'; flex-shrink: 0; font-weight: 800; color: var(--ink); }

/* ---------- Phone and tablet: one column, sensible order ---------- */
@media (max-width: 899px) {
    .cc-layout { display: flex; flex-direction: column; }
    .cc-hero, .cc-choose { display: contents; }
    #coachingPanel .cc-price { order: 1; }
    #coachingPanel .cc-deal { order: 2; }
    #coachingPanel .cc-control--pay { order: 3; }
    #coachingPanel .cc-control--freq { order: 4; }
    #coachingPanel .cc-hint { order: 5; }
    #coachingPanel .cc-total { order: 6; }
    #coachingPanel .cc-summary { order: 7; }
    #coachingPanel .cc-cta { order: 8; }
}
@media (max-width: 520px) {
    .pricing-card { padding: 1.25rem 1rem 1.5rem; }
    .cc-control { grid-template-columns: 1fr; gap: 0.35rem; }
    .cc-amount { font-size: 2.75rem; }
}

/* ---------- Desktop: two panels ---------- */
@media (min-width: 900px) {
    .pricing-card { max-width: 960px; padding: 2rem 2.25rem 2.25rem; }
    .cc-layout { display: grid; grid-template-columns: 1.08fr 1.2fr; gap: 1.5rem; align-items: stretch; }
    .cc-hero, .cc-choose { display: flex; flex-direction: column; }

    .cc-hero { justify-content: center; padding: 2rem 1.5rem; border-radius: 24px; color: #fff; background: radial-gradient(120% 90% at 15% 0%, #4A423A 0%, #1A1714 62%); box-shadow: 0 30px 50px -28px rgba(26, 23, 20, 0.65); }
    .cc-hero .cc-price { margin-top: 0; }
    .cc-hero .cc-amount { font-size: 4.25rem; color: #fff; }
    .cc-hero .cc-unit { color: #D9D3CB; font-size: 1.1rem; }
    .cc-hero .cc-deal { margin-bottom: 1.5rem; font-size: 0.95rem; }
    .cc-hero .cc-compare, .cc-hero .cc-note { color: #D9D3CB; }
    .cc-hero .cc-pill { padding: 0.3rem 0.85rem; background: #F1EEE9; color: var(--ink); font-size: 0.85rem; }
    .cc-hero .cc-total { padding: 1rem 1.1rem; gap: 0.5rem; background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.16); }
    .cc-hero .cc-total__label { color: #D9D3CB; font-size: 0.9rem; }
    .cc-hero .cc-total__value { color: #fff; font-size: 1.85rem; }
    .cc-hero .cc-summary { margin: 0.85rem 0 1.5rem; color: #D9D3CB; font-size: 0.9rem; }
    .cc-hero .cc-cta { margin-top: auto; background: #F1EEE9; color: var(--ink); box-shadow: none; }

    .cc-choose { justify-content: center; padding: 0.25rem 0.25rem 0; }
    .cc-choose .cc-control { grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 1.4rem; }
    .cc-choose .cc-seg > button { padding: 0.85rem 0.75rem; border-radius: 12px; font-size: 1rem; }
    .cc-seg--plans { flex-direction: column; gap: 0.6rem; }
    .cc-seg--plans > button { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.95rem 1.25rem; text-align: left; }
    .cc-seg--plans .cc-plan-freq { font-size: 1.2rem; font-weight: 800; }
    .cc-seg--plans .cc-plan-rate, .cc-seg--plans .cc-plan-total { display: inline; }
    .cc-seg--plans .cc-plan-rate { font-size: 0.95rem; font-weight: 600; opacity: 0.85; }
    .cc-seg--plans .cc-plan-rate b { font-size: 1.35rem; font-weight: 800; }
    .cc-seg--plans .cc-plan-total { font-size: 0.95rem; font-weight: 700; opacity: 0.8; }
    .cc-choose .cc-hint { margin: 0; font-size: 0.95rem; }

    .cc-layout--consult { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; row-gap: 0; align-items: center; text-align: left; }
    .cc-layout--consult .cc-price { grid-column: 1; justify-content: flex-start; flex-wrap: wrap; }
    .cc-layout--consult .cc-amount { font-size: 4rem; }
    .cc-layout--consult .cc-hint { grid-column: 1; margin: 0.5rem 0 1.5rem; font-size: 0.95rem; }
    .cc-layout--consult .cc-checks { grid-column: 2; grid-row: 1 / span 3; gap: 0.8rem; margin: 0; }
    .cc-layout--consult .cc-checks li { font-size: 1.05rem; }
    .cc-layout--consult .cc-cta { grid-column: 1; justify-self: start; width: auto; }
}
