/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif
}

body {
    background: #f7f9fc;
    color: #0e1b2a
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: auto
}

a {
    text-decoration: none;
    color: inherit
}
ul {
    list-style: none;
}

/* SPACING UTILS */
.mt-20 {
    margin-top: 20px
}

/* HEADER */
.header {
    background: #fff;
    border-bottom: 1px solid #e6edf5;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 50
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #0e1b2a
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center
}

.nav-links a {
    color: #203047;
    font-weight: 500
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    margin-left: auto;
    width: 44px;
    height: 34px;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0a72f4;
    border-radius: 3px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span + span {
    margin-top: 6px;
}

.nav.open .nav-toggle span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.open .nav-toggle span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

.nav.open .nav-links {
    display: flex;
}

@media (max-width: 900px) {
    .nav {
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 0 6px;
        border-top: 1px solid #e6edf5;
        background: #fff;
    }

    .nav.open .nav-links {
        display: flex;
    }

    .nav-links .btn-outline,
    .nav-links .btn.primary,
    .nav-links .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.btn {
    background: #0a72f4;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s
}

.btn.primary {
    padding: 10px 22px
}

.btn:hover {
    background: #075ed0
}

.btn-outline {
    padding: 8px 16px;
    border: 1px solid #0a72f4;
    background: transparent;
    color: #0a72f4;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer
}

.btn-outline:hover {
    background: #0a72f4;
    color: #fff
}

.btn.ghost {
    align-content: center;
    background: #eef4ff;
    color: #0a72f4
}

.btn.large {
    padding: 14px 32px;
    font-size: 17px
}

/* HERO */
.hero {
    padding: 60px 0 36px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center
}

.hero-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .1)
}

.headline {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px
}

.headline span {
    color: #0a72f4
}

.subtext {
    font-size: 18px;
    color: #59657a;
    margin-bottom: 20px;
    max-width: 520px
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.trust-row {
    font-size: 14px;
    color: #68748a;
    margin-top: 16px
}

/* TRUST BAR */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #fff;
    padding: 12px 18px;
    margin-top: 42px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    font-size: 14px;
    font-weight: 600;
    color: #2a3649;
    text-align: center
}

/* FEATURED IN */
.featured {
    padding: 20px 0
}

.featured-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap
}

.kicker {
    letter-spacing: .14em;
    color: #6e7a8e;
    font-weight: 700;
    font-size: 12px
}

.logo-line {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: #9aa7bb
}

/* SECTIONS */
.section {
    padding: 48px 0
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0b1c33
}

.section-sub {
    text-align: center;
    color: #5d6b81;
    margin-bottom: 28px;
    font-size: 16px
}

.center {
    text-align: center
}

/* FEATURES */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.feature-card {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06)
}

.feature-card h4 {
    margin: 12px 0 6px;
    font-weight: 800
}

.feature-card p {
    font-size: 14px;
    color: #5e6a7a
}

.icon {
    width: 56px;
    height: 56px
}

.mid-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px
}

/* FIRMNESS GUIDE */
.firmness .firmness-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #4a5a6d
}

.firmness .bar {
    width: 360px;
    height: 8px;
    background: #e3ebf6;
    border-radius: 12px;
    position: relative
}

.firmness .dot {
    position: absolute;
    top: -5px;
    width: 18px;
    height: 18px;
    background: #0a72f4;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15)
}

.dot.left {
    left: -2px
}

.dot.mid {
    left: calc(50% - 9px)
}

.dot.right {
    right: -2px
}

.firmness-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.firm-card {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06)
}

.firm-card h4 {
    margin-bottom: 6px
}

.link {
    color: #0a72f4;
    text-decoration: none;
    font-weight: 600
}

/* LAYERS */
.layer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.layer-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .08)
}

.layer-list li {
    margin: 8px 0;
    font-size: 16px;
    color: #2f3d50
}

.inline-ctas {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* GUARANTEES */
.guarantees {
    padding: 32px 0
}

.guarantees-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    font-weight: 600;
    text-align: center
}

/* MATERIALS */
.materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.material-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .08)
}

.material-list li {
    margin: 8px 0;
    color: #2f3d50
}

