/* css/styles.css - by Greg Higgs 11-05-26 */

:root {
    --navy: #071f3d;
    --blue: #1269f3;
    --blue-dark: #064dc4;
    --teal: #32c7c6;
    --soft-blue: #eef6ff;
    --card-border: #d7e6ff;
    --text: #0b1f3a;
    --muted: #50637a;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(7, 31, 61, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: var(--text);
}

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

.site-header {
    height: 78px;
    padding: 0 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e8eef7;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand img {
    width: 44px;
    height: 44px;
}

.brand span {
    font-size: 30px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    padding: 28px 0 24px;
    border-bottom: 4px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* MARK: Hero */

.hero {
    min-height: 690px;
    padding: 70px 7vw;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 40px;

    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* Montage background layer. Do not place the montage as an <img> in index.html. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("../images/listwise-hero-montage.jpeg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.65;
    /* Adjust for background opacity*/
    z-index: 0;
    pointer-events: none;
}

/* White fade to keep the left-side black text readable. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    /*background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(255, 255, 255, 0.96) 25%,
            rgba(255, 255, 255, 0.72) 48%,
            rgba(255, 255, 255, 0.25) 70%,
            rgba(255, 255, 255, 0.04) 100%); */

    z-index: 1;
    pointer-events: none;
}

/* Safety: if an old montage img is accidentally left in the HTML, hide it. */
.hero-montage {
    display: none;
}

.hero-copy {
    max-width: 650px;
    position: relative;
    z-index: 5;
    grid-column: 1;
}

.product-title {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
}

.product-title img {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(18, 105, 243, 0.28);
}

h1 {
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1;
    margin: 0;
    color: var(--navy);
    letter-spacing: -0.055em;
}

.hero h2 {
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.05;
    margin: 0 0 28px;
    color: #000000;
    letter-spacing: -0.045em;
}

.hero-tagline {
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 24px;
    color: #000000;
    letter-spacing: -0.035em;
}

.hero-description {
    font-size: 21px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 560px;
    margin: 0 0 34px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-phones {
    position: relative;
    width: 760px;
    height: 760px;
    transform: translate(-45px, 60px);

}

.hero-phone-stack {
    position: absolute;
    width: 300px;
    height: 612px;
}

.hero-phone-stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
}

/* Front static phone */
.phone-front {
    left: 55px;
    top: 30px;
    z-index: 2;
    transform: rotate(-6deg) scale(1.0);
}

/* Back cycling phone */
.phone-back {
    left: 350px;
    top: 60px;
    z-index: 1;
    transform: rotate(7deg) scale(0.95);
}

/* Static front phone image */
.hero-phone-image {
    z-index: 1;
    opacity: 1;
}

/* Permanent white/blank backing image behind the fading screens */
.hero-phone-blank {
    z-index: 0;
    opacity: 1;
}

/* Fading screenshots above the blank backing image */
.hero-phone-slide {
    z-index: 1;
    opacity: 0;
    animation: phoneFade 12s infinite;
}

.slide-daily {
    animation-delay: 0s;
}

.slide-gardening {
    animation-delay: 4s;
}

.slide-packing {
    animation-delay: 8s;
}

@keyframes phoneFade {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    38% {
        opacity: 0;
        /* 0 */
    }

    100% {
        opacity: 0;
        /* 0 */
    }
}

.button {
    min-width: 170px;
    text-align: center;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.button.primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(18, 105, 243, 0.28);
}

.button.primary:hover {
    background: var(--blue-dark);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.62);
    color: var(--blue);
    border: 2px solid var(--blue);
}

/* MARK: Feature Cards */

.features {
    padding: 46px 7vw;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    background: var(--soft-blue);
    border-top: 1px solid #dcecff;
    border-bottom: 1px solid #dcecff;
}

.feature-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 10px 26px rgba(7, 31, 61, 0.06);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ffffff;
    color: var(--blue);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
    border: 2px solid #bcd6ff;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--navy);
}

.feature-card p {
    margin: 0;
    line-height: 1.5;
    color: var(--muted);
}

/* MARK: Coming Soon */

.coming-soon {
    margin: 70px 7vw;
    padding: 36px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, #f8fbff, #eaf5ff);
    border: 1px solid var(--card-border);
}

.coming-soon img {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    box-shadow: 0 14px 26px rgba(18, 105, 243, 0.22);
}

.coming-soon h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 30px;
}

.coming-soon p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

/* MARK: Footer */

