/* ========================================
   VISION CORE - Clean Landing Page CSS
   Following BEM naming conventions
======================================== */

/* CSS Variables - Cohesive Color Scheme */
:root {
    /* Primary Blues */
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;

    /* CTA Orange */
    --cta: #f97316;
    --cta-dark: #ea580c;

    /* Supporting Colors */
    --success: #22c55e;
    --gold: #eab308;

    /* Neutrals */
    --ink: #1e293b;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;

    /* Effects */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 0 30px rgba(234, 179, 8, 0.3);

    /* Spacing */
    --radius: 16px;
    --radius-sm: 8px;
    --container: 1200px;
    --container-narrow: 900px;
}

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

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Utility */
/* .esconder class hides content until video timer reveals it */
.esconder {
    display: none;
}

/* ========================================
   TOP BAR
======================================== */
.topbar {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    font-weight: 600;
    font-size: clamp(13px, 2.5vw, 16px);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--cta {
    background: linear-gradient(135deg, var(--cta), var(--cta-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    width: min(320px, 90%);
    margin: 12px auto 24px;
}

.btn--cta:hover {
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.5);
}

.btn--cart {
    background: linear-gradient(135deg, var(--cta), var(--cta-dark));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: none;
}

.btn--cart:hover {
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
}

/* ========================================
   HERO
======================================== */
.hero {
    /* Padding will be dynamically set by JS based on video height */
    /* Default small padding as fallback before JS runs */
    padding: 24px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.hero__video {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero__video iframe,
.hero__video video,
.hero__video vturb-smartplayer {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* Vertical video (9:16) - constrain height to leave room for button */
.hero__video--vertical {
    max-width: min(400px, calc((100dvh - 140px) * 9 / 16));
}

.hero__video--vertical iframe,
.hero__video--vertical video,
.hero__video--vertical vturb-smartplayer {
    aspect-ratio: 9 / 16;
}

/* Horizontal video (16:9) */
.hero__video--horizontal {
    max-width: min(900px, calc((100dvh - 140px) * 16 / 9));
}

.hero__video--horizontal iframe,
.hero__video--horizontal video,
.hero__video--horizontal vturb-smartplayer {
    aspect-ratio: 16 / 9;
}

/* ========================================
   ORDER SECTION
======================================== */
.order {
    padding: 60px 0;
    background: var(--white);
}

.order--alt {
    background: var(--light);
}

.order__title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 8px;
    color: var(--primary-dark);
}

.order__subtitle {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: #000;
    margin: 0 0 80px;
    font-size: 17px;
    font-weight: 400;
}

/* ========================================
   PRICING CARDS
======================================== */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 380px));
    gap: 24px;
    justify-content: center;
}

.pricing__card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pricing__card--featured {
    border: 3px solid var(--cta);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.25), var(--shadow-lg);
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

.pricing__card--featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--cta), var(--cta-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    white-space: nowrap;
}

.pricing__card--featured:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.35), 0 25px 60px rgba(0, 0, 0, 0.18);
}

.pricing__header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 24px 16px 28px;
    position: relative;
    border-radius: 13px 13px 0 0;
    margin: -1px -1px 0 -1px;
}

.pricing__card--featured .pricing__header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.pricing__header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid var(--primary-dark);
}

.pricing__card--featured .pricing__header::after {
    border-top-color: #0284c7;
}

.pricing__header h3 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 8px;
    font-size: 38px;
    font-weight: 600;
}

.pricing__bottles {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    font-size: 28px;
    font-weight: 400;
}

.pricing__supply {
    font-family: 'Poppins', sans-serif;
    margin: 6px 0 0;
    font-size: 19px;
    font-weight: 600;
    opacity: 0.9;
}

