/*
 * Index Page Layout System
 * Strict 16px container, 8/12/16/24/32px spacing, 16px card radius
 */

/* =============================================================================
   Override Container with strict 16px padding
============================================================================= */

.container {
    padding: 0 16px !important;
}


/* =============================================================================
   Sticky Mobile Buy Bar
============================================================================= */

.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #E5E5E7;
    padding: 12px 16px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.sticky-bar__product {}

.sticky-bar__btn {
    background: #1D1D1F;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sticky-bar__secure {
    font-size: 11px;
    color: #A1A1A6;
    text-align: center;
    margin-top: 4px;
}

@media (min-width: 900px) {
    .sticky-bar {
        display: none;
    }
}


/* =============================================================================
   Hero - Centered with strict spacing
============================================================================= */

.hero {
    padding-top: calc(64px + 32px);
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .hero {
        padding-top: calc(64px + 64px);
        padding-bottom: 80px;
        min-height: 80vh;
        display: flex;
        align-items: center;
    }
}

.hero__content {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .hero__content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 64px;
    }
}

.hero__text {
    text-align: center;
}

@media (min-width: 768px) {
    .hero__text {
        text-align: left;
        order: 1;
    }

    .hero__image {
        order: 2;
    }
}

.hero__badge {
    display: inline-block;
    padding: 6px 12px;
    background: #E8F9ED;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.hero__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__title strong {
    color: #000;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 40px;
    }
}

.hero__subtitle {
    font-size: 16px;
    color: #6E6E73;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero__subtitle strong {
    color: #1D1D1F;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero__cta {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 24px;
    }
}

.hero__trust {
    font-size: 12px;
    color: #A1A1A6;
    margin-bottom: 24px;
}

.hero__bullets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

@media (min-width: 768px) {
    .hero__bullets {
        justify-content: flex-start;
    }
}

.hero__bullet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6E6E73;
}

.hero__bullet svg {
    width: 14px;
    height: 14px;
    color: #34C759;
    flex-shrink: 0;
}

.hero__image {
    display: flex;
    justify-content: center;
}

.hero__image img {
    max-height: 360px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .hero__image img {
        max-height: 480px;
    }
}


/* =============================================================================
   Proof Strip - Chips (height 36px, pill, 8px gap)
============================================================================= */

.proof-strip {
    background: #F5F5F7;
    padding: 24px 0;
    text-align: center;
}

.proof-strip__title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1D1D1F;
}

.proof-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.proof-chip {
    background: #fff;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid #E5E5E7;
    height: 36px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.proof-strip__note {
    font-size: 11px;
    color: #A1A1A6;
}


/* =============================================================================
   Section Headers - left-aligned to container edge
============================================================================= */

.section-badge {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A1A1A6;
    margin-bottom: 8px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #000;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

.section-subtitle {
    font-size: 15px;
    color: #6E6E73;
    line-height: 1.5;
    margin-bottom: 24px;
}

.section-subtitle strong {
    color: #1D1D1F;
}


/* =============================================================================
   Why Cards - horizontal icon+text on mobile, vertical on desktop
============================================================================= */

.why-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .why-cards {
        flex-direction: row;
        gap: 16px;
    }
}

.why-card {
    background: #fff;
    border: 1px solid #E5E5E7;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .why-card {
        flex: 1;
        flex-direction: column;
    }
}

.why-card__content {
    flex: 1;
    min-width: 0;
    /* Prevents flex overflow */
}

.why-card__icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #F5F5F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card__icon svg {
    width: 18px;
    height: 18px;
    color: #1D1D1F;
}

.why-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
}

.why-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #6E6E73;
    margin: 0;
}

.why-card p strong {
    color: #1D1D1F;
}

.why-closer {
    font-size: 15px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
}

.why-closer strong {
    color: #000;
}


/* =============================================================================
   Results Timeline - two-column grid (64px label | fluid text)
============================================================================= */

/* =============================================================================
   Results Timeline - vertical connected list
============================================================================= */

.results-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Remove gap, handle spacing in items for continuous line */
    margin-bottom: 16px;
    position: relative;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Continuous vertical line */
.results-timeline::before {
    content: '';
    position: absolute;
    left: 52px;
    /* Center of 104px column */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E5E7;
    z-index: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 16px;
    align-items: start;
    padding-bottom: 24px;
    /* Space between items */
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    /* Above the line */
    padding-top: 2px;
    /* Visual alignment with title */
}

.timeline-marker__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6E6E73;
    background: #fff;
    border: 1px solid #E5E5E7;
    border-radius: 4px;
    padding: 4px 8px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Slight pop */
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #000;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #6E6E73;
    margin: 0;
}

.results-support {
    font-size: 13px;
    color: #A1A1A6;
    font-style: italic;
}

.results-support strong {
    font-style: normal;
    color: #1D1D1F;
}


/* =============================================================================
   Texture List - icon column 20px fixed
============================================================================= */

.texture-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.texture-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #1D1D1F;
}

.texture-item svg {
    width: 16px;
    height: 16px;
    color: #34C759;
}


/* =============================================================================
   Steps - horizontal on mobile, fixed number column (28px)
============================================================================= */

.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 600px) {
    .steps {
        flex-direction: row;
        gap: 12px;
    }
}

