/* Homepage-only layout. Shared light chrome (tokens, nav, footer, sections,
   accordion, call to action) lives in site-light.css, loaded just before this. */

/* Hero */
.home-hero {
    padding-block: 72px 44px;
    text-align: center;
}

.home-hero h1 {
    max-width: 16ch;
    margin: 0 auto;
    color: var(--heading);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.home-lede {
    max-width: 36rem;
    margin: 22px auto 0;
    color: var(--ink-soft);
    font-size: 1.18rem;
    line-height: 1.6;
}

.home-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 28px;
    list-style: none;
}

.home-proof li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-weight: 700;
}

.home-proof li::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231F1E96' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat,
        var(--gold);
}

/* The two paths: friends (the one bold panel) and pen pals */
.home-paths {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
}

.path {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 32px;
}

.path h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.path p {
    margin-top: 14px;
    font-size: 1.06rem;
    line-height: 1.6;
}

.path-friends {
    min-height: 560px;
    align-items: stretch;
    background:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(1px 1px at 38% 72%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 66% 12%, rgba(255, 255, 255, 0.75), transparent 60%),
        radial-gradient(1px 1px at 86% 58%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1px 1px at 24% 88%, rgba(255, 255, 255, 0.6), transparent 60%),
        linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
    color: #FFFFFF;
}

.path-friends .path-copy {
    flex: 1 1 52%;
    align-self: center;
    padding: 48px 8px 48px 48px;
}

.path-friends p {
    color: rgba(255, 255, 255, 0.86);
}

.path-phone {
    flex: 1 1 48%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 36px 24px 0 0;
}

.path-phone img {
    display: block;
    width: min(100%, 330px);
    height: auto;
    margin-bottom: -150px;
    filter: drop-shadow(0 24px 40px rgba(8, 6, 60, 0.45));
}

