/* ===================================
   PRICING PAGE
   Free / Weekly / Yearly plan cards, Yearly is visually
   dominant (teal gradient border + lift), compact Free vs
   Premium comparison table. Tokens only — themes automatically
   handled by :root / [data-theme] variables in style.css.
   =================================== */

/* ---- Plan grid ---- */
.pr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ---- Card base ---- */
.pr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border-radius: 1.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    transition: transform var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out);
}

.pr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-strong);
}

@media (min-width: 768px) {
    .pr-card { padding: 2.25rem 2rem; }
}

/* ---- Yearly: dominant card ---- */
.pr-card--yearly {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary)) padding-box,
        linear-gradient(135deg, var(--gradient-accent-from), var(--gradient-accent-to)) border-box;
    box-shadow: var(--shadow-xl);
}

.pr-card--yearly:hover {
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(26, 107, 106, 0.25);
}

@media (min-width: 768px) {
    .pr-card--yearly {
        transform: translateY(-0.75rem);
    }
    .pr-card--yearly:hover {
        transform: translateY(-1rem);
    }
}

/* ---- Best value badge ---- */
.pr-badge {
    position: absolute;
    top: -0.9rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1.125rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gradient-accent-from), var(--gradient-accent-to));
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(26, 107, 106, 0.4);
    white-space: nowrap;
}

/* ---- Card head ---- */
.pr-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.pr-card-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 300;
    min-height: 1.25rem;
}

/* ---- Price ---- */
.pr-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 1.25rem;
}

.pr-price-from {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.pr-price-value {
    font-family: 'Sora', sans-serif;
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1;
}

.pr-price-period {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.pr-price-note {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: var(--color-accent);
    font-weight: 500;
    line-height: 1.4;
}

.pr-price-note--muted {
    color: var(--color-text-subtle);
    font-weight: 300;
}

/* ---- Features ---- */
.pr-features {
    list-style: none;
    margin: 1.75rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.pr-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

.pr-features iconify-icon {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ---- CTA buttons ---- */
.pr-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: auto;
}

.pr-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out), background-color var(--duration-ui) var(--ease-out);
}

.pr-cta--outline {
    border: 1px solid var(--color-border-hover);
    color: var(--color-text-primary);
    background: transparent;
}

.pr-cta--outline:hover {
    background: var(--color-surface-hover);
}

.pr-cta--solid {
    background: var(--color-surface-hover);
    color: var(--color-text-primary);
    border: 1px solid transparent;
}

.pr-cta--solid:hover {
    background: var(--color-surface-active);
    transform: translateY(-1px);
}

.pr-cta--primary {
    background: linear-gradient(135deg, var(--gradient-accent-from), var(--gradient-accent-to));
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(26, 107, 106, 0.3);
}

.pr-cta--primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 24px rgba(26, 107, 106, 0.4);
}

/* ---- Trust line ---- */
.pr-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.pr-trust iconify-icon {
    color: var(--color-accent-secondary);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

/* ---- Feature comparison table ---- */
.pr-compare-wrapper {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    overflow-x: auto;
}

.pr-compare-wrapper::-webkit-scrollbar { height: 6px; }
.pr-compare-wrapper::-webkit-scrollbar-track { background: var(--color-surface); }
.pr-compare-wrapper::-webkit-scrollbar-thumb { background: var(--color-surface-strong); border-radius: 3px; }

.pr-compare-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.pr-compare-table th,
.pr-compare-table td {
    padding: 0.9375rem 1.25rem;
    text-align: start;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    font-weight: 300;
}

.pr-compare-table thead th {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.pr-compare-table th:not(:first-child),
.pr-compare-table td:not(:first-child) {
    text-align: center;
}

.pr-compare-table td:first-child,
.pr-compare-table th:first-child {
    color: var(--color-text-primary);
    font-weight: 400;
}

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

.pr-compare-table .pr-col-premium {
    color: var(--color-accent);
    font-weight: 600;
}

.pr-check {
    color: var(--color-accent-secondary);
    font-size: 1.125rem;
    vertical-align: middle;
}

.pr-dash {
    color: var(--color-text-subtle);
    font-size: 1.125rem;
    vertical-align: middle;
}

.pr-compare-note {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
    font-weight: 300;
    text-align: center;
}

/* ---- Section heading ---- */
.pr-section-title {
    font-family: 'Sora', sans-serif;
}

/* ---- Screen-reader-only text for the check/dash icon cells in the
   comparison table. Defined locally: `.sr-only` is referenced by a couple
   of other templates but is not present in the compiled tailwind.min.css
   (a pre-existing gap outside this file's scope), so this page defines its
   own copy of the standard utility rather than depending on it. ---- */
.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;
}

/* Reduced motion: the site-wide `*` rule in style.css (transition-duration /
   animation-duration: 0.01ms !important) already applies to every class on
   this page, so hover transitions become instant. The static translateY
   lift on .pr-card--yearly is a layout choice (visual hierarchy), not
   motion, and is intentionally left untouched here. */