/* COMPARE TABLE */
.compare-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    font-size: 15px
}

.compare-table th,
.compare-table td {
    padding: 16px;
    border-bottom: 1px solid #e9eef3
}

.compare-table th {
    background: #f2f6fc;
    text-align: left;
    font-weight: 800
}

.compare-table td:first-child {
    font-weight: 700
}

/* REVIEWS */
.light {
    background: #eef4fb
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.review-card {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    font-weight: 600;
    color: #24344b
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    align-items: start
}

details {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden
}

details[open] {
    border-color: #0a72f4;
    box-shadow: 0 12px 28px rgba(10, 114, 244, 0.08);
    overflow: visible
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: #203047;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px
}

summary::marker,
summary::-webkit-details-marker {
    display: none
}

summary::before {
    content: "▸";
    display: inline-block;
    color: #0a72f4;
    transition: transform .2s ease;
    font-size: 18px
}

details[open] summary::before {
    transform: rotate(90deg)
}

details p {
    margin-top: 12px;
    color: #4b5b67;
    line-height: 1.6
}

/* CTA */
.cta-card {
    background: #fff;
    padding: 26px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .08)
}

.cta-card h2 {
    font-size: 32px;
    margin-bottom: 6px
}

.cta-card p {
    color: #475569;
    margin-bottom: 14px
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap
}

/* FOOTER */
.footer {
    background: #fff;
    border-top: 1px solid #e7edf5;
    padding: 28px 0
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #596578
}

.foot-links a {
    margin-left: 16px;
    color: #49607c
}

/* QUIZ MODAL */
.quiz-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px
}

.quiz-modal.active {
    display: flex
}

.quiz-content {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
    position: relative;
    animation: zoom .25s ease
}

@keyframes zoom {
    from {
        transform: scale(.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 800;
    color: #203047
}

/* QUIZ CONTENT */
.quiz-options {
    display: grid;
    gap: 10px;
    margin-top: 16px
}

.quiz-options div {
    padding: 12px;
    background: #f0f6ff;
    border: 1px solid #d8e5fb;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600
}

.quiz-options div:hover {
    background: #e5f0ff;
    border-color: #0a72f4
}

.progress {
    height: 6px;
    background: #e2e9f3;
    border-radius: 10px;
    margin-bottom: 14px
}

#progressFill {
    height: 6px;
    background: #0a72f4;
    border-radius: 10px;
    width: 0;
    transition: .3s
}

.quiz-final {
    width: 100%;
    border-radius: 14px;
    margin: 16px 0
}

.note {
    margin-top: 20px;
    font-size: 12px;
    color: #6d7a8e
}

.hidden {
    display: none !important
}

/* RESPONSIVE */
@media(max-width:900px) {

    .hero-grid,
    .feature-grid,
    .layer-grid,
    .materials-grid,
    .firmness-grid,
    .review-grid,
.faq-grid {
        grid-template-columns: 1fr
    }

    .hero-img {
        display: none
    }

    .trust-bar,
    .guarantees-row {
        grid-template-columns: 1fr 1fr
    }

    .nav-links {
        gap: 10px
    }
}


/* === Policy Pages === */
.policy-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 32px 24px 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.policy-home-link {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.policy-home-link:hover {
    color: #006a4e;
}

.policy-wrapper h1 {
    margin-top: 0;
    color: var(--blue);
    text-align: left;
}

.policy-updated {
    margin-bottom: 35px;
    color: var(--muted);
    font-size: 14px;
}

.policy-section {
    margin-bottom: 28px;
}

.policy-section h2 {
    color: var(--blue);
    margin-bottom: 12px;
}

.policy-section p {
    color: var(--text);
    line-height: 1.7;
}

.policy-section ul {
    padding-left: 18px;
    color: var(--text);
    line-height: 1.7;
}

.policy-section a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.policy-section a:hover {
    color: #006a4e;
}








.layer-grid > div,
.materials-grid > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.material-list li,
.layer-list li {
    margin: 6px 0;
}

.materials-grid .btn.primary,
.layer-grid .btn.primary {
    margin-top: 8px;
}


