/* ===========================================================================
   Yumee hub — the app showcase (app.php), below the head band.

   A store page in the house skin: the screens first, then what the app does,
   how a run goes, what it costs and what it needs. Every value is a token
   from site.css; shop.css still owns the head and the cost card.

   Phone first: every grid is minmax(0, 1fr) or min(…, 100%), the one scroll
   rail clips vertically, and the pictures carry their own aspect box so
   nothing jumps while they load.
   =========================================================================== */

/* ---------------------------------------------------------------- head ---- */
/* Two columns: the words on the left, the offer card on the right. The card
   holds everything about getting the app — the price model, one full-width
   button, the version line, three facts and the way to every price — so
   nothing floats loose beside a button any more. */

.show-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    grid-template-areas: "head offer" "intro offer" "safe safe";
    gap: 22px clamp(24px, 4vw, 56px);
    align-items: start;
}
.show-head > .shop-app__head { grid-area: head; }
.show-head > .show-offer { grid-area: offer; }
.show-intro {
    grid-area: intro;
    min-width: 0;
    /* Under the title, in line with its words rather than the icon. */
    padding-left: calc(clamp(64px, 7vw, 88px) + clamp(16px, 2.5vw, 28px));
    display: grid;
    gap: 12px;
}
.show-intro .show-lead { font-size: 1rem; line-height: 1.7; max-width: 62ch; }

/* The icon sits with the kicker, not in the middle of a tall column. */
.shop-app__head { align-items: start; max-width: none; margin-bottom: 0; }
.shop-app__icon { margin-top: 2px; }
.shop-app__headtext { min-width: 0; }
.shop-app__promise {
    font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem);
    color: var(--ink);
    max-width: 30ch;
}

.show-facts {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.show-facts__item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .9375rem;
    color: var(--ink-soft);
    min-width: 0;
}
.show-facts__item svg {
    width: 20px; height: 20px; flex: none; padding: 3px;
    border-radius: var(--r-round);
    background: var(--mint-soft);
    color: var(--mint-ink);
}

.show-offer {
    padding: clamp(20px, 2.4vw, 26px);
    display: grid;
    gap: 14px;
    min-width: 0;
}
.show-offer .shop-msg { margin: 0; }
.show-offer__model {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.show-offer__what { font-size: .875rem; color: var(--ink-soft); min-width: 0; }
.show-offer__actions { display: grid; gap: 10px; }
.show-offer__actions:empty { display: none; }
.show-offer__soon { justify-self: start; }
/* The line under "Download Launcher": what the launcher is, in one sentence. */
.show-offer__launcher { margin: -2px 0 0; font-size: .8125rem; color: var(--yu-ink-faint); text-align: center; }
/* The app's own installer, as a small link under the launcher's button. */
.show-offer__only { margin: 0; font-size: .8125rem; text-align: center; }
.show-offer__owned {
    margin: 0;
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--mint-ink);
}
.show-offer__owned svg { width: 18px; height: 18px; flex: none; }
.show-offer .show-release { margin: 0; }
.show-offer .show-release--how { margin-top: -8px; }

.show-offer__facts {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line-card);
    display: grid;
    gap: 9px;
    font-size: .875rem;
    color: var(--ink-soft);
}
.show-offer__facts li { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.show-offer__facts svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--purple-deep); }
.show-offer__facts span { min-width: 0; overflow-wrap: anywhere; }
.show-offer__cost { justify-self: start; margin: 0; }
.show-offer .shop-msg:empty { display: none; }

/* "Why might Windows warn about this?": a box at the foot of the card,
   closed until opened, that answers like a short FAQ. The last VirusTotal
   check leads: its date sits in the closed line as a mint stamp, and opened,
   a tinted card shows the date large, what the scanners found and a button
   to the full report. The fingerprint wraps anywhere so it never widens a
   phone screen. */
