/* ==========================================================================
   Wanderlore — Android tester download page
   Extends the marketing theme in style.css; loaded only by /downloads/.
   ========================================================================== */

.downloads {
    padding: 140px 40px 80px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.downloads__header {
    text-align: center;
    margin-bottom: 18px;
}

.downloads__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 18px;
}

.downloads__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* Channel banner — testers must know this is not a store build before they
   hit the "unknown app" warning Android shows them mid-install. */
.channel-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 760px;
    margin: 40px auto 56px;
    padding: 18px 22px;
    background: var(--amber-dim);
    border: 1px solid rgba(240, 183, 90, 0.28);
    border-radius: var(--radius);
}

.channel-note__icon {
    font-size: 1.2rem;
    color: var(--amber);
    line-height: 1.4;
}

.channel-note__body {
    font-size: 0.94rem;
    color: var(--text);
}

.channel-note__body strong { color: var(--amber); font-weight: 600; }

.builds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.build-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.build-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 183, 90, 0.3);
}

.build-card__role {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 10px;
}

.build-card--partner .build-card__role { color: var(--sage); }
.build-card--operator .build-card__role { color: var(--blue); }

.build-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.build-card__desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    flex-grow: 1;
}

.build-card__meta {
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-bottom: 22px;
}

.build-card__meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
}

.build-card__meta span:last-child {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.build-card__download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 8px;
    background: var(--amber);
    color: #0b0c10;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s var(--ease);
}

.build-card__download:hover {
    box-shadow: 0 8px 28px var(--amber-glow);
    transform: translateY(-1px);
}

.build-card__checksum {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow-wrap: anywhere;
}

/* The store-link pair: TestFlight is open to anyone, so it carries the filled
   button; the Play internal-test link is gated on being an added tester until
   Google review clears the public beta, so it takes the outlined variant with
   its own footnote. */
.build-card__stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.build-card__download--secondary {
    background: transparent;
    border: 1px solid var(--amber);
    color: var(--amber);
}

.build-card__download--secondary:hover {
    background: var(--amber-dim);
    box-shadow: none;
}

.build-card__storenote {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.builds__status {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.builds__status a { color: var(--amber); }

/* Install steps reuse the landing page's numbered-step rhythm, without the
   connecting rail — these are instructions, not a narrative. */
.install {
    max-width: 900px;
    margin: 0 auto 90px;
}

.install__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 44px;
}

.install__step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(240, 183, 90, 0.35);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.install__step-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.install__step-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.faq {
    max-width: 900px;
    margin: 0 auto 100px;
}

.faq__item {
    border-top: 1px solid var(--border);
    padding: 22px 0;
}

.faq__q {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.faq__a {
    font-size: 0.94rem;
    color: var(--text-muted);
}

.faq__a code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .downloads { padding: 120px 20px 60px; }
    .channel-note { margin: 32px auto 40px; }
}
