/* ==========================================================================
   Download page  (download.html)
   Body content is pixel-perfect to Figma (desktop 1440).
   Header, FAQ and footer reuse the shared site components (css/index.css).
   ========================================================================== */

:root {
    --dl-orange: #ff880b;
    --dl-cream: #fff8f1;
    --dl-ink: #0f0f0f;
    --dl-muted: #545454;
    --dl-max: 1348px;
}

body.download-page {
    background: #ffffff;
    color: var(--dl-ink);
    font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.download-page main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 24px 0 40px;
}

/* ---------- section widths ----------
   All containers span full width (15px gutters, like the footer);
   only the FAQ stays in a centered max-width column. */
.download-steps,
.download-easier {
    width: auto;
    margin-inline: 15px;
}

.download-faq {
    width: min(var(--dl-max), calc(100% - 48px));
    margin-inline: auto;
}

/* =====================================================================
   HERO
   ===================================================================== */
.download-hero {
    position: relative;
    overflow: hidden;
    background: var(--dl-cream);
    border-radius: 20px;
    margin: 20px 15px 0;
    display: flex;
    flex-direction: column;
}

/* nav: light-hero treatment (mirrors talent.css) */
.download-hero > .hero__nav {
    width: 100%;
    box-sizing: border-box;
}

.download-hero .hero__menu a {
    color: #000;
}

.download-hero .hero__menu a:hover {
    opacity: 0.65;
}

.download-hero .hero__hamburger span {
    background: #000;
}

/* Center the nav menu: this page has no signup button to balance the flex,
   so mirror the home-page treatment (desktop only; mobile keeps the hamburger dropdown). */
@media (min-width: 769px) {
    .download-hero > .hero__nav {
        justify-content: flex-start;
    }
    .download-hero .hero__menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.download-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1560px, calc(100% - 72px));
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    align-items: stretch;
    gap: 24px;
    padding-bottom: 40px;
}

.download-hero__copy {
    max-width: 632px;
    display: flex;
    flex-direction: column;
}

.download-hero__title {
    font-size: 70px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #000;
    margin: 0;
}

.download-hero__desc {
    margin: 28px 0 0;
    max-width: 556px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dl-muted);
}

.download-hero__label {
    margin: 40px 0 16px;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    color: #757575;
}

/* app store badges */
.download-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.download-badges a {
    display: inline-flex;
    transition: transform 180ms ease;
}

.download-badges a:hover {
    transform: translateY(-2px);
}

.download-badges img {
    display: block;
    height: 57px;
    width: auto;
}

/* partner logos row */
/* Reuse the shared home marquee, at a smaller horizontal scale */
.download-hero__logos {
    margin-top: auto;
    padding-top: 52px;
    width: 100%;
    max-width: 600px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.download-hero__logos .trusted__marquee {
    padding: 0;
}

.download-hero__logos .trusted__row {
    gap: 34px;
    padding: 0 17px;
}

.download-hero__logos .trusted__row img {
    max-height: 36px;
    max-width: 130px;
}

/* hero media (orange panel + phone + mascot) */
.download-hero__media {
    width: 100%;
    max-width: 448px;
    margin-inline: auto;
    justify-self: end;
    align-self: center;
}

.download-hero__media-img {
    display: block;
    width: 100%;
    height: auto;
}

.download-hero__star-word {
    position: relative;
    white-space: nowrap;
}

/* star sits above the word "schedule" (desktop only; hidden <=1024px below) */
.download-hero__star {
    position: absolute;
    right: 0;
    bottom: calc(100% - 16px);
    width: 92px;
    height: auto;
    z-index: 4;
    pointer-events: none;
}

/* =====================================================================
   STEPS
   ===================================================================== */
.download-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.download-step {
    position: relative;
    overflow: hidden;
    background: var(--dl-cream);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    min-height: 407px;
    padding: 40px 49px;
    display: grid;
    grid-template-columns: minmax(0, 545px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.download-step--2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
}

/* Step 1: content left, visual right (matches Figma) */
.download-step--1 .download-step__content {
    order: -1;
}

.download-step--2 .download-step__visual {
    order: -1;
}

.download-step__watermark {
    position: absolute;
    font-size: 275px;
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -5.5px;
    color: rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    top: auto;
    bottom: 0;
    transform: translateY(40%);
}

.download-step--1 .download-step__watermark { left: -12px; }
.download-step--2 .download-step__watermark { left: 40%; }

/* step content */
.download-step__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 545px;
}

.download-scan-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 15px;
    padding: 14px 22px;
    font-size: 20px;
    font-weight: 400;
    color: #6b7280;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.download-scan-pill__dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dl-orange);
    flex-shrink: 0;
}

.download-step__title {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.72px;
    color: var(--dl-ink);
}

