/* ==========================================================================
   Plans page — tiers, checkout dialog, Enterprise contact.
   Built on the tokens from dashboard.css. Tier accents: Free and Starter
   teal, Expert blue, Enterprise amber (same as the sidebar plan badge).
   ========================================================================== */

.plans-body {
    position: relative;
}

/* Faint grid behind the page, fading out towards the bottom. */
.plans-body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--blue-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--blue-rgb), 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.plans-topbar,
.plans-main,
.plans-footer {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Top bar ------------------------------------------------------------------ */

.plans-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 16px;
    border-bottom: 1px solid var(--line);
}

.plans-topbar .brand {
    font-size: 0.8rem;
}

.plans-topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.plans-text-link {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.18s ease;
}

.plans-text-link:hover,
.plans-text-link:focus-visible {
    color: var(--text);
}

.plans-dashboard-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid rgba(var(--teal-rgb), 0.35);
    border-radius: var(--radius-control);
    background: rgba(var(--teal-rgb), 0.07);
    color: var(--text);
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.plans-dashboard-link span {
    color: var(--teal);
}

.plans-dashboard-link:hover,
.plans-dashboard-link:focus-visible {
    border-color: var(--teal);
    background: rgba(var(--teal-rgb), 0.14);
}

/* Heading ------------------------------------------------------------------ */

.plans-main {
    padding: clamp(40px, 7vw, 76px) 0 48px;
}

.plans-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    animation: plans-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plans-heading h1 {
    margin-bottom: 14px;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.plans-title-line {
    display: inline;
}

.plans-title-accent {
    background: linear-gradient(100deg, var(--blue), var(--teal));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.plans-lede {
    max-width: 52ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.period-switch {
    display: inline-flex;
    flex: none;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
}

.period-switch button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.period-switch button[aria-pressed="true"] {
    background: rgba(var(--teal-rgb), 0.14);
    color: var(--text);
}

.period-save {
    color: var(--teal);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
}

/* Notices and current plan --------------------------------------------------- */

.plans-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 var(--space-stack);
    padding: 12px 16px;
    border: 1px solid rgba(var(--blue-rgb), 0.3);
    border-radius: var(--radius-control);
    background: rgba(var(--blue-rgb), 0.07);
    font-size: 0.85rem;
    line-height: 1.5;
}

.plans-notice i {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--blue);
}

.plans-notice.is-success {
    border-color: rgba(var(--teal-rgb), 0.35);
    background: rgba(var(--teal-rgb), 0.08);
}

.plans-notice.is-success i {
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
}

.plans-notice.is-muted {
    border-color: var(--line);
    background: var(--panel);
    color: var(--muted);
}

.plans-notice.is-muted i {
    background: var(--muted);
}

.plan-status.panel {
    display: flex;
    align-items: center;
    gap: 12px 28px;
    flex-wrap: wrap;
    margin-bottom: var(--space-stack);
    padding: 16px 20px;
}

.plan-status .eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
}

.plan-status-name {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.05rem;
    font-weight: 600;
}

.plan-status-name i {
    width: 7px;
    height: 7px;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    transform: rotate(45deg);
}

.plan-status-name.tier-expert i {
    background: var(--blue);
    box-shadow: 0 0 8px var(--blue);
}

.plan-status-name.tier-enterprise i {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

.plan-status-detail {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.plan-status-detail strong {
    color: var(--text);
    font-weight: 600;
}

.plan-status.is-grace {
    border-color: rgba(var(--amber-rgb), 0.4);
    background: linear-gradient(105deg, rgba(var(--amber-rgb), 0.09), var(--panel) 60%);
}

/* Plan cards ------------------------------------------------------------------- */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-stack);
}