.show-safe {
    grid-area: safe;
    border: 1px solid var(--line-card);
    border-radius: var(--r-lg);
    background: var(--card);
    min-width: 0;
}
.show-safe__q {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    color: var(--ink);
}
.show-safe__q::-webkit-details-marker { display: none; }
.show-safe__q:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: var(--r-lg); }
.show-safe__q > svg:first-child {
    width: 36px; height: 36px;
    padding: 8px;
    border-radius: var(--r-round);
    background: var(--mint-soft);
    color: var(--mint-ink);
}
.show-safe__q > svg:last-child { width: 16px; height: 16px; color: var(--purple-deep); transition: transform var(--fast) var(--ease); }
.show-safe[open] .show-safe__q > svg:last-child { transform: rotate(180deg); }
.show-safe__qtext { display: grid; gap: 5px; min-width: 0; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.show-safe__stamp {
    justify-self: start;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--mint-soft);
    color: var(--mint-ink);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.show-safe__a {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 4px 16px 18px;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}
@media (min-width: 900px) {
    .show-safe__a { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; padding: 4px 20px 20px; }
    .show-safe__verdict { position: sticky; top: 90px; }
}
.show-safe__a p { margin: 0 0 9px; }
.show-safe__a p:last-child { margin-bottom: 0; }

/* The last check: large date, the scanners' answer, the report button. */
.show-safe__verdict {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: var(--r-md);
    background: var(--mint-soft);
    border: 1px solid var(--line-card);
    min-width: 0;
}
.show-safe__verdict .yu-label { margin: 0 !important; color: var(--mint-ink); }
.show-safe__verdict p { margin: 0 !important; }
.show-safe__date {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--ink);
}
.show-safe__ago {
    display: block;
    margin-top: 2px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--mint-ink);
    white-space: nowrap;
}
.show-safe__score { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ink); font-weight: 500; }
.show-safe__score svg { width: 18px; height: 18px; margin-top: 2px; color: var(--mint-ink); }
.show-safe__note { font-size: .8125rem; }
.show-safe__vt { margin-top: 6px; justify-self: stretch; justify-content: center; text-align: center; white-space: normal; }
.show-safe__vt svg { width: 16px; height: 16px; flex: none; }

/* The questions. */
.show-safe__faq { min-width: 0; }
.show-safe__fq {
    margin: 16px 0 4px;
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.35;
    color: var(--ink);
}
.show-safe__fq:first-child { margin-top: 0; }
.show-safe__h { margin: 8px 0 6px !important; color: var(--ink); }
.show-safe__list { margin: 0 0 9px; padding-left: 18px; display: grid; gap: 5px; font-size: .8125rem; }
.show-safe__hash { display: grid; gap: 4px; }
.show-safe__hash code {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line-card);
    border-radius: var(--r-xs);
    padding: 6px 8px;
    overflow-wrap: anywhere;
    word-break: break-all;
}
@media (prefers-reduced-motion: reduce) {
    .show-safe__q > svg:last-child { transition: none; }
}

@media (max-width: 900px) {
    .show-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "offer" "safe" "intro"; }
    .show-offer { max-width: 520px; }
    .show-intro { padding-left: 0; }
}

/* The closing line under the feature cards. */
.show-outro {
    margin: clamp(18px, 3vw, 28px) 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
}
.show-outro svg { width: 22px; height: 22px; flex: none; color: var(--pink-ink); }

/* -------------------------------------------------------------- blocks ---- */

.show-section { margin-block: clamp(36px, 6vw, 64px); }
.show-section--lead { margin-top: clamp(24px, 4vw, 40px); }

.show-lead {
    margin: 0;
    max-width: var(--measure);
    font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
    line-height: 1.7;
    color: var(--ink-soft);
}

.show-h2 {
    font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
    margin: 0 0 clamp(16px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------- gallery ---- */
/* One big frame, a caption under it, and a rail of the other screens. The
   frame is furniture drawn in CSS — a window bar or a phone bezel — so a
   screenshot is never shipped with chrome baked into the picture. */

.show-gallery { margin-block: clamp(28px, 5vw, 56px); }

.show-stage { margin: 0; display: grid; gap: 16px; justify-items: center; }

.show-frame {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--card);
    border: 1px solid var(--line-card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-hover);
    padding: 34px 10px 10px;
    cursor: zoom-in;
}
.show-frame__bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-inline: 14px;
    border-bottom: 1px solid var(--line);
}
.show-frame__bar i {
    width: 9px; height: 9px;
    border-radius: var(--r-round);
    background: var(--lav-300);
}
.show-frame__bar i:nth-child(2) { background: var(--pink-soft); }
.show-frame__bar i:nth-child(3) { background: var(--mint-soft); }