.download-step__title mark {
    background: var(--dl-orange);
    color: #fff;
    padding: 0 8px;
    border-radius: 4px;
}

.download-step__text {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.216px;
    color: var(--dl-ink);
}

.download-getstarted {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: var(--dl-orange);
    color: #fff;
    border-radius: 999px;
    padding: 7px 7px 7px 22px;
    font-size: 22px;
    font-weight: 400;
    text-decoration: none;
    margin-top: 6px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-getstarted:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 136, 11, 0.35);
}

.download-getstarted img {
    width: 30px;
    height: 30px;
    display: block;
}

/* step visual */
.download-step__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.download-step__figure {
    position: relative;
    width: min(445px, 100%);
}

.download-step--2 .download-step__figure {
    width: min(540px, 100%);
}

/* make room on the left for the hint + arrow */
.download-step--2 .download-step__visual {
    padding-left: 165px;
}

.download-step__illustration {
    display: block;
    width: 100%;
    height: auto;
}

.download-step--1 .download-step__illustration {
    transform: rotate(-10deg);
}

.download-step__hint {
    position: absolute;
    font-size: 20px;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--dl-orange);
    text-align: center;
    width: 150px;
    z-index: 3;
}

/* hints/arrows are positioned relative to the figure so they stay
   glued to the illustration at any container width */
.download-step__hint--1 {
    top: -6px;
    left: calc(100% + 12px);
}

.download-step__hint--2 {
    top: 26%;
    right: calc(100% + 56px);
    width: 124px;
    text-align: center;
}

.download-step__arrow {
    position: absolute;
    z-index: 3;
    height: auto;
    pointer-events: none;
}

.download-step__arrow--1 {
    width: 112px;
    top: 42px;
    left: calc(100% - 28px);
}

.download-step__arrow--2 {
    width: 112px;
    top: 22%;
    right: calc(100% - 52px);
}

/* =====================================================================
   WE JUST MADE WORK EASIER
   ===================================================================== */
/* parent holds everything; the orange band is a backdrop that reaches
   down to the middle of the cards, which overlap it */
.download-easier {
    position: relative;
    padding-top: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-easier__band {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 420px;
    overflow: hidden;
    background: var(--dl-orange);
    border-radius: 30px;
    z-index: 0;
}

/* faint concentric rings */
.download-easier__band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 701px;
    height: 701px;
    transform: translate(-50%, -34%);
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle,
            rgba(255, 255, 255, 0.14) 0 1px,
            transparent 1px 58px);
    pointer-events: none;
}

.download-easier__title {
    position: relative;
    z-index: 1;
    margin: 0 auto 74px;
    max-width: 651px;
    font-size: 39px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    color: #fff;
}

.download-easier__title mark {
    background: #fff;
    color: var(--dl-orange);
    padding: 0 6px;
    border-radius: 4px;
}

.download-easier__cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 362px));
    justify-content: center;
    gap: 50px;
    width: 100%;
}

.download-easier__store-title {
    margin: 50px 0 26px;
    font-size: 39px;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    color: #000;
}

.download-feature {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.13);
    aspect-ratio: 362 / 455;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-feature--phone-bottom {
    justify-content: flex-start;
}

/* faint concentric rings behind phone */
.download-feature::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 276px;
    height: 276px;
    border-radius: 50%;
    transform: translateX(-50%);
    background:
        repeating-radial-gradient(circle,
            rgba(0, 0, 0, 0.05) 0 1px,
            transparent 1px 23px);
    pointer-events: none;
}

.download-feature--phone-top::before { top: 26px; }
.download-feature--phone-bottom::before { bottom: -60px; }

.download-feature__visual {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
}

.download-feature--phone-top .download-feature__visual {
    align-items: flex-start;
}

.download-feature--phone-bottom .download-feature__visual {
    align-items: flex-end;
}

.download-feature__visual img {
    display: block;
    width: 54%;
    height: auto;
    align-self: flex-end;
}

.download-feature--phone-top .download-feature__visual img {
    align-self: flex-start;
}

.download-feature__text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 46px;
    width: 100%;
    box-sizing: border-box;
}

.download-feature--phone-top .download-feature__text {
    padding-bottom: 34px;
}

.download-feature--phone-bottom .download-feature__text {
    padding-top: 36px;
}

.download-feature__text h3 {
    margin: 0 0 6px;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.15px;
    color: #000;
}

.download-feature__text p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}

.download-badges--lg {
    margin-bottom: 20px;
}

.download-badges--lg img {
    height: 71px;
}

/* =====================================================================
   FAQ  (copied from shared talent component so it renders without talent.css)
   ===================================================================== */
.download-faq {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 46px;
    align-items: start;
    padding: 65px 0;
}