.plan-card.panel {
    --tier: var(--teal);
    --tier-rgb: var(--teal-rgb);
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px 22px 22px;
    animation: plans-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plan-card:nth-child(2) { animation-delay: 0.06s; }
.plan-card:nth-child(3) { animation-delay: 0.12s; }
.plan-card:nth-child(4) { animation-delay: 0.18s; }

.plan-expert.panel {
    --tier: var(--blue);
    --tier-rgb: var(--blue-rgb);
}

.plan-enterprise.panel {
    --tier: var(--amber);
    --tier-rgb: var(--amber-rgb);
}

.plan-card:hover {
    border-color: rgba(var(--tier-rgb), 0.35);
    box-shadow: 0 18px 44px -30px rgba(var(--tier-rgb), 0.45);
}

/* Expert: the plan we point people to. A lit top edge and a soft glow,
   instead of scaling the card (which breaks the row's alignment). */
.plan-card.is-featured {
    border-color: rgba(var(--tier-rgb), 0.5);
    background: linear-gradient(170deg, rgba(var(--tier-rgb), 0.13), var(--panel) 55%);
    box-shadow: 0 24px 60px -36px rgba(var(--tier-rgb), 0.7);
}

.plan-card.is-featured::before {
    position: absolute;
    top: -1px;
    right: 18px;
    left: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--tier), var(--teal), transparent);
    content: "";
}

.plan-card.is-current {
    border-color: rgba(var(--tier-rgb), 0.6);
    box-shadow: inset 0 0 0 1px rgba(var(--tier-rgb), 0.25);
}

.plan-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.plan-index {
    margin: 0 0 8px;
    color: var(--tier, var(--teal));
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.plan-card h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.plan-tag {
    flex: none;
    padding: 4px 8px;
    border: 1px solid rgba(var(--tier-rgb), 0.4);
    border-radius: 4px;
    color: var(--tier);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-tag.is-current {
    background: rgba(var(--tier-rgb), 0.12);
}

.plan-tag.is-featured {
    border-color: transparent;
    background: var(--tier);
    color: var(--bg);
    font-weight: 700;
}

/* Same height for "$4.99" and "Custom", so the rows below line up. */
.plan-price {
    min-height: calc(2.3rem + 34px);
    margin-bottom: 14px;
}

.plan-price p {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 8px;
}

.plan-price-note {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
}

.plan-price-note em {
    color: var(--teal);
    font-style: normal;
    font-weight: 600;
}

.plan-price strong {
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan-enterprise .plan-price strong {
    font-size: 1.8rem;
}

.plan-price span {
    color: var(--muted);
    font-size: 0.8rem;
}

.plans-main[data-period="month"] .price-year,
.plans-main[data-period="year"] .price-month {
    display: none !important;
}

.plan-description {
    min-height: 3.2em;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* AI capacity: the number people compare first, so it gets a bar. */
.plan-capacity {
    position: relative;
    margin: 0 0 10px;
    padding: 12px 12px 14px;
    border: 1px solid rgba(var(--tier-rgb), 0.22);
    border-radius: var(--radius-control);
    background: rgba(var(--tier-rgb), 0.05);
}

.plan-capacity-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.plan-capacity-head span {
    color: var(--muted);
    font-size: 0.76rem;
}

.plan-capacity-head strong {
    font-family: var(--mono);
    font-size: 1.05rem;
}

.plan-capacity-head small {
    margin-left: 3px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 400;
}

.capacity-meter {
    height: 4px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(var(--tier-rgb), 0.12);
}

.capacity-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--tier-rgb), 0.5), var(--tier));
    transform-origin: left;
    animation: meter-fill 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.capacity-meter.is-unlimited i {
    background: repeating-linear-gradient(90deg, var(--tier) 0 10px, rgba(var(--tier-rgb), 0.45) 10px 14px);
}

.capacity-chip {
    position: absolute;
    top: -9px;
    right: 10px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--tier);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
}

.plan-limits {
    display: grid;
    gap: 1px;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--line);
}

.plan-limits div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    background: rgba(var(--tier-rgb), 0.035);
}

.plan-limits dt {
    color: var(--muted);
    font-size: 0.76rem;
}

.plan-limits dd {
    margin: 0;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.82rem;
    white-space: nowrap;
}

