:root {
    --orange: #EE7D04;
    --orange-deep: #d46f04;
    --orange-hero-top: #EE7D04;
    --orange-hero-bottom: #FFB347;
    --grey-bar: #cfcfcf;
    --text: #222;
    --white: #fff;
    --muted: #666;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --font: "Poppins", system-ui, sans-serif;
    --nav-h: 130px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.45;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.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;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    background: var(--white);
    color: var(--orange);
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

.skip-link:focus {
    top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    border-radius: 6px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn--white {
    background: var(--white);
    color: var(--orange);
    padding: 0.85rem 1.5rem;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn--orange {
    background: var(--orange);
    color: var(--white);
    padding: 0.85rem 1.35rem;
    font-size: 1.05rem;
}

.btn--outline {
    background: var(--white);
    color: #555;
    border: 1.5px solid #d8d8d8;
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    border-radius: 999px;
}

/* ===== HERO / NAV ===== */
.hero {
    height: auto;
    background: linear-gradient(180deg, var(--orange-hero-top) 0%, #f59220 45%, var(--orange-hero-bottom) 100%);
    color: var(--white);
    overflow: hidden;
    width: 100%;
}

.nav {
    max-width: 1180px;
    margin: 0 auto;
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.nav__logo img {
    width: min(190px, 48vw);
    height: auto;
    max-height: 78px;
    object-fit: contain;
}

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px 9px;
    cursor: pointer;
}

.nav__toggle-bar {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.is-open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav.is-open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    font-weight: 500;
}

.nav__menu a:hover {
    opacity: 0.86;
}

.nav__cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--orange);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.hero__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    gap: 1rem 2rem;
    min-height: 575px;
}

.hero__product {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero__product img {
    width: min(500px, 92%);
    max-height: 505px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(80, 20, 0, 0.28));
}

.hero__copy {
    padding-bottom: 1.4rem;
    
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero__copy h1 {
    margin: 0 0 1.1rem;
}

.hero__name {
    display: block;
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    display: block;
    margin-top: 0.15rem;
    font-weight: 400;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}

/* ===== WHY BAR ===== */
.why-bar {
    background: var(--grey-bar);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.why-bar__btn {
    position: relative;
    top: 1px;
    padding: 0.78rem 1.4rem 0.78rem 1.55rem;
    font-size: 1.12rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.why-bar__check {
    display: inline-flex;
    color: var(--white);
}

/* ===== FEATURES ===== */
.features {
    background: var(--orange);
    color: var(--white);
    padding: 1.15rem 0;
    max-width: none;
    overflow: hidden;
}

.features__viewport {
    overflow: hidden;
    width: 100%;
}

.features__track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    will-change: transform;
}

.features__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: clamp(0.95rem, 1.5vw, 1.45rem);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.features__item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* ===== STORIES ===== */
.stories {
    padding: 3.2rem 1.2rem 3.6rem;
    text-align: center;
}

.stories h2 {
    margin: 0 0 2.2rem;
    color: var(--orange);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
}

.stories__track {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.ig-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
}

.ig-card__media {
    position: relative;
    min-height: 520px;
    height: 560px;
    background: #f6f6f6;
    overflow: hidden;
}

.ig-card__media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ig-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-card__media img[src$=".jpg"] {
    position: absolute;
    inset: 0;
}

.ig-card__caption {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 1rem;
    margin: 0;
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* ===== COMPONENTS ===== */
.components {
    background: linear-gradient(180deg, #f7f7f7 0%, #fff 55%);
    padding: 2.6rem 1.2rem 3.2rem;
}

.components__grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem 3rem;
    align-items: start;
}

.components__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.components__visual img {
    width: min(380px, 100%);
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.12));
}

.components__cta {
    min-width: 280px;
    padding: 1.15rem 1.8rem;
    font-size: 1.55rem;
    border-radius: 6px;
}

.components__info h2 {
    margin: 0;
    color: var(--orange);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
}

.components__list {
    margin: 0.35rem 0 1rem;
    font-size: 1.18rem;
    max-width: 34ch;
}

.components__dose {
    margin: 0 0 1.3rem;
    font-size: 1.35rem;
}

.components__dose strong {
    color: var(--orange);
}

.accordion {
    background: var(--orange);
    color: var(--white);
    border-radius: 6px;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 1rem;
    font-weight: 600;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
}

.accordion[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.accordion__body {
    background: #fafafa;
    color: var(--text);
    padding: 1rem;
}

.accordion__body--actions {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.invima-copy {
    margin: 0;
    font-weight: 600;
}

.pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pdf-actions .btn--orange {
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.7rem 1rem;
}

.nutrition {
    max-width: 460px;
    margin: 0 auto;
    border: 2px solid var(--orange);
    background: var(--white);
    padding: 0.8rem 0.85rem 0.7rem;
}

.nutrition h3 {
    margin: 0;
    text-align: center;
    font-size: 1.15rem;
}

.nutrition__meta {
    margin: 0.15rem 0 0.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
}

.nutrition table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.68rem;
}

.nutrition th,
.nutrition td {
    border-top: 1px solid #222;
    padding: 0.28rem 0.2rem;
    text-align: left;
    vertical-align: top;
}

.nutrition th:nth-child(2),
.nutrition td:nth-child(2),
.nutrition th:nth-child(3),
.nutrition td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

.nutrition small {
    display: block;
    font-weight: 400;
    color: #555;
}

.nutrition__notes {
    margin: 0.45rem 0 0;
    font-size: 0.62rem;
    color: #444;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    color: var(--orange);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.2;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--orange);
    color: var(--white);
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: 1.8rem 1rem 0.85rem;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer__social a {
    display: grid;
    place-items: center;
}

.footer__brand {
    margin: 0;
    font-size: 2.15rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1.4rem 1rem;
    font-size: 0.78rem;
}

.footer__bottom p {
    margin: 0;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.15rem;
}

.footer__links a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
        min-height: 445px;
    }

    .components__grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .components__info {
        width: 100%;
        max-width: 560px;
    }

    .pillars {
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer__links {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .stories {
        padding: 2.4rem 0 2.8rem;
        overflow: hidden;
    }

    .stories h2 {
        padding: 0 1rem;
    }

    .stories__track {
        display: flex;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 22vw;
        gap: 1rem;
        max-width: none;
        padding: 0.85rem 22vw 1.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .stories__track::-webkit-scrollbar {
        display: none;
    }

    .ig-card {
        position: relative;
        flex: 0 0 56vw;
        min-width: 56vw;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: scale(0.9);
        opacity: 0.82;
        z-index: 1;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    .ig-card.is-active {
        transform: scale(1);
        opacity: 1;
        z-index: 2;
    }

    .ig-card__media {
        min-height: 470px;
        height: 58vh;
        max-height: 620px;
    }

    .ig-card iframe {
        pointer-events: none;
    }

    .ig-card.is-active iframe {
        pointer-events: auto;
    }
}

@media (max-width: 760px) {
    .nav__toggle {
        display: block;
        z-index: 30;
    }

    .nav__menu {
        position: absolute;
        top: calc(100% - 8px);
        right: 0;
        left: auto;
        min-width: 220px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        color: var(--text);
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 0.5rem;
        display: none;
        z-index: 20;
    }

    .nav.is-open .nav__menu {
        display: flex;
    }

    .nav__menu a {
        padding: 0.75rem 0.9rem;
        border-radius: 8px;
        font-weight: 600;
    }

    .nav__menu a:hover {
        background: #fff3e8;
        opacity: 1;
    }

    .nav__cart {
        justify-content: center;
        color: var(--white);
    }

    .hero {
        padding-bottom: 1.2rem;
        overflow: visible;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: 0;
        padding: 0.4rem 1rem 0.8rem;
        gap: 0.6rem;
    }

    .hero__product {
        align-items: center;
        overflow: visible;
    }

    .hero__product img {
        width: min(240px, 72vw);
        max-height: none;
        height: auto;
        object-fit: contain;
    }

    .hero__copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 0.2rem;
    }

    .why-bar {
        overflow: visible;
        z-index: 2;
        min-height: 88px;
        padding: 0.85rem 1rem;
        justify-content: center;
    }

    .why-bar__btn {
        top: 0;
        margin: 0 auto;
        font-size: 0.98rem;
        padding: 0.72rem 1.2rem;
        max-width: calc(100% - 1.2rem);
        white-space: nowrap;
        box-sizing: border-box;
    }

    .features {
        padding: 1rem 0;
    }

    .features__track {
        gap: 2.25rem;
    }

    .features__item {
        font-size: 0.92rem;
    }

    .stories {
        padding: 2.2rem 0 2.6rem;
    }

    .stories__track {
        scroll-padding-inline: 18vw;
        gap: 0.65rem;
        padding: 0.55rem 18vw 1rem;
    }

    .ig-card {
        flex: 0 0 64vw;
        min-width: 64vw;
        transform: scale(0.9);
        opacity: 0.78;
    }

    .ig-card__media {
        min-height: 430px;
        height: 58vh;
        max-height: 560px;
    }

    .components__cta {
        width: 100%;
        max-width: 320px;
        font-size: 1.2rem;
    }

    .components__list,
    .components__dose {
        font-size: 1.05rem;
        max-width: none;
    }

    .pillars {
        font-size: 0.95rem;
    }

    .footer__brand {
        font-size: 1.7rem;
    }

    .footer__top {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .pdf-actions {
        flex-direction: column;
    }

    .pdf-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .nav__toggle-bar {
        transition: none;
    }

    .features__track {
        transform: none !important;
    }
}

body.pdf-modal-open {
    overflow: hidden;
}

.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    place-items: center;
    padding: 1.2rem;
    background: rgba(40, 28, 18, 0.55);
    pointer-events: none;
}

.pdf-modal.is-open {
    display: grid;
    pointer-events: auto;
}

.pdf-modal[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.pdf-modal__dialog {
    width: min(920px, 100%);
    height: min(88vh, 860px);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.pdf-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.pdf-modal__head h2 {
    margin: 0;
    color: var(--orange);
    font-size: 1.15rem;
}

.pdf-modal__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pdf-modal__close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.pdf-modal__frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #f3f3f3;
}

@media (max-width: 640px) {
    .pdf-modal {
        padding: 0.5rem;
        align-items: end;
    }

    .pdf-modal__dialog {
        height: 92vh;
        border-radius: 16px 16px 0 0;
    }
}
