#plans {
    padding-block: clamp(46px, 6vw, 80px);
    border-block: 1px solid #e9decd;
    background: #f8f3ea;
}

.plans-heading, .plans-unavailable { text-align: center; }
.plans-heading { margin-bottom: 28px; }
.plans-heading .eyebrow { justify-content: center; color: #805c30; }
.plans-heading h2 { margin: 8px 0 0; }

.current-plan-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 30px;
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 15px 20px;
    border: 1px solid #e4d6c0;
    border-radius: 12px;
    background: #fffdf9;
}
.current-plan-summary .eyebrow { margin: 0 0 3px; color: #79552a; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin-inline: auto;
}

.plan-card {
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid #e4d6c0;
    border-radius: 12px;
    background: #fffdf9;
}

.plan-card { display: flex; flex-direction: column; border-top: 3px solid #bb9257; }
.plan-card h3 { margin: 0; font: 400 23px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; margin: 12px 0 16px; }
.plan-price strong { font: 400 clamp(29px, 3vw, 40px)/1 Georgia, serif; overflow-wrap: anywhere; }
.plan-price small { font-size: 13px; color: #725b3e; }
.plan-details { margin-bottom: 18px; padding-top: 13px; border-top: 1px solid #eaddc7; }
.plan-card ul { list-style: none; margin: 0; padding: 0; }
.plan-services { display: grid; align-content: start; gap: 4px; min-height: 76px; font-size: 14px; }
.plan-services li { display: flex; align-items: baseline; gap: 8px; }
.plan-check { color: #875d2c; font-weight: 700; }
.plan-team h4 { margin: 8px 0 5px; color: #725335; font-size: 12px; font-weight: 700; }
.plan-team ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
.plan-team li { font-size: 13px; color: #5d4c39; }
.plan-seat-count { font-weight: 700; }
.plan-card .plan-buy { margin-top: auto; padding: 10px 14px; gap: 10px; }

@media (max-width: 800px) {
    .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 500px; }
    .plan-services { min-height: 0; }
}

.plan-checkout {
    max-width: 1100px;
    margin: clamp(24px, 5vw, 64px) auto;
}

.plan-checkout-with-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.8fr);
    align-items: start;
    gap: clamp(16px, 3vw, 32px);
}

.checkout-summary, .checkout-panel {
    min-width: 0;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid #e4d6c0;
    border-radius: 14px;
    overflow-wrap: anywhere;
}

.checkout-summary { background: #f4ead9; }
.checkout-panel { background: #fffdf9; box-shadow: 0 8px 24px #56391b0b; }
.plan-checkout .eyebrow { margin: 0 0 9px; color: #79552a; }
.checkout-summary h2, .checkout-panel h1 { margin: 0; letter-spacing: -.025em; }
.checkout-summary h2 { font-size: clamp(23px, 3vw, 33px); }
.checkout-panel h1 { font-size: clamp(28px, 4vw, 42px); }
.checkout-summary ul {
    display: grid;
    gap: 7px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #e2cfb1;
    list-style: none;
    font-size: 14px;
}
.checkout-summary li::before { content: "✓"; margin-right: 8px; color: #79552a; }
.checkout-switch, .checkout-terms { font-size: 13px; color: #675540; }
.checkout-switch a, .checkout-terms a { text-decoration: underline; text-underline-offset: 3px; }
.checkout-terms { margin: 0; }
.checkout-company-details {
    display: grid;
    grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr);
    gap: 8px 16px;
    padding: 14px;
    border: 1px solid #e4d6c0;
    border-radius: 8px;
    background: #faf4e9;
    font-size: 14px;
}
.checkout-company-details dt { color: #675540; }
.checkout-company-details dd { margin: 0; font-weight: 600; }
.checkout-panel [role="alert"] {
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8eee0;
    font-size: 14px;
}
.plan-checkout-form { display: grid; gap: 16px; margin-top: 18px; }
.plan-checkout-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.plan-checkout-form .full { grid-column: 1 / -1; }
.plan-checkout-form label { display: grid; gap: 4px; font-size: 13px; }
.plan-checkout-form input, .plan-checkout-form select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #d9c7ab;
    border-radius: 6px;
    background: #fffdf9;
    color: #493522;
    font: inherit;
}
.plan-checkout-form .button { justify-self: start; }
.plan-checkout-form .button:disabled { opacity: .65; cursor: default; transform: none; }
.plan-checkout [role="alert"] { color: #8b372d; }

@media (max-width: 760px) {
    .plan-checkout-with-summary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .plan-checkout-form .form-grid { grid-template-columns: 1fr; }
}

