/* ==========================================================================
   PhirSe — site.css
   Tokens → base → layout → header/footer → phone + screens → scenes → docs
   ========================================================================== */

:root {
  /* brand (lib/config/ps_colors.dart) */
  --navy-950: #0A1828;
  --navy-900: #0D1F33;
  --navy-800: #162D45;
  --navy-700: #1B354F;
  --navy-500: #244461;
  --navy-300: #667C90;
  --red-500: #A92428;
  --red-700: #981B1E;
  --red-900: #7E0D0F;
  --red-300: #C36669;
  --disc: #D22129;
  --tile: #2A4860;
  --tile-shadow: #1D3243;
  --pink: #FFB0B1;
  --cream: #F5E5E5;
  --gold: #E8C27A;
  --ink: #F4F6F8;
  --muted: #B4C1CF;
  --line: rgba(244, 246, 248, .10);
  /* app screens (light theme) */
  --app-bg: #FFFFFF;
  --app-card: #F5E5E5;
  --app-text: #244461;
  --app-sub: #456079;
  --app-price: #A92428;
  --app-hint: #ADADAD;
  --app-grey: #9E9E9E;
  --app-hair: rgba(80, 80, 80, .082);
  --app-chat-bg: #FBF7F7;
  --app-blue: #2196F3;
  --app-ok-fill: #E8F3E6;
  --app-ok: #2E7D32;
  --app-bad-fill: #FBEAEA;
  --app-bad: #C62828;
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section: clamp(96px, 12vw, 160px);
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red-500); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section + .section { padding-top: 0; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red-500); border-radius: 2px; }
.h1 { font-size: clamp(42px, 7.2vw, 92px); }
.h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 16ch; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--muted); max-width: 54ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.wm { font-family: var(--font-display); font-weight: 800; letter-spacing: -.4px; line-height: 1.1; white-space: nowrap; }
.wm b { font-weight: inherit; }
.wm b:first-child { color: var(--navy-500); }
.wm b:last-child { color: var(--red-500); }
.wm--rev b:first-child { color: var(--ink); }
.wm--rev b:last-child { color: var(--pink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 26px; font-weight: 700; font-size: 16px; transition: transform .25s var(--ease-out), background .25s, box-shadow .25s; will-change: transform; }
.btn--primary { background: var(--red-500); color: #fff; box-shadow: 0 10px 30px -10px rgba(169, 36, 40, .8); }
.btn--primary:hover { background: var(--red-700); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid rgba(244, 246, 248, .25); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(244, 246, 248, .6); transform: translateY(-2px); }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); transition: transform .3s var(--ease-out), background .3s; }
.store:hover { background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: #fff; }
.store small { display: block; font-size: 11px; line-height: 1; color: var(--muted); letter-spacing: .02em; }
.store span { display: block; font-size: 16px; font-weight: 700; line-height: 1.15; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header.is-scrolled { background: rgba(10, 24, 40, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 900px) { .nav { display: none; } }

/* ---------- splash curtain (mirrors lib/ui/splash/animated_splash_view.dart) ---------- */
#splash { position: fixed; inset: 0; z-index: 90; background: #fff; display: grid; place-items: center; color: var(--app-sub); }
#splash .splash__stage { display: grid; justify-items: center; }
#splash .mark-slot { display: block; width: min(44vw, 220px); aspect-ratio: 1; }
#splash-mark { position: fixed; z-index: 91; pointer-events: none; width: min(44vw, 220px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mark { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.mark .mk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#splash .tag1 { margin-top: 26px; font: 400 19px/1.2 var(--font-display); color: #456079; text-align: center; opacity: 0; }
#splash .tag2 { position: absolute; left: 24px; right: 24px; bottom: calc(36px + env(safe-area-inset-bottom)); font: 400 16px/1.3 var(--font-display); color: var(--disc); text-align: center; opacity: 0; }
#splash .skip-splash { position: absolute; top: 20px; right: 20px; font-size: 13px; font-weight: 600; color: #456079; padding: 8px 14px; border: 1px solid rgba(69, 96, 121, .3); border-radius: 20px; background: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__mark { width: clamp(76px, 9vw, 110px); margin-bottom: 28px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.hero .h1 { max-width: 12ch; }
.hero .h1 .wm { display: inline-block; }
.hero .lead { margin: 28px 0 36px; }
.hero__stage { position: relative; z-index: 1; justify-self: center; width: max-content; perspective: 1400px; }
.hero__phone { position: relative; z-index: 2; transform-style: preserve-3d; }
.hero__phone .phone-wrap { --ps: .8; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; will-change: transform; }
.glow--red { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: -18vw; top: -10vw; background: radial-gradient(circle, rgba(169, 36, 40, .9), rgba(169, 36, 40, 0) 65%); }
.glow--gold { width: 44vw; height: 44vw; max-width: 560px; max-height: 560px; right: -12vw; bottom: -14vw; background: radial-gradient(circle, rgba(232, 194, 122, .55), rgba(232, 194, 122, 0) 65%); }
.glow--blue { width: 50vw; height: 50vw; max-width: 620px; max-height: 620px; right: 10vw; top: -20vw; background: radial-gradient(circle, rgba(111, 172, 255, .35), rgba(111, 172, 255, 0) 65%); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--pink), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__stage { margin-top: 48px; }
  .hero__phone .phone-wrap { --ps: .62; }
  .polaroid:nth-child(4), .polaroid:nth-child(5) { display: none; }
  .polaroid:nth-child(2) { left: -16%; top: 0; }
  .polaroid:nth-child(3) { right: -16%; top: 16%; }
  .polaroid:nth-child(6) { left: -4%; bottom: -6%; }
  .hero__scroll { display: none; }
}

/* ---------- generic scene layout ---------- */
.section-head { margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .h2 { margin-bottom: 0; }
.ph { background: rgba(232, 194, 122, .18); color: var(--gold); padding: 0 6px; border-radius: 4px; font-weight: 600; }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.scene--rev > :first-child { order: 2; }
.scene__copy .h2 { margin-bottom: 20px; }
.scene__copy .lead { margin-bottom: 28px; }
.scene__phone { justify-self: center; }
.scene__phone .phone-wrap { --ps: .78; }
@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; }
  .scene--rev > :first-child { order: 0; }
  .scene__phone .phone-wrap { --ps: .62; }
}
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.checks li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.checks svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(169, 36, 40, .18); color: var(--pink); }
.quote { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--red-500); background: rgba(255, 255, 255, .04); border-radius: 0 14px 14px 0; color: var(--muted); font-size: 15px; }
.quote b { color: var(--ink); font-weight: 600; }