.pricing__media {
    padding: 24px 16px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.pricing__media img {
    max-width: 180px;
    max-height: 200px;
    object-fit: contain;
}

.pricing__body {
    padding: 16px 24px 28px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing__price {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.pricing__per {
    font-family: 'Poppins', sans-serif;
    color: #000;
    margin-top: 4px;
    font-size: 19px;
    font-weight: 400;
}

.pricing__benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

.pricing__benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-weight: 500;
}

.pricing__benefits li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.pricing__cards {
    max-width: 160px;
    margin: 16px auto;
}

.pricing__total {
    font-family: Arial, sans-serif;
    margin-top: auto;
    font-size: 20px;
    color: #000;
    text-align: center;
}

.pricing__total s {
    color: #666;
    margin-right: 8px;
}

.pricing__total strong {
    font-size: 20px;
    color: #000;
}

.pricing__shipping {
    display: block;
    color: #4CAF50;
    font-weight: 700;
    font-size: 20px;
    margin-top: 4px;
}

/* ========================================
   TRUST BADGES
======================================== */
.trust {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trust__card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--white);
}

.trust__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.trust__icon svg {
    width: 28px;
    height: 28px;
}

.trust__title {
    font-weight: 700;
    font-size: 15px;
}

.trust__sub {
    opacity: 0.8;
    font-size: 13px;
    margin-top: 2px;
}

/* ========================================
   GUARANTEE SECTION
======================================== */
.guarantee {
    padding: 60px 0;
    background: var(--white);
}

.guarantee__card {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 25px;
    padding: 40px 60px;
    text-align: center;
    max-width: 1140px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.15);
}

.guarantee__stars {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.guarantee__stars img {
    max-width: 280px;
    height: auto;
}

.guarantee__title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 600;
    font-style: normal;
    margin: 0 0 20px;
    color: var(--primary-dark);
    text-align: center;
    line-height: 1;
}

.guarantee__text {
    font-family: 'Roboto', sans-serif;
    color: rgb(0, 0, 0);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 auto 30px;
    max-width: 700px;
    text-align: center;
}

.guarantee__badges {
    margin-bottom: 20px;
}

.guarantee__badges:last-child {
    margin-bottom: 0;
}