/* Pen pals: the one soft sky moment on the page */
.path-penpals {
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(ellipse 60% 38% at 18% 88%, #FFFFFF 0 58%, transparent 60%),
        radial-gradient(ellipse 46% 30% at 70% 96%, #FFFFFF 0 58%, transparent 60%),
        radial-gradient(ellipse 34% 22% at 92% 84%, rgba(255, 255, 255, 0.9) 0 58%, transparent 60%),
        linear-gradient(180deg, #BFE2F7 0%, #DCEFFA 100%);
    color: var(--ink);
}

.path-penpals .path-copy {
    padding: 44px 40px 0;
}

.path-penpals h2 {
    color: var(--heading);
}

.path-penpals p {
    color: var(--ink);
}



.path-stamps {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    padding: 28px 24px 56px;
}

.path-stamps img {
    width: auto;
    height: 104px;
    filter: drop-shadow(0 10px 14px rgba(31, 30, 150, 0.18));
}

.path-stamps img:nth-child(1) { transform: rotate(-7deg); }
.path-stamps img:nth-child(2) { transform: rotate(4deg) translateY(-14px); }
.path-stamps img:nth-child(3) { transform: rotate(-3deg); }

/* Press strip, inside the hero: proof people can check */
.home-press {
    max-width: 1080px;
    margin: 34px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.home-press-title {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.home-press-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 30px;
    margin-top: 10px;
}

.home-press-logos a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    border-radius: 8px;
    line-height: 0;
    transition: transform 0.15s ease;
}

/* Each logo is a stencil (CSS mask) so it can take any color: muted at rest,
   the outlet's own brand color on hover or keyboard focus. */
.press-mark {
    display: block;
    width: var(--w);
    aspect-ratio: var(--ratio);
    background-color: rgba(50, 57, 68, 0.5);
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
    transition: background-color 0.15s ease;
}

.home-press-logos a:hover,
.home-press-logos a:focus-visible {
    transform: translateY(-2px);
}

.home-press-logos a:hover .press-mark,
.home-press-logos a:focus-visible .press-mark,
.home-press-logos a:active .press-mark {
    background-color: var(--brand);
}

.home-press-logos a[href*="nytimes"] { --logo: url("/assets/press/new-york-times.svg"); --ratio: 240 / 42; --w: 136px; --brand: #000000; }
.home-press-logos a[href*="usatoday"] { --logo: url("/assets/press/usa-today.svg"); --ratio: 206 / 42; --w: 104px; --brand: #009BFF; }
.home-press-logos a[href*="vice.com"] { --logo: url("/assets/press/vice.svg"); --ratio: 130 / 42; --w: 50px; --brand: #000000; }
.home-press-logos a[href*="techcrunch"] { --logo: url("/assets/press/techcrunch.svg"); --ratio: 149 / 16; --w: 118px; --brand: #00A562; }
.home-press-logos a[href*="gamesbeat"] { --logo: url("/assets/press/gamesbeat.svg"); --ratio: 90 / 31; --w: 46px; --brand: #000000; }
.home-press-logos a[href*="ansa.it"] { --logo: url("/assets/press/ansa.png"); --ratio: 210 / 54; --w: 82px; --brand: #2FAF33; }
.home-press-logos a[href*="uol.com"] { --logo: url("/assets/press/uol-tilt.svg"); --ratio: 86 / 56; --w: 36px; --brand: #F08000; }
.home-press-logos a[href*="numerama"] { --logo: url("/assets/press/numerama.svg"); --ratio: 575 / 48; --w: 108px; --brand: #E9573F; }

/* Press quotes: the headlines themselves, so search engines can read them */
.home-quotes-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 32px;
}

.home-quotes-list figure {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 32px 8px;
    border-left: 1px solid var(--line);
}

.home-quotes-list figure:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-quotes-list blockquote p {
    color: var(--heading);
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.35;
    text-wrap: pretty;
}

.home-quotes-list figcaption {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.home-quotes-list figcaption a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.home-quotes .path-link {
    margin-top: 24px;
}

/* How a message travels: a real sequence, drawn as one dashed flight path. */
.home-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
    list-style: none;
    counter-reset: step;
}

.home-steps::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 22px;
    right: calc(33.333% - 22px);
    border-top: 2px dashed rgba(31, 30, 150, 0.28);
}

.home-steps li {
    position: relative;
    counter-increment: step;
}

.home-steps li::before {
    content: counter(step);
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--heading);
    font-size: 1.15rem;
    font-weight: 900;
    box-shadow: 0 0 0 8px var(--paper);
}

.home-steps h3 {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 800;
}

.home-steps p {
    max-width: 22rem;
    margin-top: 8px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* Birds */
.home-birds-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.home-rarities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.home-rarities li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 9px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.home-rarities li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--r);
}

.home-birds-flock {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 8px 0;
    border-bottom: 3px solid rgba(31, 30, 150, 0.14);
}

.home-birds-flock img {
    width: 30%;
    max-width: 190px;
    height: auto;
    margin-inline: -4%;
}

.home-birds-flock img:nth-child(2) { width: 34%; }
.home-birds-flock img:nth-child(5) { width: 24%; }

/* More about Roost: a plain index of the site, not a card grid */
.home-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    margin-top: 28px;
    list-style: none;
    border-top: 1px solid var(--line);
}

.home-index li {
    border-bottom: 1px solid var(--line);
}

.home-index a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    color: var(--ink);
    text-decoration: none;
}

.home-index strong {
    color: var(--heading);
    font-size: 1.12rem;
    font-weight: 800;
}

.home-index span {
    color: var(--ink-soft);
    line-height: 1.5;
}

.home-index a:hover strong {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* FAQ */
.home-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
}

.home-faq > .path-link {
    grid-column: 2;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 960px) {
    

    

    

    .home-paths,
    .home-birds-grid,
    .home-faq {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-faq > .path-link {
        grid-column: auto;
    }

    .path-friends {
        min-height: 0;
        flex-direction: column;
    }

    .path-friends .path-copy {
        padding: 40px 32px 8px;
    }

    .path-phone {
        padding: 12px 24px 0;
    }

    .path-phone img {
        width: min(78vw, 320px);
        margin-bottom: -120px;
    }

    .home-steps,
    .home-quotes-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-quotes-list figure,
    .home-quotes-list figure:first-child {
        padding: 22px 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .home-steps::before {
        top: 22px;
        bottom: 22px;
        left: 22px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed rgba(31, 30, 150, 0.28);
    }

    .home-steps li {
        padding-left: 70px;
    }

    .home-steps li::before {
        position: absolute;
        left: 0;
        top: 0;
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding-block: 48px 32px;
    }

    .home-press-logos {
        gap: 0 20px;
    }

    .home-press-logos a[href*="nytimes"] { --w: 116px; }
    .home-press-logos a[href*="techcrunch"] { --w: 100px; }
    .home-press-logos a[href*="numerama"] { --w: 92px; }

    .path {
        border-radius: 24px;
    }

    .path-friends .path-copy,
    .path-penpals .path-copy {
        padding: 32px 24px 4px;
    }

    .home-index {
        grid-template-columns: minmax(0, 1fr);
    }

    

    
}

@media (prefers-reduced-motion: reduce) {
    .home-press-logos a,
    .press-mark {
        transition: none;
    }

    .home-press-logos a:hover,
    .home-press-logos a:focus-visible {
        transform: none;
    }
}

/* ---- Design review 2026-09-28 ---- */

/* Hero: the install badges above the fold */
.home-hero .store-badges {
    justify-content: center;
    margin-top: 28px;
}

/* Rarity chips match the field guide's .sl-chip */
.home-rarities li {
    padding: 0;
    background: none;
}

.home-rarities li::before {
    content: none;
}

/* The flock fits the phone width */
@media (max-width: 600px) {
    .home-birds-flock img {
        width: 22%;
        margin-inline: -2%;
    }

    .home-birds-flock img:nth-child(2) {
        width: 25%;
    }

    .home-birds-flock img:nth-child(5) {
        width: 19%;
    }
}

/* Press logos a little more legible at rest */
.press-mark {
    background-color: rgba(50, 57, 68, 0.62);
}

/* The FAQ heading stays with the questions on wide screens */
@media (min-width: 961px) {
    .home-faq > h2,
    .home-faq > div:first-child {
        position: sticky;
        top: calc(var(--header-height) + 24px);
    }
}
