/* The Android app page (templates/marketing_app.html): the official Play badge, the QR for a
   desktop visitor, the listing's own screens in a row, and the install steps. Everything sits on
   the design tokens and the sales pages' own classes; this file adds only the app-specific boxes. */

.vg-app-page .vg-hero { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* The badge keeps Google's own artwork and ratio (646 x 250 including its transparent margin),
   so it is never stretched or redrawn: only the box it occupies is scaled. */
.vg-app-badge { display: inline-flex; align-items: center; border-radius: var(--ds-radius-md); }
.vg-app-badge img { display: block; width: clamp(11.5rem, 16vw, 13.75rem); height: auto; }
.vg-app-badge:focus-visible { outline: none; box-shadow: var(--ds-ring-offset); }

.vg-app-actions { align-items: center; gap: var(--ds-space-5); margin-top: var(--ds-space-8); }

/* The QR pair: a white card so the code keeps its contrast on the ink hero, and a short instruction
   beside it. On a phone the pair is dropped: the visitor is already on the device that installs it,
   so the badge is the shorter path (and a phone cannot scan its own screen). */
.vg-app-qr { display: inline-flex; align-items: center; gap: var(--ds-space-4); max-width: 22rem; padding: .5rem .9rem .5rem .5rem; border-radius: var(--ds-radius-lg); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.vg-app-qr-mark { display: grid; place-items: center; flex: 0 0 auto; padding: 6px; border-radius: var(--ds-radius-sm); background: var(--ds-white); color: var(--ds-ink-900); }
.vg-app-qr-mark svg { display: block; width: 88px; height: 88px; }
.vg-app-qr-copy { color: var(--ds-ink-text-3); font-size: var(--ds-text-sm); line-height: 1.45; }
.vg-app-qr-copy strong { display: block; margin-bottom: .1rem; color: var(--ds-ink-text); font-weight: var(--ds-weight-semibold); }

.vg-app-hero-figure { margin: 0; align-self: center; justify-self: end; width: 100%; max-width: 22rem; }
.vg-app-hero-figure img { display: block; width: 100%; height: auto; border-radius: var(--ds-radius-2xl); box-shadow: var(--ds-shadow-lg); }
.vg-app-hero-figure figcaption { margin-top: .6rem; color: var(--ds-ink-text-3); font-size: var(--ds-text-xs); line-height: 1.5; }

/* Three of the listing's screens side by side. Each is a whole screenshot at its own ratio, so the
   row is a scroll-free grid on a desk and a single column on a phone (no sideways scrolling). */
.vg-app-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); align-items: start; }
.vg-app-shot { margin: 0; }
.vg-app-shot img { display: block; width: 100%; height: auto; border-radius: var(--ds-radius-xl); border: var(--ds-border); box-shadow: var(--ds-shadow-md); }
.vg-app-shot figcaption { margin-top: .85rem; color: var(--vg-muted-strong); font-size: var(--ds-text-sm); line-height: 1.55; }
.vg-app-shot figcaption strong { display: block; margin-bottom: .1rem; color: var(--ds-gray-900); font-weight: var(--ds-weight-semibold); }

.vg-app-steps { display: grid; gap: var(--ds-space-4); max-width: 42rem; margin: 0; padding: 0; list-style: none; counter-reset: vg-app-step; }
.vg-app-steps li { position: relative; padding: 0 0 0 3rem; color: var(--vg-muted-strong); font-size: var(--ds-text-base); line-height: 1.6; counter-increment: vg-app-step; }
.vg-app-steps li::before { content: counter(vg-app-step); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--ds-radius-pill); background: var(--ds-blue-50); color: var(--ds-blue-700); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-bold); box-shadow: inset 0 0 0 1px var(--ds-blue-100); }
.vg-app-steps li strong { display: block; color: var(--ds-gray-900); font-weight: var(--ds-weight-semibold); }

.vg-app-note { max-width: 42rem; margin: var(--ds-space-6) 0 0; padding: var(--ds-space-4) var(--ds-space-5); border: var(--ds-border); border-radius: var(--ds-radius-md); background: var(--ds-gray-25); color: var(--vg-muted-strong); font-size: var(--ds-text-sm); line-height: 1.6; }
.vg-app-note a { color: var(--ds-blue-700); font-weight: var(--ds-weight-semibold); text-decoration: underline; text-underline-offset: 2px; }

.vg-app-final { justify-content: center; align-items: center; }
.vg-app-qr-source { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 900px) {
    .vg-app-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-app-shots .vg-app-shot:first-child { grid-column: 1 / -1; max-width: 22rem; }
}
@media (max-width: 720px) {
    .vg-app-qr { display: none; }
    /* The figure follows the actions directly: the hero grid's row gap is sized for a two-column
       desk layout, and on a phone it reads as a hole between the badge and the screenshot. */
    .vg-app-page .vg-hero-grid { row-gap: var(--ds-space-6); }
    .vg-app-hero-figure { justify-self: start; max-width: 20rem; margin-top: calc(-1 * var(--ds-space-2)); }
    .vg-app-page .vg-hero-trust { margin-bottom: 0; }
}
@media (max-width: 620px) {
    .vg-app-shots { grid-template-columns: minmax(0, 1fr); }
    .vg-app-shots .vg-app-shot:first-child { max-width: none; }
    .vg-app-badge img { width: 11.5rem; }
    .vg-app-actions .vg-app-badge, .vg-app-final .vg-app-badge { width: auto; }
}

/* While the cookie bar is up, wow_pages.css treats every ink hero as a full-height first screen and
   stretches its first grid column to the viewport. On this page the figure sits *below* the copy on
   a phone, so that stretch only opens a hole between the small print and the screenshot. The hero
   here is a composed band, not a viewport-filling screen: it keeps the bar's reserve as padding. */
.vg-app-page.vg-ck-pending .vg-hero,
.vg-app-page .vg-hero {
    display: block;
    align-content: normal;
    min-height: 0;
}
.vg-app-page.vg-ck-pending .vg-hero { padding-bottom: calc(var(--vg-ck-reserve) + var(--ds-space-6)); }
.vg-app-page.vg-ck-pending .vg-hero-grid > :first-child,
.vg-app-page .vg-hero-grid > :first-child {
    min-height: 0;
    display: block;
    justify-content: initial;
    padding-bottom: 0;
}