.step {
    background: #fff;
    border: 1px solid #E5E5E7;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 600px) {
    .step {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
}

.step__number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.step p {
    font-size: 14px;
    color: #1D1D1F;
    margin: 0;
}

.usage-note {
    font-size: 13px;
    color: #A1A1A6;
}


/* =============================================================================
   Specs Table - 40/60 columns, hairline dividers
============================================================================= */

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.specs-table tr {
    border-bottom: 1px solid #E5E5E7;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 0;
    font-size: 14px;
    vertical-align: top;
}

.specs-table td:first-child {
    color: #6E6E73;
    width: 40%;
}

.specs-table td:last-child {
    font-weight: 500;
    color: #1D1D1F;
}

.specs-tagline {
    font-size: 13px;
    color: #A1A1A6;
    font-style: italic;
}


/* =============================================================================
   Reviews Grid - consistent cards (16px padding, 12px gap)
============================================================================= */

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 600px) {
    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.review-card {
    background: #fff;
    border: 1px solid #E5E5E7;
    border-radius: 16px;
    padding: 16px;
}

.review-card__stars {
    color: #F5A623;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1;
}

.review-card__text {
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    color: #6E6E73;
    margin: 0;
}

.reviews-note {
    font-size: 11px;
    color: #A1A1A6;
}


/* =============================================================================
   FAQ Grid - consistent cards
============================================================================= */

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .faq-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-item {
    background: #fff;
    border: 1px solid #E5E5E7;
    border-radius: 16px;
    padding: 16px;
}

.faq-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #000;
}

.faq-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #6E6E73;
    margin: 0;
}


/* =============================================================================
   Shipping Grid - icon column 40px fixed
============================================================================= */

/* =============================================================================
   Index Page - Shipping Grid
============================================================================= */

.shipping-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 600px) {
    .shipping-grid {
        flex-direction: row;
        gap: 32px;
    }
}

.shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.shipping-item__content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    /* Visual alignment with icon */
}

@media (min-width: 600px) {
    .shipping-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 16px;
    }

    .shipping-item__content {
        padding-top: 0;
    }
}

.shipping-item__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #F5F5F7;
    /* Clean grey background like why cards */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed border for cleaner look */
}

.shipping-item__icon svg {
    width: 24px;
    height: 24px;
    color: #1D1D1F;
}

.shipping-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
}

.shipping-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #6E6E73;
    margin: 0;
}


/* =============================================================================
   Final CTA - centered, padded for sticky bar
============================================================================= */

.final-cta {
    background: #F5F5F7;
    /* Light background to blend image */
    color: #1D1D1F;
    text-align: center;
    padding: 48px 16px 80px;
}

.final-cta .hero__image {
    max-width: 380px;
    /* Increased from 280px */
    margin: 0 auto 32px;
}

.final-cta .hero__image img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    /* Removes white background */
    display: block;
}

.final-cta .section-title {
    color: #1D1D1F;
    margin-bottom: 8px;
}

.final-cta .section-subtitle {
    color: #6E6E73;
    margin: 0 auto 24px;
    max-width: 320px;
}

.final-cta .btn--primary {
    background: #1D1D1F;
    color: #fff;
}

.final-cta .btn--primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.payment-methods svg {
    height: 24px;
    width: auto;
    opacity: 0.5;
}

.final-cta__secure {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}


/* =============================================================================
   Footer - padded for sticky bar overlap
============================================================================= */

.footer {
    padding-bottom: 80px;
}

.sticky-bar__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center button and text */
    justify-content: center;
    gap: 4px;
}

.sticky-bar .btn {
    min-width: 120px;
    width: 100%;
    /* Ensure it fills container up to max-width */
    max-width: 140px;
    height: 40px;
    /* Reduced height for compactness */
    padding: 0 16px;
    font-size: 13px;
}

.sticky-bar__trust {
    font-size: 10px;
    color: #86868b;
    white-space: nowrap;
    text-align: center;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer__links a {
    font-size: 13px;
    color: #6E6E73;
    text-decoration: none;
}

.footer__links a:hover {
    color: #1D1D1F;
}

.footer__copy {
    font-size: 12px;
    color: #A1A1A6;
    text-align: center;
}


/* =============================================================================
   Menu CTA
============================================================================= */

.menu-overlay__cta {
    margin-top: 32px;
}

/* =============================================================================
   Spacing Overrides for Breathability
============================================================================= */

.section-title {
    margin-bottom: 24px !important;
}

@media (min-width: 768px) {
    .section-title {
        margin-bottom: 32px !important;
    }
}

.section-subtitle {
    margin-bottom: 40px !important;
    max-width: 480px;
    /* Limit line length for readability */
}

/* =============================================================================
   Offer Selection Modal
============================================================================= */

.offer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.offer-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.offer-modal__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.offer-modal__content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 24px;
    padding-top: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.offer-modal.open .offer-modal__content {
    transform: translateY(0);
}

.offer-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #86868b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-modal__title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.offer-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #E5E5E7;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.offer-option:hover {
    border-color: #000;
}

/* Highlighted Option (2+1) - Recommendation Style */
.offer-option--highlight {
    border: 1px solid #E5E5E7;
    /* Default border, badge differentiates it */
    background: #fafafa;
}

.offer-option__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom-left-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.offer-option__img {
    width: 64px;
    height: 64px;
    background: #F5F5F7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.offer-option__img img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.offer-option__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-option__label {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.offer-option__price-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.offer-option__price {
    font-size: 15px;
    color: #1D1D1F;
}

.offer-option__old-price {
    font-size: 13px;
    color: #86868b;
    text-decoration: line-through;
}

.offer-option__sub {
    font-size: 12px;
    color: #059669;
    /* Green for deal info */
    font-weight: 600;
    margin-top: 4px;
}


/* Selected state for offer option */
.offer-option.selected {
    border: 2px solid #000;
    background: #fafafa;
}

/* Continue Button */
.offer-modal__continue {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.offer-modal__continue:hover {
    opacity: 0.9;
}