/* The Archive: Apple-inspired, lively and fluid.
   System type, soft surfaces, translucent chrome and spring-based motion. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --link: #0066cc;
  --pink: #ff5f8f;
  --orange: #ff9f0a;
  --green: #30d158;
  --purple: #bf5af2;
  --teal: #40c8e0;
  --yellow: #ffd60a;
  --glass: rgba(251, 251, 253, 0.72);
  --glass-dark: rgba(29, 29, 31, 0.72);
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.06), 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius: 22px;
  --radius-l: 32px;
  --nav-h: 52px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Springs sampled for CSS: a lively one with a little overshoot, and a critically damped one. */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.077 24.3%, 1.073 26.6%, 1.039 31.4%, 1.008 37.9%, 0.994 45.4%, 1.001 61.5%, 1);
  --spring-soft: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.6%, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  font: 400 17px/1.47 var(--font); letter-spacing: -0.022em; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.6); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(0, 113, 227, 0.2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; }
.skip:focus-visible { top: 12px; }

/* ---------- type ---------- */
.display { font-size: clamp(44px, 7.2vw, 96px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.headline { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; }
.lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.38; letter-spacing: -0.02em; color: var(--muted); font-weight: 500; }
.grad {
  background: linear-gradient(92deg, #ff5f8f 0%, #ff9f0a 30%, #bf5af2 62%, #0071e3 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px; font-size: 17px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform 0.45s var(--spring), background-color 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.96); transition-duration: 0.1s; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #0077ed; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #333336; }
.btn--light { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.btn--light:hover { background: rgba(0, 0, 0, 0.1); }
.btn--white { background: #fff; color: var(--ink); }
.btn--wide { width: 100%; min-height: 52px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.more::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform 0.4s var(--spring); }
.more:hover { text-decoration: underline; }
.more:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- glass nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 300; height: var(--nav-h);
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.nav__row { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; font-size: 18px; letter-spacing: -0.03em; text-decoration: none !important; }
.logo__mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: conic-gradient(from 210deg, #ff5f8f, #ff9f0a, #ffd60a, #30d158, #40c8e0, #bf5af2, #ff5f8f); transition: transform 0.6s var(--spring); }
.logo__mark svg { width: 16px; height: 16px; }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.08); }
.nav__links { display: flex; gap: 26px; margin-left: auto; margin-right: auto; }
.nav__links a { color: var(--ink-2); font-size: 13.5px; letter-spacing: -0.01em; opacity: 0.88; transition: opacity 0.2s; text-decoration: none; }
.nav__links a:hover, .nav__links a.active { opacity: 1; color: var(--ink); }
.nav__links a.active { font-weight: 600; }
.nav__tools { display: flex; gap: 6px; }
.tool { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color 0.2s, transform 0.4s var(--spring); }
.tool:hover { background: rgba(0, 0, 0, 0.05); }
.tool:active { transform: scale(0.9); }
.tool svg { width: 20px; height: 20px; }
.count {
  position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; letter-spacing: 0;
  transform: scale(0); transition: transform 0.5s var(--spring);
}
.count:not(:empty) { transform: scale(1); }
.count.bump { animation: bump 0.55s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }
.tool.wiggle svg { animation: wiggle 0.6s var(--spring); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 60% { transform: rotate(10deg); } }
.menu-btn { display: none; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px) scale(0.98); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--spring-soft); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="pop"] { transform: scale(0.88); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 0; text-align: center; overflow: hidden; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg-2); font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.hero__badge b { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 12px; }
.hero h1 { max-width: 13ch; margin-inline: auto; }
.hero .lede { max-width: 34ch; margin: 22px auto 0; }
.hero .actions { justify-content: center; margin-top: 30px; }
.hero__stage { position: relative; margin: clamp(40px, 6vw, 72px) auto 0; width: min(1120px, 100% - 32px); height: clamp(420px, 62vw, 720px); }
.hero__photo {
  position: absolute; left: 50%; top: 0; width: min(560px, 74vw); height: 100%; translate: -50% 0; border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow-2); transform: scale(var(--hero-s, 0.92)); transform-origin: 50% 0; will-change: transform;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.float {
  position: absolute; z-index: 2; width: clamp(130px, 17vw, 210px); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-2);
  animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s); text-align: left; color: var(--ink); text-decoration: none !important;
  transition: box-shadow 0.3s;
}
.float:hover { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2); animation-play-state: paused; }
.float img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.float span { display: block; padding: 10px 14px 12px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.float small { display: block; color: var(--muted); font-weight: 500; }
.float--a { left: 0; top: 10%; --d: -1s; }
.float--b { right: 0; top: 4%; --d: -3s; --rot: 3deg; }
.float--c { right: 6%; bottom: 8%; --d: -4.5s; --rot: 3deg; }
.float--d { left: 5%; bottom: 4%; --d: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--rot, -3deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--rot, -3deg) * -1)); } }

