/* ============================================================================
 * VIBRATO — TARIFS PAGE STYLES
 * Premium pricing comparator — institutional warmth
 * ============================================================================ */

/* ============================================================================
 * HERO — Dark background variant
 * ============================================================================ */

.tarifs-hero {
    background-color: var(--vb-primary);
    color: #FFFFFF;
    text-align: center;
    padding: var(--space-20) 0 var(--space-16);
}

.tarifs-hero__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--vb-accent);
    margin-bottom: var(--space-5);
}

.tarifs-hero__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    font-weight: var(--weight-light);
    color: #FFFFFF;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    max-width: var(--max-w-prose);
    margin-left: auto;
    margin-right: auto;
}

.tarifs-hero__subtitle {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto;
    font-weight: var(--weight-light);
}

/* ============================================================================
 * BILLING TOGGLE
 * Monthly / Annual switch with Alpine.js
 * ============================================================================ */

.tarifs-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-10) 0 var(--space-5);
}

.tarifs-toggle__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--grey-500);
    transition: color var(--duration-normal) var(--ease-default);
    cursor: pointer;
    user-select: none;
}

.tarifs-toggle__label--active {
    color: var(--grey-900);
}

.tarifs-toggle__switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--vb-ivory-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: background var(--duration-normal) var(--ease-default);
    flex-shrink: 0;
}

.tarifs-toggle__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--vb-accent);
    border-radius: 50%;
    transition: transform var(--duration-normal) var(--ease-default);
}

.tarifs-toggle__switch[data-active="true"]::after {
    transform: translateX(24px);
}

.tarifs-toggle__switch[data-active="true"] {
    background: var(--vb-ivory-dark);
}

.tarifs-toggle__badge {
    font-family: var(--font-data);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--vb-accent);
    background: rgba(168, 147, 90, 0.08);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    letter-spacing: var(--tracking-wide);
    white-space: nowrap;
}

/* ============================================================================
 * PRICING CARDS
 * ============================================================================ */

.tarifs-cards {
    padding: var(--space-5) 0 var(--space-16);
    background-color: var(--vb-signature);
}

.tarifs-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .tarifs-cards__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
        gap: var(--space-8);
    }
}

/* Single card */
.tarifs-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--duration-slow) var(--ease-default);
}

.tarifs-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: var(--shadow-md);
}

/* Featured card */
.tarifs-card--featured {
    border-color: var(--vb-accent);
    border-width: 2px;
    box-shadow: var(--shadow-md);
}

.tarifs-card--featured:hover {
    border-color: var(--vb-accent);
    box-shadow: var(--shadow-lg);
}

.tarifs-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--vb-accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-5);
    white-space: nowrap;
}

.tarifs-card__header {
    text-align: center;
    padding-bottom: var(--space-6);
    border-bottom: var(--border-subtle);
    margin-bottom: var(--space-6);
}

.tarifs-card__name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-regular);
    color: var(--grey-900);
    margin-bottom: var(--space-2);
}

.tarifs-card__tagline {
    font-size: var(--text-sm);
    color: var(--grey-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.tarifs-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
}

.tarifs-card__amount {
    font-family: var(--font-data);
    font-size: var(--text-3xl);
    font-weight: var(--weight-medium);
    color: var(--grey-900);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
}

.tarifs-card__currency {
    font-family: var(--font-data);
    font-size: var(--text-lg);
    color: var(--grey-900);
    font-weight: var(--weight-regular);
}

.tarifs-card__period {
    font-size: var(--text-sm);
    color: var(--grey-500);
    font-weight: var(--weight-regular);
}

.tarifs-card__annual-note {
    font-family: var(--font-data);
    font-size: var(--text-xs);
    color: var(--vb-accent);
    margin-top: var(--space-2);
    text-align: center;
    min-height: 1.2em;
}

/* Features list */
.tarifs-card__features {
    flex: 1;
    margin-bottom: var(--space-8);
}

.tarifs-card__features-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--grey-500);
    margin-bottom: var(--space-5);
}

.tarifs-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.tarifs-card__feature:last-child {
    border-bottom: none;
}

.tarifs-card__check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--vb-accent);
    margin-top: 2px;
}

.tarifs-card__feature-text {
    font-size: var(--text-sm);
    color: var(--grey-700);
    line-height: var(--leading-relaxed);
}

/* CTA in card */
.tarifs-card__cta {
    margin-top: auto;
    text-align: center;
}

.tarifs-card__cta .btn {
    width: 100%;
}

/* ============================================================================
 * COMPARISON TABLE
 * ============================================================================ */

.tarifs-comparison {
    background-color: #FFFFFF;
    padding: var(--space-16) 0;
}

.tarifs-comparison__header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.tarifs-comparison__header h2 {
    margin-bottom: var(--space-4);
}

.tarifs-comparison__header p {
    font-size: var(--text-md);
    color: var(--grey-600);
    line-height: var(--leading-relaxed);
}

.tarifs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.tarifs-table thead th {
    padding: var(--space-5) var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
    color: var(--grey-900);
    border-bottom: 2px solid var(--grey-900);
    text-align: center;
    vertical-align: bottom;
}

.tarifs-table thead th:first-child {
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--grey-500);
}

.tarifs-table thead th.th--featured {
    color: var(--vb-accent);
}

.tarifs-table tbody tr {
    border-bottom: var(--border-subtle);
}

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

.tarifs-table tbody td {
    padding: var(--space-4);
    font-size: var(--text-sm);
    color: var(--grey-700);
    text-align: center;
    vertical-align: middle;
}

