/* live.css — what P1 adds to the design: the demo labelling (R-1), the merged One Thumb feed, the try-on
 * countdown and the real hair checkout. Tokens come from app.css. */

/* ---------- demo mode ---------- */
:root { --demo-h: 0px; }
html[data-demo] { --demo-h: 24px; }
.demo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: var(--demo-h); padding: 0 12px;
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 11.5px; letter-spacing: .02em; background: var(--ink); color: var(--canvas); }
html[data-demo] body { padding-top: var(--demo-h); }
html[data-demo] .topbar, html[data-demo] .sty-head, html[data-demo] .adm-head { top: calc(env(safe-area-inset-top, 0px) + var(--demo-h)); }
html[data-demo] .feed-wrap { top: var(--demo-h); }
.demo-pill { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 1px 7px; border-radius: 99px;
  font: 600 10px/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--gold-soft); color: var(--chestnut); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.demo-pill:first-child { margin-left: 0; }

/* ---------- phones: the feed is the Discover hero, one tap away ---------- */
@media (max-width: 599px) {
  .discover .hero-media { order: -1; height: 64vh; }
  .discover .hm-reel { font-size: 15px; padding: 12px 18px; }
}

/* ---------- the merged feed ---------- */
.live-feed .feed { outline: none; }
.reel > .reel-blur { filter: blur(28px) brightness(.55); transform: scale(1.15); }
.reel--bundle > .reel-ph { object-fit: contain; padding: 70px 18px 230px; }
.reel-video > video.reel-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ny-ink); }
.feed-rail { position: fixed; z-index: 22; top: calc(var(--demo-h) + 66px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(480px, 100%); display: flex; gap: 6px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.feed-rail::-webkit-scrollbar { display: none; }
.feed-rail button { flex: none; min-height: 32px; padding: 4px 12px; border-radius: 99px; border: 0; font: 500 12.5px var(--sans);
  background: color-mix(in srgb, var(--ny-ink) 72%, transparent); color: var(--ny-cream); backdrop-filter: blur(8px); } /* its own scrim over the films (Plan D Task 16) */
.feed-rail button[aria-current="true"] { background: var(--ny-gold); color: var(--ny-ink); }
.feed-prog { position: fixed; z-index: 22; top: var(--demo-h); left: 50%; transform: translateX(-50%); width: min(480px, 100%); height: 3px; background: rgba(255,255,255,.18); }
.feed-prog i { display: block; height: 100%; background: var(--ny-gold); transition: width .25s; }
.feed-count { position: fixed; z-index: 22; right: max(12px, calc(50% - 228px)); bottom: 8px; margin: 0; padding: 2px 8px; border-radius: 99px; font-size: 11px; color: var(--ny-cream); background: color-mix(in srgb, var(--ny-ink) 72%, transparent); font-variant-numeric: tabular-nums; }
.reel-top { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.reel-foot h2 { margin: 0; }
.reel-tag { display: flex; gap: 8px; align-items: center; margin: 0; }
.reel-asis { font-size: 12px; color: rgba(255,255,255,.8); }
.reel-swipe { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.reel-worn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 0;
  background: rgba(255,255,255,.16); color: #fff; font-size: 12px; backdrop-filter: blur(8px); }
.reel-worn img { width: 38px; height: 38px; border-radius: 99px; object-fit: cover; }
.reel-cta--wa { text-decoration: none; }
.reel-cta[disabled] { opacity: .75; }
.reel-under-row { display: flex; width: 100%; gap: 4px; }
.reel-under-row .reel-under { flex: 1; }
.reel-big { position: absolute; z-index: 2; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 99px; border: 0;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.reel-end { background: var(--ny-cream); color: var(--ny-ink); align-items: center; justify-content: center; }
.reel-end-in { display: grid; gap: 12px; padding: 32px 22px; max-width: 380px; width: 100%; text-align: center; }
.reel-end-in h2 { margin: 0; font-size: 32px; }
.reel-mark.dark { color: var(--ny-ink); }
.reel-saved { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.reel-saved button { flex: none; width: 84px; border: 0; background: none; color: inherit; font-size: 11.5px; display: grid; gap: 4px; }
.reel-saved img { width: 84px; height: 104px; object-fit: cover; border-radius: 10px; }
.feed-result { width: 100%; max-height: 52vh; object-fit: contain; border-radius: var(--r); background: var(--ny-well); }

/* ---------- try-on wait (the feed's bar + countdown) ---------- */
.wait { display: grid; gap: 6px; margin: 4px 0; }
.wait-bar { height: 8px; border-radius: 99px; background: var(--ny-well); overflow: hidden; }
.wait-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ny-gold-ink-text), var(--ny-ink)); transition: width .45s linear; }
.wait-count { margin: 0; color: var(--ny-ink-2); font-variant-numeric: tabular-nums; }
.ws-newphoto { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ---------- the real hair checkout ---------- */
.pay-note { display: grid; gap: 4px; }
.bag-receipt { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }

/* ---------- looks and their colours (owner rule 2026-10-14: bundles are swatches, never looks) ---------- */
.swatch-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; max-width: 100%; }
.swatch-row::-webkit-scrollbar { display: none; }
.swatch-row .sw { flex: none; width: 64px; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; font: 11px/1.2 var(--sans); text-align: center; }
.swatch-row .sw-img { width: 48px; height: 48px; border-radius: 99px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--ny-line-2); }
.swatch-row .sw-img img { width: 100%; height: 100%; object-fit: cover; }
.swatch-row .sw[aria-checked="true"] .sw-img { border-color: var(--ny-ink); }
.swatch-row .sw-price { font-size: 10.5px; color: var(--ny-ink-3); font-variant-numeric: tabular-nums; }
.swatch-row--dark { width: 100%; }
.swatch-row--dark .sw { color: #fff; }
.swatch-row--dark .sw-img { box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.swatch-row--dark .sw[aria-checked="true"] .sw-img { border-color: var(--ny-gold); }
.swatch-row--dark .sw-price { color: rgba(255,255,255,.75); }
.model-card .shade-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 2px; }
.model-card .shade-dot { width: 22px; height: 22px; border-radius: 99px; overflow: hidden; box-shadow: 0 0 0 1px var(--ny-line-2); display: block; }
.model-card .shade-dot img { width: 100%; height: 100%; object-fit: cover; }
.shop-shades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shop-shades .chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.shop-shades .chip small { margin: 0 0 0 4px; display: inline; }
.chip-sw { width: 26px; height: 26px; border-radius: 99px; object-fit: cover; flex: none; }

.live-feed .reel-top { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.live-feed .reel-side { bottom: auto; top: 46%; }
.live-feed .reel-foot { padding-top: 120px; }

/* ---------- editorial banners (lifestyle photos from the live store; never looks) ---------- */
.editorial-band { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--ny-well); aspect-ratio: 4 / 5; max-height: 78vh; }
@media (min-width: 720px) { .editorial-band { aspect-ratio: 16 / 7; } }
.editorial-band.tall { aspect-ratio: 4 / 5; }
@media (min-width: 720px) { .editorial-band.tall { aspect-ratio: 16 / 9; } }
.editorial-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.editorial-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px; display: grid; gap: 8px; justify-items: start;
  color: #fff; background: linear-gradient(180deg, rgba(10,5,2,0), rgba(10,5,2,.72)); }
.editorial-band figcaption h2 { margin: 0; color: #fff; font-size: clamp(26px, 4vw, 40px); }
.editorial-band figcaption p { margin: 0; max-width: 34em; color: rgba(255,255,255,.88); }
.editorial-band figcaption .eyebrow { color: var(--ny-gold); }
.editorial-band + * { margin-top: 20px; }
/* The Nayeli wordmark on a banner (2026-10-16): banners are shown object-fit: cover with a caption over the bottom, so a
   baked corner mark would be cropped or covered; this one stays in the visible top-right corner at every ratio. */
.editorial-band .band-mark { position: absolute; top: 14px; right: 16px; width: clamp(64px, 16%, 120px); height: auto; z-index: 1;
  pointer-events: none; opacity: .8; filter: drop-shadow(0 1px 3px rgba(12, 7, 3, .55)); }

/* P2 — fees: three-up form rows, "agreed with your braider" lines, the owner's sign-in. */
@media (min-width: 640px) { .form-grid.three { grid-template-columns: 2fr 1fr 1.4fr; } }
.lines .ln.agreed span:last-child { text-align: right; max-width: 60%; }
.adm-signin .adm-main { margin: 0 auto; }
.adm-real .tbl .input { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.adm-real .tbl .adm-cfg-input { width: 110px; }
.delivery-chips .chip small { white-space: nowrap; }

/* ---- the 25-hairstyle menu (2026-10-15) ---- */
/* the owner's style photos are 4:5, so the card frame is too: nothing cropped (2026-10-18) */
.style-card .style-media { aspect-ratio: 4 / 5; height: auto; }
.style-card .style-media img { object-fit: cover; object-position: 50% 30%; background: var(--ny-cream); }
.hs-stage { position: relative; max-width: min(100%, 440px); margin-inline: auto; border-radius: var(--r-xl); overflow: hidden; background: var(--ny-cream); }
.hs-stage img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }   /* owner 2026-10-17: zoomed out - the whole picture, never cropped */
.hs-viewer { margin: 0; display: grid; gap: 10px; }
.hs-thumbs button img { object-position: 50% 0; }
.hs-prev-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 300px; }
.hs-prev-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.hs-prev { margin: 0; display: grid; gap: 4px; }
.hs-prev img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); background: var(--ny-well); }
.hs-prev figcaption { color: var(--ny-ink-2); }
.reel-style .reel-ph { object-position: 50% 0; }

/* The styled-preview cards in the feed show the whole preview on the illustrations' studio grey (zoomed out,
   owner 2026-10-17) instead of filling the tall card by cropping into the face. */
.reel-style .reel-ph { object-fit: contain; object-position: 50% 100%; background: var(--ny-cream); }

/* Style groups (owner 2026-10-17: consolidate similar hairstyles): variation chips on the group card, and a
   switcher of sibling styles on each style page. */

/* the colour grid (owner 2026-10-18): every shade visible at once, big enough to read the colour */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 10px; overflow: visible; }
.swatch-grid .sw { width: auto; font-size: 12px; gap: 4px; }
.swatch-grid .sw-img { position: relative; width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; border-width: 3px; }
.swatch-grid .sw-band { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; box-shadow: 0 -1px 0 rgba(255,255,255,.5); }
.swatch-grid .sw-name { font-weight: 500; }
.swatch-grid .sw[aria-checked="true"] .sw-name { color: var(--ny-ink); }
@media (max-width: 520px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); gap: 10px 8px; } .swatch-grid .sw { font-size: 11px; } }

