/*
 * Color system rationale:
 * Coral #E15A4C is warm enough to feel human, saturated enough to signal action,
 * and avoids the alarm of pure red. It tests well as a CTA color in service categories
 * that sell expertise (consulting, coaching, legal). Cream #FBFAF7 carries trust and
 * reduces visual fatigue versus pure white. Dark slate #1F2937 reads as editorial,
 * not corporate. Together the palette signals: hand-crafted, calm, premium.
 */

:root {
    --cr-coral: #E15A4C;
    --cr-coral-hover: #D04A3C;
    --cr-coral-light: #FFF5F3;
    --cr-coral-shadow: rgba(225,90,76,0.28);
    --cr-cream: #FBFAF7;
    --cr-dark: #1F2937;
    --cr-grey: #6B7280;
    --cr-grey-light: #9CA3AF;
    --cr-border: #E5E7EB;
    --cr-white: #FFFFFF;
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

.cr-font { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif; }
.cr-eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cr-coral);
}
.cr-headline {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--cr-dark);
}
.cr-body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #374151;
}

/* ========== BUTTONS ========== */
.cr-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cr-coral);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    box-shadow: 0 6px 18px var(--cr-coral-shadow);
    transition: all 0.2s ease-out;
    text-decoration: none;
}
.cr-btn-primary:hover {
    background: var(--cr-coral-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--cr-coral-shadow);
    color: white;
    text-decoration: none;
}
.cr-btn-primary:active { transform: translateY(0); }
.cr-btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(225,90,76,0.3);
}

.cr-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--cr-dark);
    border: 1.5px solid var(--cr-border);
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease-out;
    text-decoration: none;
}
.cr-btn-outline:hover {
    border-color: var(--cr-coral);
    color: var(--cr-coral);
    text-decoration: none;
}

/* ========== POPUP MODAL ========== */
.cr-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.28s ease-out;
}
.cr-popup-backdrop.cr-visible { opacity: 1; }
.cr-popup-backdrop.cr-hiding { opacity: 0; transition-duration: 0.18s; transition-timing-function: ease-in; }

.cr-popup {
    background: var(--cr-cream);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    transform: scale(0.96);
    transition: transform 0.28s ease-out;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.cr-popup-backdrop.cr-visible .cr-popup { transform: scale(1); }
.cr-popup-backdrop.cr-hiding .cr-popup { transform: scale(0.96); }

.cr-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.8);
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    transition: all 0.2s;
}
.cr-popup-close:hover { background: white; color: var(--cr-dark); }

.cr-popup-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.cr-popup-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cr-coral) 0%, #C9443A 100%);
    z-index: 0;
}
.cr-popup-image-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cr-popup-image-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
}

.cr-popup-content {
    padding: 2rem 2rem 1.75rem;
}