.show-frame__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    background: var(--mist);
}

/* The phone: a narrow column, a fat bezel and a speaker line instead of the
   window bar. */
.show-frame--phone {
    max-width: 320px;
    padding: 14px;
    border-radius: 40px;
    border: 1px solid var(--line-strong);
}
.show-frame--phone .show-frame__bar { border-bottom: 0; justify-content: center; height: 14px; }
.show-frame--phone .show-frame__bar i:first-child {
    width: 46px; height: 5px; border-radius: var(--r-pill); background: var(--lav-300);
}
.show-frame--phone .show-frame__bar i:nth-child(2),
.show-frame--phone .show-frame__bar i:nth-child(3) { display: none; }
.show-frame--phone .show-frame__img { border-radius: 28px; }

.show-frame--plain { padding: 10px; }
.show-frame--plain .show-frame__bar { display: none; }

/* A docked panel — Captionee lives in one inside After Effects — is a tall
   strip, so it gets a strip's width rather than a window's. */
.show-frame--panel { max-width: 420px; padding: 10px; }
.show-frame--panel .show-frame__bar { display: none; }

.show-stage__note {
    margin: 0;
    max-width: 62ch;
    text-align: center;
    color: var(--ink-soft);
    font-size: .9375rem;
}
.show-stage__note:empty { display: none; }

/* The rail. overflow-y is hidden next to overflow-x: auto, or an inner pan
   counts as sideways scroll on a phone. */
.show-thumbs {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 960px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
}
.show-thumb {
    flex: 0 0 auto;
    width: clamp(126px, 14vw, 186px);
    display: grid;
    gap: 6px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--line-card);
    border-radius: var(--r-md);
    cursor: pointer;
    scroll-snap-align: start;
    font: inherit;
    color: var(--ink-soft);
    text-align: left;
    transition: border-color var(--fast) var(--ease), box-shadow var(--slow) var(--ease);
}
.show-thumb:hover { border-color: var(--lav-300); box-shadow: var(--shadow-card); }
.show-thumb.is-active { border-color: var(--purple); color: var(--ink); }
.show-thumb:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.show-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--r-xs);
    background: var(--mist);
}
.show-thumb__label {
    font-size: .75rem;
    letter-spacing: var(--track);
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------- command card ---- */
/* For an app that has no window: its verbs, in the ink card. Commands only —
   never invented output dressed up as a real session. */

.show-term { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); }
.show-term__row {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 4px 22px;
    align-items: baseline;
}
.show-term__cmd { font-family: var(--mono); font-size: .9375rem; white-space: nowrap; }
.show-term__prompt { color: var(--lav-300); }
.show-term__note { color: var(--contrast-muted); font-size: .875rem; min-width: 0; }

@media (max-width: 620px) {
    .show-term__row { grid-template-columns: minmax(0, 1fr); }
    .show-term__cmd { white-space: normal; overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------ features ---- */

.show-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.show-feature { display: grid; gap: 10px; align-content: start; min-width: 0; height: 100%; }
.show-feature .yu-tile__icon { width: 42px; height: 42px; }
.show-feature .yu-tile__icon svg { width: 22px; height: 22px; }
.show-feature__title { margin: 0; }
.show-feature__body { margin: 0; color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; }

/* --------------------------------------------------------------- steps ---- */

.show-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    counter-reset: step;
}
.show-step {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
    padding-top: 12px;
    border-top: 1.5px solid var(--line-strong);
}
.show-step__num {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: var(--track-caps);
    color: var(--purple-ink);
}
.show-step__title { margin: 0; }
.show-step__body { margin: 0; color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; }

/* ------------------------------------------------------- cost and needs --- */

.show-cost {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    align-items: start;
}
.show-specs { min-width: 0; }
.show-specs__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.show-specs__list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: .9375rem;
    color: var(--ink-soft);
}
.show-specs__list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--mint-ink); }

/* --------------------------------------------------- download + what's new -- */
/* The line under the download button (version, size, date), and one hairline
   card with the newest versions; older ones fold away in a <details>. */