/* reveal */
.reveal { opacity: 0; transform: translateY(32px); }
.no-motion .reveal, .is-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- occasion edit cards ---------- */
.edits { display: flex; gap: 18px; padding: 10px 0 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 44px; }
.edits::-webkit-scrollbar { display: none; }
.edit { flex: 0 0 clamp(220px, 24vw, 300px); aspect-ratio: 3 / 4; border-radius: var(--radius); position: relative; overflow: hidden; scroll-snap-align: start; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transition: transform .5s var(--ease-out); }
.edit:hover { transform: translateY(-6px); }
.edit .g { position: absolute; inset: 0; }
.edit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 24, 40, 0) 40%, rgba(10, 24, 40, .85)); z-index: 1; }
.edit__body { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.edit__body small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.edit__body h3 { font-size: 26px; }
.edit__body p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.occasion .scene { margin-top: 24px; align-items: start; }

/* ---------- photos ---------- */
.pic { position: relative; overflow: hidden; background: var(--navy-700); }
.pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pic.on { outline: 2px solid var(--red-500); outline-offset: -2px; }

/* legacy gradient tiles (kept as fallback) */
.g { --h: 350; --s: 55%; --l: 55%; position: relative; overflow: hidden; background:
    radial-gradient(120% 80% at 25% 15%, hsl(var(--h) var(--s) calc(var(--l) + 22%) / .9), transparent 60%),
    radial-gradient(90% 70% at 85% 90%, hsl(calc(var(--h) + 25) var(--s) calc(var(--l) - 18%)), transparent 60%),
    linear-gradient(145deg, hsl(var(--h) var(--s) calc(var(--l) + 6%)), hsl(calc(var(--h) + 18) calc(var(--s) - 5%) calc(var(--l) - 22%))); }
.g::before { content: ""; position: absolute; inset: 0; background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 9px, rgba(255, 255, 255, .07) 9px 10px),
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .22) 48%, rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: screen; }
.g::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, .28); }
.g svg { position: absolute; inset: 12%; width: 76%; height: 76%; fill: rgba(255, 255, 255, .22); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.g--zari::before { background:
    repeating-linear-gradient(0deg, rgba(232, 194, 122, 0) 0 14px, rgba(232, 194, 122, .35) 14px 15px),
    repeating-linear-gradient(90deg, rgba(232, 194, 122, 0) 0 14px, rgba(232, 194, 122, .25) 14px 15px),
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .25) 48%, rgba(255, 255, 255, 0) 62%); }
.g--print::before { background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .28) 0 3px, transparent 4px) 0 0 / 22px 22px,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .18) 0 2px, transparent 3px) 11px 11px / 22px 22px,
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .2) 48%, rgba(255, 255, 255, 0) 62%); }
.g--velvet::before { background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .25)); }
.avatar { --h: 20; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 60% 70%), hsl(calc(var(--h) + 40) 50% 45%)); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); }

