/* =================================================================
   IUNOS ANALYSIS & PAYMENT PAGE
   File: assets/css/analysis.css
   Version: 1.0 - Redesigned for Conversion & Brand Cohesion
   DEPENDENCY: main.css (for CSS variables and .btn-primary styles)
   ================================================================= */

/* --- 1. Global Page Styles --- */
.analysis-body {
    /* Assumes main.css has set the animated gradient on the body.
       This class is a placeholder for any body-level overrides if needed. */
    font-family: var(--font-body, 'Lora', serif);
    color: var(--iunos-ivory, #F4F4F8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* /assets/css/local-fonts.css */

/* Inter Normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter/Inter-VariableFont_opsz,wght.woff2') format('woff2');
}

/* Inter Italic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.woff2') format('woff2');
}

/* Lora Normal */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/Lora/Lora-VariableFont_wght.woff2') format('woff2');
}

/* Lora Italic */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/Lora/Lora-Italic-VariableFont_wght.woff2') format('woff2');
}

#analysis-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

h1, h2, h3 {
    font-family: var(--font-heading, 'Inter', sans-serif);
}

/* --- 2. Overlapping Teaser Section --- */
.focal-point-teaser {
    background-color: rgba(25, 25, 35, 0.3); /* Dark, semi-transparent background */
    border: 1px solid var(--iunos-warm-gray, #4A4A52); /* Subtle border */
    color: var(--iunos-ivory, #F4F4F8); /* Light text color */
    padding: 50px 60px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    margin-bottom: -100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.focal-point-teaser h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--iunos-ivory, #F4F4F8); /* Ensure heading is light */
}

.focal-point-teaser p {
    font-family: var(--font-body, 'Lora', serif);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    color: rgba(244, 244, 248, 0.9); /* Ensure paragraph text is light */
}

/* --- 3. Pricing Section --- */
.pricing-section {
    padding-top: 180px; /* Make space for the overlapping teaser */
    padding-bottom: 60px;
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: rgba(25, 25, 35, 0.3);
    border: 1px solid var(--iunos-warm-gray, #4A4A52);
    color: var(--iunos-ivory, #F4F4F8);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.pricing-card .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--iunos-rose-gold, #B9929F);
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-heading, 'Inter', sans-serif);
}

.pricing-card .description {
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes button to bottom */
    color: rgba(244, 244, 248, 0.8);
}

.pricing-card .price-note {
    font-size: 0.9rem;
    margin-top: -16px;
    margin-bottom: 24px;
    color: var(--iunos-light-gray);
}

/* --- Most Popular Card Styling --- */
.pricing-card.popular {
    border: 2px solid var(--iunos-rose-gold, #B9929F);
    transform: scale(1.05);
}
.pricing-card.popular:hover {
     transform: scale(1.05) translateY(-5px);
}


.pricing-card .popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--iunos-rose-gold, #B9929F);
    color: var(--iunos-deep-space, #191923);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading, 'Inter', sans-serif);
}

/* --- Button Alignment (Inherits .btn-primary from main.css) --- */
.pricing-card .btn-primary.btn-secondary {
    background-color: transparent;
    border-color: var(--iunos-warm-gray);
    color: var(--iunos-ivory);
}

.pricing-card .btn-primary.btn-secondary:hover {
    background-color: var(--iunos-warm-gray);
    color: var(--iunos-ivory);
}


/* --- 4. Trust & Security Section --- */
.trust-security-section {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid var(--iunos-warm-gray, #4A4A52);
    border-bottom: 1px solid var(--iunos-warm-gray, #4A4A52);
    margin: 0 auto 60px auto;
}

.stripe-logo-wrapper {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}
.stripe-logo-wrapper svg path {
    fill: var(--iunos-ivory);
}

.payment-trust-statement {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
    color: rgba(244, 244, 248, 0.9);
}
.payment-trust-statement strong {
     color: var(--iunos-rose-gold, #B9929F);
     font-weight: 600;
}

/* Re-using .trust-badges from main.css, with local overrides if needed */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-top: 2.5rem;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    color: var(--iunos-rose-gold);
    font-size: 1rem;
    opacity: 0.9;
}
.badge-item .material-symbols-outlined {
    font-size: 1.5rem;
}


/* --- 5. FAQ Section --- */
.faq-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Using the exact styles from main.css for .custom-faq for consistency */
.custom-faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--iunos-warm-gray); }
.custom-faq .accordion-button { font-size: 1.2rem; color: var(--iunos-ivory); background: transparent; padding: 1.5rem 0; font-family: var(--font-heading); font-weight: 600; }
.custom-faq .accordion-button:not(.collapsed) { color: var(--iunos-rose-gold); box-shadow: none; }
.custom-faq .accordion-button:focus { box-shadow: none; }
.custom-faq .accordion-body { padding: 0 0 1.5rem 0; color: rgba(244, 244, 248, 0.8);}
.custom-faq .accordion-button::after {
    content: '+'; font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 300;
    background-image: none; transform: rotate(0); transition: transform 0.3s ease; color: var(--iunos-rose-gold); line-height: 1;
}
.custom-faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }


/* --- 6. Responsive Design --- */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .pricing-card.popular {
        transform: scale(1); /* Disable scaling on mobile stack */
        order: -1; /* Move the most popular item to the top */
    }
}

@media (max-width: 768px) {
    #analysis-page {
        padding: 40px 16px;
    }
    .focal-point-teaser {
        padding: 40px 24px;
        margin-bottom: -60px; /* Reduce overlap on mobile */
    }
    .focal-point-teaser h1 {
        font-size: 2rem;
    }
    .pricing-section {
        padding-top: 120px; /* Adjust padding for reduced overlap */
    }
    .pricing-section h2 {
        font-size: 2.2rem;
    }
    .badge-item {
        font-size: 0.9rem;
    }
}

/* --- Additions for Dynamic Pricing --- */

.discount-banner {
    background-color: #e0f2fe; /* Light blue */
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 0 auto 40px;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    font-family: var(--font-heading, 'Inter', sans-serif);
}

.discount-banner .material-symbols-outlined {
    font-size: 2rem;
    color: #0ea5e9;
}

.discount-banner p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px; /* Prevents layout shift when prices appear/disappear */
}

.pricing-card .price {
    margin-bottom: 0;
}

.price.final-price {
    font-size: 2.5rem;
    color: #16a34a; /* Green for sale price */
    line-height: 1;
}

.price.original-price {
    font-size: 1.25rem;
    color: #71717a;
    line-height: 1;
}

.product-discount-banner {
    background-color: rgba(99, 102, 241, 0.1); /* A subtle highlight color */
    color: #c4b5fd; /* A lighter, premium-looking text color */
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin: -4px 0 16px 0; /* Positioned nicely between title and price */
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-discount-banner p {
    margin: 0;
    line-height: 1.4;
}