/* ==========================================================================
   Subscription Plans  (03 · Inner pages / screens/subscription-plans.jsx)

   Loaded after dashboard.css + inner-pages.css + my-apps.css, so the .vd-dash
   token block and shared .vd-pagehead / .vd-btn rules are already in scope.

   Tier header colours follow the LEGACY Home/SubscriptionOptions page rather
   than the comp, because those are keyed to the real Zuora rate plan names
   (Bronze / Silver / Gold / Platinum / Platinum Plus). The comp only knows
   four invented tiers, so its palette cannot cover what Zuora returns.
   ========================================================================== */

.vd-plans { padding: 32px 32px 48px; max-width: 1180px; margin: 0 auto; }

/* ---------- Intro ---------- */

.vd-plans-intro { max-width: 760px; margin-bottom: 30px; }

.vd-plans-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 10px;
}

.vd-plans-intro h2 {
    font-size: 27px;
    font-weight: 700;
    color: var(--blackberry);
    letter-spacing: -.4px;
    margin: 0;
}

.vd-plans-intro p { font-size: 13.5px; color: var(--body); line-height: 1.65; margin: 10px 0 0; }

/* ---------- Tier grid ---------- */

/* FLIN-1762: four cards (App Developer + Bronze / Silver / Gold) on one line
   on a laptop; drops to 2 columns, then 1, on narrower screens instead of
   squeezing four thin columns. */
.vd-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .vd-tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .vd-tiers { grid-template-columns: 1fr; }
}

.vd-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(46, 33, 85, .12);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(46, 33, 85, .05);
}

.vd-tier--current {
    border: 2px solid var(--coral);
    box-shadow: 0 16px 36px -12px rgba(230, 89, 76, .3);
}

.vd-tier-flag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    border-radius: 99px;
    background: var(--coral);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(230, 89, 76, .35);
}

.vd-tier-head {
    padding: 18px 22px 16px;
    border-radius: 12px 12px 0 0;
    background: var(--tier, var(--indigo));
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .02em;
}

.vd-tier-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--line-soft);
}

/* FLIN-1762: the tier descriptions differ in length (Gold's is shortest), so
   they wrap to different line counts and pushed each price to a different
   height. A fixed 3-line slot keeps every price on the same line. */