/* ---------- phone component ---------- */
.phone-wrap { --ps: .78; position: relative; width: calc(390px * var(--ps)); height: calc(844px * var(--ps)); flex: none; }
.phone { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--ps)); transform-origin: 0 0; }
.phone__frame { position: absolute; inset: 0; border-radius: 56px; background: #0B0F14; padding: 10px; box-shadow: 0 50px 100px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: #fff; font-family: var(--font-body); color: var(--app-text); font-size: 14px; line-height: 1.35; letter-spacing: 0; }
.phone__island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 34px; border-radius: 18px; background: #0B0F14; z-index: 9; }
.phone__status { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 16px 30px 0; font: 600 15px/1 var(--font-body); color: #1D1B20; z-index: 8; pointer-events: none; }
.phone__status .sig { display: flex; align-items: center; gap: 5px; }
.phone__status .sig i { display: block; width: 17px; height: 11px; border: 1.5px solid #1D1B20; border-radius: 3px; position: relative; }
.phone__status .sig i::after { content: ""; position: absolute; inset: 1.5px; right: 3px; background: #1D1B20; border-radius: 1px; }
.phone__status .sig svg { width: 16px; height: 12px; fill: #1D1B20; }
.phone__home { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #1D1B20; z-index: 9; opacity: .8; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--app-bg); opacity: 0; visibility: hidden; }
.screen.is-active { opacity: 1; visibility: visible; }
.screen--dark .phone__status { color: #fff; }

/* app chrome */
.s-appbar { height: 110px; padding: 54px 8px 0 16px; display: flex; align-items: center; gap: 0; background: #fff; flex: none; }
.s-appbar .wm { font-size: 24px; }
.s-appbar .spacer { flex: 1; }
.s-icon { width: 48px; height: 48px; display: grid; place-items: center; position: relative; color: var(--red-500); }
.s-icon svg { width: 24px; height: 24px; fill: currentColor; }
.s-icon .badge { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 10px; background: var(--red-500); color: #fff; font: 700 10px/16px var(--font-body); text-align: center; }
.s-appbar--title { gap: 8px; padding-left: 8px; }
.s-appbar--title h4 { font: 400 22px/1.2 var(--font-body); color: #1D1B20; letter-spacing: 0; }
.s-appbar--title .s-icon { color: #1D1B20; }
.s-appbar--title .s-icon.red { color: var(--red-500); }
.s-body { flex: 1; overflow: hidden; position: relative; }
.s-nav { flex: none; height: 84px; padding: 6px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); position: relative; z-index: 3; }
.s-nav div { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 12px/1 var(--font-body); color: #49454F; position: relative; }
.s-nav div svg { width: 24px; height: 24px; fill: currentColor; }
.s-nav div.on { color: var(--red-500); }
.s-nav .badge { position: absolute; top: -5px; left: calc(50% + 6px); width: 20px; height: 20px; border-radius: 50%; background: var(--red-500); color: #fff; font: 700 12px/20px var(--font-body); text-align: center; }
.s-btn { height: 52px; border-radius: 26px; background: var(--red-500); color: #fff; font: 700 16px/52px var(--font-body); text-align: center; }
.s-btn--sm { font-size: 14px; }
.s-btn--outline { background: #fff; border: 1.5px solid var(--red-500); color: var(--red-500); line-height: 49px; }
.s-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--app-hair); background: #fff; font-size: 14px; color: var(--app-text); white-space: nowrap; }
.s-pill.on { background: var(--red-500); border-color: var(--red-500); color: #fff; font-weight: 600; }
.s-pill.cream { background: var(--app-card); color: var(--red-500); }
.s-pill svg { width: 14px; height: 14px; fill: currentColor; }
.s-card { background: #fff; border: .6px solid rgba(80, 80, 80, .2); border-radius: 12px; overflow: hidden; }
.s-strip { background: #F4F4F4; padding: 12px; display: flex; align-items: center; gap: 8px; }
.s-hair { height: 1px; background: var(--app-hair); }
.s-bagpill { display: inline-block; padding: 2px 8px; border-radius: 12px; background: rgba(169, 36, 40, .12); color: var(--red-500); font-size: 12px; }
.s-bagpill--grey { background: rgba(80, 80, 80, .1); color: var(--app-sub); }
.s-banner { margin: 12px 16px 0; padding: 12px; border-radius: 8px; background: rgba(169, 36, 40, .10); display: flex; gap: 8px; font-size: 12px; color: var(--app-sub); line-height: 1.35; }
.s-banner svg { width: 18px; height: 18px; fill: var(--red-500); flex: none; }
.s-sub { color: var(--app-sub); font-size: 12px; }
.s-b { font-weight: 700; }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-chev { width: 18px; height: 18px; fill: var(--app-sub); flex: none; }
.s-field { height: 44px; border-radius: 10px; background: var(--app-card); display: flex; align-items: center; padding: 0 12px; gap: 8px; color: var(--app-hint); font-size: 14px; }
.s-outlined { border: 1px solid #79747E; border-radius: 8px; padding: 12px 14px; color: var(--app-hint); font-size: 16px; min-height: 48px; display: flex; align-items: center; gap: 8px; }
.s-label { font: 700 14px/1.2 var(--font-body); color: var(--app-text); padding: 16px 16px 6px; }
.s-label i { color: var(--red-500); font-style: normal; }
.s-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 16px 16px 24px; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); z-index: 6; transform: translateY(105%); }
.s-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); z-index: 5; opacity: 0; }
.s-sheet h5 { margin: 0 0 12px; font: 700 16px/1.3 var(--font-body); }
.s-receipt { display: grid; gap: 0; }
.s-receipt div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; font-weight: 700; }
.s-receipt div.red { color: var(--red-500); }
.s-receipt div.total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--app-hair); }
.s-snack { position: absolute; left: 12px; right: 12px; bottom: 100px; background: #322F35; color: #F5EFF7; border-radius: 6px; padding: 14px 16px; display: flex; justify-content: space-between; font-size: 14px; z-index: 7; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(20px); }
.s-snack b { color: #FFB0B1; }

/* home feed */
.s-searchrow { display: flex; gap: 8px; padding: 4px 12px 4px 8px; }
.s-searchrow .s-field { flex: 1; }
.s-searchrow .s-field svg { width: 24px; height: 24px; fill: var(--app-text); }
.s-loc { height: 44px; max-width: 150px; padding: 0 10px; border-radius: 12px; background: var(--app-card); display: flex; align-items: center; gap: 4px; font: 700 13px/1 var(--font-body); color: var(--app-text); white-space: nowrap; }
.s-loc svg:first-child { width: 16px; height: 16px; fill: var(--red-500); }
.s-loc svg:last-child { width: 16px; height: 16px; fill: var(--app-text); }
.s-chips { display: flex; gap: 8px; padding: 6px 12px 10px; overflow: hidden; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 4px; }
.s-pcard { position: relative; margin: 4px; background: var(--app-card); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; height: 221px; }
.s-pcard .pic { flex: 1; border-radius: 6px; }
.s-fav { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: grid; place-items: center; z-index: 2; }
.s-fav svg { width: 18px; height: 18px; fill: #fff; }
.s-fav.on svg { fill: var(--red-500); }
.s-tag { position: absolute; padding: 2px 6px; border-radius: 4px; font: 700 10px/1.4 var(--font-body); color: #fff; z-index: 2; letter-spacing: .02em; }
.s-tag--sp { top: 6px; left: 6px; background: rgba(0, 0, 0, .72); font-weight: 400; }
.s-tag--off { bottom: 6px; left: 6px; background: var(--red-500); }
.s-tag--pk { bottom: 6px; right: 6px; background: var(--navy-500); }
.s-pcard footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 6px 4px; }
.s-pcard footer b { color: var(--red-500); font-size: 14px; }
.s-pcard footer span { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--app-text); min-width: 0; }
.s-pcard footer span svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.s-pcard footer span em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* discover */
.s-hero { height: 180px; position: relative; color: #fff; }
.s-hero .pic { position: absolute; inset: 0; }
.s-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.s-hero div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; }
.s-hero h5 { margin: 0; font: 700 24px/1.2 var(--font-body); }
.s-hero p { font: 700 14px/1 var(--font-body); margin-top: 4px; }
.s-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; z-index: 2; }
.s-dots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.s-dots i.on { width: 16px; background: #fff; }
.s-h { padding: 20px 16px 10px; font: 700 16px/1.3 var(--font-body); }
.s-rail { display: flex; gap: 14px; padding: 0 16px; }
.s-rail div { width: 72px; text-align: center; font-size: 12px; }
.s-rail .pic { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 6px; }
.s-occ { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.s-occ div { height: 97px; border-radius: 10px; position: relative; overflow: hidden; color: #fff; font: 700 14px/1 var(--font-body); }
.s-occ .pic { position: absolute; inset: 0; }
.s-occ div::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.s-occ span { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.s-catrow { margin: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--app-hair); display: flex; justify-content: space-between; font-size: 16px; }
.s-catrow svg { width: 20px; height: 20px; fill: var(--app-grey); }

/* product detail */
.s-gallery { height: 300px; position: relative; }
.s-gallery .pic { position: absolute; inset: 0; }
.s-circ { position: absolute; top: 58px; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .39); display: grid; place-items: center; z-index: 3; }
.s-circ svg { width: 24px; height: 24px; fill: #fff; }
.s-photo-chip { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .45); border-radius: 4px; padding: 8px 12px; color: #fff; font: 700 14px/1 var(--font-body); display: flex; gap: 10px; align-items: center; z-index: 2; }
.s-photo-chip svg { width: 16px; height: 16px; fill: #fff; }
.s-thumbs { height: 72px; display: flex; gap: 8px; padding: 8px 12px; }
.s-thumbs .pic { width: 56px; height: 56px; border-radius: 4px; border: 1px solid var(--app-grey); }
.s-thumbs .pic.on { border: 2px solid var(--red-500); outline: 0; }
.s-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 8px 4px 16px; }
.s-title h5 { margin: 0; font: 700 24px/1.3 var(--font-body); }
.s-title svg { width: 24px; height: 24px; fill: var(--red-500); margin: 8px; flex: none; }
.s-stats { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 16px 10px; font-size: 12px; }
.s-stats span { display: inline-flex; align-items: center; gap: 4px; }
.s-stats svg { width: 16px; height: 16px; fill: var(--app-text); }
.s-desc { padding: 10px 16px; }
.s-desc h6 { margin: 0 0 2px; font: 700 14px/1.3 var(--font-body); color: var(--app-sub); }
.s-desc p { font-size: 15px; line-height: 1.35; letter-spacing: .2px; }
.s-facts { padding: 0 16px 12px; }
.s-facts div { display: flex; gap: 8px; margin-bottom: 6px; font-weight: 700; }
.s-facts div span:first-child { width: 100px; color: var(--app-sub); }
.s-seller { margin: 12px 12px 0; background: var(--app-card); border-radius: 8px; padding: 12px 16px 16px; }
.s-seller .top { display: flex; gap: 18px; align-items: center; }
.s-seller .avatar { width: 50px; height: 50px; font-size: 18px; flex: none; }
.s-seller .name { font: 700 14px/1.3 var(--font-body); display: flex; align-items: center; gap: 4px; }
.s-seller .name svg { width: 16px; height: 16px; fill: var(--app-blue); }
.s-stars { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.s-stars svg { width: 16px; height: 16px; fill: var(--red-500); }
.s-stars span { margin-left: 6px; font-size: 16px; }
.s-seller .btns { display: flex; gap: 8px; margin-top: 16px; }
.s-seller .btns div { flex: 1; height: 44px; border-radius: 22px; border: 1.5px solid var(--red-500); color: var(--red-500); font: 700 14px/41px var(--font-body); text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.s-seller .btns svg { width: 18px; height: 18px; fill: currentColor; }
.s-bar { flex: none; background: #fff; border-radius: 12px 12px 0 0; padding: 12px 16px 36px; display: flex; align-items: center; gap: 8px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); position: relative; z-index: 3; }
.s-bar .price { font: 700 22px/1 var(--font-body); margin-right: 4px; }
.s-bar .s-btn { flex: 2; font-size: 14px; }
.s-bar .s-btn--outline { flex: 1.1; }

/* bag + checkout */
.s-list { padding: 0 16px; display: grid; gap: 12px; }
.s-line { display: flex; gap: 12px; align-items: center; padding: 12px; }
.s-line .pic { width: 64px; height: 64px; border-radius: 8px; flex: none; }
.s-line .t { flex: 1; min-width: 0; }
.s-line .t b { display: block; font-size: 14px; line-height: 1.3; }
.s-line .t span { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; }
.s-line > svg { width: 18px; height: 18px; fill: var(--app-sub); }
.s-addr { display: flex; gap: 8px; padding: 12px; }
.s-addr > svg { width: 18px; height: 18px; fill: var(--app-sub); flex: none; margin-top: 2px; }
.s-addr .t { flex: 1; }
.s-addr .t small { display: block; font-size: 12px; color: var(--app-sub); margin-bottom: 2px; }
.s-addr .t b { font-size: 14px; line-height: 1.3; }
.s-addr .change { color: var(--navy-500); font: 700 14px/1 var(--font-body); padding: 8px 4px; }
.s-order { padding: 12px; }
.s-order .items { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.s-order .items .pic { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.s-order .items b { flex: 1; font-size: 14px; line-height: 1.3; }
.s-order .items span { font-weight: 700; }
.s-paybar { flex: none; padding: 16px 16px 36px; background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); position: relative; z-index: 3; }
.s-paybar .s-row b { font-weight: 700; }
.s-paybar .s-row .big { font-size: 16px; }
.s-paybar .s-btn { margin-top: 12px; }
.s-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 16px; }
.s-track div { text-align: center; font-size: 11px; color: var(--app-sub); }
.s-track i { display: block; height: 4px; border-radius: 2px; background: var(--app-hair); margin-bottom: 8px; }
.s-track div.on { color: var(--app-text); font-weight: 700; }
.s-track div.on i { background: var(--red-500); }

/* ship item */
.s-ship { padding: 16px; display: grid; gap: 12px; }
.s-ship h5 { margin: 0; font: 700 22px/1.2 var(--font-body); }
.s-ship .s-card { padding: 12px; }
.s-qr { width: 180px; height: 180px; margin: 12px auto; background: #fff; padding: 12px; }
.s-qr svg { width: 100%; height: 100%; }
.s-code { display: flex; align-items: center; gap: 8px; }
.s-code svg { width: 16px; height: 16px; fill: var(--app-sub); }

/* listing */
.s-lhead { margin: 12px 16px 0; padding: 12px; display: flex; gap: 12px; align-items: center; }
.s-lhead .pic { width: 60px; height: 60px; border-radius: 8px; flex: none; }
.s-lhead b { font-size: 16px; }
.s-lhead .s-sub + .s-sub { margin-top: 1px; }
.s-lhead .pv { margin-top: 8px; color: var(--red-500); font-size: 12px; }
.s-stat4 { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 16px 8px 8px; text-align: center; }
.s-stat4 svg { width: 18px; height: 18px; fill: var(--app-sub); margin: 0 auto 4px; }
.s-stat4 b { display: block; font-size: 14px; }
.s-stat4 small { display: block; font-size: 12px; color: var(--app-sub); }
.s-stat4 .lock { margin-top: 4px; display: inline-block; padding: 2px 8px; border-radius: 12px; background: rgba(80, 80, 80, .1); color: var(--red-500); font-size: 10px; }
.s-stat4 .on svg { fill: var(--red-500); }
.s-stat4 .delta { color: var(--red-500); font-size: 10px; display: block; }
.s-sec { padding: 16px 16px 8px; font: 700 14px/1.2 var(--font-body); }
.s-mrow { display: flex; align-items: center; gap: 12px; padding: 12px; }
.s-mrow > svg { width: 18px; height: 18px; fill: var(--app-sub); flex: none; }
.s-mrow > svg.red { fill: var(--red-500); }
.s-mrow .t { flex: 1; }
.s-mrow .t b { display: block; font-size: 14px; }
.s-mrow .t small { display: block; font-size: 12px; color: var(--app-sub); }
.s-mrow .danger { color: var(--red-500); }
.s-switch { width: 44px; height: 24px; border-radius: 12px; background: var(--app-hair); position: relative; }
.s-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s; }
.s-switch.on { background: var(--red-500); }
.s-switch.on::after { transform: translateX(20px); }
.s-tiles3 { display: flex; gap: 8px; }
.s-tiles3 div { flex: 1; border: 1px solid var(--app-hair); border-radius: 8px; padding: 8px; text-align: center; font-size: 12px; }
.s-tiles3 div b { display: block; font-size: 14px; margin-top: 2px; }
.s-tiles3 div.on { border-color: var(--red-500); background: rgba(169, 36, 40, .08); }

/* post item */
.s-photos { display: flex; gap: 8px; padding: 8px 16px 0; }
.s-photos .tile { width: 104px; height: 104px; border-radius: 8px; position: relative; overflow: hidden; flex: none; }
.s-photos .tile .pic { position: absolute; inset: 0; }
.s-photos .cover { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; text-align: center; padding: 2px; }
.s-photos .x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.s-photos .x svg { width: 14px; height: 14px; fill: #fff; }
.s-photos .add { border: 1px solid var(--red-500); display: grid; place-content: center; text-align: center; color: var(--red-500); font-size: 12px; gap: 4px; }
.s-photos .add svg { width: 24px; height: 24px; fill: currentColor; margin: 0 auto; }
.s-count { display: flex; gap: 8px; padding: 8px 16px 0; font-size: 12px; }
.s-count b { color: var(--red-500); font-weight: 600; }
.s-vrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px 4px; }
.s-vrow .box { width: 56px; height: 56px; border-radius: 8px; background: rgba(80, 80, 80, .08); display: grid; place-items: center; }
.s-vrow .box svg { width: 24px; height: 24px; fill: var(--app-grey); }
.s-vrow .t { flex: 1; }
.s-vrow .t b { display: block; font-weight: 400; font-size: 16px; }
.s-vrow .t small { font-size: 12px; color: var(--app-grey); }
.s-vrow > svg { width: 24px; height: 24px; fill: var(--app-grey); }
.s-ai { margin: 10px 16px 0; padding: 10px 12px; border: 1px solid var(--red-500); border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.s-ai svg { width: 20px; height: 20px; fill: var(--red-500); flex: none; }
.s-ai b { display: block; color: var(--red-500); font-size: 16px; }
.s-ai small { font-size: 12px; color: var(--app-sub); }
.s-tags { padding: 8px 16px; }
.s-tags small { display: block; font-size: 12px; color: var(--app-grey); margin-bottom: 6px; }
.s-tags .wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.s-tags .s-pill { padding: 6px 12px; font-size: 12px; }
.s-tags .s-pill.sel { background: var(--app-card); border-color: var(--red-500); color: var(--red-500); }
.s-tags .s-pill.add { border-color: var(--red-500); color: var(--app-text); }
.s-sechead { margin-top: 12px; border-top: 1px solid var(--app-hair); padding: 16px 16px 0; font: 700 16px/1.2 var(--font-body); }
.s-field-wrap { padding: 0 16px; }
.s-field-wrap .s-outlined.filled { color: var(--app-text); }
.s-field-wrap .s-outlined.filled svg { width: 16px; height: 16px; fill: var(--red-500); margin-left: auto; flex: none; }
.s-help { padding: 4px 16px 0; font-size: 12px; color: var(--app-sub); }
.s-two { display: flex; gap: 8px; padding: 0 16px; }
.s-two .s-pill { flex: 1; justify-content: center; padding: 10px; }
.s-group { margin: 10px 16px 0; border: 1px solid var(--app-hair); border-radius: 8px; }
.s-group div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.s-group div + div { border-top: 1px solid var(--app-hair); }
.s-group .t { flex: 1; }
.s-group .t small { display: block; font-size: 12px; color: var(--app-sub); }
.s-group .t b { display: block; font-weight: 400; font-size: 16px; color: var(--red-500); }
.s-group .t i { display: block; font-style: normal; font-size: 12px; color: var(--app-sub); }

/* chat */
.s-chat { background: var(--app-chat-bg); flex: 1; display: flex; flex-direction: column; gap: 0; padding-bottom: 8px; overflow: hidden; }
.s-chat .strip { background: var(--app-card); padding: 12px; display: flex; gap: 12px; align-items: center; }
.s-chat .strip .pic { width: 50px; height: 50px; flex: none; }
.s-chat .strip .t { flex: 1; }
.s-chat .strip .t b { display: block; font-size: 16px; }
.s-chat .strip .t span { font-size: 16px; }
.s-chat .strip .t span b { display: inline; color: var(--red-500); }
.s-chat .strip .t span em { font-style: normal; color: var(--app-grey); }
.s-chat .strip .offer { padding: 8px 16px; border-radius: 24px; background: var(--red-500); color: #fff; font: 700 14px/1 var(--font-body); }
.s-day { display: flex; align-items: center; gap: 8px; margin: 16px 12px 0; }
.s-day::before, .s-day::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, .54); }
.s-day span { background: rgba(0, 0, 0, .54); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 8px; }
.s-msg { display: flex; align-items: flex-end; gap: 8px; margin: 12px 8px 0; }
.s-msg .avatar { width: 40px; height: 40px; font-size: 14px; flex: none; }
.s-msg .bub { max-width: 230px; padding: 12px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--app-hair); font-weight: 700; color: #445E76; font-size: 14px; }
.s-msg time { font-size: 12px; color: var(--app-sub); }
.s-msg.me { justify-content: flex-end; }
.s-msg.me .bub { border-radius: 16px 16px 4px 16px; background: var(--red-500); color: #fff; border: 0; }
.s-offer { min-width: 140px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--red-500); }
.s-offer.theirs { background: var(--app-card); border: 0; }
.s-offer .lab { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--red-500); }
.s-offer .lab svg { width: 14px; height: 14px; fill: var(--red-500); }
.s-offer .amt { font: 700 22px/1.3 var(--font-body); margin-top: 4px; }
.s-offer .acts { display: flex; gap: 8px; margin-top: 10px; }
.s-offer .acts span { padding: 8px 12px; border-radius: 4px; background: var(--red-500); color: #fff; font-size: 14px; font-weight: 700; }
.s-offer .acts span.no { background: var(--app-grey); color: var(--app-text); font-weight: 400; }
.s-out { width: 140px; padding: 12px 16px; border-radius: 12px; text-align: center; }
.s-out.ok { background: var(--app-ok-fill); }
.s-out.ok small { color: var(--app-ok); }
.s-out.bad { background: var(--app-bad-fill); }
.s-out.bad small { color: var(--app-bad); }
.s-out small { display: block; font-size: 12px; margin-bottom: 8px; }
.s-out b { font: 400 22px/1.2 var(--font-body); color: #445E76; }
.s-composer { flex: none; height: 72px; background: #fff; border: 1px solid #EEE; border-radius: 12px 12px 0 0; display: flex; align-items: center; padding: 0 8px; gap: 8px; }
.s-composer > svg { width: 20px; height: 20px; fill: var(--app-text); }
.s-composer .s-field { flex: 1; margin: 0 4px; }
.s-composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--red-500); display: grid; place-items: center; flex: none; }
.s-composer .send svg { width: 20px; height: 20px; fill: #fff; }
.s-amount { margin: 8px 16px; padding: 12px 16px; border: 2px solid var(--red-500); border-radius: 8px; text-align: center; font: 700 36px/1.2 var(--font-body); color: var(--red-500); }
.s-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 12px; }
.s-quick div { border: 1px solid var(--app-hair); border-radius: 24px; padding: 12px; text-align: center; font-size: 12px; }
.s-quick div b { display: block; font-size: 16px; margin-top: 2px; }
.s-quick div.on { background: #E5BDBF; border-color: var(--red-500); }
.s-itemrow { display: flex; gap: 12px; align-items: center; padding: 16px; border-top: 1px solid var(--app-hair); border-bottom: 1px solid var(--app-hair); margin-top: 8px; }
.s-itemrow .pic { width: 60px; height: 60px; border-radius: 4px; flex: none; }
.s-itemrow b { font-size: 14px; line-height: 1.3; }
.s-tabs { display: flex; height: 48px; border-bottom: 1px solid #CAC4D0; }
.s-tabs div { flex: 1; display: grid; place-items: center; font: 700 14px/1 var(--font-body); color: var(--app-grey); position: relative; }
.s-tabs div.on { color: var(--app-text); }
.s-tabs div.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red-500); }

/* ---------- how it works ---------- */
.how .scene, .sell .scene { align-items: center; }
@media (min-width: 901px) { .scene--pin { min-height: calc(100svh - 140px); } }
.steps { display: grid; gap: 18px; position: relative; }
.step { position: relative; padding: 24px 24px 24px 72px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .4s var(--ease-out); }
.step .n { position: absolute; left: 22px; top: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font: 800 15px/1 var(--font-display); color: var(--muted); transition: background .4s, color .4s; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.step.is-on { background: rgba(169, 36, 40, .12); border-color: rgba(169, 36, 40, .5); transform: translateX(6px); }
.step.is-on .n { background: var(--red-500); color: #fff; }
.rail { position: absolute; left: -22px; top: 0; bottom: 0; width: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--pink), var(--red-500)); transform: scaleY(0); transform-origin: top; }
@media (max-width: 900px) { .rail { display: none; } .how .scene__phone { order: -1; } }

/* ---------- buy section: tracker ---------- */
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
.tracker div { font-size: 13px; color: var(--muted); }
.tracker i { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 10px; overflow: hidden; }
.tracker i::after { content: ""; display: block; height: 100%; background: var(--red-500); transform: scaleX(var(--p, 0)); transform-origin: left; }
.tracker div.on { color: var(--ink); font-weight: 600; }

/* ---------- near: rings ---------- */
.rings { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto; }
.rings .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 176, 177, .4); transform: scale(var(--k)); }
.rings .ring::after { content: attr(data-mi); position: absolute; left: 50%; top: -9px; transform: translateX(-50%); font-size: 11px; letter-spacing: .08em; color: var(--pink); background: var(--navy-950); padding: 2px 6px; border-radius: 10px; }
.rings .core { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 8px rgba(169, 36, 40, .25), 0 0 40px rgba(169, 36, 40, .8); }
.rings .pin { position: absolute; width: clamp(44px, 12%, 60px); height: clamp(44px, 12%, 60px); border-radius: 14px; overflow: visible; left: calc(50% + var(--x)); top: calc(50% + var(--y)); transform: translate(-50%, -50%); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .8); border: 2px solid rgba(255, 255, 255, .15); }
.rings .pin .pic { position: absolute; inset: 0; border-radius: 14px; }
.rings .pin b { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(10, 24, 40, .75); color: #fff; font-size: 10px; text-align: center; padding: 2px; }
.locctl { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); display: grid; gap: 14px; }
.locctl__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.locctl .chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--cream); color: var(--app-text); font-weight: 700; font-size: 14px; width: max-content; }
.locctl .chip svg { width: 16px; height: 16px; fill: var(--red-500); }
.locctl__count { font-size: 14px; color: var(--muted); }
.locctl__count b { color: var(--ink); font-size: 16px; }
.locctl .range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; --w: 10%; }
.locctl .range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red-500) var(--w), var(--line) var(--w)); }
.locctl .range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.locctl .range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--red-500); }
.locctl .range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red-500); border: 0; margin-top: -9px; box-shadow: 0 0 0 6px rgba(169, 36, 40, .25); transition: box-shadow .2s, transform .2s; }
.locctl .range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--red-500); border: 0; box-shadow: 0 0 0 6px rgba(169, 36, 40, .25); }
.locctl .range:hover::-webkit-slider-thumb, .locctl .range:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(169, 36, 40, .3); transform: scale(1.1); }
.locctl .range:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; border-radius: 4px; }
.locctl .ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -8px; }
.locctl .tog { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.locctl .tog .s-switch { background: rgba(255, 255, 255, .15); border: 0; padding: 0; cursor: pointer; flex: none; }
.locctl .tog .s-switch.on { background: var(--red-500); }
.locctl__hint { font-size: 13px; color: var(--muted); margin-top: -4px; min-height: 1.4em; }

/* interactive radius ring + pin states */
.rings .radius { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 176, 177, .9); background: radial-gradient(circle, rgba(169, 36, 40, .22), rgba(169, 36, 40, .06) 70%, rgba(169, 36, 40, 0) 72%); box-shadow: 0 0 40px rgba(169, 36, 40, .35), inset 0 0 40px rgba(169, 36, 40, .2); transform: scale(.46); transition: transform .45s var(--ease-out); pointer-events: none; }
.rings .pin { transition: opacity .4s var(--ease-out), filter .4s, box-shadow .3s; }
.rings .pin.is-in { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .8), 0 0 0 2px var(--pink); }
.rings .pin.is-out { opacity: .32; filter: grayscale(.7); }
.rings .pin.is-hidden { opacity: 0; pointer-events: none; }
.rings .pin .pop { position: absolute; inset: 0; border-radius: 14px; box-shadow: 0 0 0 0 rgba(255, 176, 177, .8); pointer-events: none; }
.rings .pin.is-in .pop { animation: popring .7s ease-out; }
@keyframes popring { from { box-shadow: 0 0 0 0 rgba(255, 176, 177, .8); } to { box-shadow: 0 0 0 18px rgba(255, 176, 177, 0); } }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feat { padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .5s var(--ease-out), border-color .4s; }
.feat:hover { transform: translateY(-6px); border-color: rgba(255, 176, 177, .35); }
.feat svg { width: 36px; height: 36px; stroke: var(--pink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.feat h3 { font-size: 21px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }
.feat .flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; }
.feat .flags span { padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.feat .mode { display: flex; gap: 8px; margin-top: 14px; }
.feat .mode i { flex: 1; height: 42px; border-radius: 10px; display: grid; place-items: center; font: 700 12px/1 var(--font-body); font-style: normal; }
.feat .mode i:first-child { background: #fff; color: var(--app-text); }
.feat .mode i:last-child { background: #212121; color: var(--pink); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.download { text-align: center; position: relative; overflow: hidden; }
.download .wm { font-size: clamp(64px, 14vw, 180px); display: block; margin: 0 auto; }
.download .lead { margin: 20px auto 36px; }
.download .stores { justify-content: center; }
.download .sweep { position: absolute; inset: -40%; background: conic-gradient(from 0deg at 50% 50%, rgba(169, 36, 40, 0) 0 70%, rgba(169, 36, 40, .35) 80%, rgba(232, 194, 122, .25) 86%, rgba(169, 36, 40, 0) 94%); filter: blur(60px); pointer-events: none; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.download .container { position: relative; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand { font-size: 22px; }

/* ---------- document pages ---------- */
.doc-hero { padding: 150px 0 40px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 14px; }
.doc-hero .meta { color: var(--muted); font-size: 15px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; padding-bottom: var(--section); }
.doc nav { position: sticky; top: 100px; align-self: start; font-size: 14px; display: grid; gap: 10px; color: var(--muted); }
.doc nav a:hover { color: var(--ink); }
.doc article { font-size: 16px; line-height: 1.7; color: #D5DDE6; }
.doc article h2 { font-size: 26px; margin: 48px 0 14px; color: var(--ink); }
.doc article h2:first-child { margin-top: 0; }
.doc article h3 { font-size: 19px; margin: 28px 0 10px; color: var(--ink); }
.doc article p + p, .doc article ul + p, .doc article p + ul { margin-top: 12px; }
.doc article ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.doc article ol { padding-left: 22px; display: grid; gap: 8px; }
.doc article a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.doc article .ph { background: rgba(232, 194, 122, .18); color: var(--gold); padding: 0 6px; border-radius: 4px; font-weight: 600; }
.doc article .card { padding: 20px 24px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin: 20px 0; }
.doc article .card b { color: var(--ink); }
.doc article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.doc article th, .doc article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc article th { color: var(--ink); font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; background: rgba(255, 255, 255, .03); margin-bottom: 10px; }
details summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--pink); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 0 18px; color: #D5DDE6; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 28px; }
.contact-grid .card { margin: 0; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .doc nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; } .contact-grid { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll i, .download .sweep { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
.no-motion #splash, .no-motion #splash-mark, .no-motion #aurora, .no-motion .cursor-glow { display: none; }
.no-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- print (legal pages) ---------- */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .doc nav, .skip { display: none; }
  .doc { grid-template-columns: 1fr; }
  .doc article, .doc article h2, .doc article h3 { color: #111; }
  .doc article a { color: #111; }
}

/* no-JS fallback: only the first screen of each phone shows */
.screen.is-active ~ .screen.is-active { opacity: 0; visibility: hidden; }

/* ==========================================================================
   Round 2: cinematic layer
   ========================================================================== */
#aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; filter: blur(70px) saturate(1.2); opacity: .7; }
main, .site-header, .site-footer, .ticker { position: relative; z-index: 1; }
.site-header { z-index: 50; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 177, .13), rgba(255, 176, 177, 0) 62%); pointer-events: none; z-index: 3; mix-blend-mode: screen; transform: translate(-50%, -50%); opacity: 0; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-500), var(--pink)); transform: scaleX(0); transform-origin: left; }

/* hero polaroids */
.polaroid { position: absolute; width: clamp(116px, 11.5vw, 156px); margin: 0; padding: 8px 8px 28px; background: #fff; border-radius: 6px; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .08); transform: rotate(var(--rot)); color: var(--navy-500); z-index: 1; will-change: transform; }
.polaroid .pic { aspect-ratio: 1; border-radius: 2px; }
.polaroid figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; font: 600 10.5px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid:nth-child(2) { left: -42%; top: 2%; }
.polaroid:nth-child(3) { right: -40%; top: 14%; z-index: 3; }
.polaroid:nth-child(4) { left: -46%; bottom: 22%; }
.polaroid:nth-child(5) { right: -44%; bottom: 10%; z-index: 3; }
.polaroid:nth-child(6) { left: -8%; bottom: -8%; z-index: 3; }
.hero .h1 { perspective: 800px; }
.hero .h1 .char { display: inline-block; transform-origin: 50% 100%; }

/* occasion ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; font: 800 clamp(18px, 2.2vw, 26px)/1 var(--font-display); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: -1px; }
.ticker__track { display: flex; white-space: nowrap; will-change: transform; }
.ticker__track span { flex: none; padding-right: .4em; }

/* horizontal gallery */
.gallery { position: relative; margin-top: clamp(28px, 4vw, 48px); overflow: hidden; }
.gallery__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 12px var(--gutter) 36px; will-change: transform; width: max-content; }
.gcard { position: relative; flex: 0 0 clamp(270px, 32vw, 420px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; isolation: isolate; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9); background: var(--navy-800); }
.gcard > .pic { position: absolute; inset: -10% -14%; will-change: transform; }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 24, 40, 0) 38%, rgba(10, 24, 40, .9)); z-index: 1; pointer-events: none; }
.gcard__body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.gcard__body small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.gcard__body h3 { font-size: clamp(26px, 2.4vw, 34px); }
.gcard__body p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.gcard__price { display: inline-block; margin-top: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); font-size: 12px; color: var(--ink); }
.gcard--cta { display: grid; place-items: center; text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); box-shadow: none; }
.gcard--cta::after { display: none; }
.gcard--cta .gcard__body { position: static; display: grid; gap: 14px; justify-items: center; padding: 24px; }
@media (max-width: 900px) {
  .gallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gcard { flex-basis: 72vw; scroll-snap-align: start; }
}

