/* ==========================================================================
   PRESELL PAGE STYLES v5.1 - Sierra Madre Emergency Bivvy Comparison
   Generated: 2026-01-21
   Theme: Sierra Madre Brand (Extracted from sierramadreresearch.com)
   Page Type: comparison
   Strategy: benefit_led
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Brand Colors (Sierra Madre Theme) */
    --color-primary: #59FFD9;
    --color-secondary: #13475A;
    --color-accent: #F6A429;
    --color-background: #FFFFFF;
    --color-surface: #F5F5F5;

    /* Text Colors */
    --color-text: #282828;
    --color-text-secondary: #4A4A4A;
    --color-text-muted: #6B6B6B;
    --color-text-inverse: #FFFFFF;

    /* CTA Colors */
    --color-cta: #59FFD9;
    --color-cta-text: #13475A;
    --color-cta-hover: #4DE5C5;

    /* Semantic Colors */
    --color-success: #2E9E7B;
    --color-trust: #2E9E7B;
    --color-warning: #F6A429;
    --color-urgency: #DE2A2A;
    --color-social-proof: #59FFD9;

    /* Comparison Page Overrides */
    --color-comparison-bg: #F0FDF4;
    --color-winner-highlight: #D1FAE5;
    --color-winner-badge: #059669;

    /* Typography */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-regular: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Scale */
    --text-hero: clamp(40px, 8vw, 56px);
    --text-h1: clamp(32px, 6vw, 48px);
    --text-h2: clamp(28px, 5vw, 36px);
    --text-h3: clamp(24px, 4vw, 30px);
    --text-h4: clamp(20px, 3vw, 24px);
    --text-body-large: clamp(18px, 2.5vw, 20px);
    --text-body: 18px;
    --text-body-small: 16px;
    --text-caption: 14px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --space-5xl: 120px;

    /* Layout */
    --container-max-width: 1600px;
    --content-max-width: 800px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* Focus Ring */
    --focus-ring-color: #59FFD9;
    --focus-ring-width: 2px;
    --focus-ring-offset: 2px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
    margin: 0 0 1.25rem 0;
}

strong {
    font-weight: var(--font-weight-bold);
}

em {
    font-style: italic;
}

a {
    color: var(--color-secondary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   4. LAYOUT CONTAINERS
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--narrow {
    max-width: var(--content-max-width);
}

section {
    padding: var(--space-3xl) 0;
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.section__subtitle {
    text-align: center;
    font-size: var(--text-body-large);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: var(--space-4xl) var(--container-padding);
    background: linear-gradient(135deg, rgba(19, 71, 90, 0.95), rgba(46, 158, 123, 0.9)),
                url('assets/images/hero.webp') center/cover no-repeat;
    color: var(--color-text-inverse);
}

.hero__content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: var(--text-hero);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
}

.hero__subheadline {
    font-size: var(--text-body-large);
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
}

/* ==========================================================================
   6. BUTTONS & CTAs
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 16px 48px;
    font-family: var(--font-heading);
    font-size: var(--text-body);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1.4;
}

.btn--warm,
.btn--primary {
    background-color: var(--color-cta);
    color: var(--color-cta-text);
}

.btn--warm:hover,
.btn--primary:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(89, 255, 217, 0.25);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn--secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

.btn--large {
    padding: 20px 56px;
    font-size: var(--text-body-large);
}

.btn:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* ==========================================================================
   7. TRUST BAR
   ========================================================================== */

.trust-bar {
    background-color: var(--color-surface);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.trust-bar__items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
}

.trust-badge__icon {
    font-size: 20px;
}

/* ==========================================================================
   8. QUICK VERDICT / QUICK PICKS
   ========================================================================== */

.quick-verdict {
    background: var(--color-comparison-bg);
}

.quick-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.quick-pick {
    background: var(--color-background);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.quick-pick--winner {
    border-color: var(--color-winner-badge);
    background: var(--color-winner-highlight);
    position: relative;
}

.quick-pick--winner::before {
    content: "✓";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--color-winner-badge);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quick-pick__label {
    display: inline-block;
    font-size: var(--text-caption);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.quick-pick__product {
    font-size: var(--text-h4);
    margin-bottom: var(--space-sm);
}

.quick-pick__specs {
    font-size: var(--text-body);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.quick-pick__reason {
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
}

.quick-verdict__text {
    font-size: var(--text-body-large);
    text-align: center;
    max-width: 800px;
    margin: var(--space-2xl) auto 0;
    padding: var(--space-xl);
    background: var(--color-background);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-winner-badge);
}

/* ==========================================================================
   9. RICH TEXT / INTRO SECTION
   ========================================================================== */

.intro-section {
    background: var(--color-background);
}

.rich-text p {
    margin-bottom: 1.5rem;
}

.rich-text strong {
    color: var(--color-secondary);
}

/* ==========================================================================
   10. COMPARISON TABLES
   ========================================================================== */

.comparison-section {
    background: var(--color-background);
}

.comparison-section--alt {
    background: var(--color-surface);
}

.comparison-table {
    overflow-x: auto;
    margin-bottom: var(--space-2xl);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: var(--color-secondary);
    color: var(--color-text-inverse);
}

.comparison-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: var(--font-weight-bold);
    font-size: var(--text-body-small);
}

.comparison-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.winner-row {
    background: var(--color-winner-highlight);
}

.winner-row td {
    font-weight: var(--font-weight-semibold);
}

.winner-badge {
    display: inline-block;
    background: var(--color-winner-badge);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-caption);
    font-weight: var(--font-weight-bold);
    margin-left: var(--space-sm);
}

.winner-cell {
    background: var(--color-winner-highlight);
    font-weight: var(--font-weight-bold);
}

.summary-row {
    background: var(--color-surface);
    font-weight: var(--font-weight-bold);
}

.comparison-analysis {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
}

.comparison-analysis p {
    margin-bottom: 1rem;
}

.winner-text {
    font-weight: var(--font-weight-bold);
    color: var(--color-winner-badge);
    font-size: var(--text-body-large);
    margin-top: var(--space-lg);
}

/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */

.testimonial-inline {
    margin: var(--space-2xl) auto;
    max-width: 700px;
    padding: var(--space-xl);
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
}

.testimonial-inline__quote {
    font-style: italic;
    font-size: var(--text-body);
    margin-bottom: var(--space-md);
}

.testimonial-inline__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-body-small);
}

