/* Keep the APP page on the shared neutral surfaces; reserve green for actions. */
.app-page {
    --app-action: var(--accent);
    --app-action-ink: var(--accent-ink);
    --app-action-hover: color-mix(in srgb, var(--accent) 90%, var(--text));
    padding-top: 35px;
    padding-bottom: 60px;
}
html.theme-dark .app-page {
    --app-action: #b8cc96;
    --app-action-ink: #1c2516;
    --app-action-hover: #c7d9a9;
}
.app-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 48px;
    min-height: 600px;
    align-items: center;
    padding: 40px 48px;
    background: linear-gradient(140deg, var(--surface-raised), var(--surface) 65%), var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
}
.app-copy { position: relative; z-index: 2; }
.app-copy .eyebrow { color: var(--text-muted); }
.app-copy h1 { font-size: 16px; margin: 16px 0; color: var(--text-muted); font-weight: 500; }
.app-lead { font-size: clamp(32px, 3.5vw, 54px); font-weight: 800; line-height: 1.35; letter-spacing: -1.5px; margin: 0 0 23px; }
.app-lead span { color: color-mix(in srgb, var(--text) 84%, var(--text-muted)); }
.app-copy .section-description { max-width: 430px; line-height: 1.9; }
.app-downloads { gap: 10px; margin: 27px 0 20px; flex-wrap: wrap; }
.app-downloads .explore-download {
    border: 1px solid var(--app-action);
    border-radius: 12px;
    min-height: 48px;
    padding: 12px 18px;
    background: var(--app-action);
    color: var(--app-action-ink);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color .18s ease, border-color .18s ease;
}
.app-downloads .explore-download:hover { background: var(--app-action-hover); border-color: var(--app-action-hover); }
.app-downloads .explore-download:active { background: var(--app-action); }
.app-downloads .explore-download:focus-visible { outline-color: var(--app-action); }
.app-qr { display: flex; gap: 18px; align-items: center; margin: 25px 0; }
.app-qr img { background: white; border: 8px solid #fff; border-radius: 12px; object-fit: contain; width: 110px; height: 110px; }
.app-qr figcaption { display: grid; gap: 8px; font-size: 14px; }
.app-qr figcaption span { color: var(--text-muted); font-size: 12px; }
.app-browse { display: inline-flex; gap: 20px; color: var(--text-muted); font-size: 13px; align-items: center; padding: 10px 0; }
.app-browse:hover { color: var(--text); }
.app-browse:focus-visible, .app-discover > a:focus-visible { outline: 2px solid var(--app-action); outline-offset: 4px; border-radius: 6px; }
.app-showcase { position: relative; height: 580px; display: flex; justify-content: center; gap: 18px; overflow: hidden; isolation: isolate; mask-image: linear-gradient(transparent, #000 10%, #000 87%, transparent); }
.app-orbit {
    position: absolute;
    width: 460px;
    height: 460px;
    border: 1px solid var(--line);
    border-radius: 50%;
    top: 60px;
    z-index: -1;
    box-shadow: 0 0 0 40px color-mix(in srgb, var(--text) 3%, transparent), 0 0 0 100px color-mix(in srgb, var(--text) 1.5%, transparent);
}
.app-poster-lane { width: 44%; max-width: 185px; transform: rotate(8deg); }
.app-poster-track { animation: app-cover-scroll 85s linear infinite; }
.app-poster-group { display: grid; gap: 18px; padding-bottom: 18px; }
.app-poster-lane.lane-1 { padding-top: 75px; }
.lane-1 .app-poster-track { animation-direction: reverse; animation-duration: 100s; }
.app-poster { position: relative; aspect-ratio: 2/2.85; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-soft); box-shadow: 0 12px 30px #0003; }
.app-poster-image { width: 100%; height: 100%; object-fit: cover; }
.app-poster > span { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, #000b); padding: 34px 12px 12px; color: white; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-showcase-badge { position: absolute; bottom: 48px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow); font-size: 12px; display: flex; align-items: center; gap: 9px; }
.app-showcase-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--app-action); }
.app-art-placeholder { margin: auto; display: grid; gap: 15px; text-align: center; }
.app-art-placeholder > span { font-size: 70px; color: var(--text-muted); }
.app-art-placeholder strong { font-size: 25px; }
.app-art-placeholder small { color: var(--text-muted); }
.app-discover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.app-discover > a { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 25px 22px; background: var(--surface); transition: background-color .18s ease, border-color .18s ease; }
.app-discover > a:hover { background: var(--surface-raised); border-color: color-mix(in srgb, var(--text-muted) 35%, var(--line)); }
.app-feature-number { align-self: flex-start; font-size: 12px; color: var(--text-muted); font-weight: 700; padding-top: 4px; }
.app-discover h2 { font-size: 16px; margin: 0 0 9px; }
.app-discover p { font-size: 12px; margin: 0; color: var(--text-muted); line-height: 1.7; }
.app-discover > a > span:last-child { margin-left: auto; color: var(--text-muted); }
.app-showcase:hover .app-poster-track { animation-play-state: paused; }
@keyframes app-cover-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (max-width: 1050px) {
    .app-hero { padding: 30px; gap: 25px; }
    .app-lead { font-size: 36px; }
    .app-discover > a { padding: 20px 14px; gap: 12px; }
}
@media (max-width: 700px) {
    .app-page { padding-top: 18px; }
    .app-hero { grid-template-columns: 1fr; padding: 25px 22px; gap: 20px; }
    .app-lead { font-size: 34px; }
    .app-showcase { height: 320px; margin: 0 -22px -25px; }
    .app-poster-lane { max-width: 135px; width: 38%; }
    .app-poster-group { gap: 12px; padding-bottom: 12px; }
    .app-showcase-badge { bottom: 34px; }
    .app-discover { grid-template-columns: 1fr; gap: 10px; }
    .app-discover > a { padding: 20px; }
    .app-downloads .explore-download { font-size: 13px; padding: 12px 14px; }
    .app-qr { margin: 18px 0; }
    .app-hero .empty-state { padding: 18px 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .app-poster-track { animation: none; }
    .app-poster-lane.lane-1 { padding-top: 0; }
    .app-downloads .explore-download, .app-discover > a { transition: none; }
}
