/* =============================================================================
   v4-outcome.css: A17, the outcome rows (docs/v4/DESIGN-SYSTEM-V4.md 6.12).
   Markup: +v4xorows and +v4xostage in
   app/server/views/frontend/v4/_transform_mixins.pug. Loaded right after
   v4-transform.css on the chains that draw the rows (the two v3 style
   partials and the two v4 shells) as a RAW link: bump ?v= on every edit.

   Why it exists (2026-10-22): Vytas sent photoroom.com's feature sections,
   "i think this is a way how to visualise outcomes". A row is a split, the
   stage on one side and an H3 with one paragraph on the other, the sides
   alternating. The stage is a composition: big results that run off the
   panel's edge, the product photo as a small white-mounted tile on their
   corner, one chip naming a real app state.

   Rules of this sheet:
   - Prefix v4xo-, every selector led by a pattern class, never a body class.
   - Positions are percentages of the 4:3 stage and sizes scale with it
     (cqw), so a stage reads the same at 700px and at 354px.
   - The panel is plain surface-2 #F6F5F4 (no dots, no gradient, no glass);
     tiles 16px, the stage 24px (16 on a phone); the only shadows are the
     kit's tile, lift and pop values. Nothing hovers, moves or animates.
   - No class here contains "tile": soft-studio.css straightens and
     un-shadows any [class*="tile"] on hover.
   ============================================================================= */

/* ---- The rows ---------------------------------------------------------------- */
html body .v4xo-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 104px; }
html body .v4xo-row {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5.4vw, 88px); align-items: center; margin: 0; padding: 0;
}
html body .v4xo-row--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
html body .v4xo-row--flip > .v4xo-media { order: 2; }
html body .v4xo-media { min-width: 0; }
html body .v4xo-text { max-width: 470px; }
html body .v4xo-h { margin: 0; }
html body .v4xo-d { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: #6F6D6A; text-wrap: pretty; }
html body .v4xo-text > .v4-link { margin-top: 18px; }
@media (max-width: 900px) {
    html body .v4xo-rows { gap: 56px; }
    html body .v4xo-row, html body .v4xo-row--flip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    html body .v4xo-row--flip > .v4xo-media { order: 0; }
    html body .v4xo-text { max-width: 620px; }
}

/* ---- The stage ----------------------------------------------------------------- */
html body .v4xo-stage {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin: 0;
    border-radius: 24px; background: #F6F5F4; container-type: inline-size; isolation: isolate;
    --v4xo-r: 16px; --v4xo-r-in: 10px;
}
/* The kit's radii only (16 media, 10 inside it, 4 a print), one step down on a
   small stage, the way the hero sheet goes from 16 to 10 on a phone. */
@container (max-width: 480px) {
    html body .v4xo-stage > *, html body .v4xo-strips, html body .v4xo-grid, html body .v4xo-ins { --v4xo-r: 10px; --v4xo-r-in: 4px; }
}
@media (max-width: 560px) { html body .v4xo-stage { border-radius: 16px; } }
html body .v4xo-stage img {
    display: block; width: 100%; height: 100%; max-width: none; margin: 0;
    object-fit: cover; border-radius: 0;
}
/* A result: a 4:5 frame placed by its stage. */
/* The tile shadow (6.11) keeps a cream packshot from melting into the panel. */
html body .v4xo-t {
    position: absolute; overflow: hidden; aspect-ratio: 4 / 5; background: #FFFFFF;
    border-radius: var(--v4xo-r); box-shadow: 0 1px 3px rgba(18, 18, 18, 0.10);
}
/* The product photo: a small print on a white mount, lifted off the panel. */
html body .v4xo-in {
    position: absolute; padding: clamp(3px, 0.9cqw, 6px); background: #FFFFFF;
    border-radius: var(--v4xo-r); box-shadow: 0 4px 24px rgba(18, 18, 18, 0.16);
}
html body .v4xo-in img { height: auto; aspect-ratio: 4 / 5; border-radius: var(--v4xo-r-in); }

/* corner: one result, the photo on its lower left corner. */
html body .v4xo-stage--corner .v4xo-main { left: 31%; top: 9%; width: 57%; }
html body .v4xo-stage--corner .v4xo-in { left: 12%; bottom: 8%; width: 21%; z-index: 2; }

/* plus: two inputs joined by a plus, then one result. */
html body .v4xo-stage--plus .v4xo-main { left: 32%; top: 8%; width: 60%; }
html body .v4xo-stage--plus .v4xo-ins {
    position: absolute; left: 10%; top: 50%; width: 24%; z-index: 2;
    display: flex; flex-direction: column; align-items: center; transform: translateY(-50%);
}
html body .v4xo-stage--plus .v4xo-ins .v4xo-in { position: relative; width: 100%; }
html body .v4xo-plus {
    position: relative; z-index: 3; display: grid; place-items: center; flex: none;
    width: clamp(24px, 5.4cqw, 38px); height: clamp(24px, 5.4cqw, 38px);
    margin: calc(-1 * clamp(9px, 2cqw, 15px)) 0; border-radius: 50%;
    background: #FFFFFF; color: #121212; font-size: clamp(13px, 2.6cqw, 19px);
    box-shadow: 0 2px 10px rgba(18, 18, 18, 0.10);
}

/* steps: the photo, a middle step, the result, each one larger. */
html body .v4xo-stage--steps .v4xo-s1 { left: 6%; top: 8%; width: 17%; z-index: 3; }
html body .v4xo-stage--steps .v4xo-s2 { left: 15%; top: 25%; width: 33%; z-index: 1; }
html body .v4xo-stage--steps .v4xo-s3 { left: 51%; top: 8%; width: 45%; z-index: 2; }

/* strip: a product and three results per line, one or two lines. */
html body .v4xo-strips { position: absolute; inset: 7% 5%; display: flex; flex-direction: column; justify-content: center; gap: 2.4cqw; }
html body .v4xo-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8cqw;
    padding: 1cqw; background: #FFFFFF; border-radius: var(--v4xo-r);
}
html body .v4xo-stage--strip2 .v4xo-strip { flex: 1 1 0; min-height: 0; }
html body .v4xo-strip .v4xo-cell { position: relative; overflow: hidden; min-height: 0; border-radius: var(--v4xo-r-in); }
html body .v4xo-stage--strip1 .v4xo-strip .v4xo-cell { aspect-ratio: 4 / 5; }
/* The product photo's cell: the photo smaller, on the panel grey, so the line
   reads "this went in, these came out" with no arrow. */
