@media (min-width: 1025px) {
    .features-container:hover .glass {
        transform: rotate(0deg) scale(0.88);
        margin: 0 8px;
    }

    .features-container .glass:hover {
        transform: rotate(0deg) scale(1.18);
        z-index: 10;
    }

    .features-container .glass:hover::before {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .features-container .glass:hover::after {
        max-height: 120px;
        opacity: 1;
        padding: 1rem 1.2rem 0.5rem 1.2rem;
    }
}

@media (min-width: 1025px) and (min-height: 800px) {
    .lifey-section {
        min-height: 650px;
        max-height: 1000px;
        height: auto;
    }

    .lifey-section p { line-height: 2 !important; }

    .preorder-btn {
        width: 12rem;
        aspect-ratio: 1/0.35;
        font-size: 1.2rem;
    }

    .preorder-btn svg { width: 1.2rem; height: 1.2rem; }
}

/* ════════════════════════════════════════════════════
   TABLET (851px – 1024px)
════════════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 851px) {
    .icon-square { display: none; }

    .hero { padding: 1.5vh 2vw; }
    .hero-title { font-size: calc(8rem - 2vw); }
    .hero-sub { font-size: 5vw; padding-top: 5vh; }
    .hero-body { font-size: 4vw; margin-top: 4vh; max-width: 100%; width: 100%; line-height: 4rem; }

    .lifey-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 3rem 2vw;
        gap: 3.5rem;
    }

    .lifey-section .section-title-container {
        grid-column: 1; grid-row: 1;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-pill{
        gap: 1.5rem;
        padding: 1rem 2rem;
    }

    .nav-brand{
        font-size: 2.25rem;
    }
    .nav-divider{
        width: 5px;
        height: 35px;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .btn-primary{
        font-size: 1.5rem;
    }

    .lifey-section .section-title-container h2 { font-size: 10vw; text-align: center; }
    .lifey-section .section-title-container h3 { font-size: 6vw; text-align: center; }
    .lifey-section .section-paragraph { grid-column: 1; grid-row: 2; font-size: 3.5vw; text-align: justify; line-height: 1.6;}
    .lifey-section .preorder-d { grid-column: 1; grid-row: 3; justify-self: center; padding: 0; }

    .preorder-btn { width: 25rem; justify-content: center; font-size: 3.5vw; height: 7vh; }
    .preorder-btn svg { width: 3vw; height: 3vw; }

    .features-section { height: fit-content; justify-content: center; margin-bottom: 0; margin-top: 20vh; padding-bottom: 0}
    .features-section .section-title-container h4 { font-size: calc(4rem + 1vh); }

    .features-container .glass {
        width: 65vw; height: 65vw;
        background: linear-gradient(rgb(24, 61, 61, 0.3), transparent);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 25px rgba(24, 61, 61, 0.25);
        transition: none;
        border-radius: 10px;
        margin-bottom: 42vh;
        transform: rotate(0deg);
        overflow: visible;
    }

    .features-container .glass img { width: 40%; height: 40%; margin-bottom: 2rem; }
    .features-container .glass::before { font-size: 4vw; }
    .features-container .glass::after {
        max-height: fit-content;
        opacity: 1;
        padding: 3rem 2vw;
        font-size: 4.5vw;
        transition: none;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .features-container .glass::before {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .footer-container { padding: 0 1.5rem; }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 2rem 1.5rem;
        margin-bottom: 0;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-description { max-width: 100%; }
    .footer-logo { font-size: 4rem}
    .footer-description {font-size: 2rem}
    .social-link {width: 5rem; height: 5rem}
    .social-link svg { width: 45%; height: 70%; }
    .footer-column h4 {font-size: 2.5rem}
    .footer-links a {font-size: 1.75rem;}
    .footer-links li{margin-top: 2rem}
    .update-f{grid-column: span 2 / span 2;}
    .newsletter-input{
        font-size: 2rem;
        border-radius: 2rem;
        padding: 1rem;
    }
    .newsletter-btn{font-size: 1.75rem; padding: 1rem; border-radius: 2rem}
    .newsletter-msg{
        font-size: 2rem;
        padding-left: 0.5rem;
    }
}

/* ════════════════════════════════════════════════════
   MOBILE MEDIUM (451px – 850px)
════════════════════════════════════════════════════ */
@media (max-width: 850px) and (min-width: 451px) {
    .icon-square { display: none; }

    /* ── Pill nav scales down to fit mobile ── */
    .nav-pill{
        gap: 1.5rem;
        padding: 1rem;
    }

    .nav-brand{
        font-size: 1.5rem;
    }
    .nav-divider{
        width: 5px;
        height: 35px;
    }
    .nav-links a{
        font-size: 1.5rem;
    }
    .btn-primary{
        font-size: 1.25rem;
    }

    /* ── Mobile hamburger hidden — pill nav visible ── */
    .menu-btn { display: none; }

    .hero { padding: 1.5vh 2vw; }
    .hero-title { font-size: 12.5vw; }
    .hero-sub { font-size: 5vw; }
    .hero-body { font-size: 4vw; margin-top: 4vh; width: 100%; line-height: 3rem; }

    .lifey-section {
        min-height: 95vh;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 2vh 2vw;
        gap: 1.5rem;
    }

    .lifey-section .section-title-container {
        grid-column: 1; grid-row: 1;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .lifey-section .section-title-container h2 { font-size: 14vw; text-align: center; }
    .lifey-section .section-title-container h3 { font-size: 9vw; text-align: center; }
    .lifey-section .section-paragraph { grid-column: 1; grid-row: 2; font-size: 4vw; text-align: center; line-height: 4.25vh; }
    .lifey-section .preorder-d { grid-column: 1; grid-row: 3; justify-self: center; padding: 0 1.5vw; }

    .preorder-btn { width: 25rem; justify-content: center; font-size: 3.5vw; height: 7vh; border-radius: 2rem}
    .preorder-btn svg { width: 3vw; height: 3vw; }

    .features-section { height: fit-content; justify-content: center; margin-bottom: 0; margin-top: 20vh; padding-bottom: 0}
    .features-section .section-title-container h4 { font-size: calc(4rem + 1vh); }

    .features-container .glass {
        width: 65vw; height: 65vw;
        background: linear-gradient(rgb(24, 61, 61, 0.3), transparent);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 25px rgba(24, 61, 61, 0.25);
        transition: none;
        border-radius: 10px;
        margin-bottom: 42vh;
        transform: rotate(0deg);
        overflow: visible;
    }

    .features-container .glass img { width: 40%; height: 40%; margin-bottom: 2rem; }
    .features-container .glass::before { font-size: 4vw; }
    .features-container .glass::after {
        max-height: fit-content;
        opacity: 1;
        padding: 3rem 2vw;
        font-size: 4.5vw;
        transition: none;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .features-container .glass::before {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .footer-container { padding: 0 1.5rem; }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 2rem 1.5rem;
        margin-bottom: 0;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-description { max-width: 100%; }
    .footer-logo { font-size: 4rem}
    .footer-description {font-size: 2rem}
    .social-link {width: 5rem; height: 5rem}
    .social-link svg { width: 45%; height: 70%; }
    .footer-column h4 {font-size: 2.5rem}
    .footer-links a {font-size: 1.75rem;}
    .footer-links li{margin-top: 2rem}
    .update-f{grid-column: span 2 / span 2;}
    .newsletter-input{
        font-size: 2.25rem;
        border-radius: 1rem;
    }
    .newsletter-input-row{
        height: fit-content;
    }
    .newsletter-btn{font-size: 2rem; height: fit-content; padding: 1rem; border-radius: 1rem}
    .newsletter-msg{
        font-size: 2rem;
        padding-left: 0.5rem;
    }
}

/* ════════════════════════════════════════════════════
   MOBILE SMALL (≤450px)
════════════════════════════════════════════════════ */
@media (max-width: 450px) {
    ::-webkit-scrollbar{
        max-width: 0;
    }
    .icon-square { display: none; }

    /* ── Pill nav fits small screens ── */
    .nav-pill{
        gap: 1vw;
        padding: 0.5rem 3vw;
        min-width: calc(100% - 2.25rem);
        justify-content: space-between;attempt
    }

    .nav-brand{
        font-size: 1.25rem;
        padding-right: 0;
    }
    .nav-divider{
        width: 2px;
        height: 35px;
    }
    .nav-link {
        font-size: 1rem;
    }

    .navbar { top: 0rem; padding-left: 0; padding-right:0; border-radius: var(--radius-lg); }
    .nav-links, .nav-login { display: none; }
    .hero-title{font-size: 2.25rem}
    .menu-btn { display: flex; }

    .hero { padding: 1.5vh 2vw; }
    .hero-title { font-size: 15vw; }
    .hero-sub { font-size: 5vw; }
    .hero-body { font-size: 4vw; margin-top: 3vh; width: 100%; }

    .lifey-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 2vh 2vw;
        gap: 1.25rem;
    }

    .lifey-section .section-title-container {
        grid-column: 1; grid-row: 1;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .lifey-section .section-title-container h2 { font-size: 14vw; text-align: center; }
    .lifey-section .section-title-container h3 { font-size: 9vw; text-align: center; }
    .lifey-section .section-paragraph { grid-column: 1; grid-row: 2; font-size: 4vw; text-align: center; line-height: 2.5rem !important; }
    .lifey-section .preorder-d { grid-column: 1; grid-row: 3; justify-self: center; padding: 0 1.5vw; }

    .preorder-btn svg { width: 4vw; height: 4vw; }

    .features-section { height: fit-content; justify-content: center; margin-bottom: 0; margin-top: 15vh; padding-bottom: 0}
    .features-section .section-title-container h4 { font-size: calc(2rem + 1vh); }

    .features-container .glass {
        width: 75vw; height: 75vw;
        background: linear-gradient(rgb(24, 61, 61, 0.3), transparent);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 25px rgba(24, 61, 61, 0.25);
        transition: none;
        border-radius: 10px;
        margin-bottom: 25vh;
        transform: rotate(0deg);
        overflow: visible;
    }

    .features-container .glass img { width: 40%; height: 40%; margin-bottom: 2rem; }
    .features-container .glass::before { font-size: calc(3vh - 0.5rem); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .features-container .glass::after {
        max-height: 200px;
        opacity: 1;
        padding: 0.75rem 1vw;
        font-size: 4.5vw;
        transition: none;
        bottom: initial;
        transform: none;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .editable { margin-bottom: 0; }

    /* ── Footer: single column on small phones ── */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 0.5fr 1fr 0.75fr;
        margin-bottom: 0;
        /*gap: 2rem 1.5rem;*/
    }
    .footer-container {padding: 0 2rem}
    .footer-brand { grid-column: span 2 / span 2; height: fit-content}
    .menu-f{ grid-row-start: 2; }
    .section-f{ grid-row-start: 2; }
    .footer-logo { font-size: 2rem}
    .footer-description {display: none}
    .social-link {width: 3rem; height: 3rem}
    .social-link svg { width: 45%; height: 45%; }
    .footer-column h4 {font-size: 1.25rem}
    .footer-links a {font-size: 1rem;}
    .footer-links li{margin-top: 2rem}
    .update-f{grid-column: span 2 / span 2;}
    .newsletter-input{
        font-size: 1.1rem;
        border-radius: 1rem;
        padding: 0.675rem;
    }
    .newsletter-btn{font-size: 1.1rem; height: fit-content; padding: 0.9rem; border-radius: 1rem; margin-top: 0.25rem}
    .newsletter-msg-mobile{
        font-size: 1rem;
        padding-left: 0.5rem;
    }
}

/* ── Tall small phone line-height tweaks ── */
@media (min-height: 850px) and (max-height: 950px) and (max-width: 450px) {
    .lifey-section .section-paragraph { line-height: 4.75vh; }
}

@media (min-height: 800px) and (max-height: 850px) and (max-width: 450px) {
    .lifey-section .section-paragraph { line-height: 4.5vh; }
}