.tarifs-table tbody td:first-child {
    text-align: left;
    font-weight: var(--weight-medium);
    color: var(--grey-800);
}

/* Category row */
.tarifs-table .table-category td {
    padding-top: var(--space-6);
    padding-bottom: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--vb-accent);
    border-bottom: 1px solid var(--vb-accent);
    background: rgba(168, 147, 90, 0.03);
}

/* Check / cross icons in table */
.table-check {
    color: var(--vb-accent);
    font-weight: var(--weight-semibold);
}

.table-cross {
    color: var(--grey-300);
}

/* Featured column highlight */
.tarifs-table .td--featured {
    background: rgba(168, 147, 90, 0.03);
}

/* ============================================================================
 * OPTIONAL MODULES / ADD-ONS
 * ============================================================================ */

.tarifs-modules {
    background-color: var(--vb-signature);
    padding: var(--space-16) 0;
}

.tarifs-modules__header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.tarifs-modules__header h2 {
    margin-bottom: var(--space-4);
}

.tarifs-modules__header p {
    font-size: var(--text-md);
    color: var(--grey-600);
    line-height: var(--leading-relaxed);
}

.tarifs-modules__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .tarifs-modules__grid {
        grid-template-columns: 1fr;
    }
}

.tarifs-module {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-6);
    transition: all var(--duration-slow) var(--ease-default);
}

.tarifs-module:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: var(--shadow-sm);
}

.tarifs-module__content {
    flex: 1;
}

.tarifs-module__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
    color: var(--grey-900);
    margin-bottom: var(--space-2);
}

.tarifs-module__desc {
    font-size: var(--text-sm);
    color: var(--grey-600);
    line-height: var(--leading-relaxed);
}

.tarifs-module__price {
    flex-shrink: 0;
    text-align: right;
}

.tarifs-module__amount {
    font-family: var(--font-data);
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    color: var(--grey-900);
    white-space: nowrap;
}

.tarifs-module__period {
    font-size: var(--text-xs);
    color: var(--grey-500);
}

/* ============================================================================
 * FAQ ACCORDION
 * ============================================================================ */

.tarifs-faq {
    background-color: #FFFFFF;
    padding: var(--space-16) 0;
}

.tarifs-faq__header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.tarifs-faq__header h2 {
    margin-bottom: var(--space-4);
}

.tarifs-faq__list {
    max-width: var(--max-w-prose);
    margin: 0 auto;
}

.tarifs-faq__item {
    border-bottom: var(--border-subtle);
}

.tarifs-faq__item:first-child {
    border-top: var(--border-subtle);
}

.tarifs-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--grey-900);
    line-height: var(--leading-normal);
    transition: color var(--duration-normal) var(--ease-default);
}

.tarifs-faq__question:hover {
    color: var(--vb-accent);
}

.tarifs-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--grey-400);
    margin-left: var(--space-4);
    transition: transform var(--duration-normal) var(--ease-default);
}

.tarifs-faq__icon--open {
    transform: rotate(180deg);
}

.tarifs-faq__answer {
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-default);
}

.tarifs-faq__answer-inner {
    padding-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--grey-700);
    line-height: var(--leading-relaxed);
}

/* ============================================================================
 * CTA SECTION
 * ============================================================================ */

.tarifs-cta {
    background-color: var(--vb-primary);
    color: #FFFFFF;
    text-align: center;
    padding: var(--space-16) 0;
}

.tarifs-cta h2 {
    color: #FFFFFF;
    margin-bottom: var(--space-5);
}

.tarifs-cta p {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.tarifs-cta .btn--gold {
    color: var(--vb-accent);
    border-color: var(--vb-accent);
}

.tarifs-cta .btn--gold:hover {
    background: var(--vb-accent);
    color: #FFFFFF;
}

/* ============================================================================
 * NAV OVERRIDES FOR TARIFS
 * Active gold nav link for Contact CTA
 * ============================================================================ */

.nav__link--gold {
    color: var(--vb-accent) !important;
    border: 1px solid var(--vb-accent);
    padding: var(--space-2) var(--space-4) !important;
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    transition: all var(--duration-normal) var(--ease-default);
}

.nav__link--gold:hover {
    background: var(--vb-accent);
    color: #FFFFFF !important;
}

.nav__link--gold::after {
    display: none;
}

/* ============================================================================
 * RESPONSIVE
 * ============================================================================ */

@media (max-width: 768px) {
    .tarifs-hero {
        padding: var(--space-16) 0 var(--space-10);
    }

    .tarifs-hero__title {
        font-size: var(--text-2xl);
    }

    .tarifs-toggle {
        padding: var(--space-8) 0 var(--space-5);
    }

    .tarifs-module {
        flex-direction: column;
        gap: var(--space-4);
    }

    .tarifs-module__price {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .tarifs-hero__subtitle {
        font-size: var(--text-sm);
    }
}

/* ============================================================================
 * PRINT
 * ============================================================================ */

@media print {
    .tarifs-hero {
        background: #FFFFFF !important;
        color: #000 !important;
    }

    .tarifs-hero__title,
    .tarifs-hero__subtitle {
        color: #000 !important;
    }

    .tarifs-cta,
    .tarifs-faq,
    .tarifs-toggle {
        display: none;
    }

    .tarifs-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* ============================================================================
 * REDUCED MOTION
 * ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .tarifs-toggle__switch::after,
    .tarifs-card,
    .tarifs-module,
    .tarifs-faq__icon,
    .tarifs-faq__answer {
        transition: none !important;
    }
}