html body .v4xo-strip .v4xo-cell--in { display: grid; place-items: center; background: #F6F5F4; }
html body .v4xo-strip .v4xo-cell--in img {
    width: 66%; height: auto; max-height: 86%; aspect-ratio: 4 / 5;
    border-radius: 4px; box-shadow: 0 1px 3px rgba(18, 18, 18, 0.10);
}

/* trio: three results, the middle one large, the outer two cut by the edge. */
html body .v4xo-stage--trio .v4xo-trio-1 { left: -8%; top: 20%; width: 34%; }
html body .v4xo-stage--trio .v4xo-trio-2 { left: 27%; top: 8%; width: 46%; z-index: 2; }
html body .v4xo-stage--trio .v4xo-trio-3 { left: 74%; top: 20%; width: 34%; }
html body .v4xo-stage--trio .v4xo-in--over { left: 19%; bottom: 7%; width: 17%; z-index: 3; }

/* grid: a batch. The fourth column and the third row run off the panel. */
html body .v4xo-stage--grid .v4xo-grid {
    position: absolute; left: 6%; top: 8%; width: 100%;
    display: grid; grid-template-columns: repeat(var(--v4xo-cols, 4), minmax(0, 1fr)); gap: 1.6cqw;
}
html body .v4xo-stage--grid .v4xo-grid--45 .v4xo-cell { aspect-ratio: 4 / 5; }
html body .v4xo-stage--grid .v4xo-cell {
    position: relative; overflow: hidden; aspect-ratio: 1 / 1;
    border-radius: var(--v4xo-r-in); background: #FFFFFF;
}
html body .v4xo-stage--grid .v4xo-cell.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.38); }
html body .v4xo-busy { position: absolute; inset: 0; z-index: 1; width: 34%; height: 34%; margin: auto; }
html body .v4xo-busy .v4xo-ring-track { stroke: rgba(255, 255, 255, 0.9); }