.guarantee__badges img {
    max-width: 700px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .guarantee__card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .guarantee__title {
        font-size: 28px;
    }

    .guarantee__text {
        font-size: 16px;
    }

    .guarantee__stars img {
        max-width: 200px;
    }

    .guarantee__badges img {
        max-width: 100%;
    }
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.testimonials__label {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials__title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 0 0 40px;
}

.testimonial {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 13px;
    margin-bottom: 24px;
    align-items: start;
}

.testimonial__photo {
    flex-shrink: 0;
}

.testimonial__photo img {
    width: 180px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.testimonial__content {
    padding: 10px 10px 10px 0;
}

.testimonial__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px;
    text-align: left;
}

.testimonial__stars {
    max-width: 200px;
    height: auto;
    margin-bottom: 12px;
}

.testimonial__text {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: rgb(117, 117, 117);
    line-height: 1.5;
    margin: 0 0 16px;
    text-align: left;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial__product {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.testimonial__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial__name {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #000;
}

.testimonial__bought {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #C41E3A;
}

.testimonials__btn {
    display: block;
    margin: 30px auto 0;
}

@media (max-width: 768px) {
    .testimonial {
        grid-template-columns: 1fr;
    }

    .testimonial__photo {
        text-align: center;
    }

    .testimonial__photo img {
        width: 140px;
        margin: 0 auto;
    }

    .testimonial__content {
        padding: 10px;
    }

    .testimonials__title {
        font-size: 26px;
    }

    .testimonial__text {
        font-size: 15px;
    }
}

/* ========================================
   MONEY-BACK GUARANTEE SECTION
======================================== */
.moneyback {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    text-align: center;
}

.moneyback__seal {
    margin-bottom: 24px;
}

.moneyback__seal img {
    width: 152px;
    height: auto;
    margin: 0 auto;
}

.moneyback__label {
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
}

.moneyback__title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    margin: 0 auto 24px;
    line-height: 1.3;
    max-width: 570px;
}

.moneyback__green {
    color: var(--success);
}

.moneyback__text {
    font-family: 'Roboto', sans-serif;
    font-size: 19px;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    margin: 0 auto 32px;
    max-width: 684px;
}

.moneyback__badges {
    margin-top: 24px;
}

.moneyback__badges img {
    width: 448px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .moneyback__seal img {
        max-width: 150px;
    }

    .moneyback__label {
        font-size: 18px;
    }

    .moneyback__title {
        font-size: 24px;
    }

    .moneyback__text {
        font-size: 16px;
    }

    .moneyback__badges img {
        max-width: 100%;
    }
}

/* ========================================
   FAQ SECTION
======================================== */
.faq {
    padding: 70px 0;
    background: var(--white);
}

.faq__icon {
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.faq__title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    text-align: center;
    margin: 0 0 40px;
}

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

.faq__item {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq__question {
    cursor: pointer;
    list-style: none;
    color: var(--white);
    font-weight: 600;
    padding: 18px 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::before {
    content: '+';
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq__item[open] .faq__question::before {
    content: '-';
}

.faq__question span {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

.faq__answer {
    background: var(--white);
    color: var(--ink);
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid var(--border);
}

/* ========================================
   COMMENTS SECTION
======================================== */
.comments {
    padding: 50px 0;
    background: var(--white);
}

.comments__count {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px;
    color: #686868;
}

.comments__divider {
    height: 1px;
    background: #dddfe2;
    margin-bottom: 16px;
}

.comments__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 4px 0;
}

.comment--reply {
    margin-left: 40px;
}

.comment__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment--reply .comment__avatar {
    width: 40px;
    height: 40px;
}

.comment__content {
    flex: 1;
}

.comment__name {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #365899;
    display: block;
    margin-bottom: 2px;
}

.comment__text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1c1e21;
    line-height: 1.4;
    background: #f2f3f5;
    padding: 10px 12px;
    border-radius: 18px;
    margin: 0 0 6px;
    display: inline-block;
}

.comment__meta {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #365899;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment__meta-item {
    color: #365899;
}

.comment__meta-separator {
    color: #365899;
}

.comment__time {
    color: #808080;
}

.comment__reactions {
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
    margin-left: auto;
}

.comment__reaction {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.comments__footer {
    margin-top: 32px;
}

.comments__closed {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 16px;
}

.comments__footer .comments__divider {
    margin-bottom: 16px;
}

.comments__platform {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a7a7a;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.comments__fb-logo {
    width: 18px;
    height: 18px;
}

/* ========================================
   SCIENTIFIC REFERENCES
======================================== */
.references {
    padding: 40px 0;
    background: var(--white);
    text-align: center;
}

.references__image {
    max-width: 900px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* ========================================
   LEGAL FOOTER
======================================== */
.legal {
    background: #111827;
    color: #9ca3af;
    padding: 40px 0;
    font-size: 13px;
    line-height: 1.7;
}

.legal p {
    margin: 0;
}

/* ========================================
   ANIMATIONS
======================================== */
.fadeIn {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fadeIn.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .order__subtitle {
        margin-bottom: 30px;
    }

    .pricing {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing__card--featured {
        transform: none;
        margin-top: 0;
    }

    .pricing__card--featured:hover {
        transform: translateY(-4px);
    }

    .guarantee__wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .guarantee__media {
        order: -1;
    }
}

@media (max-width: 768px) {
    .trust__grid {
        grid-template-columns: 1fr;
    }

    .comment {
        grid-template-columns: 48px 1fr;
    }

    .comment__avatar {
        width: 48px;
        height: 48px;
    }

    .comment__reactions {
        grid-column: 2;
        flex-direction: row;
        justify-content: flex-start;
    }

    .comment__reaction {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .topbar {
        padding-left: 2px;
        padding-right: 2px;
        font-size: 12px;
    }

    .hero {
        padding: 5vh 0;
    }

    .hero .container {
        gap: 8px;
    }

    .hero__video--vertical {
        max-width: min(100%, calc((100dvh - 110px) * 9 / 16));
    }

    .hero__video--horizontal {
        max-width: min(100%, calc((100dvh - 110px) * 16 / 9));
    }

    .order {
        padding: 40px 0;
    }

    .order__subtitle {
        font-size: 15px;
    }

    .pricing__header {
        padding: 20px 14px 24px;
    }

    .pricing__header h3 {
        font-size: 22px;
    }

    .pricing__price {
        font-size: 44px;
    }

    .pricing__body {
        padding: 14px 18px 24px;
    }

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

    .faq__question span {
        font-size: 14px;
    }

    .guarantee {
        padding: 50px 0;
    }

    .guarantee__media img {
        max-width: 200px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fadeIn,
    .fadeIn.in-view {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn:hover,
    .pricing__card:hover {
        transform: none;
    }
}