/* ---------- trust strip ---------- */
.trust { padding: clamp(56px, 8vw, 96px) 0 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust__item { padding: 24px; border-radius: var(--radius); background: var(--bg-2); transition: transform 0.6s var(--spring), background-color 0.3s; }
.trust__item:hover { transform: translateY(-4px); background: #efeff2; }
.trust__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; background: var(--c); }
.trust__icon svg { width: 24px; height: 24px; }
.trust__item h3 { font-size: 19px; letter-spacing: -0.02em; }
.trust__item p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0 0; }
.sec--gray { background: var(--bg-2); padding-bottom: clamp(80px, 11vw, 140px); margin-top: clamp(80px, 11vw, 140px); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.sec__head .lede { max-width: 40ch; margin-top: 12px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* vibe pills */
.vibes { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 22px 10px; margin: 0 -22px; }
.vibes::-webkit-scrollbar { display: none; }
.vibe {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg-2); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none !important;
  transition: transform 0.5s var(--spring), background-color 0.25s, color 0.25s;
}
.vibe:hover { transform: translateY(-2px); background: #e8e8ed; }
.vibe:active { transform: scale(0.95); }
.vibe i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.vibe.on { background: var(--ink); color: #fff; }

/* ---------- carousel (draggable, momentum, rubber band) ---------- */
.carousel { position: relative; margin-top: 18px; overflow: hidden; }
.track { display: flex; gap: 20px; padding: 10px max(22px, calc((100vw - var(--wrap)) / 2)) 30px; cursor: grab; touch-action: pan-y; will-change: transform; user-select: none; -webkit-user-select: none; }
.track.dragging { cursor: grabbing; }
.track .card { flex: 0 0 clamp(240px, 25vw, 300px); }
.carousel__nav { display: flex; gap: 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.06); color: var(--ink); cursor: pointer; transition: transform 0.4s var(--spring), background-color 0.2s, opacity 0.2s; }
.round:hover { background: rgba(0, 0, 0, 0.1); }
.round:active { transform: scale(0.9); }
.round:disabled { opacity: 0.35; cursor: default; }
.round svg { width: 18px; height: 18px; }

/* ---------- product card ---------- */
.card { position: relative; display: block; color: var(--ink); }
.card__media {
  position: relative; z-index: 2; isolation: isolate; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--tint, var(--bg-2)); cursor: pointer;
  transition: transform 0.7s var(--spring), box-shadow 0.5s ease;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--spring-soft); pointer-events: none; -webkit-user-drag: none; }