.site-footer {
    padding: 42px 7vw;
    background: linear-gradient(135deg, #052446, #02152b);
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-brand {
    color: #ffffff;
}

.footer-brand img {
    width: 48px;
    height: 48px;
}

.footer-brand span {
    font-size: 28px;
}

.site-footer p {
    color: #d9e6f6;
    line-height: 1.5;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: right;
    align-self: end;
}

/* MARK: Tablet */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 46px;
    }

    .hero-copy {
        grid-column: 1;
    }

    .hero-phones {
        grid-column: 1;
        min-height: 570px;
    }

    .hero-phone {
        width: min(310px, 44vw);
    }

    .phone-front {
        left: 10%;
    }

    .phone-back {
        right: 10%;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MARK: Phone */

@media (max-width: 700px) {
    .site-header {
        height: auto;
        padding: 18px 6vw;
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
        position: static;
    }

    .brand span {
        font-size: 26px;
    }

    .site-nav {
        gap: 18px;
        flex-wrap: wrap;
    }

    .site-nav a {
        padding: 0 0 6px;
    }

    .hero {
        padding: 42px 6vw;
    }

    .hero::after {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.82) 42%,
                rgba(255, 255, 255, 0.30) 100%);
    }

    .product-title img {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .hero-phones {
        min-height: 500px;
    }

    .hero-phone {
        width: 245px;
    }

    .phone-front {
        left: -4px;
        top: 10px;
    }

    .phone-back {
        right: -34px;
        top: 38px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 34px 6vw;
    }

    .coming-soon {
        margin: 44px 6vw;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .copyright {
        text-align: left;
    }
}

/* MARK: Legal Page Width Fix - Strong Override */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-width: 0;
}

.legal-page,
.legal-content,
.legal-content * {
    box-sizing: border-box;
}

.legal-page {
    display: block;
    width: 100%;
    max-width: 100vw;
    padding: 28px 16px;
    margin: 0;
    overflow-x: hidden;
}

.legal-content {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
}

.legal-content p,
.legal-content li,
.legal-content a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.legal-content ul {
    max-width: 100%;
    padding-left: 22px;
}

/* iPad / tablet */
@media (max-width: 900px) {
    .legal-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .legal-content {
        max-width: 100%;
        padding: 20px;
    }
}

/* iPhone / narrow screens */
@media (max-width: 700px) {
    .site-header {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-nav {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .legal-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .legal-content {
        padding: 18px;
        border-radius: 16px;
    }
}

/* MARK: iPhone Home Page Width Fix */

@media (max-width: 700px) {

    .hero {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        width: 100%;
        max-width: 100%;
    }

    .hero-phones {
        width: 100%;
        max-width: 100%;
        height: 430px;
        min-height: 430px;
        transform: none;
        overflow: hidden;
    }

    .hero-phone-stack {
        width: 210px;
        height: 430px;
    }

    .phone-front {
        left: 8px;
        top: 18px;
        transform: rotate(-6deg) scale(1.0);
    }

    .phone-back {
        left: 132px;
        top: 34px;
        transform: rotate(7deg) scale(0.92);
    }

    .hero-phone-stack img {
        width: 100%;
        height: auto;
    }
}

/* MARK: iPhone Scale Down Fix */

@media (max-width: 700px) {

    .hero {
        transform: scale(0.78);
        transform-origin: top left;

        width: 128%;
        max-width: none;
    }

}

/*
scale(0.90) → width: 111%;
scale(0.85) → width: 118%;
scale(0.82) → width: 122%;  this one
scale(0.78) → width: 128%;

scale(0.90) → width: 111%;
scale(0.85) → width: 118%;
scale(0.82) → width: 122%;  this one
scale(0.78) → width: 128%;

*/

.site-header {
    position: static;
    width: 100%;
    padding: 24px clamp(22px, 5vw, 80px);
    background: #ffffff;
    border-bottom: 1px solid rgba(7, 31, 61, 0.10);
}

.site-header .header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-header .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #071f3d;
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.06em;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .brand-link img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.site-header .header-icon-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap;
}

.site-header .nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(7, 31, 61, 0.10);
    box-shadow: 0 10px 26px rgba(7, 31, 61, 0.08);
    color: #071f3d;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.site-header .nav-pill img {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
}

.site-header .nav-pill span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ffffff;
    border: 2px solid #bcd6ff;
    margin-bottom: 16px;
    overflow: hidden;
}

.feature-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}