.vd-tier-desc { font-size: 13px; line-height: 1.5; color: #555; margin: 0 0 12px; min-height: 4.5em; }

.vd-tier-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.vd-tier-price b { font-size: 29px; font-weight: 700; color: var(--blackberry); letter-spacing: -.5px; }
.vd-tier-price span { font-size: 13.5px; color: #3D3654; }

.vd-tier-annual { font-size: 12.5px; font-weight: 600; color: var(--tier, var(--coral)); margin-bottom: 14px; }
.vd-tier-noprice { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* Feature copy comes from Zuora as HTML, so keep the reset gentle. */
.vd-tier-features { font-size: 13px; color: var(--ink); line-height: 1.55; margin: 0 0 20px; }
.vd-tier-features ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.vd-tier-features li { display: flex; gap: 4px; align-items: flex-start; }

.vd-tier-features li::before {
    content: "";
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-radius: 99px;
    background: rgba(122, 53, 120, .1) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A3578' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

.vd-tier-features li.star::before {
    background: rgba(191, 143, 0, .15) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BF8F00' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

.vd-tier-features p { margin: 0 0 8px; }
.vd-tier-features p:last-child { margin-bottom: 0; }

.vd-tier-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.vd-tier-cta {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    color: var(--tier, var(--coral));
    border: 2px solid var(--tier, var(--coral));
    transition: background .14s ease, color .14s ease, box-shadow .14s ease;
}

.vd-tier-cta:hover {
    background: var(--tier, var(--coral));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px -6px var(--tier, var(--coral));
}

.vd-tier-cta--is-current {
    background: var(--indigo);
    border-color: var(--indigo);
    color: #fff;
    pointer-events: none;
}

/* ---------- Free trial strip ---------- */

.vd-plans-trial {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(to right, #E5594E, #A55B7B, #6A5CA6);
    box-shadow: 0 14px 30px -18px rgba(106, 92, 166, .8);
}

.vd-plans-trial-main { flex: 1 1 auto; min-width: 0; }
.vd-plans-trial-main b { font-size: 15px; font-weight: 700; }
.vd-plans-trial-main p { font-size: 12.5px; margin: 2px 0 0; color: rgba(255, 255, 255, .88); }

/* ---------- Usage fee note ---------- */

.vd-plans-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: 14px;
    background: rgba(230, 89, 76, .06);
    border: 1px solid rgba(230, 89, 76, .28);
}

.vd-plans-note svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--coral); margin-top: 2px; }
.vd-plans-note p { font-size: 13.5px; color: #3D3660; line-height: 1.65; margin: 0; }

/* ---------- Unavailable / empty ---------- */

.vd-plans-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.55;
    background: rgba(250, 181, 84, .14);
    border: 1px solid rgba(250, 181, 84, .5);
    color: #7A4E06;
}

.vd-plans-warn svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .vd-plans { padding: 24px 20px 36px; }
    .vd-tiers { grid-template-columns: 1fr; }
    .vd-plans-trial { flex-wrap: wrap; }
}

/* ---------- VCO-1317: Subscription Benefits comparison table ----------
   Blueprint: tier-coloured header cells (App Developer / Bronze / Silver /
   Gold), plum check marks, en-dash for "not included", blue text values. */
.vd-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.vd-benefits { margin-top: 32px; }
.vd-benefits-title {
    font-size: 22px; font-weight: 700; color: var(--blackberry, #2E2155);
    margin: 0 0 14px;
}
.vd-benefits-wrap {
    overflow-x: auto; background: #fff;
    border: 1px solid #ECEAF1; border-radius: 12px;
}
.vd-benefits-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.vd-benefits-table th,
.vd-benefits-table td { padding: 12px 16px; border-bottom: 1px solid #F1EFF5; }
.vd-benefits-table tbody tr:last-child th,
.vd-benefits-table tbody tr:last-child td { border-bottom: 0; }
.vd-benefits-table tbody tr:nth-child(even) { background: #FBFAFC; }
.vd-benefits-table tbody th { text-align: left; font-weight: 400; color: var(--ink, #2E2155); width: 34%; }
.vd-benefits-table thead th:first-child { background: transparent; }
.vd-benefits-tier {
    color: #fff; text-align: center; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; padding: 14px 12px;
}
.vd-benefits-tier--appdev { background: #3D3A82; }
.vd-benefits-tier--bronze { background: #6E3F23; }
.vd-benefits-tier--silver { background: #A39AAE; }
.vd-benefits-tier--gold   { background: #B88418; border-top-right-radius: 11px; }
.vd-benefits-yes,
.vd-benefits-no,
.vd-benefits-text { text-align: center; }
.vd-benefits-yes  { color: var(--plum, #7A3578); font-size: 15px; }
.vd-benefits-no   { color: #B7B2C3; }
.vd-benefits-text { color: #4E6FB0; font-weight: 600; }

.vd-benefits-notice {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 20px; padding: 12px 16px;
    background: #FFF8EA; border: 1px solid #F2DDB0; border-radius: 10px;
    font-size: 12.5px; color: var(--ink, #2E2155);
}
.vd-benefits-notice svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; stroke: #B88418; }
.vd-benefits-notice p { margin: 0; line-height: 1.5; }
.vd-benefits-notice a { color: var(--plum, #7A3578); font-weight: 600; }

/* Per user request (2026-10-28): on the standalone Subscription Plans page the
   content was a centered 1180px column with its own 32px inset, so it sat in
   from the page header. Left-align it with the header and let it use the
   page's width; the intro copy gets a little more room too. Get Started's
   inline copy (#po-plans) keeps its own section layout. */
.vd-page > .vd-plans { margin: 0; max-width: 1384px; padding: 8px 32px 48px; } /* 32px = .vd-pagehead inset, so text lines up with the header */
.vd-page > .vd-plans .vd-plans-intro { max-width: 900px; }
.vd-plans-note { margin-top: 20px; }
