/* styletwin.app home, the "See it on you" band under the S1 hero (proposal 2026-11-04, concept B): the fitting room's
   compare line on the web. Loaded only by a home whose strings have "seeit"; home-tryon.js makes the line draggable.
   Sizes are the hero's design units (--u, home-s1.css). Inside the card everything is in the app's story-card points
   (370 x 463, tour_lift_story.dart and stage_compare.dart), --p wide each, so the card scales as one picture. With no
   script the card rests with the line in the middle: you before on the left, you in the outfit on the right. */

.seeit { --ink: #EFD9A6; --g: #3D271D; position: relative; z-index: 1; flex: none; background: var(--g); color: var(--ink); }
/* The copy is in the flow, so on a short or narrow window, where the text keeps its smallest sizes, the band grows
   with it instead of running into the footer. */
.seeit .wrap { position: relative; width: calc(1440 * var(--u)); min-height: calc(900 * var(--u)); margin: 0 auto; }
.seeit .copy { position: relative; margin-inline-start: calc(120 * var(--u)); padding: calc(128 * var(--u)) 0 calc(40 * var(--u)); width: calc(560 * var(--u)); }
.seeit .eb { display: inline-flex; align-items: center; gap: 8px; font-size: max(11px, calc(13 * var(--u))); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .86; }
.seeit .eb svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.seeit h2 { margin: calc(16 * var(--u)) 0 0; font: 400 calc(164 * var(--u) * var(--hfit, 1))/var(--lh) var(--anton); font-synthesis: none; text-transform: uppercase; }
.seeit h2 span { display: block; white-space: nowrap; }
.seeit h2 .o { color: transparent; -webkit-text-stroke: calc(3 * var(--u)) var(--ink); }
.seeit .lede { margin: calc(30 * var(--u)) 0 0; max-width: calc(500 * var(--u)); font-size: max(16px, calc(20 * var(--u))); line-height: 1.42; font-weight: 500; }
.seeit .how { display: grid; gap: calc(12 * var(--u)); margin: calc(26 * var(--u)) 0 0; padding: 0; list-style: none; }
.seeit .how li { display: flex; align-items: center; gap: calc(12 * var(--u)); font-size: max(15px, calc(17 * var(--u))); font-weight: 500; }
.seeit .how i { flex: none; display: grid; place-items: center; width: max(26px, calc(30 * var(--u))); height: max(26px, calc(30 * var(--u))); border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: max(12px, calc(14 * var(--u))); font-style: normal; font-weight: 700; }
.seeit .row { display: flex; flex-wrap: wrap; align-items: center; gap: calc(20 * var(--u)); margin-top: calc(36 * var(--u)); }
.seeit .row .asb { background: var(--ink); color: var(--g); box-shadow: none; }
.seeit .row .asb svg { fill: currentColor; }
.seeit .lk { font-size: max(14px, calc(16 * var(--u))); font-weight: 600; text-underline-offset: 4px; }
.seeit .fine { margin: calc(14 * var(--u)) 0 0; max-width: calc(520 * var(--u)); font-size: max(13px, calc(14 * var(--u))); line-height: 1.45; opacity: .78; }
.seeit .stagewrap { position: absolute; left: calc(770 * var(--u)); top: calc(62 * var(--u)); width: calc(566 * var(--u)); }
.seeit .pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: calc(18 * var(--u)); font-size: 13px; }
.seeit .pick > span { margin-inline-end: 4px; opacity: .78; font-weight: 500; }
.seeit .pick button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px rgba(239, 217, 166, .4); color: inherit; font: 600 13px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s; }
.seeit .pick button[aria-pressed="true"] { background: var(--ink); color: var(--g); box-shadow: none; }
.seeit a:focus-visible, .seeit button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- The card: the room's pearl board, a partner on the line's left, the picture of you on its right ---- */
.cmp { --cw: 566; --x: 185; position: relative; width: 100%; aspect-ratio: 370 / 463; overflow: hidden; border-radius: calc(24 * var(--u)); background: #E8E8ED; box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) calc(-12 * var(--u)) rgba(20, 20, 28, .2), 0 calc(30 * var(--u)) calc(60 * var(--u)) calc(-22 * var(--u)) rgba(0, 0, 0, .55), 0 0 0 .5px rgba(19, 19, 23, .1); color: #131317; font-family: var(--sans); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; isolation: isolate; }
.cmp .in { --p: calc(var(--u) * var(--cw) / 370); position: absolute; inset: 0; }
.cmp .board { position: absolute; inset: 0; background-color: #E8E8ED; background-image: radial-gradient(circle at calc(11 * var(--p)) calc(11 * var(--p)), rgba(220, 220, 226, .55) calc(2.4 * var(--p)), transparent calc(2.9 * var(--p))); background-size: calc(22 * var(--p)) calc(22 * var(--p)); }
.cmp img { position: absolute; display: block; -webkit-user-drag: none; }
.cmp .partner { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.cmp.with-pieces .pieces, .cmp.with-before .before { opacity: 1; }
/* The pieces where the lift lays them on the board, back to front. */
.cmp .pc { object-fit: contain; filter: drop-shadow(0 calc(6 * var(--p)) calc(5 * var(--p)) rgba(20, 20, 28, .16)); }
.cmp .coat { left: calc(114 * var(--p)); top: calc(118 * var(--p)); width: calc(122 * var(--p)); height: calc(213 * var(--p)); }
.cmp .trousers { left: calc(221 * var(--p)); top: calc(196 * var(--p)); width: calc(112 * var(--p)); height: calc(208 * var(--p)); }
.cmp .sweater { left: calc(212 * var(--p)); top: calc(73 * var(--p)); width: calc(130 * var(--p)); height: calc(143 * var(--p)); }
.cmp .bag { left: calc(25 * var(--p)); top: calc(181 * var(--p)); width: calc(74 * var(--p)); height: calc(98 * var(--p)); }
.cmp .shoes { left: calc(22 * var(--p)); top: calc(343 * var(--p)); width: calc(80 * var(--p)); height: calc(54 * var(--p)); }
/* A person stands where the room stands you. Both pictures are cut from one frame with one box (centred on her head),
   so the line splits the same body; the slot (176 wide) keeps them 404 tall. */
.cmp .who { left: calc(97 * var(--p)); top: calc(22 * var(--p)); width: calc(176 * var(--p)); height: calc(404 * var(--p)); object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 calc(6 * var(--p)) calc(5 * var(--p)) rgba(20, 20, 28, .16)); }
.cmp .floor { position: absolute; left: calc(130 * var(--p)); top: calc(416 * var(--p)); width: calc(110 * var(--p)); height: calc(16 * var(--p)); border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 20, 28, .2), rgba(20, 20, 28, 0)); }
.cmp .pic { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 0 0 calc(var(--x) * var(--p))); }
.cmp .line { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * var(--p) - 1px); z-index: 3; width: 2px; background: #FFF; box-shadow: 0 0 6px rgba(0, 0, 0, .25); }
.cmp .handle { position: absolute; top: calc(50% - 20 * var(--p)); left: calc((var(--x) - 20) * var(--p)); z-index: 3; display: grid; place-items: center; width: calc(40 * var(--p)); height: calc(40 * var(--p)); border-radius: 50%; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); box-shadow: 0 0 0 .5px rgba(19, 19, 23, .08), 0 4px 14px rgba(19, 19, 23, .16); transition: transform .2s; }
.cmp .handle svg { width: calc(27 * var(--p)); height: calc(12 * var(--p)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp.dragging .handle { transform: scale(1.08); }
.cmp .handle:focus-visible { outline: 2px solid #131317; outline-offset: 2px; }
/* The stage's labels: an eyebrow on a frosted capsule; the left one is the Compare with switch. */
.cmp .lbl { position: absolute; bottom: calc(12 * var(--p)); z-index: 4; display: inline-flex; align-items: center; gap: calc(4 * var(--p)); padding: calc(6 * var(--p)) calc(9 * var(--p)) calc(5 * var(--p)); border: 0; border-radius: 999px; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); box-shadow: 0 0 0 .5px rgba(19, 19, 23, .06), 0 2px 8px rgba(19, 19, 23, .07); color: #131317; font-family: var(--sans); font-size: calc(10 * var(--p)); font-weight: 700; line-height: 1.1; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.cmp .start { left: calc(12 * var(--p)); }
.cmp .end { right: calc(12 * var(--p)); }
.cmp .chip { cursor: pointer; }
.cmp .chip svg { width: calc(9 * var(--p)); height: calc(9 * var(--p)); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cmp .chip span, .cmp .menu svg { display: none; }
.cmp.with-pieces .chip [data-p="pieces"], .cmp.with-before .chip [data-p="before"] { display: inline; }
.cmp .menu { position: absolute; left: calc(12 * var(--p)); bottom: calc(44 * var(--p)); z-index: 6; width: calc(236 * var(--p)); padding: calc(6 * var(--p)); border-radius: calc(16 * var(--p)); background: rgba(248, 248, 250, .92); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 0 0 .5px rgba(19, 19, 23, .08), 0 18px 40px -12px rgba(19, 19, 23, .35); opacity: 0; transform: translateY(6px) scale(.97); transform-origin: 0 100%; visibility: hidden; transition: opacity .18s, transform .22s cubic-bezier(.2, .9, .2, 1), visibility 0s .22s; cursor: default; }
.cmp .menu.open { opacity: 1; transform: none; visibility: visible; transition: opacity .18s, transform .22s cubic-bezier(.2, .9, .2, 1); }
.cmp .mh { padding: calc(8 * var(--p)) calc(10 * var(--p)) calc(4 * var(--p)); font-size: calc(10 * var(--p)); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(19, 19, 23, .55); }
.cmp .menu button { display: grid; grid-template-columns: 1fr calc(16 * var(--p)); align-items: center; column-gap: calc(8 * var(--p)); width: 100%; padding: calc(8 * var(--p)) calc(10 * var(--p)); border: 0; border-radius: calc(10 * var(--p)); background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.cmp .menu button:hover, .cmp .menu button:focus-visible { background: rgba(19, 19, 23, .06); outline: none; }
.cmp .menu b { font-size: calc(14 * var(--p)); font-weight: 600; }
.cmp .menu small { grid-column: 1; font-size: calc(11.5 * var(--p)); line-height: 1.3; color: rgba(19, 19, 23, .6); }
.cmp .menu svg { grid-column: 2; grid-row: 1 / span 2; width: calc(16 * var(--p)); height: calc(16 * var(--p)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp .menu [aria-checked="true"] svg { display: block; }

/* ---- Phone and narrow windows: the 390-wide board; the heading, then the card, then the words ---- */
@media (max-width: 999px) {
  .seeit .wrap { display: flex; flex-direction: column; width: calc(390 * var(--u)); min-height: 0; padding: calc(56 * var(--u)) calc(20 * var(--u)) calc(52 * var(--u)); }
  .seeit .copy { display: contents; }
  .seeit .head { order: 1; }
  .seeit .stagewrap { order: 2; position: static; width: auto; margin-top: calc(26 * var(--u)); }
  .seeit .body { order: 3; }
  .seeit h2 { font-size: calc(88 * var(--u) * var(--hfit, 1)); }
  .seeit h2 .o { -webkit-text-stroke-width: calc(1.5 * var(--u)); }
  .seeit .lede { margin-top: calc(26 * var(--u)); font-size: calc(16 * var(--u)); }
  .seeit .how li { font-size: calc(15 * var(--u)); }
  .seeit .row { gap: 14px; margin-top: calc(26 * var(--u)); }
  .seeit .pick > span { display: none; } /* the card's own chip says it; the three pills keep one row */
  .cmp { --cw: 350; border-radius: calc(20 * var(--u)); }
}

/* Right to left: the copy and the card change sides; the card itself stays as the app draws it. */
[dir="rtl"] .seeit .stagewrap { left: calc(104 * var(--u)); }
[dir="rtl"] .cmp { direction: ltr; }

@media (prefers-reduced-motion: reduce) {
  .cmp .partner, .cmp .menu, .cmp .handle, .seeit .pick button { transition: none; }
}