/* brand: the brand's colours and font, the product, the result. */
html body .v4xo-kit {
    position: absolute; left: 6%; top: 24%; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 1.6cqw;
    padding: 1.8cqw 1.6cqw; background: #FFFFFF;
    border-radius: var(--v4xo-r); box-shadow: 0 4px 24px rgba(18, 18, 18, 0.16);
}
html body .v4xo-swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2cqw; }
html body .v4xo-swatches li { width: clamp(20px, 6.6cqw, 48px); height: clamp(20px, 6.6cqw, 48px); margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.08); }
html body .v4xo-font { font-size: clamp(13px, 3.2cqw, 24px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: #121212; }
html body .v4xo-stage--brand .v4xo-brand-in { left: 16%; top: 12%; width: 34%; z-index: 2; }
html body .v4xo-stage--brand .v4xo-main { left: 55%; top: 9%; width: 41%; }

/* post: the result inside a social post, a second result beside it. */
html body .v4xo-post {
    position: absolute; left: 8%; top: 6%; width: 47%; z-index: 2; overflow: hidden;
    background: #FFFFFF; border-radius: var(--v4xo-r); box-shadow: 0 4px 24px rgba(18, 18, 18, 0.12);
}
html body .v4xo-post-top { display: flex; align-items: center; gap: 1.4cqw; padding: 1.5cqw 1.8cqw; }
html body .v4xo-post-av {
    display: grid; place-items: center; flex: none; width: clamp(18px, 4.4cqw, 32px); height: clamp(18px, 4.4cqw, 32px);
    border-radius: 50%; background: #121212; color: #FFFFFF; font-size: clamp(9px, 2cqw, 14px); font-weight: 600; line-height: 1;
}
html body .v4xo-post-who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
html body .v4xo-post-name { font-size: clamp(10px, 1.9cqw, 14px); font-weight: 600; color: #121212; }
html body .v4xo-post-label { font-size: clamp(9px, 1.6cqw, 12px); color: #6F6D6A; }
html body .v4xo-post-more { font-size: clamp(13px, 2.8cqw, 20px); color: #121212; line-height: 1; }
html body .v4xo-post-pic { aspect-ratio: 1 / 1; overflow: hidden; }
html body .v4xo-post-bar { display: flex; align-items: center; gap: 2.2cqw; padding: 1.5cqw 1.8cqw 1.7cqw; font-size: clamp(14px, 3cqw, 22px); color: #121212; line-height: 1; }
html body .v4xo-post-save { margin-left: auto; display: inline-flex; }
html body .v4xo-stage--post .v4xo-post-side { left: 60%; top: 15%; width: 34%; }

/* shop: the results on a shop's product grid, the window cut by the panel. */
html body .v4xo-shop {
    position: absolute; left: 6%; top: 8%; width: 100%; bottom: -4%; overflow: hidden;
    background: #FFFFFF; border-radius: var(--v4xo-r) 0 0 0; box-shadow: 0 4px 24px rgba(18, 18, 18, 0.10);
}
html body .v4xo-shop-bar { display: flex; gap: 0.9cqw; padding: 1.5cqw 2cqw; background: #F6F5F4; }
html body .v4xo-shop-bar i { display: block; width: 1.3cqw; height: 1.3cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #D7D4CF; }
html body .v4xo-shop-nav { display: flex; gap: 3cqw; padding: 2.4cqw 3.2cqw 1.8cqw; }
html body .v4xo-shop-nav span, html body .v4xo-shop-name {
    font-size: clamp(8px, 1.5cqw, 11px); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; color: #6F6D6A;
}
html body .v4xo-shop-nav span.is-on { color: #121212; font-weight: 600; }
html body .v4xo-shop-grid { display: grid; grid-template-columns: repeat(3, 30cqw); gap: 1.6cqw; padding: 0 3.2cqw; }
html body .v4xo-shop-pic { aspect-ratio: 4 / 5; overflow: hidden; }
html body .v4xo-shop-name { display: block; margin-top: 1cqw; color: #121212; }

/* The play disc: a frame that stands for a clip. */
html body .v4xo-play {
    position: absolute; inset: 0; z-index: 2; margin: auto; display: grid; place-items: center;
    width: clamp(30px, 8cqw, 56px); height: clamp(30px, 8cqw, 56px); border-radius: 50%;
    background: rgba(255, 255, 255, 0.92); color: #121212; font-size: clamp(12px, 3cqw, 20px);
    box-shadow: 0 2px 10px rgba(18, 18, 18, 0.10);
}
html body .v4xo-play svg { margin-left: 2px; }

/* ---- The chip ------------------------------------------------------------------ */
html body .v4xo-chip {
    position: absolute; z-index: 5; display: inline-flex; align-items: center; max-width: 64%;
    gap: clamp(8px, 1.6cqw, 12px); padding: clamp(7px, 1.5cqw, 12px) clamp(11px, 2.4cqw, 18px) clamp(7px, 1.5cqw, 12px) clamp(8px, 1.6cqw, 13px);
    background: #FFFFFF; color: #121212; border-radius: var(--v4xo-r); box-shadow: 0 4px 24px rgba(18, 18, 18, 0.16);
}
html body .v4xo-chip--tl { left: 4%; top: 5.5%; }
html body .v4xo-chip--tr { right: 4%; top: 5.5%; }
html body .v4xo-chip--bl { left: 4%; bottom: 5.5%; }
html body .v4xo-chip--br { right: 4%; bottom: 5.5%; }
html body .v4xo-chip-txt { display: flex; flex-direction: column; min-width: 0; }
html body .v4xo-chip-t { font-size: clamp(12px, 2.3cqw, 17px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; color: #121212; }
html body .v4xo-chip-s { margin-top: 2px; font-size: clamp(10.5px, 1.75cqw, 13px); line-height: 1.25; white-space: nowrap; color: #6F6D6A; }
html body .v4xo-chip-ic {
    display: grid; place-items: center; flex: none; width: clamp(22px, 4.6cqw, 34px); height: clamp(22px, 4.6cqw, 34px);
    border-radius: var(--v4xo-r-in); background: #F6F5F4; color: #121212; font-size: clamp(13px, 2.5cqw, 18px);
}
/* An "on" state (a kept result): the lime fill with ink on it, as in the app. */
html body .v4xo-chip--on .v4xo-chip-ic { background: #96FF1A; }
html body .v4xo-ring { flex: none; width: clamp(20px, 4.4cqw, 34px); height: clamp(20px, 4.4cqw, 34px); }
html body .v4xo-ring-track { stroke: #E6E4E1; }
html body .v4xo-ring-arc { stroke: #121212; }

/* ---- What body.use-case-page outranks (the trio chain) ------------------------- */
/* uc-pages.css paints every span under main #6F6D6A with !important at
   (0,4,3); the same answer as v4-transform.css section 1b, one step over. */
html:root body.use-case-page main span.v4xo-chip-t.v4xo-chip-t,
html:root body.use-case-page main span.v4xo-post-name.v4xo-post-name,
html:root body.use-case-page main span.v4xo-post-more.v4xo-post-more,
html:root body.use-case-page main span.v4xo-post-save.v4xo-post-save,
html:root body.use-case-page main span.v4xo-shop-name.v4xo-shop-name,
html:root body.use-case-page main span.v4xo-font.v4xo-font,
html:root body.use-case-page main span.v4xo-plus.v4xo-plus,
html:root body.use-case-page main span.v4xo-chip-ic.v4xo-chip-ic,
html:root body.use-case-page main span.v4xo-play.v4xo-play { color: #121212 !important; }
html:root body.use-case-page main span.v4xo-post-av.v4xo-post-av { color: #FFFFFF !important; }
