/* ═══════════════════════════════════════════════════════════════════


   Dark mode: ALL handled via .dark .classname - NO dark: Tailwind prefixes.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page layout ──────────────────────────────────────────────────── */
.pricing-page {
    min-height: 100vh;
    padding-top: 5rem; /* below fixed header */
}

.dark .pricing-page {
    background-color: #020617; /* slate-950 */
}

/* ── Page hero / intro ────────────────────────────────────────────── */
.pricing-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f, #0f172a);
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.pricing-hero-title {
    font-family: var(--font-display-regular), sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.pricing-hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(148, 163, 184, 1); /* slate-400 */
    max-width: 36rem;
    margin: 0 auto;
}

/* ── Grid ─────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 80rem;
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .pricing-grid {
        padding: 0 2.5rem;
    }
}

/* ── Card ─────────────────────────────────────────────────────────── */
.price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0; /* slate-200 */
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.dark .price-card {
    background: #1e293b; /* slate-800 */
    border-color: #334155; /* slate-700 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark .price-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* ── Highlighted card ─────────────────────────────────────────────── */
.price-card--highlighted {
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.2);
}

.price-card--highlighted:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.dark .price-card--highlighted {
    border-color: #60a5fa;
    box-shadow: 0 4px 24px rgba(96, 165, 250, 0.15);
}

/* ── Card header ──────────────────────────────────────────────────── */
.price-card-header {
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.dark .price-card-header {
    border-bottom-color: #334155;
}

.price-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.875rem;
}

