/* LuckyDorm website. Layout concept: a two-way relay. Leaving on the left, arriving on the right,
   and everything in between is the handover. Needs base.css first. */

.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(36px, 5.4vw, 64px); }
.sec-head p { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }

/* progress + nav */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 14px; height: 72px; }
.nav .brand { margin-right: auto; }
.links { display: flex; gap: 2px; }
.links a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 11px; color: var(--ink-2); transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--grad); color: #fff; font-family: var(--mono); font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.cart-count.bump { animation: pop .5s var(--ease); }
.menu-btn { display: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* hero */
.hero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 7vw, 96px); overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.orb.a { width: 520px; height: 520px; background: radial-gradient(circle, var(--g1), transparent 65%); top: -220px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.orb.b { width: 440px; height: 440px; background: radial-gradient(circle, var(--g3), transparent 65%); top: 120px; left: -220px; opacity: .35; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.1); } 100% { transform: translate(40px, -30px) scale(.95); } }
.hero .wrap { position: relative; z-index: 1; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.hero h1 { font-size: clamp(52px, 9.4vw, 124px); line-height: .92; letter-spacing: -.045em; margin-top: 22px; }
.hero h1 .w { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .w:nth-child(2) { animation-delay: .08s; } .hero h1 .w:nth-child(4) { animation-delay: .16s; } .hero h1 .w:nth-child(5) { animation-delay: .24s; }
.hero-side { display: grid; gap: 22px; padding-bottom: 10px; animation: rise 1s .3s var(--ease) both; }
.hero-side p { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hero-side p strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* split relay */
.split { position: relative; display: flex; gap: 14px; margin-top: clamp(40px, 6vw, 64px); min-height: 460px; animation: rise 1.1s .35s var(--ease) both; }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; transition: flex-grow .7s var(--ease), box-shadow .5s var(--ease); text-decoration: none; isolation: isolate; }
.panel:hover { flex-grow: 1.4; box-shadow: var(--shadow-lg); }
.panel.leave { background: #1b1f5c; color: var(--on-deep); border-radius: var(--r-lg) var(--r-xs) var(--r-lg) var(--r-lg); }
.panel.leave .photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.panel.leave:hover .photo { transform: scale(1.12); }
.panel.leave::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29, 33, 99, .35) 0%, rgba(29, 33, 99, .72) 45%, rgba(23, 22, 80, .96) 100%), linear-gradient(120deg, rgba(154, 94, 248, .35), transparent 60%); }
.panel.arrive { background: var(--tint); color: var(--ink); border-radius: var(--r-xs) var(--r-lg) var(--r-lg) var(--r-lg); align-items: flex-end; text-align: right; }
.panel .big { position: absolute; top: 18px; left: 0; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(90px, 13vw, 170px); letter-spacing: -.05em; line-height: 1; z-index: -1; transition: transform 1.2s var(--ease); pointer-events: none; }
.panel.leave .big { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .2); transform: translateX(-6%); }
.panel.arrive .big { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--violet) 30%, transparent); left: auto; right: 0; transform: translateX(6%); }
.panel.leave:hover .big { transform: translateX(-22%); }
.panel.arrive:hover .big { transform: translateX(22%); }
.panel.leave .label { color: #c2b4ff; }
.panel.arrive .label { color: var(--violet); }
.panel h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: .95; }
.panel p { max-width: 34ch; font-size: 16px; }
.panel.leave p { color: var(--on-deep-2); }
.panel.arrive p { color: var(--ink-2); }
.panel .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding-bottom: 3px; border-bottom: 2px solid currentColor; width: max-content; transition: gap .35s var(--ease); }
.panel:hover .go { gap: 14px; }
.panel.leave .go { color: #d7ccff; }
.panel.arrive .go { color: var(--violet); }
.float-items { position: absolute; top: 28px; display: flex; gap: 10px; z-index: 0; }
.panel.arrive .float-items { left: 28px; }
.fi { width: 52px; height: 52px; border-radius: 16px 16px 16px 4px; display: grid; place-items: center; font-size: 24px; animation: bob 5s ease-in-out infinite; background: var(--surface); color: var(--violet); border: 1px solid var(--line); }
.fi:nth-child(2) { animation-delay: -1.6s; } .fi:nth-child(3) { animation-delay: -3.2s; }
.fi.ph { width: 64px; height: 76px; padding: 0; overflow: hidden; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.fi.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.badge { position: absolute; left: 50%; top: 50%; width: 138px; height: 138px; margin: -69px 0 0 -69px; z-index: 5; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); display: grid; place-items: center; pointer-events: none; }
.badge svg.orbit { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); overflow: visible; fill: none; animation: spin 18s linear infinite; }
.badge svg.orbit text { font-family: var(--mono); font-size: 9.6px; letter-spacing: .1em; fill: var(--ink-2); text-transform: uppercase; }
.badge img { position: relative; width: 56px; height: auto; }
.track { position: absolute; left: 8%; right: 8%; bottom: -30px; height: 2px; background-image: linear-gradient(90deg, var(--line) 50%, transparent 0); background-size: 14px 2px; z-index: 4; }
.truck { position: absolute; bottom: -44px; left: 8%; font-size: 28px; color: var(--violet); z-index: 4; animation: drive 10s var(--ease) infinite; }
@keyframes drive { 0% { left: 8%; opacity: 0; } 6% { opacity: 1; } 52% { opacity: 1; } 58% { left: calc(92% - 30px); opacity: 0; } 100% { left: calc(92% - 30px); opacity: 0; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 18px; }
.mq { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .mq { animation-play-state: paused; }
.mq span { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.mq span .ico { color: var(--violet); font-size: .9em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--leaf); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(22px, 3vw, 34px); display: grid; gap: 8px; align-content: start; transition: background .4s; }
.stat:hover { background: var(--sunken); }
.stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.04em; line-height: 1; }
.stat p { color: var(--ink-2); font-size: 15px; max-width: 26ch; }
.stat .src { color: var(--ink-2); opacity: .75; font-size: 10.5px; }

/* relay steps */
.relay { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.relay-line { position: absolute; top: 31px; left: 32px; right: 32px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.relay-line i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; }
.in .relay-line i { animation: draw 1.8s .2s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step-dot { position: relative; width: 64px; height: 64px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; color: var(--violet); box-shadow: var(--shadow); transition: transform .5s var(--ease), background .4s, color .4s; }
.step:hover .step-dot { transform: translateY(-6px) rotate(-6deg); background: var(--grad); color: #fff; border-color: transparent; }
.in .step-dot { animation: pop .7s var(--ease) both; }
.in .step:nth-child(3) .step-dot { animation-delay: .35s; } .in .step:nth-child(4) .step-dot { animation-delay: .7s; } .in .step:nth-child(5) .step-dot { animation-delay: 1.05s; }
.step .label { color: var(--ink-2); }
.step h3 { font-size: 24px; letter-spacing: -.02em; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.loop-note { margin-top: 44px; display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--leaf); background: var(--tint); color: var(--ink); font-weight: 500; }
.loop-note .ico { font-size: 28px; color: var(--violet); animation: spin 10s linear infinite; }

/* shop */
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); transition: all .3s var(--ease); }
.filter:hover { color: var(--ink); border-color: var(--violet); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.note { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; background: var(--tint); }
.note .ico { color: var(--violet); }
.grid-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; animation: cardIn .6s var(--ease) both; }
.tile { position: relative; aspect-ratio: 4 / 4.6; max-width: 100%; border-radius: var(--leaf); overflow: hidden; background: var(--sunken); border: 1px solid var(--line); display: grid; place-items: center; isolation: isolate; cursor: pointer; transition: transform .6s var(--ease), box-shadow .6s var(--ease); padding: 0; width: 100%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease), filter .6s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 30, 75, .18), transparent 30%, transparent 60%, rgba(27, 30, 75, .35)); pointer-events: none; }
.tile .art { font-size: clamp(64px, 7vw, 92px); color: var(--ink); opacity: .85; }
.tile .art svg { stroke-width: 1.25; }
.spot { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 60%); mix-blend-mode: soft-light; pointer-events: none; }
.card:hover .spot { opacity: 1; }
.card:hover .tile { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover .tile img { transform: scale(1.07); }
.pill { position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.pill.loc { left: 14px; background: rgba(255, 255, 255, .92); color: #1b1e4b; box-shadow: var(--shadow); }
.pill.loc .ico { color: #6a4ee6; }
.pill.cond { right: 14px; background: #1b1e4b; color: #fff; }
.reserved-flag { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(27, 30, 75, .45); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); }
.reserved-flag span { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: #fff; color: #1b1e4b; padding: 8px 14px; border-radius: 99px; }
.reveal-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 16px; background: rgba(29, 33, 99, .94); color: var(--on-deep); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; transform: translateY(101%); transition: transform .45s var(--ease); }
.reveal-bar .ico { color: #c2b4ff; }
.card:hover .reveal-bar, .card:focus-within .reveal-bar { transform: none; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.card h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.15; }
.card .story { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.price { font-family: var(--mono); font-weight: 500; font-size: 19px; white-space: nowrap; padding: 4px 10px; border-radius: 10px 10px 10px 3px; background: var(--tint); color: var(--ink); }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1; }
.empty { padding: 48px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--leaf); color: var(--ink-2); }

/* item modal */
.item-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.item-photo { border-radius: var(--leaf); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sunken); display: grid; place-items: center; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-photo .ico { font-size: 96px; color: var(--violet); }
.item-info { display: grid; gap: 16px; align-content: start; }
.item-info h2 { padding-right: 40px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fact .label { color: var(--ink-2); font-size: 10.5px; display: block; }
.fact b { font-size: 15px; font-weight: 600; }
.included { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.included div { display: flex; gap: 8px; align-items: center; }
.included .ico { color: var(--ok); }

/* cart drawer */
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; display: grid; gap: 12px; align-content: start; }
.drawer-foot { padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--surface); }
.line-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px 18px 18px 4px; background: var(--surface); border: 1px solid var(--line); animation: cardIn .4s var(--ease) both; }
.line-item .th { width: 72px; height: 72px; border-radius: 14px 14px 14px 4px; overflow: hidden; background: var(--sunken); display: grid; place-items: center; }
.line-item .th img { width: 100%; height: 100%; object-fit: cover; }
.line-item b { font-size: 15px; display: block; line-height: 1.25; }
.line-item small { color: var(--ink-2); font-size: 13px; }
.line-item .rm { border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 18px; padding: 8px; border-radius: 10px; }
.line-item .rm:hover { color: var(--bad); background: var(--bad-soft); }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); }
.sum-row.total { font-size: 18px; color: var(--ink); font-weight: 700; }
.sum-row .tnum { font-family: var(--mono); }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }
.cart-empty .ico { font-size: 48px; color: var(--violet); }

