/* ==========================================================================
   Pricing & Plans (Service Packages) — /subscriptions/all, /service-packages/all
   Minimal: light header, plain white cards, theme color as the only accent.
   ========================================================================== */

.dl-plans-page {
    --pl-primary: var(--main-color-one);
    --pl-soft: color-mix(in srgb, var(--main-color-one) 8%, #ffffff);
    --pl-border: #e6e8eb;
    --pl-text: var(--headings-color, #222222);
    --pl-muted: var(--body-text-color, #6B7177);
    background: #ffffff;
    color: var(--pl-muted);
}

.dl-plans-page section {
    padding: 0; /* theme gives every <section> 120px padding */
}

.dl-plans-container {
    max-width: 1240px;
}

/* ---------- Header ---------- */
.dl-plans-hero {
    padding: 80px 0 48px !important;
    text-align: center;
}

.dl-plans-page .dl-plans-title {
    margin: 0 0 14px;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--pl-text);
}

.dl-plans-page .dl-plans-subtitle {
    max-width: 520px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.6;
    color: var(--pl-muted);
}

.dl-plans-page .dl-plans-usage {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 0;
    font-size: 14px;
    color: var(--pl-muted);
}

.dl-plans-usage-bar {
    width: 120px;
    height: 6px;
    border-radius: 6px;
    background: #eef0f2;
    overflow: hidden;
}

.dl-plans-usage-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pl-primary);
}

/* ---------- Billing filter ---------- */
.dl-plans-list {
    padding-bottom: 96px !important;
}

.dl-plans-filter {
    position: relative;
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 48px;
    padding: 4px;
    border: 1px solid var(--pl-border);
    border-radius: 60px;
    background: #ffffff;
    overflow-x: auto;
    scrollbar-width: none;
}

.dl-plans-filter::-webkit-scrollbar {
    display: none;
}

.dl-plans-filter button {
    position: relative;
    z-index: 1;
    padding: 8px 20px;
    border: 0;
    border-radius: 60px;
    background: transparent;
    color: var(--pl-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .25s ease;
}

.dl-plans-filter button.is-active {
    color: var(--pl-text);
}

.dl-plans-filter-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    border-radius: 60px;
    background: #f1f2f4;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), width .35s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Cards ---------- */
.dl-plans-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 20px;
    max-width: calc(var(--cols, 4) * 300px + (var(--cols, 4) - 1) * 20px);
    margin: 0 auto;
}

.dl-plan {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    border: 1px solid var(--pl-border);
    border-radius: 20px;
    background: #ffffff;
    animation: dl-plans-up .5s ease both;
    animation-delay: calc(var(--i, 0) * 70ms);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dl-plan:hover {
    border-color: #d5d9de;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.dl-plan--featured,
.dl-plan--featured:hover {
    border-color: var(--pl-primary);
    box-shadow: 0 0 0 1px var(--pl-primary);
}

.dl-plan.is-hidden {
    display: none;
}

.dl-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px; /* same height with or without a tag */
    margin-bottom: 20px;
}

.dl-plans-page .dl-plan-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--pl-text);
    text-transform: capitalize;
}

.dl-plan-tag {
    padding: 4px 10px;
    line-height: 20px; /* 28px total, matches .dl-plan-top min-height */
    border-radius: 60px;
    background: var(--pl-soft);
    color: var(--pl-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dl-plan-tag--muted {
    background: #f1f2f4;
    color: var(--pl-muted);
}

.dl-plan-tag--active {
    background: var(--pl-primary);
    color: #ffffff;
}

.dl-plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-plan-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--pl-text);
}

.dl-plan-period {
    font-size: 15px;
    color: var(--pl-muted);
}

.dl-plans-page .dl-plan-billing {
    min-height: 21px;
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--pl-muted);
}

.dl-plans-page .dl-plan-desc {
    min-height: calc(1.6em * 2); /* keeps buttons aligned across cards */
    margin: 16px 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pl-muted);
}

.dl-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: 1px solid var(--pl-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--pl-text);
    font-size: 15px;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

a.dl-plan-btn:hover {
    border-color: var(--pl-text);
    color: var(--pl-text);
}

.dl-plan--featured .dl-plan-btn {
    border-color: var(--pl-primary);
    background: var(--pl-primary);
    color: #ffffff;
}

.dl-plan--featured a.dl-plan-btn:hover {
    border-color: #222222;
    background: #222222;
    color: #ffffff;
}

.dl-plan-btn.is-disabled {
    border-color: transparent;
    background: #f5f6f7;
    color: var(--pl-muted);
    font-weight: 500;
    cursor: default;
}

.dl-plan-includes {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #f0f1f3;
}

.dl-plans-page .dl-plan-inherit {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pl-text);
}

.dl-plan-features {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--pl-text);
}

.dl-plan-features li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.45;
}