.cr-popup-proofs {
    display: flex;
    gap: 1.25rem;
    margin: 1.25rem 0 1.5rem;
    flex-wrap: wrap;
}
.cr-popup-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cr-dark);
    font-family: 'Manrope', sans-serif;
}
.cr-popup-proof i {
    color: var(--cr-coral);
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    background: var(--cr-coral-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-popup-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.cr-popup-actions .cr-btn-primary { width: 100%; }
.cr-popup-dismiss {
    background: none;
    border: none;
    color: var(--cr-grey);
    font-size: 0.8125rem;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.cr-popup-dismiss:hover { color: var(--cr-dark); text-decoration: underline; }

/* ========== PRICING PAGE ========== */
.cr-page { background: var(--cr-white); }

/* Trust strip */
.cr-trust-strip {
    background: var(--cr-cream);
    border-bottom: 1px solid #F3F0EB;
    padding: 10px 1rem;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cr-grey);
    letter-spacing: 0.01em;
}

/* Hero */
.cr-hero {
    padding: 4rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.cr-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.cr-hero .cr-headline { font-size: 2.25rem; margin: 0.75rem 0 1rem; }
.cr-hero .cr-body { margin-bottom: 2rem; }

.cr-stats-row {
    display: flex;
    gap: 0;
}
.cr-stat {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid var(--cr-border);
}
.cr-stat:last-child { border-right: none; }
.cr-stat-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--cr-coral);
    line-height: 1.1;
}
.cr-stat-label {
    font-size: 0.75rem;
    color: var(--cr-grey);
    margin-top: 4px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

.cr-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cr-hero-illustration {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: var(--cr-cream);
    border-radius: 16px;
    border: 1px solid var(--cr-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.cr-hero-illustration::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--cr-coral);
    opacity: 0.06;
    border-radius: 50%;
}
.cr-hero-doc-line {
    width: 80%;
    height: 8px;
    border-radius: 4px;
    background: #E5E7EB;
}
.cr-hero-doc-line.cr-highlight {
    background: linear-gradient(90deg, var(--cr-coral-light), rgba(225,90,76,0.15));
    border-left: 3px solid var(--cr-coral);
}
.cr-hero-doc-line.short { width: 55%; }

/* Section spacing */
.cr-section {
    padding: 3rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Configurator Card */
.cr-configurator {
    max-width: 720px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--cr-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
.cr-configurator-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--cr-dark);
    margin-bottom: 4px;
}
.cr-configurator-sub {
    font-size: 0.8125rem;
    color: var(--cr-grey);
    margin-bottom: 1.5rem;
    font-family: 'Manrope', sans-serif;
}

/* Quick-pick chips */
.cr-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.cr-chips::-webkit-scrollbar { display: none; }
.cr-chip {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    border: 1.5px solid var(--cr-border);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-out;
    font-family: 'Manrope', sans-serif;
    position: relative;
}
.cr-chip:hover { border-color: var(--cr-coral); }
.cr-chip.cr-active {
    border-color: var(--cr-coral);
    background: var(--cr-coral-light);
}
.cr-chip-credits {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--cr-dark);
}
.cr-chip-price {
    font-size: 0.75rem;
    color: var(--cr-grey);
    margin-top: 2px;
}
.cr-chip-label {
    font-size: 0.6875rem;
    color: var(--cr-grey-light);
    margin-top: 2px;
}
.cr-chip-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: var(--cr-coral);
    color: white;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Slider */
.cr-slider-wrap { margin-bottom: 1.5rem; }
.cr-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--cr-border);
    outline: none;
    margin: 1rem 0;
}
.cr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--cr-coral);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.cr-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.cr-slider:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(225,90,76,0.3);
}
.cr-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--cr-coral);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.cr-slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-top: -4px;
}
.cr-slider-tick {
    font-size: 0.625rem;
    color: var(--cr-grey-light);
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

/* Price display */
.cr-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.cr-price-credits {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--cr-dark);
    line-height: 1;
}
.cr-price-credits span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cr-grey);
    margin-left: 4px;
}
.cr-price-usd {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--cr-coral);
    line-height: 1;
}
.cr-price-rate {
    font-size: 0.8125rem;
    color: var(--cr-grey);
    font-family: 'Manrope', sans-serif;
}
.cr-savings {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    color: #065F46;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Add-ons */
.cr-addons-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cr-dark);
    margin-bottom: 1.25rem;
    text-align: center;
}
.cr-addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}
.cr-addon {
    border: 1.5px solid var(--cr-border);
    border-radius: 16px;
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease-out;
    position: relative;
}
.cr-addon:hover { border-color: #D1D5DB; }
.cr-addon.cr-selected {
    border-color: var(--cr-coral);
    border-width: 2px;
    background: var(--cr-coral-light);
}
.cr-addon-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--cr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.75rem;
    color: white;
}
.cr-addon.cr-selected .cr-addon-check {
    background: var(--cr-coral);
    border-color: var(--cr-coral);
}
.cr-addon-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cr-dark);
    margin-bottom: 4px;
    padding-right: 2rem;
}
.cr-addon-price {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--cr-coral);
    margin-bottom: 0.75rem;
}
.cr-addon-body {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cr-grey);
    font-family: 'Manrope', sans-serif;
}

/* Order Summary - Desktop sticky */
.cr-summary-wrap {
    position: sticky;
    top: 80px;
}
.cr-summary {
    background: white;
    border: 1px solid var(--cr-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
.cr-summary-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cr-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F3F4F6;
}
.cr-summary-line {
    display: flex;
    justify-content: space-between;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    color: var(--cr-dark);
    padding: 6px 0;
}
.cr-summary-line.cr-muted { color: var(--cr-grey); font-size: 0.8125rem; }
.cr-summary-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--cr-dark);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 2px solid var(--cr-dark);
}
.cr-summary .cr-btn-primary { width: 100%; margin-top: 1rem; }
.cr-summary-guarantee {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--cr-grey-light);
    margin-top: 0.75rem;
    font-family: 'Manrope', sans-serif;
}