.talent-faq__intro {
    display: grid;
    gap: 18px;
    align-content: start;
}

.talent-faq__intro h2 {
    max-width: 220px;
    font-size: 48px;
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.055em;
    color: #171315;
    margin: 0;
}

.talent-faq__intro p {
    max-width: 240px;
    font-size: 18px;
    line-height: 1.45;
    color: #6f6b73;
    margin: 0;
}

.talent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
}

.talent-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.talent-button--faq {
    width: fit-content;
    min-height: auto;
    padding: 14px 26px;
    border-radius: 999px;
    border-color: rgba(23, 19, 21, 0.08);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 24, 20, 0.04);
    color: #171315;
    font-size: 13px;
}

.talent-faq__list {
    display: grid;
    gap: 14px;
}

.talent-faq__item {
    border: 1px solid rgba(33, 28, 24, 0.08);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31, 24, 20, 0.03);
}

.talent-faq__item summary {
    list-style: none;
    position: relative;
    padding: 18px 52px 18px 18px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    color: #171315;
}

.talent-faq__item summary::-webkit-details-marker {
    display: none;
}

.talent-faq__item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid #171315;
    border-bottom: 1.5px solid #171315;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 180ms ease;
}

.talent-faq__item[open] summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.talent-faq__item p {
    padding: 0 18px 18px;
    font-size: 18px;
    line-height: 1.6;
    color: #6f6b73;
    margin: 0;
}

.talent-faq__item[open] {
    background: #fffdfa;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1200px) {
    .download-hero__title { font-size: 58px; }
    .download-easier__cards { gap: 28px; }
    /* below the 70px hero layout the star can't sit cleanly above "schedule" */
    .download-hero__star { display: none; }
}

@media (max-width: 1024px) {
    .download-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        text-align: left;
    }

    .download-hero__copy { max-width: 640px; }

    .download-hero__media {
        max-width: 360px;
        justify-self: center;
    }

    /* steps become single column, visual under content */
    .download-step,
    .download-step--2 {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 36px 32px;
    }

    .download-step--2 .download-step__visual { order: 0; padding-left: 0; }

    .download-step__content { max-width: none; }

    .download-step__watermark { font-size: 200px; }
    .download-step--1 .download-step__watermark,
    .download-step--2 .download-step__watermark { left: 50%; transform: translate(-50%, 40%); }

    .download-step__visual { min-height: 300px; margin-top: 8px; }
    .download-step__hint,
    .download-step__arrow { display: none; }

    .download-easier__cards {
        grid-template-columns: repeat(2, minmax(0, 362px));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .download-page main { gap: 28px; }

    .download-hero__title { font-size: 44px; }
    .download-hero__desc { font-size: 18px; margin-top: 20px; }
    .download-hero__label { font-size: 26px; margin: 32px 0 14px; }

    .download-badges img { height: 50px; }

    /* mobile: hide the hero mockup, center the download label + badges */
    .download-hero__media { display: none; }
    .download-hero__label { text-align: center; }
    .download-badges { justify-content: center; }

    .download-hero__logos { padding-top: 32px; max-width: 100%; }
    .download-hero__logos .trusted__row { gap: 26px; padding: 0 13px; }
    .download-hero__logos .trusted__row img { max-height: 28px; max-width: 110px; }

    .download-step__title { font-size: 30px; }
    .download-step__watermark { font-size: 150px; }
    .download-scan-pill { font-size: 18px; padding: 12px 18px; }
    .download-getstarted { font-size: 19px; }

    .download-easier { padding-top: 56px; }
    .download-easier__band { height: 360px; border-radius: 22px; }
    .download-easier__title { font-size: 30px; margin-bottom: 52px; }
    .download-easier__cards { grid-template-columns: minmax(0, 362px); }

    .download-easier__store-title { font-size: 30px; }
    .download-badges--lg img { height: 58px; }

    /* FAQ stacks */
    .download-faq {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 40px 0;
    }

    .talent-faq__intro h2 { font-size: 38px; max-width: none; }
    .talent-faq__intro p { max-width: none; }
    .talent-faq__item summary { font-size: 20px; }
    .talent-faq__item p { font-size: 16px; }
}

@media (max-width: 480px) {
    .download-faq {
        width: calc(100% - 32px);
    }

    .download-hero__inner { width: calc(100% - 32px); }
    .download-hero__title { font-size: 36px; }
    .download-step { padding: 28px 20px; }
    .download-step__watermark { font-size: 110px; }
    .download-step__hint { display: none; }
    .download-step__arrow { display: none; }
    .download-easier__title { font-size: 25px; }
    .download-easier__store-title { font-size: 25px; }
    .download-easier__band { height: 320px; }

    .download-badges { gap: 10px; }
    .download-badges img { height: 46px; }
}