.dl-plan-features i {
    width: 14px;
    flex-shrink: 0;
    color: var(--pl-primary);
    font-size: 12px;
}

.dl-plan-features li.is-off {
    color: #b0b5bb;
}

.dl-plan-features li.is-off i {
    color: #c9cdd2;
}

.dl-plans-empty,
.dl-plans-page .dl-plans-empty-filter {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 24px;
    border: 1px solid var(--pl-border);
    border-radius: 20px;
    text-align: center;
}

.dl-plans-empty i {
    font-size: 28px;
    color: var(--pl-primary);
    margin-bottom: 12px;
}

.dl-plans-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--pl-muted);
}

.dl-plans-trust i {
    margin-right: 6px;
    color: var(--pl-primary);
}

.dl-plan-features li.is-key {
    font-weight: 600;
}

/* Paid cards: tag sits on the top border so long titles keep one line */
.dl-plan {
    position: relative;
}

.dl-plan .dl-plan-tag {
    position: absolute;
    top: -14px;
    left: 26px;
    border: 1px solid #ffffff;
}

.dl-plan--featured .dl-plan-tag {
    background: var(--pl-primary);
    color: #ffffff;
}

/* ---------- Free plan strip (below the paid plans) ---------- */
.dl-plan-free {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr auto;
    align-items: center;
    gap: 32px;
    max-width: calc(4 * 300px + 3 * 20px);
    margin: 20px auto 0;
    padding: 26px 30px;
    border: 1px solid var(--pl-border);
    border-radius: 20px;
    background: #f8f9fa;
    animation: dl-plans-up .5s ease both;
    animation-delay: .3s;
}

.dl-plan-free .dl-plan-top {
    justify-content: flex-start;
    margin-bottom: 10px;
}

.dl-plan-free .dl-plan-amount {
    font-size: 30px;
}

.dl-plans-page .dl-plan-free .dl-plan-desc {
    min-height: 0;
    margin: 8px 0 0;
}

.dl-plan-free-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--pl-text);
}

.dl-plan-free-features li {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dl-plan-free-features i {
    color: var(--pl-primary);
    font-size: 12px;
}

.dl-plan-free-cta .dl-plan-btn {
    min-width: 200px;
    padding: 0 24px;
}

@media (max-width: 1199.98px) {
    .dl-plans-grid { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); max-width: 640px; }
    .dl-plan-free { grid-template-columns: 1fr; gap: 20px; max-width: 640px; }
    .dl-plan-free-cta .dl-plan-btn { width: 100%; }
}

@media (max-width: 575.98px) {
    .dl-plans-grid { grid-template-columns: 1fr; }
    .dl-plan-free { padding: 24px 22px; }
    .dl-plan-free-features { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */
.dl-plans-how {
    padding: 88px 0 !important;
    background: #f8f9fa;
}

.dl-plans-section-head {
    margin-bottom: 40px;
    text-align: center;
}

.dl-plans-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--pl-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dl-plans-page .dl-plans-section-head h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--pl-text);
}

.dl-plans-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.dl-plans-step {
    text-align: center;
}

.dl-plans-step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--pl-border);
    color: var(--pl-primary);
    font-size: 18px;
}

.dl-plans-page .dl-plans-step h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--pl-text);
}

.dl-plans-page .dl-plans-step p {
    max-width: 280px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- FAQ ---------- */
.dl-plans-faq {
    padding: 88px 0 104px !important;
}

.dl-plans-faq-list {
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid var(--pl-border);
}

.dl-plans-faq-item {
    border-bottom: 1px solid var(--pl-border);
}

.dl-plans-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--pl-text);
    cursor: pointer;
    list-style: none;
}

.dl-plans-faq-item summary::-webkit-details-marker {
    display: none;
}

.dl-plans-faq-item summary i {
    flex-shrink: 0;
    color: var(--pl-muted);
    font-size: 13px;
    transition: transform .25s ease;
}

.dl-plans-faq-item[open] summary i {
    transform: rotate(45deg);
}

.dl-plans-page .dl-plans-faq-item p {
    margin: 0;
    padding: 0 32px 20px 0;
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- Motion ---------- */
@keyframes dl-plans-up {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .dl-plans-steps { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 575.98px) {
    .dl-plans-hero { padding: 56px 0 36px !important; }
    .dl-plans-page .dl-plans-title { font-size: 32px; }
    .dl-plans-page .dl-plans-subtitle { font-size: 16px; }
    .dl-plans-filter { margin-bottom: 32px; }
    .dl-plan { padding: 26px 22px; }
    .dl-plans-page .dl-plans-section-head h2 { font-size: 26px; }
    .dl-plans-how, .dl-plans-faq { padding: 64px 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
    .dl-plans-page *,
    .dl-plans-page *::before,
    .dl-plans-page *::after {
        animation: none !important;
        transition: none !important;
    }
}