@media (hover: hover) {
  .card:hover .card__media { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12); }
  .card:hover .card__media img { transform: scale(1.045); }
}
.card__cond { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; font-weight: 600; letter-spacing: -0.005em; }
.heart {
  position: absolute; right: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink);
  transition: transform 0.45s var(--spring), background-color 0.2s;
}
.heart:hover { transform: scale(1.08); }
.heart:active { transform: scale(0.85); }
.heart svg { width: 19px; height: 19px; }
.heart[aria-pressed="true"] { color: var(--pink); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.heart.pop svg { animation: pop 0.6s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(0.6); } 65% { transform: scale(1.35); } 100% { transform: scale(1); } }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--c); animation: burst 0.7s var(--ease-out) forwards; }
@keyframes burst { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-26px) scale(0.2); opacity: 0; } }
.card__body { padding: 14px 4px 0; }
.card__title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card__title a { color: inherit; text-decoration: none !important; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card__meta { margin-top: 3px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.card__price { margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.verified { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-weight: 500; }
.verified svg { width: 14px; height: 14px; }
.card .quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; min-height: 40px; font-size: 15px;
  opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 0.3s ease, transform 0.5s var(--spring), background-color 0.2s;
}
@media (hover: hover) { .card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; } }
@media (hover: none) { .card .quick { display: none; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 20px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-l); background: #fff; padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 10px; transition: transform 0.7s var(--spring), box-shadow 0.4s;
}
.tile:hover { transform: scale(1.012); box-shadow: var(--shadow-1); }
.tile h3 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.tile p { color: var(--muted); font-size: 17px; max-width: 34ch; }
.tile--momo { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, #fff7d6 0%, #ffe680 100%); }
.tile--momo h3 { font-size: clamp(36px, 4.6vw, 64px); max-width: 9ch; }
.tile--momo p { color: #5c5016; }
.tile--held { grid-column: span 2; background: var(--ink); color: #fff; }
.tile--held p { color: rgba(255, 255, 255, 0.72); }
.tile--verified { grid-column: span 2; background: linear-gradient(160deg, #e7f1ff, #cfe2ff); }
.tile--verified p { color: #31476b; }
.tile--photo { grid-column: span 3; padding: 0; min-height: 380px; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--spring-soft); }
.tile--photo:hover img { transform: scale(1.04); }
.tile__cap {
  position: absolute; left: 18px; bottom: 18px; right: 18px; padding: 16px 20px; border-radius: var(--radius); color: #fff;
  background: rgba(29, 29, 31, 0.5); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.tile__cap h3 { font-size: 22px; letter-spacing: -0.02em; }
.tile__cap p { color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.tile--free { grid-column: span 3; background: linear-gradient(160deg, #e3fbe9, #b7f0c8); }
.tile--free p { color: #1f5130; }
.big-num { font-size: clamp(56px, 7vw, 104px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.phone {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: -40px; width: clamp(190px, 22vw, 250px); aspect-ratio: 9 / 18.5;
  border-radius: 38px; background: #111; padding: 10px; box-shadow: var(--shadow-2); transform: rotate(-6deg); transition: transform 0.8s var(--spring);
}
.tile--momo:hover .phone { transform: rotate(-2deg) translateY(-12px); }
.phone__screen { position: relative; height: 100%; border-radius: 30px; background: #fff; padding: 40px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; text-align: left; }
.phone__pill { width: 70px; height: 20px; border-radius: 999px; background: #111; position: absolute; left: 50%; translate: -50% 0; top: 10px; }
.phone__row { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #f2f2f4; font-weight: 600; }
.phone__row--on { background: #fff4c2; box-shadow: inset 0 0 0 2px #ffcc00; }
.phone__amt { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: -0.04em; margin: 6px 0; }
.phone__btn { margin-top: auto; border-radius: 12px; background: var(--blue); color: #fff; text-align: center; padding: 11px; font-weight: 600; }
.check-anim { width: 60px; height: 60px; margin-bottom: 6px; }
.check-anim circle { stroke-dasharray: 170; stroke-dashoffset: 170; }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.in .check-anim circle, .modal.is-open .check-anim circle { animation: draw 0.9s var(--ease-out) 0.2s forwards; }
.in .check-anim path, .modal.is-open .check-anim path { animation: draw 0.5s var(--ease-out) 0.85s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- sell story (sticky) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__media { position: sticky; top: calc(var(--nav-h) + 40px); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-1); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__progress { position: absolute; left: 20px; right: 20px; bottom: 20px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.45); overflow: hidden; }
.story__progress i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0.25)); transition: transform 0.6s var(--spring-soft); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0.25; transition: opacity 0.5s ease, transform 0.8s var(--spring); transform: scale(0.96); transform-origin: 0 50%; }
.step.on { opacity: 1; transform: none; }
.step__n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--c); }
.step h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.035em; line-height: 1.08; }
.step p { font-size: 19px; color: var(--muted); max-width: 30ch; }

/* ---------- marquee ---------- */
.marquee { margin-top: clamp(48px, 6vw, 80px); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 18px; width: max-content; animation: slide 50s linear infinite; }
.marquee:hover .marquee__row, .marquee.paused .marquee__row { animation-play-state: paused; }
.marquee__row a { flex-shrink: 0; border-radius: 18px; overflow: hidden; transition: transform 0.5s var(--spring); }
.marquee__row a:hover { transform: translateY(-6px) rotate(-1.5deg); }
.marquee__row img { width: 170px; aspect-ratio: 3 / 4; object-fit: cover; }
.marquee__row--rev { animation-direction: reverse; margin-top: 18px; }
@keyframes slide { to { transform: translateX(-50%); } }
.pause { margin: 18px auto 0; display: flex; }

/* ---------- community banner ---------- */
.community { position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: clamp(440px, 50vw, 640px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.community img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; z-index: -2; transform: translateY(var(--py, 0)); will-change: transform; }
.community::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.66) 100%); }
.community__text { padding: clamp(28px, 5vw, 64px); max-width: 680px; }
.community__text p { margin-top: 12px; font-size: 19px; color: rgba(255, 255, 255, 0.88); }
.community .actions { margin-top: 24px; }

/* ---------- questions ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 28px; font-weight: 300; color: var(--muted); transition: transform 0.5s var(--spring); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: 24px; color: var(--muted); font-size: 17px; max-width: 62ch; animation: vt-in 0.5s var(--spring-soft); }

/* ---------- closing ---------- */
.closing { text-align: center; padding: clamp(100px, 14vw, 180px) 0; }
.closing .actions { justify-content: center; margin-top: 32px; }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); color: var(--muted); font-size: 12.5px; padding: 40px 0 28px; }
.foot__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot h2 { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.foot a { display: block; color: var(--muted); padding: 3px 0; }
.foot a:hover { color: var(--ink); }
.foot__blurb { max-width: 34ch; line-height: 1.5; }
.drops { margin-top: 16px; display: flex; gap: 8px; max-width: 340px; }
.drops input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.drops input:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.4); outline-offset: 0; border-color: var(--blue); }
.drops .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.drops__help { min-height: 1.4em; margin-top: 6px; }
.foot__legal { padding-top: 18px; }

/* ---------- app views ---------- */
.page { padding: clamp(36px, 5vw, 64px) 0 clamp(80px, 10vw, 120px); }
.page__head { margin-bottom: clamp(24px, 3vw, 36px); }
.page__head .lede { margin-top: 10px; max-width: 44ch; }
.page__count { color: var(--muted); font-size: 17px; margin-top: 6px; }

.shopbar { position: sticky; top: var(--nav-h); z-index: 50; margin: 0 -22px 28px; padding: 12px 22px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.shopbar__row { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); transition: box-shadow 0.3s, background-color 0.2s; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.35); }
.search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.select { height: 44px; padding: 0 36px 0 16px; border: 0; border-radius: 999px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 15px; cursor: pointer; }
.shopbar .vibes { margin: 10px -22px 0; padding-bottom: 2px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; user-select: none; }
.toggle input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #e9e9eb; position: relative; cursor: pointer; transition: background-color 0.3s; margin: 0; flex-shrink: 0; }
.toggle input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform 0.45s var(--spring); }
.toggle input:checked { background: var(--green); }
.toggle input:checked::after { transform: translateX(18px); }
.range { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.range input { width: 140px; accent-color: var(--blue); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid .card { animation: vt-in 0.6s var(--spring-soft) both; animation-delay: calc(var(--i, 0) * 45ms); }
.empty { text-align: center; padding: 60px 0; grid-column: 1 / -1; }
.empty__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.empty__icon svg { width: 34px; height: 34px; }
.empty p { color: var(--muted); font-size: 19px; margin: 6px auto 22px; max-width: 36ch; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; }
.crumbs a { color: var(--link); }
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--nav-h) + 24px); border-radius: var(--radius-l); overflow: hidden; background: var(--tint, var(--bg-2)); aspect-ratio: 3 / 4; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.9s var(--spring-soft); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pdp__media.zoom img { transform: scale(1.8); cursor: zoom-out; }
.pdp__info { display: grid; gap: 20px; padding-top: 8px; }
.pdp__info h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; }
.pdp__price { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 500; }
.panel { border-radius: var(--radius); background: var(--bg-2); padding: 6px 20px; }
.panel__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 15px; }
.panel__row + .panel__row { border-top: 1px solid var(--line); }
.panel__row span:first-child { color: var(--muted); }
.panel__row span:last-child { text-align: right; }
.more-like { margin-top: clamp(64px, 8vw, 110px); }
.more-like h2 { margin-bottom: 24px; }

.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form { display: grid; gap: 20px; }
.form__block { border-radius: var(--radius-l); background: var(--bg-2); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.form__title { font-size: 24px; letter-spacing: -0.03em; font-weight: 700; }
.form__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; height: 56px; padding: 22px 16px 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 17px; outline: none;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.field textarea { height: auto; min-height: 120px; padding-top: 26px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 17px; pointer-events: none; transform-origin: 0 0; transition: transform 0.35s var(--spring), color 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field select + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.72); }
.field input:focus + label, .field textarea:focus + label { color: var(--blue); }
.field input:user-invalid { border-color: #ff3b30; }
.upload { display: grid; place-items: center; gap: 8px; min-height: 180px; padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.2s, transform 0.5s var(--spring), background-color 0.2s; }
.upload:hover { border-color: var(--blue); background: #f7fbff; }
.upload.over { border-color: var(--blue); transform: scale(1.02); }
.upload svg { width: 34px; height: 34px; color: var(--blue); }
.upload__preview { max-height: 240px; border-radius: 14px; }
.form__row:has(#photo:focus-visible) .upload { outline: 3px solid rgba(0, 113, 227, 0.6); outline-offset: 2px; }
.help { color: var(--muted); font-size: 14px; min-height: 1.4em; }
.options { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.options legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s, box-shadow 0.25s, transform 0.4s var(--spring); }
.option:active { transform: scale(0.985); }
.option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.option input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; flex-shrink: 0; }
.option__text { flex: 1; display: grid; }
.option__text small { color: var(--muted); font-size: 14px; }
.option__logo { width: 38px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0; background: var(--lc); color: var(--lt, #fff); }
.summary { position: sticky; top: calc(var(--nav-h) + 24px); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; animation: vt-in 0.5s var(--spring-soft) both; }
.line img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--tint, #fff); }
.line a { color: var(--ink); font-weight: 600; font-size: 15px; }
.line small { display: block; color: var(--muted); font-size: 13px; }
.line__end { text-align: right; display: grid; gap: 2px; font-weight: 600; font-size: 15px; }
.textbtn { border: 0; background: none; color: var(--link); cursor: pointer; font-size: 14px; padding: 4px 0; font-weight: 400; }
.textbtn:hover { text-decoration: underline; }
.totals { margin: 0; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.totals > div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals__grand { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; padding-top: 8px; }
.totals__grand dt { color: var(--ink); }
.sellside { display: grid; gap: 16px; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mini-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--muted); }
.mini-steps b { display: block; color: var(--ink); font-size: 17px; }
.mini-steps .n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--c); }

.rows { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; }
.rows li { list-style: none; }
.value { height: 100%; border-radius: var(--radius-l); padding: 30px; background: var(--bg-2); transition: transform 0.6s var(--spring); }
.value:hover { transform: translateY(-4px); }
.value h2 { font-size: 22px; letter-spacing: -0.025em; }
.value p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.about-hero { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: 40px; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }

.post { display: grid; gap: 14px; color: var(--ink); }
.post__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--spring-soft); }
.post:hover .post__img img { transform: scale(1.05); }
.post h2 { font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; }
.post p { color: var(--muted); font-size: 15px; }

/* ---------- toast, modal, sheet ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 500; translate: -50% 0; padding: 12px 20px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 500;
  background: var(--glass-dark); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(20px) scale(0.92); pointer-events: none; transition: opacity 0.3s ease, transform 0.55s var(--spring); white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: none; }
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0); transition: background-color 0.35s ease; }
.modal.is-open { background: rgba(0, 0, 0, 0.32); }
.modal__sheet {
  position: relative; width: min(440px, 100%); border-radius: 30px; background: #fff; padding: 36px 32px 28px; text-align: center; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  display: grid; gap: 14px; justify-items: center; opacity: 0; transform: translateY(40px) scale(0.94); transition: opacity 0.3s ease, transform 0.6s var(--spring);
}
.modal.is-open .modal__sheet { opacity: 1; transform: none; }
.modal__sheet h2 { font-size: 26px; letter-spacing: -0.03em; font-weight: 700; }
.modal__sheet p { color: var(--muted); }
.modal__grab { display: none; }

/* flying item on add-to-bag, confetti */
.flyer-img { position: fixed; z-index: 600; border-radius: 16px; pointer-events: none; object-fit: cover; box-shadow: var(--shadow-2); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 700; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: fall var(--t, 2.4s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 540deg)); } }

/* page change */
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.app-enter { animation: vt-in 0.55s var(--spring-soft) both; }

/* ---------- mobile quick bar ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--momo { grid-column: span 6; }
  .tile--held, .tile--verified { grid-column: span 3; }
}
@media (max-width: 820px) {
  :root { --nav-h: 48px; }
  body { padding-bottom: 80px; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; gap: 0; padding: 8px 22px 18px; background: rgba(251, 251, 253, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08); }
  .nav__links.open { display: flex; animation: vt-in 0.4s var(--spring-soft); }
  .nav__links a { font-size: 24px; font-weight: 600; padding: 10px 0; opacity: 1; color: var(--ink); }
  .nav__tools { margin-left: auto; }
  .menu-btn { display: grid; }
  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .tile--momo { min-height: 560px; }
  .story, .pdp, .two { grid-template-columns: minmax(0, 1fr); }
  .story__media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .step { min-height: 0; padding: 28px 0; opacity: 1; transform: none; }
  .pdp__media, .summary { position: relative; top: 0; }
  .shopbar { position: relative; top: 0; }
  .shopbar .select { flex: 1 1 auto; }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
  .float { width: 118px; }
  .float--c, .float--d { display: none; }
  .float--a { left: -6px; top: 58%; }
  .float--b { right: -6px; top: 6%; }
  .hero__photo { width: 76vw; }
  .sec__head { flex-direction: column; align-items: flex-start; }
  .modal { place-items: end center; padding: 0; }
  .modal__sheet { width: 100%; border-radius: 28px 28px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateY(100%); touch-action: none; }
  .modal__grab { display: block; width: 40px; height: 5px; border-radius: 999px; background: #d1d1d6; margin: -18px auto 6px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 250; height: 58px; border-radius: 22px;
    background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 500; text-decoration: none; transition: color 0.2s, transform 0.4s var(--spring); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--blue); }
  .tabbar a:active { transform: scale(0.9); }
  .toast { bottom: 90px; }
}
@media (max-width: 520px) {
  .form__pair { grid-template-columns: minmax(0, 1fr); }
  .trust__grid { grid-template-columns: minmax(0, 1fr); }
  .track .card { flex-basis: 70vw; }
  .marquee__row img { width: 120px; }
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; transition-timing-function: ease !important; scroll-behavior: auto !important; }
  .js [data-reveal] { transform: none !important; }
  .hero__photo, .community img { transform: none !important; }
  .float, .marquee__row, .grad { animation: none !important; }
  .step { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .shopbar, .tabbar, .toast, .card__cond, .heart, .tile__cap { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav, .shopbar, .tabbar { background: #fbfbfd; }
  .toast { background: #1d1d1f; }
}
@media (prefers-contrast: more) {
  .nav, .shopbar, .tabbar { background: #fff; box-shadow: 0 1px 0 #000; }
  .card__media, .tile, .trust__item { outline: 1px solid #000; }
}