/* tilt + glare */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 46%); }
.tilt:hover::before { opacity: 1; }
.feat { position: relative; }

/* how: watermark numerals */
.steps { position: relative; }
.wm-num { position: absolute; right: -8px; top: -56px; height: 1em; font: 800 clamp(140px, 17vw, 240px)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 176, 177, .16); pointer-events: none; z-index: 0; }
.wm-num span { position: absolute; right: 0; top: 0; opacity: 0; }
.step { z-index: 1; }

/* order confirming */
.s-confirm { display: grid; align-content: center; justify-items: center; text-align: center; padding: 32px; gap: 16px; }
.s-check { width: 56px; height: 56px; fill: none; stroke: var(--red-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s-confirm h5 { margin: 0; font: 700 22px/1.2 var(--font-body); }
.s-confirm p { font-size: 14px; font-weight: 700; line-height: 1.4; }
.s-confirm .s-btn { width: 100%; margin-top: 16px; }
.s-qr { position: relative; overflow: hidden; }
.s-qr .scan { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--red-500), transparent); opacity: 0; }

/* chat typing indicator */
.s-typing .bub { display: flex; gap: 5px; padding: 14px 14px; }
.s-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA7B4; animation: blink 1s infinite; }
.s-typing i:nth-child(2) { animation-delay: .2s; }
.s-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* download orbit */
.download .container { min-height: 78vh; display: grid; align-content: center; justify-items: center; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit__item { position: absolute; left: 50%; top: 50%; width: clamp(72px, 9vw, 124px); aspect-ratio: 1; margin: calc(clamp(72px, 9vw, 124px) / -2) 0 0 calc(clamp(72px, 9vw, 124px) / -2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12); will-change: transform; }
.orbit__item .pic { width: 100%; height: 100%; }
@media (max-width: 900px) { .download .container { min-height: 60vh; } .orbit__item { width: 64px; margin: -32px 0 0 -32px; } }

/* rings pulse */
.rings .core { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(169, 36, 40, .25), 0 0 40px rgba(169, 36, 40, .8); } 50% { box-shadow: 0 0 0 18px rgba(169, 36, 40, .12), 0 0 60px rgba(169, 36, 40, 1); } }
@media (prefers-reduced-motion: reduce) { .rings .core, .s-typing i, .rings .pin.is-in .pop { animation: none; } .rings .radius, .rings .pin { transition: none; } }