.plan-limits small {
    margin-left: 3px;
    color: var(--muted);
    font-size: 0.7rem;
}

.plan-details {
    display: grid;
    gap: 9px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.plan-details li {
    position: relative;
    padding-left: 16px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.plan-details li::before {
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--tier, var(--teal));
    content: "";
    transform: rotate(45deg);
}

.plan-action {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.plan-action span {
    color: var(--tier, var(--teal));
}

.plan-action:hover,
.plan-action:focus-visible {
    border-color: rgba(var(--tier-rgb, var(--teal-rgb)), 0.6);
    background: rgba(var(--tier-rgb, var(--teal-rgb)), 0.08);
}

.plan-action.is-primary {
    border-color: rgba(var(--tier-rgb, var(--teal-rgb)), 0.5);
    background: rgba(var(--tier-rgb, var(--teal-rgb)), 0.12);
}

.plan-action.is-primary:hover,
.plan-action.is-primary:focus-visible {
    background: rgba(var(--tier-rgb, var(--teal-rgb)), 0.2);
}

.plan-action:disabled {
    color: var(--muted);
    cursor: not-allowed;
}

.plans-fineprint {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: center;
}

/* Contact -------------------------------------------------------------------- */

.contact-section {
    margin-top: clamp(56px, 8vw, 96px);
    scroll-margin-top: 24px;
}

.section-intro {
    max-width: 620px;
    margin-bottom: 24px;
}

.contact-section .section-intro .eyebrow {
    color: var(--amber);
}

.section-intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.section-intro p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--space-stack);
    align-items: start;
}