.show-release {
    margin: 12px 0 0;
    font-size: .8125rem;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

/* How the installer behaves, right under the line above it. */
.show-release--how { margin-top: 4px; }

.show-log { max-width: 820px; padding: 4px clamp(18px, 3vw, 26px); }
.show-log__list { list-style: none; margin: 0; padding: 0; }
.show-log__entry { padding: 18px 0; min-width: 0; }
.show-log__entry + .show-log__entry { border-top: 1px solid var(--line-card); }
.show-log__head {
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}
.show-log__head .yu-label { color: var(--purple-ink); }
.show-log__date { font-size: .8125rem; color: var(--ink-soft); }
.show-log__points {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 6px;
    color: var(--ink-soft);
    font-size: .9375rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.show-log__points li::marker { color: var(--purple); }

.show-log__older { border-top: 1px solid var(--line-card); }
.show-log__more {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    font-weight: 500;
}
.show-log__more::-webkit-details-marker { display: none; }
.show-log__more:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.show-log__more svg { width: 20px; height: 20px; color: var(--purple-deep); transition: transform var(--fast) var(--ease); }
.show-log__older[open] .show-log__more svg { transform: rotate(180deg); }
.show-log__older .show-log__entry:first-child { border-top: 1px solid var(--line-card); }

/* ----------------------------------------------------------------- faq ---- */

.show-faq { display: grid; gap: 12px; max-width: 820px; }
.show-q { padding: 0; }
.show-q__q {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    font-weight: 500;
}
.show-q__q::-webkit-details-marker { display: none; }
.show-q__q:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.show-q__q svg { width: 20px; height: 20px; color: var(--purple-deep); transition: transform var(--fast) var(--ease); }
.show-q[open] .show-q__q svg { transform: rotate(180deg); }
.show-q__a { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.65; }

/* ----------------------------------------------------- close and others --- */

.show-close__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
}

.show-cta {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    padding: clamp(24px, 3vw, 34px);
}
.show-cta__art { justify-self: start; }
.show-cta__art yumee-mascot { --yu-mascot-size: 108px; }
.show-cta__title { margin: 0; font-size: 1.5rem; font-weight: var(--w-head); letter-spacing: -.02em; }
.show-cta__sub { margin: 0; color: var(--contrast-muted); font-size: .9375rem; max-width: 34ch; }
.show-cta__btn { margin: 8px 0 0; }

.show-more__head { margin-bottom: 14px; }
.show-more__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.show-more__tile {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--ink);
}
.show-more__tile:hover { color: var(--ink); }
.show-more__tile .yu-tile__icon { width: 44px; height: 44px; }
.show-more__tile .yu-tile__icon svg { width: 22px; height: 22px; }
.show-more__tile > svg { width: 20px; height: 20px; color: var(--purple-deep); }
.show-more__text { display: grid; gap: 2px; min-width: 0; }
.show-more__text .yu-tile__body { font-size: .875rem; color: var(--ink-soft); }

/* ------------------------------------------------------------ lightbox ---- */

.show-lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(1200px, 94vw);
    max-height: 94vh;
    overflow: visible;
}
.show-lightbox::backdrop { background: color-mix(in srgb, var(--contrast) 72%, transparent); }
.show-lightbox img {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: var(--shadow-hover);
}
.show-lightbox__note {
    margin: 12px auto 0;
    max-width: 62ch;
    text-align: center;
    color: var(--on-contrast);
    font-size: .9375rem;
}
.show-lightbox__close {
    position: absolute;
    top: -46px;
    right: 0;
    background: var(--card);
    transform: rotate(45deg);
}

/* -------------------------------------------------------------- phones ---- */

@media (max-width: 860px) {
    .show-close__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .show-frame { padding: 28px 8px 8px; border-radius: var(--r-lg); }
    .show-frame__bar { height: 28px; }
    .show-thumb { width: 126px; }
    .shop-app__promise { max-width: none; }
    .show-lightbox { max-width: 94vw; }
    .show-lightbox__close { top: -44px; }
}

/* A phone: each feature card puts its icon beside the words instead of on a
   row of its own, so six of them are not six screens of scrolling. */
@media (max-width: 560px) {
    .show-grid { gap: 10px; }
    .show-feature { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
    .show-feature .yu-tile__icon { grid-row: 1 / span 2; }
    .show-feature__title { align-self: center; }
    .show-outro { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .show-thumb, .show-q__q svg { transition: none; }
}