.dark .price-card-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.price-card-title {
    font-family: var(--font-display-regular), sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.dark .price-card-title {
    color: #f1f5f9;
}

.price-card-notice {
    font-size: 0.8125rem;
    color: #64748b;
}

.dark .price-card-notice {
    color: #94a3b8;
}

.price-card-valid {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.3rem 0.625rem;
}

.dark .price-card-valid {
    color: #94a3b8;
    background: #0f172a;
    border-color: #334155;
}

/* ── Card body - price item list ──────────────────────────────────── */
.price-card-body {
    padding: 1.25rem 1.75rem;
    flex: 1;
}

.price-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Text-only row (no price on the right) */
.price-item--text {
    font-size: 0.8125rem;
    color: #64748b;
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 0.125rem;
}

.dark .price-item--text {
    color: #94a3b8;
    border-bottom-color: #334155;
}

/* Label + value row */
.price-item--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.price-item-label {
    color: #334155;
    flex: 1;
}

.dark .price-item-label {
    color: #cbd5e1;
}

.price-item-value {
    font-family: var(--font-display-regular), sans-serif;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.dark .price-item-value {
    color: #f1f5f9;
}

/* Bold row (totals, highlights) */
.price-item--bold .price-item-label,
.price-item--bold .price-item-value {
    font-weight: 700;
    color: #1e3a5f;
}

.dark .price-item--bold .price-item-label,
.dark .price-item--bold .price-item-value {
    color: #93c5fd;
}

.price-item--bold {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.625rem;
    margin-top: 0.25rem;
}

.dark .price-item--bold {
    border-top-color: #334155;
}

/* ── Card footer ──────────────────────────────────────────────────── */
.price-card-footer {
    padding: 1rem 1.75rem 1.75rem;
}

.price-card-footnote {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.6;
    white-space: pre-line; /* respects \n from DB */
    margin-bottom: 1.25rem;
}

.dark .price-card-footnote {
    color: #64748b;
}

/* ── CTA button ───────────────────────────────────────────────────── */
.price-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.price-card-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.price-card--highlighted .price-card-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.price-card--highlighted .price-card-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* ── Highlighted ribbon ───────────────────────────────────────────── */
.price-ribbon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 1rem;
    text-align: center;
}

/* ── Divider between sections ─────────────────────────────────────── */
.pricing-section-label {
    max-width: 80rem;
    text-transform: uppercase;
}

/* ── Bottom CTA section ───────────────────────────────────────────── */
.pricing-cta-section {
    background: #0f172a;
    padding: 4rem 1.5rem;
    text-align: center;
}

.pricing-cta-title {
    font-family: var(--font-display-regular), sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.pricing-cta-sub {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.pricing-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

.pricing-cta-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    color: white;
}







/* ── Card variant ───────────────────────────────────────────────────────── */

.price-card--calc {
    /* Distinct from the regular cards: amber accent, dashed border, slightly
       cooler background so it visually reads as "interactive / sample". */
    border: 2px dashed rgb(217 119 6 / 0.55);   /* amber-600 @ 55% */
    background: linear-gradient(
        to bottom,
        rgb(255 251 235 / 0.6),                  /* amber-50  */
        rgb(255 255 255 / 0.95)
    );
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .price-card--calc {
        border-color: rgb(245 158 11 / 0.55);    /* amber-500 */
        background: linear-gradient(
            to bottom,
            rgb(120 53 15 / 0.15),               /* amber-900 @ 15% */
            rgb(15 23 42 / 0.6)                  /* slate-900 */
        );
    }
}

.price-card-badge--calc {
    background: rgb(245 158 11 / 0.15);
    color: rgb(180 83 9);
    border: 1px solid rgb(217 119 6 / 0.3);
}

@media (prefers-color-scheme: dark) {
    .price-card-badge--calc {
        background: rgb(245 158 11 / 0.18);
        color: rgb(252 211 77);                  /* amber-300 */
        border-color: rgb(245 158 11 / 0.35);
    }
}


/* ── Calculable row ─────────────────────────────────────────────────────── */

.price-item--calc {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px dashed rgb(148 163 184 / 0.2);
}

.price-item--calc:last-child {
    border-bottom: 0;
}

.price-item--calc .price-item-label {
    grid-column: 1;
    font-weight: 500;
    color: rgb(15 23 42);
}

@media (prefers-color-scheme: dark) {
    .price-item--calc .price-item-label {
        color: rgb(226 232 240);
    }
}

.price-item--calc .price-item-unit {
    grid-column: 2;
    font-variant-numeric: tabular-nums;
    color: rgb(71 85 105);
    font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
    .price-item--calc .price-item-unit {
        color: rgb(148 163 184);
    }
}

.price-item--calc .price-item-mult {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.calc-times {
    color: rgb(217 119 6);
    font-weight: 600;
}

.calc-input {
    width: 4rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgb(217 119 6 / 0.4);
    border-radius: 0.375rem;
    background: white;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transition: border-color 120ms, box-shadow 120ms;
}

.calc-input:focus {
    outline: none;
    border-color: rgb(217 119 6);
    box-shadow: 0 0 0 3px rgb(217 119 6 / 0.15);
}

@media (prefers-color-scheme: dark) {
    .calc-input {
        background: rgb(15 23 42 / 0.6);
        border-color: rgb(245 158 11 / 0.45);
        color: rgb(248 250 252);
    }

    .calc-input:focus {
        border-color: rgb(245 158 11);
        box-shadow: 0 0 0 3px rgb(245 158 11 / 0.2);
    }
}

.price-item-subtotal {
    grid-column: 4;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    min-width: 5.5rem;
    text-align: right;
    color: rgb(15 23 42);
}

@media (prefers-color-scheme: dark) {
    .price-item-subtotal {
        color: rgb(226 232 240);
    }
}


/* ── Total row ──────────────────────────────────────────────────────────── */

.calc-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.875rem 0 0.5rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgb(217 119 6 / 0.4);
    font-size: 1.125rem;
}

.calc-total-label {
    font-weight: 600;
    color: rgb(15 23 42);
}

.calc-total-value {
    font-weight: 700;
    color: rgb(180 83 9);
    font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
    .calc-total-label {
        color: rgb(241 245 249);
    }
    .calc-total-value {
        color: rgb(252 211 77);
    }
}

.calc-disclaimer {
    font-size: 0.75rem;
    color: rgb(100 116 139);
    margin: 0.5rem 0 0.75rem;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    .calc-disclaimer {
        color: rgb(148 163 184);
    }
}


/* ── Info note - pricing examples disclaimer ─────────────────────────────── */

.info-note {
    border: 1px solid rgb(217 119 6 / 0.25);
    border-radius: 1.5rem;
    background: linear-gradient(
        to bottom,
        rgb(255 251 235 / 0.7),
        rgb(255 255 255 / 0.95)
    );
    padding: 2rem 2.25rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

@media (prefers-color-scheme: dark) {
    .info-note {
        border-color: rgb(245 158 11 / 0.2);
        background: linear-gradient(
            to bottom,
            rgb(245 158 11 / 0.08),
            rgb(15 23 42 / 0.4)
        );
    }
}

.info-note-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.info-note-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgb(254 243 199);          /* amber-100 */
    font-size: 1.125rem;
}

@media (prefers-color-scheme: dark) {
    .info-note-icon {
        background: rgb(245 158 11 / 0.15);
    }
}

.info-note-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(15 23 42);
    line-height: 1.3;
}

@media (prefers-color-scheme: dark) {
    .info-note-title {
        color: rgb(255 255 255);
    }
}

.info-note-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: rgb(71 85 105);                 /* slate-600 */
    line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
    .info-note-body {
        color: rgb(203 213 225);           /* slate-300 */
    }
}

.info-note-highlight {
    border-left: 3px solid rgb(217 119 6);
    background: rgb(254 243 199 / 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: rgb(30 41 59);
}

@media (prefers-color-scheme: dark) {
    .info-note-highlight {
        border-left-color: rgb(245 158 11);
        background: rgb(245 158 11 / 0.1);
        color: rgb(254 243 199);
    }
}

.info-note-contact {
    font-weight: 600;
    color: rgb(51 65 85);
}

@media (prefers-color-scheme: dark) {
    .info-note-contact {
        color: rgb(226 232 240);
    }
}

.calc-input[type=number]::-webkit-inner-spin-button,
.calc-input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: auto;
}
