/* Keep pricing in the site's existing type, spacing and color system. */
.pricing-plan-description { min-height: 3rem; }
.pricing-plan-inclusion { min-height: 1.5rem; }
.pricing-plan { scroll-margin-top: 6rem; }
.pricing-plan a:focus-visible { outline: 2px solid var(--color-brand-600, #65b2b5); outline-offset: 3px; }
@media (max-width: 1023px) {
    .pricing-plan-description { min-height: 0; }
}

.pricing-yearly-badge { display: inline-block; margin-left: .35rem; border-radius: 999px; padding: .2rem .5rem; background: #d8f1f0; color: #23656a; font-size: .7rem; line-height: 1.25; font-weight: 700; }
.pricing-savings, .pricing-savings-placeholder { margin-top: .65rem; min-height: 1.25rem; font-size: .8rem; line-height: 1.25rem; font-weight: 600; color: #28777b; }
@media (max-width: 1023px) { .pricing-savings-placeholder { display: none; } }

/* Free Explorer sits under the three paid cards as a strip, not a fourth card. */
.pricing-free-strip { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: 6rem; }
.pricing-free-strip-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }
@media (min-width: 768px) {
    .pricing-free-strip { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Two panels make the split visible: Analysis (Starter, Professional) and Analysis + Design. */
.pricing-plans { display: grid; gap: 1.5rem; }
.pricing-panel { display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 1.5rem; background: #f8fafc; padding: 1.25rem 1rem 1rem; }
.pricing-panel-header { display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.5rem; }
.pricing-panel-title { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0f172a; }
.pricing-panel-tag { margin-left: 0.375rem; border-radius: 0.25rem; background: #e2e8f0; padding: 0.0625rem 0.375rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; color: #475569; vertical-align: 0.0625rem; }
.pricing-panel-note { font-size: 0.875rem; color: #64748b; }
.pricing-panel-cards { display: grid; flex: 1; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) {
    .pricing-plans--with-design { grid-template-columns: 2fr 1fr; }
    .pricing-design-jump { display: none; }
    .pricing-panel--analysis .pricing-panel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Stacked layout leads with the recommended plan. */
@media (max-width: 1023px) {
    .pricing-panel-cards { row-gap: 2rem; }
    .pricing-plan--professional { order: 1; }
    .pricing-plan--starter { order: 2; }
}

/* Yearly savings: one quiet line per plan, in both billing views. */
.pricing-plan .pricing-savings { margin-top: 0.375rem; min-height: 0; }
.pricing-team-option .pricing-savings { min-height: 0; }
/* Free Explorer lists what stays free; the button sits beside it on wide screens. */
@media (min-width: 768px) { .pricing-free-strip { align-items: flex-start; } .pricing-free-strip-actions { padding-top: 0.25rem; } }

/* Team configurator: seat type, team size, then one total and one button. */
.pricing-team-config fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.pricing-team-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.pricing-team-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #f8fafc; padding: 0.25rem; }
.pricing-team-segment button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.125rem; border: 1px solid transparent; border-radius: 0.5rem; background: transparent; padding: 0.5rem 0.75rem; text-align: left; color: #475569; cursor: pointer; transition: background-color .15s, border-color .15s; }
.pricing-team-segment button:hover { background: #fff; }
.pricing-team-segment button[aria-pressed="true"] { border-color: #cbd5e1; background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.pricing-team-segment button:focus-visible, .pricing-team-stepper button:focus-visible { outline: 2px solid #47b8b8; outline-offset: 2px; }
.pricing-team-stepper input:focus, .pricing-team-stepper input:focus-visible { outline: none; border-color: #47b8b8; box-shadow: 0 0 0 3px rgba(71, 184, 184, .18); }
.pricing-team-segment-name { font-size: 0.9375rem; font-weight: 700; }
.pricing-team-segment-price { font-size: 0.8125rem; color: #64748b; }
.pricing-team-stepper { display: flex; align-items: center; gap: 0.5rem; }
.pricing-team-stepper button { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 0.5rem; background: #fff; font-size: 1.25rem; font-weight: 600; line-height: 1; color: #0f172a; cursor: pointer; }
.pricing-team-stepper button:hover:not(:disabled) { background: #f1f5f9; }
.pricing-team-stepper button:disabled { cursor: not-allowed; color: #cbd5e1; }
.pricing-team-stepper input { width: 4rem; height: 2.5rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; text-align: center; font-size: 1rem; font-weight: 700; color: #0f172a; -moz-appearance: textfield; }
.pricing-team-stepper input::-webkit-outer-spin-button, .pricing-team-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pricing-team-stepper-unit { font-size: 0.875rem; color: #64748b; }
.pricing-team-help { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.4; color: #64748b; }
.pricing-team-help.is-warning { color: #b45309; }
.pricing-team-total { margin-top: 1.25rem; border-top: 1px solid #e2e8f0; padding-top: 1rem; }
.pricing-team-total-amount { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.pricing-team-total-period { font-size: 0.875rem; font-weight: 500; color: #64748b; }
.pricing-team-total-detail { margin-top: 0.125rem; font-size: 0.875rem; color: #475569; }
.pricing-team-total .pricing-savings { margin-top: 0.25rem; }

/* Team: how it works, beside the configurator. */
.pricing-team-steps-title { margin-top: 2.25rem; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.pricing-team-steps { display: grid; gap: 0.75rem; margin: 0.875rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .pricing-team-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pricing-team-steps li { display: flex; gap: 0.75rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; padding: 1rem; }
@media (min-width: 640px) { .pricing-team-steps li { flex-direction: column; } }
.pricing-team-step-number { display: inline-flex; flex: 0 0 auto; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border-radius: 9999px; background: #ecfbfb; font-size: 0.8125rem; font-weight: 800; color: #378e8f; }
.pricing-team-steps strong { display: block; font-size: 0.9375rem; color: #0f172a; }
.pricing-team-steps p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.5; color: #475569; }
.pricing-team-invoice { margin-top: 0.75rem; text-align: center; font-size: 0.8125rem; line-height: 1.5; color: #475569; }
.pricing-team-invoice a { font-weight: 600; color: #378e8f; }
.pricing-team-invoice a:hover { color: #2d7475; }
/* Phones: intro, then the price box, then how it works. Desktop: how it works sits under the intro. */
.pricing-team-grid { grid-template-columns: minmax(0, 1fr); }
.pricing-team-segment button { min-width: 0; }
.pricing-team-steps-title { margin-top: 0; }
@media (min-width: 1024px) {
    .pricing-team-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); grid-template-rows: auto 1fr; row-gap: 2.25rem; }
    .pricing-team-intro { grid-column: 1; grid-row: 1; }
    .pricing-team-aside { grid-column: 2; grid-row: 1 / span 2; }
    .pricing-team-how { grid-column: 1; grid-row: 2; }
}
@media (max-width: 479px) {
    .pricing-team-segment button { padding: 0.5rem 0.625rem; }
    .pricing-team-segment-price { font-size: 0.75rem; }
}
.pricing-team-cta { text-align: center; }
@media (max-width: 479px) {
    .pricing-team-segment button { padding: 0.5rem; }
    .pricing-team-segment-name { font-size: 0.875rem; }
    .pricing-team-segment-price { font-size: 0.6875rem; }
}