/* ==========================================================================
   Round 3: seller-first additions
   ========================================================================== */
.hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero__free { font-size: 14px; color: var(--muted); }
.polaroid figcaption { display: flex; justify-content: space-between; gap: 6px; }
.polaroid figcaption b { color: var(--red-500); }

/* wardrobe calculator */
.worth__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); margin-top: 40px; align-items: start; }
.worth__chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wchip { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease-out); }
.wchip.is-on { border-color: rgba(255, 176, 177, .5); background: rgba(169, 36, 40, .14); }
.wchip .pic { width: 56px; height: 56px; border-radius: 12px; }
.wchip .t b { display: block; font-size: 15px; }
.wchip .t small { font-size: 12px; color: var(--muted); }
.wchip .step { display: inline-flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .06); border-radius: 22px; padding: 3px; }
.wchip .step button { width: 36px; height: 36px; border-radius: 50%; font: 700 20px/1 var(--font-body); color: var(--ink); display: grid; place-items: center; transition: background .2s, transform .15s; }
.wchip .step button:hover { background: rgba(255, 255, 255, .12); }
.wchip .step button:active { transform: scale(.9); }
.wchip .step [data-qty] { min-width: 26px; text-align: center; font: 700 16px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.worth__total { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(169, 36, 40, .22), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 176, 177, .25); text-align: center; display: grid; gap: 8px; justify-items: center; overflow: hidden; }
.worth__total small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); font-weight: 600; }
.worth__big { font: 800 clamp(56px, 7vw, 92px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.worth__keep { color: var(--muted); font-size: 15px; }
.worth__keep b { color: var(--ink); font-size: 18px; }
.worth__note { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.worth__total .btn { margin-top: 10px; }
.worth__rail { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 44px; width: 100%; margin-bottom: 6px; }
.worth__rail .tile { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .15); animation: tilein .5s var(--ease-out); }
.worth__rail .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes tilein { from { transform: translateY(14px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.worth__foot { margin-top: 24px; font-size: 13px; color: var(--muted); max-width: 70ch; }
@media (max-width: 900px) { .worth__grid { grid-template-columns: 1fr; } .worth__chips { grid-template-columns: 1fr; } .worth__total { position: static; } }
@media (prefers-reduced-motion: reduce) { .worth__rail .tile { animation: none; } }