.testimonial-inline__stars {
    color: var(--color-accent);
}

.testimonial-inline__name {
    font-weight: var(--font-weight-semibold);
}

.testimonials-section {
    background: var(--color-surface);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card__rating {
    color: var(--color-accent);
    font-size: 18px;
    margin-bottom: var(--space-md);
}

.testimonial-card__quote {
    font-size: var(--text-body-small);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-card__author {
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   12. WHO SHOULD SECTION
   ========================================================================== */

.who-should-section {
    background: var(--color-background);
}

.decision-grid {
    display: grid;
    gap: var(--space-xl);
}

.decision-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
}

.decision-card--winner {
    background: var(--color-winner-highlight);
    border-color: var(--color-winner-badge);
}

.decision-card--avoid {
    background: rgba(222, 42, 42, 0.05);
    border-color: var(--color-urgency);
}

.decision-card h3 {
    margin-bottom: var(--space-lg);
    color: var(--color-secondary);
}

.decision-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.decision-card li {
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-sm);
}

.decision-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.decision-card--avoid li::before {
    content: "✗";
    color: var(--color-urgency);
}

/* ==========================================================================
   13. VALUE STACK
   ========================================================================== */

.value-stack-section {
    background: var(--color-surface);
}

.value-stack {
    margin-bottom: var(--space-2xl);
}

.value-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.value-item:last-child {
    border-bottom: none;
}

.value-item__icon {
    flex-shrink: 0;
    font-size: 20px;
}

.value-item__text {
    font-size: var(--text-body);
    line-height: 1.6;
}

.impact-bonus {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-success));
    color: var(--color-text-inverse);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--space-2xl) 0;
}

.impact-bonus h3 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.value-summary {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--color-background);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-winner-badge);
    margin-top: var(--space-2xl);
}

.value-summary__total {
    font-size: var(--text-body-large);
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: var(--space-sm);
}

.value-summary__price {
    font-size: var(--text-h2);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg);
}

.value-summary__original {
    color: var(--color-text-muted);
    font-size: var(--text-body);
    text-decoration: line-through;
}

.value-summary__guarantees {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 0 0;
}

.value-summary__guarantees li {
    margin-bottom: var(--space-sm);
    font-size: var(--text-body-small);
}

/* ==========================================================================
   14. GUARANTEE SECTION
   ========================================================================== */

.guarantee-section {
    background: var(--color-background);
}

.guarantee-box {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--color-primary);
}

.guarantee-box__icon {
    font-size: 64px;
    margin-bottom: var(--space-lg);
}

.guarantee-box__headline {
    margin-bottom: var(--space-xl);
}

.guarantee-list {
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guarantee-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.guarantee-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   15. CTA SECTIONS
   ========================================================================== */

.cta-section {
    text-align: center;
    margin: var(--space-2xl) 0;
}

.cta-urgency {
    margin-top: var(--space-md);
    font-size: var(--text-body-small);
    color: var(--color-text-muted);
}

.final-cta-section {
    background: var(--color-comparison-bg);
    text-align: center;
}

.final-cta__subheadline {
    font-size: var(--text-body-large);
    max-width: 700px;
    margin: 0 auto var(--space-lg) auto;
}

/* ==========================================================================
   16. FAQ SECTION
   ========================================================================== */

.faq-section {
    background: var(--color-background);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: var(--text-body);
    font-weight: var(--font-weight-semibold);
    text-align: left;
    cursor: pointer;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.faq-item__question:hover {
    color: var(--color-secondary);
}

.faq-item__icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base) ease;
}

.faq-item__question[aria-expanded="true"] + .faq-item__answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

/* ==========================================================================
   17. STICKY CTA
   ========================================================================== */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    padding: var(--space-md) var(--container-padding);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   18. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll-reveal="fade-in"] {
    transform: none;
}

[data-scroll-reveal="scale-up"] {
    transform: scale(0.9);
}

[data-scroll-reveal="scale-up"].revealed {
    transform: scale(1);
}

/* ==========================================================================
   19. ACCESSIBILITY
   ========================================================================== */

*:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   20. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 999px) {
    :root {
        --container-padding: 20px;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        min-height: 60vh;
        padding: var(--space-2xl) var(--container-padding);
    }

    .trust-bar__items {
        gap: var(--space-lg);
    }

    .quick-picks {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: var(--text-body-small);
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 740px) {
    :root {
        --text-body: 16px;
        --text-body-small: 14px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .btn--large {
        padding: 16px 40px;
        font-size: 18px;
    }

    .trust-bar__items {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .comparison-table table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm);
    }

    .value-item {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ==========================================================================
   21. PRINT STYLES
   ========================================================================== */

@media print {
    .sticky-cta,
    .btn {
        display: none;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}
