/* ===================================
   Landing page (index.html)
   Real app screens in device frames, one feature per row.
   =================================== */
.lp-section {
    padding: var(--spacing-3xl) 0;
}

/* Keep the sticky header from covering a section reached by its #anchor */
#articles {
    scroll-margin-top: 72px;
}

.lp-section--alt {
    background-color: var(--color-dark-grey);
}

/* Device frames */
.lp-phone {
    position: relative;
    width: min(270px, 62vw);
    aspect-ratio: 1179 / 2556;
    padding: 9px;
    border-radius: 44px;
    background: #0d0d0f;
    box-shadow: 0 0 0 1.5px #3a3a3d inset, 0 0 0 1px #000, 0 32px 60px -24px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.lp-phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 36px;
    background: #111;
}

.lp-watch {
    width: min(150px, 30vw);
    aspect-ratio: 416 / 496;
    padding: 9px;
    border-radius: 38px;
    background: #1b1b1d;
    box-shadow: 0 0 0 1.5px #48484b inset, 0 0 0 1px #000, 0 24px 44px -18px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.lp-watch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    background: #000;
}

/* Hero */
.lp-hero {
    background: linear-gradient(160deg, #FFFFFF 0%, #F8F9FA 55%, rgba(229, 135, 62, 0.08) 100%);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    overflow: hidden;
}

.lp-hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.lp-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: var(--spacing-sm);
}

.lp-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.lp-hero-sub {
    font-size: var(--font-size-md);
    color: var(--color-muted);
    max-width: 520px;
    margin-bottom: var(--spacing-lg);
}

.lp-compat {
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-xs);
    color: var(--color-muted);
    max-width: 520px;
}

.lp-compat strong {
    color: var(--color-off-white);
    font-weight: 600;
}

.lp-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding-right: 40px;
}

.lp-hero-visual .lp-phone {
    width: min(290px, 64vw);
}

.lp-hero-visual .lp-watch {
    position: absolute;
    right: 0;
    bottom: 8%;
}

/* Feature rows */
.lp-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Let grid columns shrink below their content width */
.lp-feature > * {
    min-width: 0;
}

.lp-feature--reverse .lp-feature-media {
    order: -1;
}

.lp-feature-title {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: var(--spacing-sm);
}

.lp-feature-text {
    font-size: var(--font-size-md);
    color: var(--color-muted);
    margin-bottom: var(--spacing-md);
    max-width: 480px;
}

.lp-list {
    list-style: none;
    display: grid;
    gap: 12px;
    max-width: 480px;
}

.lp-list li {
    position: relative;
    padding-left: 28px;
    color: var(--color-off-white);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.lp-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-orange);
}

.lp-tag {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-orange);
    border: 1px solid rgba(229, 135, 62, 0.5);
    border-radius: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Devices sit directly on the section background, with no panel behind them */
.lp-feature-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.lp-feature-media--watches .lp-watch {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 150px;
}

.lp-feature-media--watches .lp-watch:nth-child(2) {
    transform: translateY(-18px);
}

.lp-mac {
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-md);
    box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.5);
    display: block;
}

.lp-feature-media--mac {
    flex-direction: column;
    gap: var(--spacing-lg);
}

.lp-actions {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Articles */
.lp-articles-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.lp-articles-head .lp-feature-title {
    margin-bottom: 0;
}

.lp-articles-more,
.lp-article-link {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-orange);
}

.lp-articles-more:hover {
    text-decoration: underline;
}

.lp-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.lp-article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--color-dark-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lp-article:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.lp-article-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #111;
}

.lp-article-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
}

.lp-article-date {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.lp-article-title {
    font-size: var(--font-size-md);
    line-height: 1.3;
}

.lp-article-text {
    font-size: var(--font-size-xs);
    color: var(--color-muted);
}

.lp-article-link {
    margin-top: auto;
    padding-top: var(--spacing-xs);
}

/* Closing call to action */
.lp-cta {
    background: #0d0d0f;
    color: #FFFFFF;
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.lp-cta h2 {
    color: #FFFFFF;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.015em;
    margin-bottom: var(--spacing-sm);
}

.lp-cta p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto var(--spacing-lg);
}

.lp-cta .hero-download-badges {
    justify-content: center;
}

.lp-cta .lp-note {
    margin: var(--spacing-lg) auto 0;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
    .lp-section {
        padding: var(--spacing-2xl) 0;
    }

    .lp-hero .container,
    .lp-feature {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .lp-feature--reverse .lp-feature-media {
        order: 0;
    }

    .lp-articles {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .lp-hero-visual {
        padding-right: 0;
    }

    .lp-hero-visual .lp-watch {
        right: 4%;
    }

    .lp-feature-media--watches {
        gap: var(--spacing-sm);
    }

    .lp-feature-media--watches .lp-watch {
        padding: 6px;
        border-radius: 26px;
    }

    .lp-feature-media--watches .lp-watch img {
        border-radius: 20px;
    }
}

/* ===================================
   Motion
   The reveal classes are added by script, so the page is fully visible without it.
   =================================== */
.lp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lp-feature-media.lp-reveal {
    transform: translateY(36px) scale(0.97);
    transition-delay: 0.12s;
}

.lp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.lp-hero-visual .lp-phone {
    animation: lp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, lp-float 7s ease-in-out 0.9s infinite;
}

.lp-hero-visual .lp-watch {
    animation: lp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both, lp-float 6s ease-in-out 1.4s infinite;
}

.lp-feature-media .lp-phone,
.lp-feature-media .lp-watch,
.lp-mac {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lp-feature-media .lp-phone:hover,
.lp-mac:hover {
    transform: translateY(-6px);
}

@keyframes lp-rise {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lp-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-reveal,
    .lp-feature-media.lp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lp-hero-visual .lp-phone,
    .lp-hero-visual .lp-watch {
        animation: none;
    }
}