.contact-card.panel {
    --tier: var(--amber);
    --tier-rgb: var(--amber-rgb);
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-telegram p:not(.plan-index) {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-row-contact {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.form-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.form-field > span {
    color: var(--muted);
    font-size: 0.75rem;
}

.form-field em {
    margin-left: 4px;
    color: rgba(var(--blue-rgb), 0.6);
    font-size: 0.7rem;
    font-style: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    transition: border-color 0.18s ease;
}

.form-field textarea {
    min-height: 104px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(var(--amber-rgb), 0.6);
    outline: none;
}

.form-error {
    margin: 0;
    color: var(--amber);
    font-size: 0.75rem;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form .plan-action {
    width: auto;
    justify-self: start;
    min-width: 180px;
}

.contact-sent h3 {
    color: var(--amber);
}

.contact-sent p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* FAQ ------------------------------------------------------------------------------ */

.plans-faq {
    margin-top: clamp(48px, 7vw, 80px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.faq-grid h3 {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.faq-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.6;
}

.plans-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
}

/* Billing perks under the heading ---------------------------------------------- */

.plans-perks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 var(--space-stack);
    padding: 0;
    list-style: none;
}

.plans-perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: rgba(var(--teal-rgb), 0.03);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.plans-perks i {
    color: var(--teal);
    font-style: normal;
}

.plans-perks strong {
    display: block;
    color: var(--text);
    font-weight: 600;
}

/* Today's usage in the "Your plan" panel ----------------------------------------- */

.plan-usage {
    min-width: 220px;
    margin-left: auto;
}

.plan-usage-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.75rem;
}

.plan-usage-label strong {
    color: var(--text);
    font-family: var(--mono);
    font-weight: 500;
}

.usage-meter {
    height: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(var(--teal-rgb), 0.12);
}

.usage-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--teal);
}

.usage-meter.is-low i {
    background: var(--amber);
}

.plan-usage-nudge {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.plan-usage-nudge strong {
    color: var(--teal);
}

/* Comparison table ------------------------------------------------------------------ */

.plans-compare {
    margin-top: clamp(56px, 8vw, 96px);
    scroll-margin-top: 24px;
}

/* Wide table scrolls inside its panel on phones, never the page. */
.compare-scroll.panel {
    padding: 0;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.compare-table th,
.compare-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.compare-table thead th {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
}

.compare-table tbody th {
    color: var(--muted);
    font-weight: 400;
    text-align: left;
}

.compare-table td {
    font-family: var(--mono);
}

.compare-table .is-featured {
    background: rgba(var(--blue-rgb), 0.07);
}

.compare-table thead .is-featured {
    color: var(--blue);
}

.compare-table .yes {
    color: var(--teal);
}

.compare-table .no {
    color: var(--muted);
}

.compare-price {
    color: var(--text);
    font-weight: 600;
}

/* Closing band ----------------------------------------------------------------------- */

.plans-closing.panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: clamp(40px, 6vw, 64px);
    padding: 24px 28px;
    border-color: rgba(var(--teal-rgb), 0.3);
    background: linear-gradient(110deg, rgba(var(--teal-rgb), 0.1), rgba(var(--blue-rgb), 0.06) 60%, var(--panel));
}

.plans-closing h2 {
    margin-bottom: 6px;
    font-size: 1.25rem;
    font-weight: 600;
}

.plans-closing p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.plans-closing .plan-action {
    width: auto;
    min-width: 200px;
}


/* Checkout dialog --------------------------------------------------------------- */

.checkout-dialog {
    width: min(470px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 20px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.checkout-dialog::backdrop {
    background: rgba(4, 7, 10, 0.72);
    backdrop-filter: blur(3px);
}

.checkout-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.checkout-head .eyebrow {
    margin-bottom: 6px;
}

.checkout-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.checkout-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.checkout-close:hover,
.checkout-close:focus-visible {
    color: var(--text);
}

.checkout-summary {
    margin: 12px 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.checkout-summary strong {
    margin-right: 4px;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.checkout-switch {
    margin: 0 0 12px;
    padding: 9px 11px;
    border: 1px solid rgba(var(--amber-rgb), 0.35);
    border-radius: var(--radius-control);
    background: rgba(var(--amber-rgb), 0.07);
    font-size: 0.78rem;
    line-height: 1.5;
}

.checkout-frame {
    display: grid;
    min-height: 200px;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.03);
}

/* NOWPayments' widget is designed for 410 x 696. */
.checkout-frame iframe {
    display: block;
    width: 100%;
    max-width: 410px;
    height: 696px;
    border: 0;
}

.checkout-frame iframe[hidden] {
    display: none;
}

.checkout-loading {
    margin: 0;
    padding: 24px;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.checkout-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 8px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.checkout-status i {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--blue);
    animation: checkout-pulse 1.4s ease-in-out infinite;
}

.checkout-status[data-state="success"] i {
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    animation: none;
}

.checkout-status[data-state="error"] i {
    background: var(--amber);
    animation: none;
}

.checkout-foot {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.checkout-foot a {
    color: var(--teal);
    white-space: nowrap;
}

@keyframes meter-fill {
    from { transform: scaleX(0); }
}

@keyframes checkout-pulse {
    50% { opacity: 0.3; }
}

@keyframes plans-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Responsive ------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .plan-grid,
    .plans-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .plans-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    /* Two short perks per row: the plan cards start on the first screen. */
    .plans-perks li {
        padding: 10px;
        font-size: 0.72rem;
    }

    .plans-perks i {
        display: none;
    }

    .plans-heading h1 {
        font-size: 2.2rem;
    }

    .plan-grid,
    .form-row,
    .form-row-contact {
        grid-template-columns: 1fr;
    }

    .plans-nav-extra {
        display: none;
    }

    .plan-description {
        min-height: 0;
    }

    .plans-footer {
        flex-direction: column;
    }

    .contact-form .plan-action,
    .plans-closing .plan-action {
        width: 100%;
    }

    .plan-usage {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plans-heading,
    .plan-card.panel,
    .capacity-meter i,
    .checkout-status i {
        animation: none;
    }
}

.plan-status-link {
    display: block;
    margin-top: 4px;
    color: var(--teal);
    font-size: 0.8rem;
    text-decoration: none;
}

.plan-status-link:hover,
.plan-status-link:focus-visible {
    text-decoration: underline;
}