/* checkout */
.steps { display: flex; gap: 6px; margin: 18px 0 24px; }
.steps li { list-style: none; flex: 1; display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background .5s var(--ease); }
.steps li.done::before, .steps li.now::before { background: var(--grad); }
.steps li.now { color: var(--ink); }
.steps { padding: 0; }
.co-step { display: grid; gap: 16px; animation: cardIn .45s var(--ease) both; }
.co-summary { padding: 16px; border-radius: 18px 18px 18px 4px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.co-summary .mini { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.co-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.demo-note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: 12px; }
.confirm { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 10px; }
.confirm .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 40px; animation: pop .7s var(--ease) both; box-shadow: 0 16px 40px -12px var(--glow); }
.confirm .oid { font-family: var(--mono); font-size: 15px; padding: 6px 14px; border-radius: 99px; background: var(--tint); }
.next-steps { display: grid; gap: 10px; text-align: left; width: 100%; margin-top: 8px; }
.next-steps div { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.next-steps .ico { color: var(--violet); font-size: 20px; }

/* sell band */
.band { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 90% 0%, rgba(154, 94, 248, .35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(52, 80, 183, .45), transparent 60%); }
.band .eyebrow { color: #c2b4ff; }
.band .sec-head p { color: var(--on-deep-2); }
.band-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: -20px; margin-bottom: 40px; }
.band-cta .btn-ghost { background: rgba(255, 255, 255, .08); color: var(--on-deep); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.sell-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; }
.glass { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--leaf); padding: clamp(22px, 3vw, 34px); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.glass h3 { font-size: 26px; letter-spacing: -.02em; }
.glass .sub { color: var(--on-deep-2); font-size: 15px; margin-top: 6px; }
.payout { display: grid; gap: 22px; margin-top: 24px; }
.payout-out { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.payout-out .you { font-family: var(--display); font-weight: 800; font-size: clamp(58px, 7vw, 88px); line-height: .9; letter-spacing: -.04em; background: linear-gradient(115deg, #d8c8ff, #a891ff 50%, #8aa0f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.payout-out .lbl { color: var(--on-deep-2); font-size: 14px; }
.dfield { display: grid; gap: 10px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-top label, .field-top span { font-size: 14px; color: var(--on-deep-2); }
.field-top output { font-family: var(--mono); font-size: 16px; color: var(--on-deep); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #a891ff var(--fill, 50%), rgba(255, 255, 255, .14) var(--fill, 50%)); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(168, 145, 255, .3), 0 4px 10px rgba(0, 0, 0, .3); transition: box-shadow .3s; }
input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(168, 145, 255, .25), 0 4px 10px rgba(0, 0, 0, .3); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(168, 145, 255, .3); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; text-align: center; padding: 9px 0; font-family: var(--mono); font-size: 14px; cursor: pointer; border-radius: 999px; color: var(--on-deep-2); transition: color .3s; }
.seg input:checked + label { color: #1b1e4b; }
.seg input:focus-visible + label { outline: 2px solid #c2b4ff; outline-offset: 2px; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: #fff; transition: transform .45s var(--ease); }
.split-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.split-bar i { display: block; height: 100%; transition: width .6s var(--ease); }
.split-bar .a { background: linear-gradient(90deg, #d8c8ff, #a891ff); }
.split-bar .b { background: rgba(255, 255, 255, .18); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--on-deep-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.compare-mini { margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 14px; color: var(--on-deep-2); display: flex; gap: 10px; align-items: center; }
.compare-mini b { color: var(--on-deep); }
.date-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.date-row label { font-size: 14px; color: var(--on-deep-2); }
.date-row input { font: inherit; font-family: var(--mono); font-size: 15px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: var(--on-deep); color-scheme: dark; }
.days { font-family: var(--mono); font-size: 13px; color: #c2b4ff; }
.tiers { display: grid; gap: 10px; margin-top: 20px; }
.tier { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px 16px 16px 4px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); transition: all .5s var(--ease); }
.tier .t-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.tier b { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }
.tier small { display: block; color: var(--on-deep-2); font-size: 13px; }
.tier .fee { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-deep-2); }
.tier.on { background: rgba(255, 255, 255, .12); border-color: var(--c); transform: translateX(8px); }
.tier.on::after { content: "Your window"; position: absolute; right: 16px; top: -10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--c); color: #14163a; padding: 3px 8px; border-radius: 99px; }
.fine { font-size: 13px; color: var(--on-deep-2); margin-top: 16px; }
.routes { margin-top: 22px; overflow-x: auto; }
.routes table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.routes th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-2); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.routes td { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--on-deep-2); vertical-align: top; }
.routes td:first-child { color: var(--on-deep); font-weight: 600; }
.routes tr.us td { background: rgba(168, 145, 255, .14); color: var(--on-deep); }
.routes tr.us td:first-child { border-radius: 12px 0 0 12px; } .routes tr.us td:last-child { border-radius: 0 12px 12px 0; }

/* sell request form */
.drop { position: relative; display: grid; place-items: center; gap: 8px; text-align: center; padding: 26px; border: 2px dashed var(--line-strong); border-radius: 20px 20px 20px 6px; background: var(--surface); cursor: pointer; transition: border-color .3s, background .3s; min-height: 170px; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--violet); background: color-mix(in srgb, var(--tint) 50%, var(--surface)); }
.drop .ico { font-size: 34px; color: var(--violet); }
.drop b { font-size: 15px; }
.drop small { color: var(--ink-2); font-size: 13px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img.prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .swap { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(255, 255, 255, .92); color: #1b1e4b; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; pointer-events: none; }
.tier-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.tier-inline b { color: var(--violet); }
.form-grid { display: grid; gap: 16px; margin-top: 22px; }
.form-sec { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-top: 6px; }
.payout-hint { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--tint); font-size: 14px; }
.payout-hint b { font-family: var(--mono); }

/* compare */
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--leaf); padding: clamp(22px, 3vw, 34px); }
.box h3 { font-size: 24px; letter-spacing: -.02em; }
.box .sub { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunken); margin-top: 20px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .3s var(--ease); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tab-note { font-size: 13px; color: var(--ink-2); margin-top: 12px; min-height: 20px; }
.bars { display: grid; gap: 16px; margin-top: 20px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 112px; gap: 14px; align-items: center; }
.bar-row .nm { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.bar-row .nm small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.bar-track { position: relative; height: 16px; border-radius: 99px; background: var(--sunken); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--ink-2) 55%, transparent); transition: width .9s var(--ease); }
.bar-row.us .bar-fill { background: var(--grad); }
.bar-row.us .bar-fill::after { content: ""; position: absolute; right: -4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--g3); }
.bar-row .val { font-family: var(--mono); font-size: 14px; text-align: right; white-space: nowrap; }
.bar-row.us .val { color: var(--violet); font-weight: 500; }
.in .bars .bar-fill { animation: grow 1.1s var(--ease) both; }
@keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.depth { display: grid; gap: 12px; margin-top: 20px; }
.depth-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.depth-row .nm { font-size: 14px; font-weight: 600; }
.depth-row .sc { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.pips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.pips i { height: 8px; border-radius: 3px; background: var(--sunken); position: relative; overflow: hidden; }
.pips i::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink-2) 55%, transparent); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.depth-row.us .pips i::after { background: var(--grad); }
.depth-row.us .nm { color: var(--violet); }
.in .pips i::after { animation: pip .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes pip { from { transform: scaleX(0); } }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.feat div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.feat .ico { font-size: 16px; color: var(--violet); padding: 3px; box-sizing: content-box; border-radius: 50%; background: var(--tint); }
.feat .half .ico { color: var(--ink-2); background: var(--sunken); }
.src-line { font-size: 12.5px; color: var(--ink-2); margin-top: 16px; }

/* voices */
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ring-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--leaf); padding: 24px; display: grid; gap: 16px; justify-items: start; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ring-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ring { --v: 50; --p: var(--v); width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from -90deg, var(--g1), var(--g2) calc(var(--p) * .5%), var(--g3) calc(var(--p) * 1%), var(--sunken) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.in .ring { animation: fillring 1.6s var(--ease) both; }
@keyframes fillring { from { --p: 0; } to { --p: var(--v); } }
.ring-card p { font-size: 15px; color: var(--ink-2); }
.ring-card p b { color: var(--ink); font-weight: 600; }
.quote { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: var(--leaf); background: var(--grad); color: #fff; }
.quote .q { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.quote .qi { width: 60px; height: 60px; border-radius: 18px 18px 18px 5px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 28px; }
.quote .qi svg { width: 28px; height: 28px; }
.quote small { display: block; margin-top: 8px; font-size: 13px; opacity: .85; font-family: var(--sans); font-weight: 400; letter-spacing: 0; }

/* why now */
.why-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.why-stats { display: grid; gap: 14px; }
.ws { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--leaf); background: var(--surface); border: 1px solid var(--line); }
.ws .n { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -.04em; line-height: 1; min-width: 3.2ch; }
.ws p { font-size: 14.5px; color: var(--ink-2); }
.timeline { position: relative; display: grid; gap: 6px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline::after { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--grad); border-radius: 2px; transform-origin: 50% 0; }
.in .timeline::after, .timeline.in::after { animation: drawv 2s var(--ease) both; }
@keyframes drawv { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tl { position: relative; padding: 14px 18px; border-radius: 16px; transition: background .3s; }
.tl:hover { background: var(--surface); }
.tl::before { content: ""; position: absolute; left: -31px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--violet); z-index: 1; transition: transform .3s var(--ease); }
.tl:hover::before { transform: scale(1.3); }
.tl.now::before { background: var(--violet); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tl .label { color: var(--violet); }
.tl h4 { font-size: 20px; letter-spacing: -.02em; margin-top: 4px; }
.tl p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* partners */
.partners { padding-block: 56px; border-block: 1px solid var(--line); background: var(--surface); }
.partners > .label { color: var(--ink-2); text-align: center; display: block; margin-bottom: 20px; }
.pq { display: flex; gap: 16px; width: max-content; animation: scroll 46s linear infinite reverse; }
.partners:hover .pq { animation-play-state: paused; }
.pc { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; white-space: nowrap; }
.pc .ico { color: var(--violet); font-size: 20px; }
.pmask { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; background: var(--surface); transition: border-color .3s, box-shadow .3s; }
.qa.open { border-color: var(--violet); box-shadow: var(--shadow); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 20px 22px; background: transparent; border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.qa button .ico { font-size: 22px; color: var(--violet); transition: transform .45s var(--ease); }
.qa.open button .ico { transform: rotate(135deg); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 22px 20px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
@media (min-width: 901px) { .faq-head { position: sticky; top: 110px; } }

/* join */
.join { position: relative; border-radius: 36px 36px 36px 8px; overflow: hidden; background: var(--deep); color: var(--on-deep); padding: clamp(28px, 5vw, 64px); isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.join::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, rgba(154, 94, 248, .5), rgba(52, 80, 183, .4), rgba(111, 99, 239, .5), rgba(154, 94, 248, .5)); filter: blur(60px); animation: spin 24s linear infinite; }
.join::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(29, 33, 99, .75), rgba(29, 33, 99, .92)); }
.join h2 { font-size: clamp(40px, 5.6vw, 72px); }
.join .lead { color: var(--on-deep-2); font-size: 18px; margin-top: 18px; max-width: 42ch; }
.join-actions { display: grid; gap: 12px; }
.join-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: var(--on-deep); cursor: pointer; transition: background .3s, transform .4s var(--ease); text-align: left; font: inherit; width: 100%; }
.join-card:hover { background: rgba(255, 255, 255, .13); transform: translateX(6px); }
.join-card .ico { font-size: 26px; color: #c2b4ff; }
.join-card b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -.01em; }
.join-card small { color: var(--on-deep-2); font-size: 14px; }

/* footer */
footer { padding-block: 56px 40px; color: var(--ink-2); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .7fr)); gap: 28px; }
.foot h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); font-weight: 500; }
.foot a { display: block; text-decoration: none; padding: 3px 0; transition: color .2s, transform .3s var(--ease); }
.foot a:hover { color: var(--violet); transform: translateX(3px); }
.foot .brand { display: inline-flex; }
.foot .tag { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-top: 14px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.top-btn { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 16px 16px 16px 4px; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 40; transform: translateY(120px); transition: transform .5s var(--ease); }
.top-btn.show { transform: none; }
.top-btn .ico { transform: rotate(-90deg); }

/* scroll reveal: content is visible at rest; it animates only when about to enter view */
.rv.go { animation: rv .9s var(--ease) both; }
.rv.go.d1 { animation-delay: .1s; } .rv.go.d2 { animation-delay: .2s; } .rv.go.d3 { animation-delay: .3s; }
@keyframes rv { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 1040px) {
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links a { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 960px) {
  .links { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); }
  .nav.open .links { display: flex; }
  .links a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: inline-grid; }
  .nav .btn-sm { display: none; }
}
@media (max-width: 900px) {
  .hero-top, .sell-grid, .cmp-grid, .why-grid, .faq-grid, .join, .item-view { grid-template-columns: minmax(0, 1fr); }
  .grid-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relay { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .relay-line { display: none; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
  .item-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .split { flex-direction: column; min-height: 0; }
  .panel { min-height: 300px; }
  .panel:hover { flex-grow: 1; }
  .panel.leave { order: 1; padding-bottom: 52px; border-radius: var(--r-lg) var(--r-lg) var(--r-xs) var(--r-lg); }
  .panel.arrive { order: 3; padding-top: 52px; border-radius: var(--r-lg) var(--r-xs) var(--r-lg) var(--r-lg); }
  .badge { position: relative; order: 2; left: auto; top: auto; width: 96px; height: 96px; margin: -44px auto; flex: none; }
  .badge img { width: 40px; }
  .track, .truck { display: none; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .feat { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-items, .stats, .relay, .rings, .foot { grid-template-columns: minmax(0, 1fr); }
  .float-items .fi:nth-child(3) { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps li span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .truck { display: none; } }
