/*
 * Twinkle Lights: search landing pages (/christmas-lights-mac, /snow-on-mac-desktop,
 * /christmas-live-wallpaper-iphone, /christmas-live-wallpaper-android, /christmas-countdown-widget,
 * /lunar-new-year). Loaded after base.css, home.css and holiday.css: the hero scene, strand rows,
 * device cards, steps (.iphone-steps), the iPhone fan and the closing come from those files; this
 * file holds only what these pages add.
 */

/* =========================================================================
   Hero
   ========================================================================= */

/* The first paragraph answers the searcher in one or two sentences: a reading column, smaller
   than the holiday pages' one-line greeting. */
.landing .scene--holiday .caption p:not(.eyebrow) {
    max-width: 46rem;
    font-size: clamp(1.05rem, calc(24 * var(--pt)), 1.6rem);
}
.scene--landing .caption::before { --scrim: 0.64; }

/* The phone pages open with a phone instead of a desktop scene (.iphone of home.css), so the
   section starts below the page header. */
.landing-hero.iphone { padding-top: calc(var(--bar-h) + clamp(3rem, 7vw, 5rem)); }
.landing-hero h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); }

/* One drawn Android phone (transparent corners, so drop-shadow follows its outline). */
.landing-phone { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; text-align: center; }
.landing-phone img {
    display: block; margin: 0 auto;
    width: clamp(13rem, 24vw, 19rem); height: auto;
    filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.5));
}
.landing-phone figcaption {
    margin-top: 1.25rem;
    font: 500 0.9rem/1.3 var(--rounded);
    color: rgb(255 248 236 / 0.75);
}

/* =========================================================================
   How it works: the numbered steps of home.css (.iphone-how, .iphone-steps)
   ========================================================================= */

.landing-how {
    overflow: clip;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, #161A38 0%, #20264D 55%, #171B3A 100%);
}
.landing-how .iphone-how { margin-top: 0; }
.landing-how h2 { margin: 0; font-family: var(--rounded); font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; color: var(--cream); }
.landing-note { margin: 1.25rem auto 0; max-width: 40rem; font-size: 0.98rem; color: rgb(255 248 236 / 0.8); }

/* Four device or feature cards: two by two (holiday.css draws two in a row from 48rem). */
.holiday-cards--four { max-width: 62rem; }

/* A section of text only (no picture), like .holiday-widget. */
.landing-text {
    overflow: clip;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem clamp(3rem, 6vw, 5rem);
    text-align: center;
    background: linear-gradient(180deg, #171B3A 0%, #20264D 50%, #171B3A 100%);
}
.landing-text > .caption { max-width: 46rem; margin: 0 auto; }
.landing-text h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.landing-text .caption p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

/* =========================================================================
   Related pages: a row of links
   ========================================================================= */

.landing-related {
    padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
    text-align: center;
    font-family: var(--rounded);
    background: #171B3A;
}
.landing-related h2 { margin: 0; font-family: var(--rounded); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--cream); }
.landing-related ul {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
    max-width: 60rem; margin: 1.5rem auto 0; padding: 0; list-style: none;
}
.landing-related a {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.07);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
    color: var(--cream); font-weight: 600; text-decoration: none;
}
.landing-related a:hover, .landing-related a:focus-visible { background: rgb(255 255 255 / 0.14); }

/* Three cards in a row where they fit, stacked below. */
@media (min-width: 64rem) {
    .landing-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Three steps: one row where they fit (home.css draws two by two from 56rem). */
@media (min-width: 64rem) {
    .iphone-steps.landing-steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
