/* app/css/match-tryon.css — the Try it on page (#/tryon) matched to the canvas v5 board WebTryOn.dc.html (owner 2026-11-03).
   The page is .discover.tryon-page, so match-home.css's hero (.chero) and try-on studio (#studio) rules apply; this sheet
   adds what the board changed: the h1 "Try it on / before you buy it.", the upload buttons, the "Or start with the hair"
   line, the card's foot (the name pill and the full-head chip) and the row under the card ("The hair" and its note). */
#main.bleed:has(.tryon-page) { max-width: none; padding-inline: 0; padding-top: 0; padding-bottom: 0; }
#main:has(.tryon-page) + .nfoot { margin-top: 0; }
:root .app .tryon-page .chero h1 { font: 800 clamp(46px, 6vw, 86px)/.98 var(--ny-sans), system-ui, sans-serif; letter-spacing: -.035em; margin: 0; color: var(--ny-cream); max-width: none; }
:root .app .tryon-page .chero h1 em { font: inherit; font-style: normal; letter-spacing: inherit; color: var(--ny-gold); }
:root .app .tryon-page .chero .h-head .btns { margin-top: 4px; }
:root .app .tryon-page .chero .orline { margin: 2px 0 0; font: 700 11px/1.4 var(--ny-sans), system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(var(--ny-cream-rgb),.6); }
:root .app .tryon-page .chero .fams { margin-top: 0; }
/* the card: the photo, the pill top right, the name pill and the chip along its foot; under it "The hair" and its note */
:root .app .tryon-page .chero .h-art { grid-template-rows: minmax(0, 1fr) auto; }
:root .app .tryon-page .chero .artfoot { grid-area: 1 / 1; align-self: end; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 16px 16px; min-width: 0; }
:root .app .tryon-page .chero .artfoot .namepill { grid-area: auto; position: static; margin: 0; transform: none; }
:root .app .tryon-page .chero .artfoot .wears { padding: 10px 14px; border-radius: 999px; background: var(--ny-gold); color: var(--ny-ink); font: 800 12px/1.2 var(--ny-sans), system-ui, sans-serif; letter-spacing: .06em; text-align: right; }
:root .app .tryon-page .chero .artrow { grid-row: 2; display: flex; gap: 10px; align-items: center; min-height: 0; }
:root .app .tryon-page .chero .hairshot { position: relative; width: 72px; height: 92px; flex: none; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(var(--ny-gold2-rgb),.45); background: var(--ny-ink2); cursor: pointer; }
:root .app .tryon-page .chero .hairshot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
:root .app .tryon-page .chero .hairshot span { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 3px 0; border-radius: 999px; background: rgba(var(--ny-ink-rgb),.8); color: var(--ny-gold); font: 800 8px/1.2 var(--ny-sans), system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
:root .app .tryon-page .chero .hairshot:focus-visible { outline: 2px solid var(--ny-gold); outline-offset: 2px; }
:root .app .tryon-page .chero .artrow .artnote { grid-row: auto; min-height: 0; }
@media (max-width: 640px) {
  :root .app .tryon-page .chero .artfoot { margin: 0 10px 10px; gap: 8px; }
  :root .app .tryon-page .chero .artfoot .wears { padding: 8px 10px; font-size: 11px; letter-spacing: .02em; }
}

/* ======================================================================== rebuild w5 (2026-11-10): WebTryOn, and the phone's first screen */
/* the honest line before the upload (J1) */
:root .app .tryon-page .chero .honest { margin: 0; max-width: 540px; padding: 10px 14px; border-left: 2px solid var(--ny-gold); background: rgba(var(--ny-gold-rgb),.08); font: 600 13px/1.5 var(--ny-sans), system-ui, sans-serif; color: rgba(var(--ny-cream-rgb),.85); }
/* the upload on the photo: the phone's first screen (AppProduct fit0); the desk keeps it beside the headline */
:root .app .tryon-page .chero .artup { display: none; }
/* the colours: square bundle-photo tiles with the board's gold top band (WebTryOn .hank), at least 60 px */
:root .app .tryon-page .chero .swgrid { gap: 8px; }
:root .app .tryon-page .chero .sw.hank i { width: 60px; height: 74px; border-radius: 2px; background-size: cover; background-position: 50% 50%; border: 0; position: relative; overflow: hidden; box-shadow: none; }
:root .app .tryon-page .chero .sw.hank i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: linear-gradient(90deg, var(--ny-gold-deep), var(--ny-gold), var(--ny-gold-deep)); }
:root .app .tryon-page .chero .sw.hank[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--ny-ink), 0 0 0 4px var(--ny-gold); }
:root .app .tryon-page .chero .tilecap { margin: 2px 0 0; font: 700 13px/1.4 var(--ny-sans), system-ui, sans-serif; color: var(--ny-gold); }
/* Every look · every woman: six across on the desk, two on the phone; each card opens the free studio */
:root .app .tryon-page .everylook { background: var(--ny-ink); color: var(--ny-cream); padding: 24px 0 96px; }
:root .app .tryon-page .everylook .hwrap { display: flex; flex-direction: column; gap: 32px; }
:root .app .tryon-page .everylook .lead { color: rgba(var(--ny-cream-rgb),.8); }
:root .app .tryon-page .evgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
:root .app .tryon-page .evcard { position: relative; display: block; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; border: 1px solid rgba(var(--ny-gold2-rgb),.42); background: var(--ny-paper); text-decoration: none; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
:root .app .tryon-page .evcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; transition: transform .5s; }
:root .app .tryon-page .evcard .evtxt { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 34px 12px 12px; background: linear-gradient(180deg, rgba(var(--ny-ink-rgb),0), rgba(var(--ny-ink-rgb),.88) 40%); }
:root .app .tryon-page .evcard b { font: 800 13px/1.2 var(--ny-sans), system-ui, sans-serif; color: var(--ny-cream); }
:root .app .tryon-page .evcard small { font: 600 10px/1.3 var(--ny-sans), system-ui, sans-serif; color: rgba(var(--ny-cream-rgb),.72); }
:root .app .tryon-page .evcard:focus-visible { outline: 2px solid var(--ny-gold); outline-offset: 3px; }
@media (hover: hover) { :root .app .tryon-page .evcard:hover img { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { :root .app .tryon-page .evcard img { transition: none; } }
@media (max-width: 1100px) { :root .app .tryon-page .evgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  :root .app .tryon-page .evgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :root .app .tryon-page .everylook { padding: 8px 0 56px; }
  :root .app .tryon-page .everylook .shead > .btn { flex: 1 1 100%; }
  :root .app .tryon-page .chero .artup { display: inline-flex; grid-area: 1 / 1; align-self: start; justify-self: start; z-index: 2; margin: 14px; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
    background: var(--ny-gold); color: var(--ny-ink); font: 800 13px/1 var(--ny-sans), system-ui, sans-serif; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
  :root .app .tryon-page .chero .artup svg { width: 16px; height: 16px; }
  :root .app .tryon-page .chero .h-art .arch { aspect-ratio: auto; height: min(58svh, 470px); }
}
/* her photos on this device (the photo sheet): at most four, each with a delete */
.yourphotos ul { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 8px 0 6px; padding: 0; }
.yourphotos li { position: relative; }
.yourphotos .yp-use { width: 64px; height: 80px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(var(--ny-gold2-rgb),.5); background: var(--ny-ink2); cursor: pointer; }
.yourphotos .yp-use img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yourphotos .yp-del { position: absolute; right: -10px; top: -10px; width: 32px; height: 32px; border-radius: 16px; border: 0; background: var(--ny-ink); color: var(--ny-gold); display: grid; place-items: center; cursor: pointer; padding: 0; }
.yourphotos .yp-del::after { content: ""; position: absolute; inset: -6px; }

/* ======================================================================== rebuild w5 fix (2026-11-10): the studio's fitting room
   AppProduct fit0 / fit1 / fit2 (R-53): "See it on you before you buy" with Her | You and the upload (fit0, before her
   photo), "Fitting {shade} · Keeping your face. Changing only your hair." while the colour is made on this device (fit1),
   and her result under our model with Her / Half / You, "You, in {shade}." and "Fit again" (fit2). On the phone the
   fitting room is the first screen; on the desk it sits over the look's photos. */
.studio-ws .ws-stage[data-fit] { background: transparent; overflow: visible; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.studio-ws .ws-stage[data-fit="0"] > .look-stage { background: var(--ny-ink); border-radius: var(--r-xl); overflow: hidden; }
.studio-ws .fitroom { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid rgba(var(--ny-gold-rgb),.5); color: var(--ny-ink); }
.studio-ws .fitroom .fit-lab { margin: 0; font: 500 11px/1.3 var(--ny-sans), system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(var(--ny-ink-rgb),.6); }
.studio-ws .fitroom .fit-s { margin: 0; font: 500 12.5px/1.45 var(--ny-sans), system-ui, sans-serif; color: rgba(var(--ny-ink-rgb),.68); }
.studio-ws .fitroom .fit-t { margin: 4px 0 0; font: italic 400 26px/1.05 var(--ny-serif-it), Georgia, serif; color: var(--ny-ink); }
.studio-ws .fitroom .lb { position: absolute; bottom: 8px; z-index: 4; font: italic 400 18px/1 var(--ny-serif-it), Georgia, serif; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.55); pointer-events: none; }
.studio-ws .fitroom .lb-l { left: 12px; }
.studio-ws .fitroom .lb-r { right: 12px; }
/* fit0: Her | You, square */
.studio-ws .fitsplit { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; max-height: 520px; }
.studio-ws .fit-her { position: relative; min-width: 0; border-right: 2px solid var(--ny-gold); background: var(--ny-well); }
.studio-ws .fit-her img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
.studio-ws .fit-you { position: relative; min-width: 0; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: rgba(var(--ny-gold-rgb),.85); background: radial-gradient(ellipse at 50% 35%, #2a2b33, #15161b); }
.studio-ws .fit-you:focus-visible, .studio-ws .fitcmpbtns button:focus-visible { outline: 2px solid var(--ny-gold); outline-offset: 2px; }
.studio-ws .fitroom .fit-up { min-height: 50px; border-radius: 0; }
/* fit1: her photo in the oval, the gold line filling */
.studio-ws .fitroom.fit1 { background: var(--ny-ink); color: var(--ny-cream); padding: 22px 14px 18px; border-color: rgba(var(--ny-gold-rgb),.6); }
.studio-ws .fitoval { position: relative; margin: 0 auto; width: 200px; height: 260px; border-radius: 50%; box-shadow: 0 0 0 1px var(--ny-gold); overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #2a2b33, #15161b); }
.studio-ws .fitoval img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1) contrast(1.05); opacity: .9; display: block; }
.studio-ws .fitline { height: 1px; margin: 18px 30px 0; background: rgba(var(--ny-cream-rgb),.16); overflow: hidden; }
.studio-ws .fitline i { display: block; height: 100%; width: 100%; background: var(--ny-gold); transform-origin: left; animation: ny-fillx 1700ms cubic-bezier(.22,1,.36,1) both; }
@keyframes ny-fillx { from { transform: scaleX(0); } }
.studio-ws .fitroom.fit1 .fit-t { color: var(--ny-cream); text-align: center; margin-top: 16px; }
.studio-ws .fitroom.fit1 .fit-s { color: rgba(var(--ny-cream-rgb),.7); text-align: center; }
/* fit2: her result, our model over it up to the seam */
.studio-ws .look-stage.fitcmp { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 74vh; border-radius: 14px; background: var(--ny-ink); --x: 50%; animation: ny-fall 1100ms cubic-bezier(.22,1,.36,1) both; }
.studio-ws .look-stage.fitcmp > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 12%; border-radius: 0; }
.studio-ws .look-stage.fitcmp > img.her { clip-path: inset(0 calc(100% - var(--x)) 0 0); transition: clip-path .45s cubic-bezier(.22,1,.36,1); }
.studio-ws .look-stage.fitcmp .seam { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--ny-gold); z-index: 3; transition: left .45s cubic-bezier(.22,1,.36,1); }
.studio-ws .look-stage.fitcmp .seam::after { content: ""; position: absolute; top: 50%; left: -17px; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--ny-ink); box-shadow: inset 0 0 0 1px var(--ny-gold); }
.studio-ws .look-stage.fitcmp .look-stage-cap { z-index: 4; }
@keyframes ny-fall { from { clip-path: inset(0 0 100% 0); } }
.studio-ws .fitcmpbtns { display: flex; gap: 6px; }
.studio-ws .fitcmpbtns button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid rgba(var(--ny-ink-rgb),.25); background: transparent; color: var(--ny-ink); font: 600 13px/1 var(--ny-sans), system-ui, sans-serif; cursor: pointer; }
.studio-ws .fitcmpbtns button[aria-pressed="true"] { background: var(--ny-ink); border-color: var(--ny-ink); color: var(--ny-gold); }
.studio-ws .fitacts { display: flex; gap: 8px; }
.studio-ws .fitacts .btn { flex: 1; min-height: 44px; border-radius: 0; }
@media (prefers-reduced-motion: reduce) {
  .studio-ws .fitline i, .studio-ws .look-stage.fitcmp { animation: none; }
  .studio-ws .look-stage.fitcmp > img.her, .studio-ws .look-stage.fitcmp .seam { transition: none; }
}
@media (max-width: 600px) {
  .studio-ws .ws-stage[data-fit] { gap: 12px; }
  .studio-ws .fitsplit { max-height: none; }
}

/* rebuild w5 fix: #/tryon on the phone in AppProduct's language and shorter (the verifier's 6,330 px): the headline in two
   lines, the two buttons on one row, and "Every look" three across like AppProduct's
   "Similar looks" (each still opens the studio); the studio section keeps its upload. */
@media (max-width: 600px) {
  :root .app .tryon-page .chero h1 { font-size: 38px; line-height: 1; }
  :root .app .tryon-page .chero .sub { font-size: 15px; }
  :root .app .tryon-page .chero .honest { font-size: 12.5px; padding: 9px 12px; }
  :root .app .tryon-page .chero .h-head .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  :root .app .tryon-page .chero .h-head .btns .btn { min-height: 46px; min-width: 0; padding: 6px 10px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
  :root .app .tryon-page .everylook .hwrap { gap: 18px; }
  :root .app .tryon-page .everylook h2 { font-size: 28px; }
  :root .app .tryon-page .evgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  :root .app .tryon-page .evcard { border-radius: 12px; box-shadow: none; }
  :root .app .tryon-page .evcard .evtxt { padding: 26px 7px 7px; }
  :root .app .tryon-page .evcard b { font-size: 11px; }
  :root .app .tryon-page .evcard small { font-size: 9px; }
}