/* Flexible banner */
.cr-flex-banner {
    background: var(--cr-cream);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}
.cr-flex-banner-icon {
    width: 48px;
    height: 48px;
    background: var(--cr-coral-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cr-coral);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.cr-flex-banner-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--cr-dark);
}
.cr-flex-banner-sub {
    font-size: 0.8125rem;
    color: var(--cr-grey);
    margin-top: 4px;
    font-family: 'Manrope', sans-serif;
}

/* Testimonials */
.cr-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.cr-testimonial {
    border: 1px solid var(--cr-border);
    border-radius: 16px;
    padding: 1.5rem;
    background: white;
}
.cr-testimonial-quote {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--cr-dark);
    font-style: italic;
    margin-bottom: 1rem;
}
.cr-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cr-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cr-coral);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
}
.cr-testimonial-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--cr-dark);
}
.cr-testimonial-role {
    font-size: 0.6875rem;
    color: var(--cr-grey);
    font-family: 'Manrope', sans-serif;
}
.cr-testimonial-stars {
    margin-top: 0.75rem;
    color: #F59E0B;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* FAQ */
.cr-faq { max-width: 720px; margin: 0 auto; }
.cr-faq-item {
    border-bottom: 1px solid #F3F4F6;
}
.cr-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--cr-dark);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cr-faq-q:hover { color: var(--cr-coral); }
.cr-faq-q i { transition: transform 0.2s; color: var(--cr-grey-light); font-size: 0.75rem; }
.cr-faq-q.cr-open i { transform: rotate(180deg); }
.cr-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease-out;
}
.cr-faq-a-inner {
    padding: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--cr-grey);
    font-family: 'Manrope', sans-serif;
}

/* Footer CTA */
.cr-footer-cta {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    font-family: 'Manrope', sans-serif;
}
.cr-footer-cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cr-dark);
    margin-bottom: 1rem;
}

/* Mobile bottom sheet summary */
.cr-mobile-summary {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--cr-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 9999;
    padding: 0.75rem 1rem;
    transition: max-height 0.28s ease-out;
}
.cr-mobile-summary-collapsed {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cr-mobile-summary-total {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--cr-dark);
}
.cr-mobile-summary .cr-btn-primary {
    padding: 10px 20px;
    font-size: 0.8125rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .cr-popup { max-width: calc(100vw - 48px); }
    .cr-popup-content { padding: 1.5rem; }
    .cr-headline { font-size: 1.375rem; }
    .cr-popup-proofs { flex-direction: column; gap: 0.75rem; }

    .cr-hero { padding: 2rem 1rem 1.5rem; }
    .cr-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .cr-hero .cr-headline { font-size: 1.625rem; }
    .cr-hero-visual { display: none; }
    .cr-stats-row { flex-direction: row; }
    .cr-stat { padding: 0 0.5rem; }
    .cr-stat-value { font-size: 1.375rem; }

    .cr-section { padding: 2rem 1rem; }
    .cr-configurator { padding: 1.25rem; }
    .cr-chips { flex-wrap: nowrap; }
    .cr-chip { min-width: 120px; flex: 0 0 auto; }
    .cr-price-credits, .cr-price-usd { font-size: 1.75rem; }

    .cr-addons-grid { grid-template-columns: 1fr; }

    .cr-summary-desktop { display: none; }
    .cr-mobile-summary { display: block; }

    .cr-flex-banner { flex-direction: column; text-align: center; }

    .cr-testimonials-grid { grid-template-columns: 1fr; }

    .cr-slider::-webkit-slider-thumb { width: 32px; height: 32px; }
    .cr-slider::-moz-range-thumb { width: 32px; height: 32px; }
}

@media (min-width: 769px) {
    .cr-mobile-summary { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cr-popup-backdrop,
    .cr-popup,
    .cr-faq-a,
    .cr-btn-primary,
    .cr-btn-outline,
    .cr-chip,
    .cr-addon {
        transition: none !important;
    }
}