/* the offer band (2026-10-18): copy and actions on the left, a smiling model on a blush arch on the right */
.offer-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: end; padding: 28px 28px 0; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--ny-glow), var(--ny-cream)); overflow: hidden; }
.offer-copy { padding-bottom: 28px; }
.offer-points { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 8px; }
.offer-points li { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.offer-pic { position: relative; align-self: end; display: grid; justify-items: center; }
.offer-arch { position: absolute; bottom: 0; width: 82%; height: 88%; border-radius: 999px 999px 0 0; background: color-mix(in srgb, var(--ny-ink) 16%, #fff); }
.offer-pic img { position: relative; width: 100%; max-height: 380px; object-fit: contain; object-position: 50% 100%; }
@media (max-width: 719px) { .offer-band { grid-template-columns: 1fr; padding: 22px 18px 0; } .offer-pic img { max-height: 300px; } }

/* the colour sweep (2026-10-18) */
.sweep { position: absolute; inset: 0; overflow: hidden; }
.sweep img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sweep-top { animation: sweep-reveal .9s cubic-bezier(.6,0,.2,1) both; }
.sweep-line { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: linear-gradient(transparent, var(--ny-gold) 15%, #fff 50%, var(--ny-gold) 85%, transparent); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--ny-gold) 70%, transparent); animation: sweep-line .9s cubic-bezier(.6,0,.2,1) both; }
.sweep-name { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(28,16,10,.62); color: #fff; font-size: 12px; backdrop-filter: blur(6px); }
@keyframes sweep-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep-line { from { left: 0; opacity: 1; } 92% { opacity: 1; } to { left: calc(100% - 2px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sweep-top, .sweep-line { animation: none; } }

/* lookbook style cards: the Try on chip is a real link (2026-10-18), bottom-right clear of the photo count */
.style-card a.try { pointer-events: auto; left: auto; right: 8px; text-decoration: none; }

/* the film strip (2026-10-18) */
.film-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.film-row::-webkit-scrollbar { display: none; }
.film { margin: 0; scroll-snap-align: start; display: grid; gap: 8px; }
.film-frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ny-ink); cursor: pointer; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-sound { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; background: rgba(28,16,10,.6); color: #fff; }
.film-mark { position: absolute; left: 10px; top: 10px; width: 64px; opacity: .85; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
@media (max-width: 719px) { .film-row { grid-auto-columns: 62%; } }

/* the Studio stage shows one look (2026-10-19): the model in the chosen colour, her other photos underneath */
.look-stage { position: relative; display: grid; gap: 10px; width: 100%; height: 100%; align-content: start; }
.look-stage > img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--r-lg); background: var(--ny-well); }
.look-stage-cap { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 99px; background: rgba(28,16,10,.62); color: #fff; font-size: 12.5px; }
.look-stage-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 4px; }
.look-stage-thumbs button { flex: none; width: 72px; display: grid; gap: 4px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; font-size: 11px; color: inherit; }
.look-stage-thumbs button[aria-selected="true"] { border-color: var(--ny-gold-ink-text); }
.look-stage-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.look-stage-thumbs span { color: rgba(255,255,255,.85); }

/* look tiles and the try-on banner are links: no underline (2026-10-19) */
.look-tile a.try, a.tryon-cta, a.tryon-cta * { text-decoration: none; }
.look-tile a.try { pointer-events: auto; }

/* the lifestyle band (2026-10-19): friends together, photos crossfading, the group-booking prompt */
.life-band { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--ny-glow), var(--ny-paper)); }
.life-pics { position: relative; aspect-ratio: 4 / 5; max-height: 560px; border-radius: 24px; overflow: hidden; background: var(--ny-cream); box-shadow: 0 30px 50px -26px rgba(38,21,13,.5); }
.life-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .9s ease, transform 6s ease; }
.life-pics img.on { opacity: 1; transform: scale(1); }
.life-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 2px; }
.life-dots button { width: 44px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.life-dots button::after { content: ''; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.6); transition: width .3s; }
.life-dots button[aria-selected="true"]::after { width: 22px; background: #fff; }
@media (max-width: 719px) { .life-band { grid-template-columns: 1fr; padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .life-pics img { transition: none; } }
