/* ==========================================================================
   preise.css – Pricing page styles
   ========================================================================== */

/* ── HERO ── */
.pr-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem var(--page-padding) 3rem;
}

.pr-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.pr-hero__title {
    max-width: 700px;
    line-height: 1;
}

.pr-hero__sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
}

/* ── BILLING TOGGLE ── */
.pr-toggle {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: .5rem;
}

.pr-toggle__label {
    font-size: .88rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s;
}

.pr-toggle__label--active { color: var(--text); }

.pr-toggle__badge {
    font-size: .65rem;
    font-weight: 600;
    background: rgba(52,199,89,.15);
    color: var(--success);
    border: 1px solid rgba(52,199,89,.25);
    padding: .15rem .45rem;
    border-radius: 100px;
}

.pr-toggle__btn {
    width: 44px;
    height: 26px;
    border-radius: 100px;
    background: var(--bg-light);
    border: 1px solid var(--divider);
    cursor: pointer;
    position: relative;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}

.pr-toggle__btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.pr-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform .2s, background .2s;
}

.pr-toggle__btn.active .pr-toggle__knob {
    transform: translateX(18px);
    background: #fff;
}


/* ── CARDS SECTION ── */
.pr-cards-section {
    padding: 2rem var(--page-padding) 5rem;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* ── CARD ── */
.pr-card {
    background: var(--bg-mid);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color .2s, transform .2s;
}

.pr-card .pr-feat-list {
    margin-top: auto;
}

.pr-card:hover {
    border-color: rgba(255,255,255,.15);
    transform: translateY(-4px);
}

.pr-card--featured {
    border-color: var(--success);
    background: linear-gradient(160deg, rgba(52,199,89,.07) 0%, var(--bg-mid) 50%);
    box-shadow: 0 0 0 1px rgba(52,199,89,.2), 0 24px 64px rgba(52,199,89,.1);
    position: relative;
}

.pr-card--featured:hover {
    border-color: var(--success);
    transform: translateY(-12px);
}

.pr-card__head {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.pr-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .4rem;
}

.pr-card__icon svg { width: 20px; height: 20px; }

.pr-card__plan {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pr-card__price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: .2rem 0;
}

.pr-card__amount {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--text);
    transition: all .25s ease;
}

.pr-card__period {
    font-size: .78rem;
    color: var(--muted);
}

.pr-card__desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.65;
}

.pr-card__yearly-note {
    font-size: .78rem;
    color: var(--success);
    background: rgba(52,199,89,.08);
    border: 1px solid rgba(52,199,89,.2);
    border-radius: var(--radius-sm);
    padding: .4rem .7rem;
    display: none;
}

.pr-card__yearly-note.visible { display: block; }

/* CTA */
.pr-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 20px rgba(52,199,89,.3);
}

.pr-card__cta:hover {
    background: #2db34e;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(52,199,89,.4);
}

.pr-card__cta--ghost {
    background: rgba(255,255,255,.05);
    color: var(--text);
    border: 1px solid var(--divider);
    box-shadow: none;
}

.pr-card__cta--ghost:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-2px);
    box-shadow: none;
}

/* Feature list */
.pr-feat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    border-top: 1px solid var(--divider);
    padding-top: 1.25rem;
}

.pr-feat-list__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
}

.pr-feat-list__item svg { width: 15px; height: 15px; flex-shrink: 0; }

.pr-feat-list__item--on  { color: var(--text); }
.pr-feat-list__item--on  svg { color: var(--success); }

.pr-feat-list__item--off { color: var(--dim); }
.pr-feat-list__item--off svg { color: var(--dim); }

/* Note */
.pr-note {
    text-align: center;
    margin-top: 2rem;
    font-size: .82rem;
    color: var(--muted);
}


/* ── COMPARISON TABLE ── */
.pr-compare-section {
    padding: 5rem var(--page-padding);
    background: var(--bg-mid);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.pr-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
}

.pr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.pr-table thead th {
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--divider);
    background: var(--bg);
}

.pr-table thead th.pr-table__feature {
    text-align: left;
    color: var(--text);
    width: 40%;
}

.pr-table thead th.pr-table__th--featured {
    color: var(--success);
    background: rgba(52,199,89,.06);
}

.pr-table tbody td {
    padding: .9rem 1.5rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(46,54,72,.5);
    text-align: center;
}

.pr-table tbody td:first-child {
    text-align: left;
    color: var(--text);
}

.pr-table tbody tr:last-child td { border-bottom: none; }

.pr-table__td--featured {
    background: rgba(52,199,89,.04);
}

.pr-table__group-row td {
    background: var(--bg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    padding: .6rem 1.5rem;
}

.pr-check { width: 16px; height: 16px; color: var(--success); }
.pr-cross  { width: 16px; height: 16px; color: var(--dim); }


/* ── FAQ ── */
.pr-faq-section {
    padding: 5rem var(--page-padding);
}

.pr-faq-grid {
    display: block;
    max-width: 860px;
    background: var(--bg-mid);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pr-faq-item {
    border-bottom: 1px solid var(--divider);
    background: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
}

.pr-faq-item:first-child { border-top: 1px solid var(--divider); }

.pr-faq-item:hover summary { background: rgba(0,122,255,.05); color: var(--primary-l); }
.pr-faq-item[open] summary { color: var(--primary-l); }

.pr-faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 1.25rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: background .15s, color .15s;
    line-height: 1.45;
}

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

.pr-faq-item summary::after {
    content: '';
    display: block;
    width: 15px; height: 15px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596678' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform .25s ease;
}

.pr-faq-item[open] summary::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DA3FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.pr-faq-item p {
    padding: 0 1.25rem 1rem;
    font-size: .83rem;
    color: var(--muted);
    line-height: 1.75;
    margin-top: 0;
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .pr-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .pr-card--featured { top: 0; }
    .pr-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .pr-hero { padding-top: 7rem; }
    .pr-table thead th,
    .pr-table tbody td { padding: .75rem 1rem; font-size: .8rem; }
}

/* ── APP-ONLY HINT ── */
.pr-card__app-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1.25rem 0;
    padding: .65rem 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: .01em;
}

.pr-card__app-hint i[data-lucide] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: .6;
}