/* FitKey. One idea carries the design: your size is a sewn-in label. Everything else stays quiet. */
:root {
  --bg: #000; --s1: #1c1c1e; --s2: #2c2c2e; --s3: #3a3a3c; --sep: rgba(84, 84, 88, .55); --fill: rgba(118, 118, 128, .24);
  --text: #fff; --text2: rgba(235, 235, 245, .62); --text3: rgba(235, 235, 245, .55);
  --blue: #409cff; --btn: #0071e3; --orange: #ff9f0a; --green: #30d158; --red: #ff6961; --btn-red: #d70015;
  --paper: #f3efe6; --paper-ink: #16130f; --tile: #e9e6e0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --spring: cubic-bezier(.22, 1, .36, 1); --ease: cubic-bezier(.3, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.38 var(--font); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; text-align: inherit; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; font-weight: inherit; font-size: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Stage ---------- */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 88px; padding: 28px; }
.side { max-width: 400px; }
.side .wordmark { font-weight: 650; font-size: 17px; letter-spacing: -.02em; margin-bottom: 36px; color: var(--text2); }
.side .side-title { font-size: 56px; line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin-bottom: 20px; white-space: nowrap; }
.side p { color: var(--text2); font-size: 17px; text-wrap: pretty; max-width: 330px; }
.side-meta { margin-top: 26px; font-size: 13px !important; color: var(--text3) !important; }
.phone { position: relative; width: 393px; height: min(852px, calc(100vh - 56px)); flex: none; background: var(--bg); border-radius: 54px; overflow: hidden; box-shadow: 0 0 0 1px #2a2a2c, 0 0 0 9px #0c0c0d, 0 0 0 10px #303033, 0 50px 120px rgba(0, 0, 0, .7); display: flex; flex-direction: column; }
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.screen:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.screen::-webkit-scrollbar { display: none; }
@media (max-width: 880px) { .side { display: none; } .stage { padding: 0; } }
@media (max-width: 560px), (max-height: 640px) { .stage { padding: 0; align-items: stretch; } .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; } }

/* ---------- Type ---------- */
.large { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.title2 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.022em; }
.headline { font-size: 17px; font-weight: 600; }
.lede { font-size: 17px; color: var(--text2); margin-top: 10px; text-wrap: pretty; }
.sub { font-size: 15px; } .foot { font-size: 13px; line-height: 1.38; letter-spacing: -.005em; } .cap { font-size: 12px; }
.t2 { color: var(--text2); } .t3 { color: var(--text3); }
.section-label { font-size: 13px; color: var(--text2); padding: 0 16px 7px; letter-spacing: -.005em; }

/* ---------- Layout ---------- */
.page { padding: 0 20px 36px; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: max(10px, env(safe-area-inset-top)) 8px 0; }
.bar .wordmark { padding-left: 12px; font-weight: 650; letter-spacing: -.02em; }
.head { padding: 6px 20px 14px; }
.stack > * + * { margin-top: 12px; } .gap > * + * { margin-top: 28px; }
.row-flex { display: flex; align-items: center; gap: 12px; } .grow { flex: 1; min-width: 0; }
.enter { animation: enter .5s var(--spring) both; }
.enter-2 { animation: enter .5s .06s var(--spring) both; } .enter-3 { animation: enter .5s .12s var(--spring) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Controls ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 14px; background: var(--btn); color: #fff; font-weight: 600; font-size: 17px; transition: transform .16s var(--spring), opacity .16s; }
.btn:active { transform: scale(.975); opacity: .86; }
.btn[disabled] { opacity: .32; pointer-events: none; }
.btn.gray { background: var(--fill); color: var(--text); }
.btn.plain { background: none; color: var(--blue); font-weight: 400; min-height: 46px; }
.btn.red { background: none; color: var(--red); font-weight: 400; }
.btn.danger { background: var(--btn-red); }
.btn.sm { min-height: 44px; width: auto; padding: 0 16px; border-radius: 12px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); }
.icon-btn:active { opacity: .5; } .icon-btn svg { width: 24px; height: 24px; }
.textlink { color: var(--blue); }
.list { background: var(--s1); border-radius: 14px; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 11px 16px; position: relative; }
.cell + .cell::before, .cell.sep::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: .5px; background: var(--sep); }
button.cell:active, a.cell:active { background: var(--s2); }
.cell .chev { width: 16px; height: 16px; color: var(--text3); flex: none; transition: transform .35s var(--spring); }
.cell[aria-expanded="true"] .chev { transform: rotate(90deg); }
.cell .check { width: 20px; height: 20px; color: var(--blue); flex: none; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .3s var(--spring); }
.cell[aria-pressed="true"] .check { opacity: 1; transform: none; }
.cell .d { color: var(--text2); font-size: 15px; margin-top: 1px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; background: var(--fill); border-radius: 10px; }
.seg button { min-height: 36px; border-radius: 8px; font-size: 15px; font-weight: 500; text-align: center; transition: background .2s var(--ease); }
.seg button[aria-pressed="true"] { background: #636366; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.field { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; background: var(--s1); border: 0; color: var(--text); outline: none; transition: box-shadow .2s; }
.list .field { background: var(--s2); }
.field::placeholder { color: var(--text3); }
.field:focus { box-shadow: 0 0 0 2px var(--blue); }
.label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 7px; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; min-height: 40px; border-radius: 10px; background: var(--s2); font-size: 15px; font-weight: 500; text-align: center; }
.quick button:active { background: var(--s3); }
.err { color: var(--red); font-size: 15px; }
.note { display: flex; gap: 9px; font-size: 13px; line-height: 1.4; color: var(--text2); }
.note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; margin-top: 5.500px; }
.note b { color: var(--text); font-weight: 600; }

/* ---------- The label ---------- */
.tag { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; background: var(--paper); color: var(--paper-ink); border-radius: 5px; font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: -.02em; min-width: 50px; height: 56px; padding: 0 11px; font-size: 21px; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2), 0 6px 16px rgba(0, 0, 0, .45); background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .022) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 2px); }
.tag::before { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(22, 19, 15, .32); border-radius: 2.500px; pointer-events: none; }
.tag b { font-weight: 600; font-variant-numeric: lining-nums; }
.tag i { font: 500 9.500px/1 var(--font); letter-spacing: .02em; margin-top: 4px; opacity: .62; white-space: nowrap; }
.tag.lg { min-width: 124px; height: 148px; padding: 0 22px; font-size: 68px; border-radius: 9px; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2), 0 18px 44px rgba(0, 0, 0, .6); }
.tag.lg::before { inset: 8px; border-width: 1.500px; border-radius: 4px; }
.tag.lg i { font-size: 14px; margin-top: 10px; }
.tag.md { min-width: 84px; height: 100px; padding: 0 16px; font-size: 44px; border-radius: 7px; }
.tag.md::before { inset: 6px; } .tag.md i { font-size: 11.500px; margin-top: 7px; }
.tag.doubt::before { border-color: #c96a00; }
.tag.void { background: var(--s2); color: var(--text3); box-shadow: none; background-image: none; }
.tag.void::before { border-color: var(--text3); }
.tags { display: inline-flex; align-items: center; flex: none; }
.tags .tag:first-child { transform: rotate(-5deg); z-index: 1; }
.tags .tag + .tag { transform: rotate(5deg) translateY(3px); margin-left: -12px; }
.tags.lg .tag + .tag { margin-left: -22px; }
.sewn { animation: sewn .7s var(--spring) both; }
@keyframes sewn { from { opacity: 0; transform: translateY(18px) rotate(-7deg) scale(.92); } }
.tags .sewn:first-child { animation-name: sewnL; } .tags .sewn + .sewn { animation-name: sewnR; animation-delay: .08s; }
@keyframes sewnL { from { opacity: 0; transform: translateY(18px) rotate(-14deg) scale(.92); } to { transform: rotate(-5deg); } }
@keyframes sewnR { from { opacity: 0; transform: translateY(18px) rotate(14deg) scale(.92); } to { transform: rotate(5deg) translateY(3px); } }

/* ---------- Welcome ---------- */
.welcome { min-height: 100%; display: flex; flex-direction: column; padding: max(28px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom)); }
.welcome .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.fan { position: relative; width: 124px; height: 148px; margin: 0 0 44px 44px; }
.fan .tag { position: absolute; inset: 0; }
.fan .tag:nth-child(1) { animation: fanL 1.9s .25s var(--spring) both; }
.fan .tag:nth-child(2) { animation: fanR 1.9s .25s var(--spring) both; }
.fan .tag:nth-child(3) { animation: fanC 1.9s .25s var(--spring) both; }
@keyframes fanL { 0%, 38% { transform: translateX(-34px) rotate(-13deg); opacity: 1; } 100% { transform: translateX(-44px) rotate(-3deg); opacity: 0; } }
@keyframes fanR { 0%, 38% { transform: translateX(46px) rotate(12deg); opacity: 1; } 100% { transform: translateX(-44px) rotate(-3deg); opacity: 0; } }
@keyframes fanC { 0%, 38% { transform: translateX(6px) rotate(-1deg) scale(.98); } 100% { transform: translateX(-44px) rotate(-3deg); } }
.welcome .large { font-size: 40px; letter-spacing: -.035em; }

/* ---------- Quiz ---------- */
.quiz { min-height: 100%; display: flex; flex-direction: column; padding: 0 20px max(20px, env(safe-area-inset-bottom)); }
.quiz .bar { padding-left: 0; padding-right: 0; margin: 0 -10px 14px; gap: 6px; justify-content: flex-start; }
.progress { flex: 1; height: 3px; border-radius: 3px; background: var(--s2); overflow: hidden; margin-right: 12px; }
.progress i { display: block; height: 100%; background: var(--text); border-radius: 3px; transition: width .6s var(--spring); }
.quiz-body { flex: 1; } .quiz-foot { padding-top: 18px; }
.item { display: flex; align-items: center; gap: 14px; }
.item .rm { width: 44px; height: 44px; margin-right: -12px; color: var(--text3); display: grid; place-items: center; }
.item .rm svg { width: 18px; height: 18px; } .item .rm:active { color: var(--text); }
.range-val { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.range-val small { font-size: 20px; font-weight: 500; color: var(--text2); letter-spacing: -.01em; margin-left: 4px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--s3); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--s3); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -12px; box-shadow: 0 3px 8px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(0, 0, 0, .1); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }

/* ---------- Shop ---------- */
.searchbar { position: sticky; top: 0; z-index: 5; padding: 4px 20px 10px; background: linear-gradient(#000 82%, transparent); }
.search { position: relative; }
.search > svg { position: absolute; left: 11px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--text2); pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 48px 0 36px; border-radius: 12px; background: var(--fill); border: 0; outline: none; color: var(--text); }
.search input::placeholder { color: var(--text2); }
.search input::-webkit-search-cancel-button { display: none; }
.search .go { position: absolute; right: 7px; top: 7px; width: 32px; height: 32px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; transition: transform .2s var(--spring), opacity .2s; }
.search .go svg { width: 17px; height: 17px; }
.search input:placeholder-shown ~ .go { opacity: 0; transform: scale(.6); pointer-events: none; }
.result { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; position: relative; }
.result + .result::before { content: ""; position: absolute; left: 96px; right: 0; top: 0; height: .5px; background: var(--sep); }
.result:active { opacity: .6; }
.tile { --g: #555; --ink: #111; --detail: rgba(255, 255, 255, .5); --shade: rgba(0, 0, 0, .35); position: relative; flex: none; width: 82px; height: 96px; border-radius: 12px; background: radial-gradient(90% 70% at 50% 34%, #f6f4f0, var(--tile)); display: grid; place-items: center; overflow: hidden; }
.tile::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 7%; border-radius: 50%; background: rgba(0, 0, 0, .16); filter: blur(5px); }
.tile svg { position: relative; z-index: 1; width: 78%; height: 78%; }
.tile.hero { width: 100%; height: 300px; border-radius: 0; }
.tile.hero svg { width: 220px; height: 220px; animation: enter .8s var(--spring) both; }
.result .brand { font-size: 13px; color: var(--text2); }
.result .name { font-weight: 600; line-height: 1.25; margin: 1px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-size: 15px; color: var(--text2); font-variant-numeric: tabular-nums; }
.price s { color: var(--text3); margin-left: 6px; }
.skel { border-radius: 12px; background: linear-gradient(100deg, var(--s1) 30%, #262628 50%, var(--s1) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { padding: 70px 12px 0; text-align: center; color: var(--text2); }
.empty .title2 { color: var(--text); margin-bottom: 6px; }

/* ---------- Product ---------- */
.floatbar { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: max(10px, env(safe-area-inset-top)) 12px 0; pointer-events: none; }
.floatbar .icon-btn { pointer-events: auto; width: 36px; height: 36px; background: rgba(255, 255, 255, .78); color: #111; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.floatbar .icon-btn svg { width: 20px; height: 20px; }
.pick { display: flex; align-items: center; gap: 22px; padding: 4px 0 2px; }
.pick.unsure { flex-direction: column; align-items: flex-start; gap: 18px; }
.pick.unsure .tags { margin-left: 6px; }
.pick .kicker { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.pick.unsure .kicker { color: var(--orange); }
.pick .reason { font-size: 17px; line-height: 1.36; text-wrap: pretty; }
.tip { font-size: 15px; color: var(--text2); margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--s3); text-wrap: pretty; }
.pick.unsure + .tip, .tip.doubt { border-color: var(--orange); color: var(--text); }
.ruler { position: relative; height: 62px; margin: 26px 14px 0; }
.ruler .line { position: absolute; left: -14px; right: -14px; top: 15px; height: 1px; background: var(--s3); }
.ruler .tick { position: absolute; top: 9px; width: 1px; height: 13px; background: var(--text3); }
.ruler .tick span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .4s .5s; }
.ruler .tick.on { background: var(--text); } .ruler .tick.on span { color: var(--text); font-weight: 600; }
.ruler .half { position: absolute; top: 12px; width: 1px; height: 7px; background: var(--s3); }
.ruler .you { position: absolute; top: 10px; width: 11px; height: 11px; margin-left: -5.500px; border-radius: 50%; border: 1.500px solid var(--text2); background: var(--bg); }
.ruler .dot { position: absolute; top: 8.500px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(10, 132, 255, .22); left: var(--to); animation: slide 1.1s .35s var(--spring) both; }
.ruler .dot.alt { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 159, 10, .2); }
@keyframes slide { from { left: var(--from); } }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text2); margin-top: 4px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.legend .ly { border: 1.500px solid var(--text2); } .legend .lp { background: var(--blue); } .legend .la { background: var(--orange); }
.ev-row { display: block; padding: 12px 16px; position: relative; }
.ev-row + .ev-row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: .5px; background: var(--sep); }
.ev-row .k { font-size: 13px; color: var(--text2); margin-bottom: 2px; display: flex; align-items: center; gap: 7px; }
.ev-row.used .k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.ev-row .v { font-size: 15px; line-height: 1.4; }
.chart { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.chart th { text-align: left; font-weight: 400; color: var(--text2); padding: 3px 0; font-size: 12px; }
.chart td { padding: 6px 0; border-top: .5px solid var(--sep); color: var(--text2); }
.chart tr.hit td { color: var(--text); font-weight: 600; }
.qa .q { font-weight: 600; } .qa .a { color: var(--text2); margin-top: 2px; font-size: 16px; }
.suggest { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 19px; background: var(--s1); font-size: 15px; white-space: nowrap; }
.suggest button:active { background: var(--s2); }
.ask { position: relative; }
.ask input { width: 100%; height: 46px; padding: 0 50px 0 16px; border-radius: 23px; background: var(--s1); border: 0; outline: none; color: var(--text); }
.ask input::placeholder { color: var(--text3); }
.ask button { position: absolute; right: 7px; top: 7px; width: 32px; height: 32px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; }
.ask button svg { width: 17px; height: 17px; }
.ask input:placeholder-shown ~ button { background: var(--s3); color: var(--text3); }
.cta { position: sticky; bottom: 0; z-index: 4; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); }

/* ---------- Sheet, tabs, toast ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .5); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; background: var(--s1); border-radius: 26px 26px 0 0; padding: 8px 22px max(22px, env(safe-area-inset-bottom)); animation: rise .5s var(--spring) both; max-height: 90%; overflow-y: auto; text-align: center; }
@keyframes rise { from { transform: translateY(100%); } }
.sheet .grab { width: 36px; height: 5px; border-radius: 5px; background: var(--s3); margin: 0 auto 26px; }
.sheet .seg { background: var(--s2); }
.sheet .disclose { margin: 10px 0 2px; }
.tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 0 max(6px, env(safe-area-inset-bottom)); background: rgba(18, 18, 19, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center; color: var(--text3); font-size: 10.500px; font-weight: 500; letter-spacing: 0; transition: color .15s; }
.tabs a svg { width: 25px; height: 25px; }
.tabs a[aria-current="page"] { color: var(--blue); }
.toast { position: absolute; left: 50%; top: max(12px, env(safe-area-inset-top)); z-index: 40; max-width: calc(100% - 32px); width: max-content; padding: 11px 18px; border-radius: 22px; background: rgba(58, 58, 60, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, -14px) scale(.96); pointer-events: none; transition: opacity .25s, transform .45s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Orders, You, Evals ---------- */
.stat { font-size: 64px; font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { font-size: 22px; font-weight: 500; color: var(--text2); letter-spacing: -.02em; margin-left: 6px; }
.order { padding: 14px 16px; }
.order + .order { border-top: .5px solid var(--sep); }
.order .acts { display: grid; gap: 8px; margin-top: 12px; }
.order .acts button { min-height: 46px; border-radius: 12px; background: var(--s2); padding: 0 14px; font-size: 16px; }
.order .acts button:active { background: var(--s3); }
.st { font-size: 13px; font-weight: 600; white-space: nowrap; } .st.ok { color: var(--green); } .st.bad { color: var(--red); } .st.warn { color: var(--orange); } .st.idle { color: var(--text3); font-weight: 400; }
.meter { height: 4px; border-radius: 4px; background: var(--s3); position: relative; margin: 9px 0 5px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--text); transition: width .8s var(--spring); max-width: 100%; }
.meter i.pass { background: var(--green); } .meter i.fail { background: var(--red); }
.meter u { position: absolute; top: -5px; bottom: -5px; width: 1.500px; background: var(--text); }
.case { padding: 12px 16px; position: relative; }
.case + .case::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: .5px; background: var(--sep); }
.case .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.case .why { color: var(--text2); font-size: 13px; margin-top: 3px; }

/* ---------- Onboarding ---------- */
.still *:not(.skel):not(.fx):not(.fx *), .still *::before, .still *::after { animation: none !important; }
.features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features svg { width: 30px; height: 30px; color: var(--blue); flex: none; margin-top: 1px; }
.features svg.doubt { color: var(--orange); }
.features b { display: block; font-weight: 600; font-size: 16px; }
.features span { display: block; color: var(--text2); font-size: 15px; line-height: 1.35; margin-top: 1px; text-wrap: pretty; }
.welcome .fan { margin-bottom: 30px; }
@media (max-height: 760px) { .welcome .fan { transform: scale(.72); transform-origin: left bottom; margin: -30px 0 18px 30px; } .welcome .large { font-size: 34px; } .features { gap: 13px; margin-top: 18px; } }
.quiz-body.in-fwd { animation: stepF .55s var(--spring) both; } .quiz-body.in-back { animation: stepB .55s var(--spring) both; }
@keyframes stepF { from { opacity: 0; transform: translateX(34px); } } @keyframes stepB { from { opacity: 0; transform: translateX(-34px); } }
.bignum { font-size: 104px; line-height: .95; font-weight: 700; letter-spacing: -.055em; font-variant-numeric: tabular-nums; margin: 6px 0 14px -4px; }
.bignum small { font-size: 52px; letter-spacing: -.03em; margin-left: 2px; }
.viz { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; margin: 30px 0 34px; max-width: 320px; }
.viz i { aspect-ratio: 5 / 6; border-radius: 3px; background: var(--paper); opacity: .92; animation: pop .5s var(--spring) both; }
.viz i.hit { animation: pop .5s var(--spring) both, flip .6s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes flip { to { background: var(--orange); transform: rotate(-9deg) translateY(2px); } }
.promise { font-size: 22px; line-height: 1.22; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; animation: enter .6s 1.5s var(--spring) both; }
.src { font-size: 12px; color: var(--text3); margin-top: 6px; }
.live { display: flex; align-items: center; gap: 16px; margin: 22px 0 18px; min-height: 100px; }
.live .tag { transition: transform .35s var(--spring); }
.live .cap b { display: block; font-weight: 600; font-size: 17px; } .live .cap span { color: var(--text2); font-size: 15px; }
.bump { animation: bump .45s var(--spring); }
@keyframes bump { 0% { transform: scale(.9) rotate(-4deg); } }
.payoff-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; position: relative; animation: enter .6s var(--spring) both; }
.payoff-row + .payoff-row::before { content: ""; position: absolute; left: 80px; right: 0; top: 0; height: .5px; background: var(--sep); }
.payoff-row .tile { width: 50px; height: 58px; border-radius: 9px; }
.payoff-row .name { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; }
.thread { width: 1px; height: 26px; margin: 10px 0 10px 41px; background: repeating-linear-gradient(var(--text3) 0 3px, transparent 3px 6px); animation: enter .5s .3s both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } .fan .tag:nth-child(-n+2) { display: none; } }

/* ---------- product photos ---------- */
.tile.photo { background: #efeeeb; }
.tile.photo::after { display: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.tile.hero.photo { height: min(112vw, 430px); }
.tile.hero.photo img { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; } }

/* ---------- the size card: quiet, one answer ---------- */
.pick.sizecard { display: block; padding: 18px 18px 18px; background: var(--s1); border-radius: 20px; }
.pick.sizecard .kicker { font-size: 13px; color: var(--text2); margin: 0; }
.pick.sizecard.unsure .kicker { color: var(--orange); }
.sizecard .sz { font-size: 40px; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.sizecard.unsure .sz { font-size: 32px; }
.pick.sizecard .reason { font-size: 15px; line-height: 1.42; color: var(--text2); text-wrap: pretty; }
.sizecard .tip { margin-top: 10px; padding-left: 0; border-left: 0; font-size: 15px; line-height: 1.42; color: var(--text); }
.run { display: flex; gap: 6px; margin-top: 18px; }
.run span { flex: 1; min-width: 0; padding: 9px 0; border-radius: 10px; background: var(--s2); color: var(--text3); font-size: 14px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; }
.run span.on { background: var(--btn); color: #fff; font-weight: 600; }
.sizecard.unsure .run span.on { background: rgba(255, 159, 10, .16); color: var(--orange); }
.chart { font-size: 13px; }
.chart td { padding: 7px 0; }
.chart tr.hit td { color: var(--blue); }

/* ---------- size chips: plain, like a size button in a store ---------- */
.tag { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; background: var(--s2); background-image: none; color: var(--text); font: 600 17px/1 var(--font); letter-spacing: -.01em; box-shadow: none; }
.tag::before { display: none; }
.tag b { font-weight: 600; }
.tag i { font: 500 10px/1 var(--font); margin-top: 3px; opacity: .55; }
.tag.doubt { background: rgba(255, 159, 10, .16); color: var(--orange); }
.tag.void { color: var(--text3); }
.tag.md { min-width: 60px; height: 60px; padding: 0 14px; border-radius: 16px; font-size: 24px; }
.tag.md i { font-size: 11px; margin-top: 4px; }
.tag.lg { min-width: 124px; height: 148px; padding: 0 22px; border-radius: 30px; font-size: 64px; font-weight: 700; letter-spacing: -.03em; background: var(--s1); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 18px 44px rgba(0, 0, 0, .6); }
.tag.lg i { font-size: 14px; margin-top: 8px; }
.tags { gap: 6px; }
.tags .tag:first-child, .tags .tag + .tag { transform: none; margin-left: 0; }
/* ---------- why this size: a short list ---------- */
.why .ev-row { padding: 13px 16px; }
.why .ev-row .k { font-size: 12px; letter-spacing: .01em; margin-bottom: 3px; }
.why .ev-row .v { font-size: 15px; line-height: 1.42; }
.why .cmp { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.why .cmp span:last-child { color: var(--text2); }
.why .cmp + .cmp { margin-top: 3px; }
.why .said { margin-top: 6px; color: var(--text2); font-size: 14px; }

/* ---------- onboarding: brand yellow captions, two-tap closet, more pictures ---------- */
.features span { color: var(--orange); }
.quiz-body .cell .d { color: var(--orange); }
.welcome .fan { zoom: .74; margin-bottom: 30px; }
.xlate { display: flex; gap: 10px; margin: 20px 0 0; max-width: 330px; }
.xlate div { flex: 1; padding: 11px 0 9px; border-radius: 16px; background: var(--s1); text-align: center; animation: pop .6s var(--spring) both; }
.xlate b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.xlate span { font-size: 12px; color: var(--text2); }
.xlate .alt b { color: var(--orange); }
.xcap { font-size: 13px; color: var(--text2); margin: 10px 0 0; }
.features { margin-top: 20px; gap: 14px; }
.bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bgrid button { min-height: 58px; padding: 0 10px; border-radius: 16px; background: var(--s1); font-size: 17px; font-weight: 600; text-align: center; animation: pop .5s var(--spring) both; transition: transform .15s var(--ease), background .2s; }
.bgrid button:active, .sgrid button:active { transform: scale(.96); background: var(--s2); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.sgrid button { min-height: 72px; border-radius: 18px; background: var(--s1); font-size: 24px; font-weight: 700; letter-spacing: -.02em; text-align: center; font-variant-numeric: tabular-nums; animation: pop .5s var(--spring) both; transition: transform .15s var(--ease), background .2s; }
.sgrid button[aria-pressed="true"] { background: var(--btn); }
.rng { display: grid; gap: 11px; margin: 4px 0 20px; }
.rng .r { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.rng .r b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rng .r span { color: var(--text2); text-align: right; font-variant-numeric: tabular-nums; }
.rng .t { position: relative; height: 10px; border-radius: 5px; background: var(--s2); }
.rng .t i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--blue); transform-origin: left center; animation: grow .9s var(--spring) both; }
.rng .r.you .t i { background: var(--orange); }
.rng .cap { font-size: 12px; color: var(--text3); margin: 0; }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }

/* ---------- logo and a calmer first screen ---------- */
.brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.brandrow span { animation: enter .7s .9s var(--spring) both; }
.logo { width: 44px; height: 48px; flex: none; }
.logo .s { stroke: #fff; stroke-dasharray: 700; stroke-dashoffset: 0; animation: draw 1s .15s var(--ease) both; }
.logo .o { stroke: var(--orange); transform-box: fill-box; transform-origin: center; animation: pop .6s .85s var(--spring) both; }
@keyframes draw { from { stroke-dashoffset: 700; } }
.xlate { margin-top: 26px; }
.features { margin-top: 30px; gap: 18px; }
.features svg { width: 26px; height: 26px; }
.features b { font-size: 16px; }
.features span { font-size: 14px; }

/* ---------- the tag logo ---------- */
.logo { width: 38px; height: 49px; overflow: visible; }
.logo .t { fill: #fff; stroke: #fff; stroke-width: 28; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 0; animation: swing 1.3s .1s var(--spring) both; }
.logo .h { fill: #000; animation: fade .5s .55s ease both; }
@keyframes swing { from { opacity: 0; transform: rotate(26deg) scale(.7); } }

/* ---------- the shirt logo ---------- */
.logo { width: 46px; height: 43px; }
.logo .t { stroke-width: 40; transform-origin: 50% 50%; animation: pop .7s .1s var(--spring) both; }
.logo .h { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 50%; animation: pop .6s .55s var(--spring) both; }

/* ---------- the exact-fit logo: the shape settles into its marks ---------- */
.logo { width: 44px; height: 44px; }
.logo .b { fill: none; stroke: #fff; stroke-width: 56; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 50%; animation: frame .9s .1s var(--spring) both; }
.logo .q { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 50%; animation: settle 1.1s .25s var(--spring) both; }
@keyframes frame { from { opacity: 0; transform: scale(1.35); } }
@keyframes settle { 0% { opacity: 0; transform: scale(.2); } 55% { opacity: 1; transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- the ruler F logo, on its dark blue tile ---------- */
.logo { width: 54px; height: 54px; border-radius: 13px; }
.logo .st, .logo .ar, .logo .yl, .logo .tk { transform-box: fill-box; }
.logo .st { transform-origin: 50% 0; animation: growY .7s .1s var(--spring) both; }
.logo .ar { transform-origin: 0 50%; animation: growX .6s .4s var(--spring) both; }
.logo .tk { transform-origin: 0 50%; animation: growX .4s var(--spring) both; }
.logo .yl { transform-origin: 0 50%; animation: growX .7s 1.05s var(--spring) both; }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes growX { from { transform: scaleX(0); } }

/* ruler marks cut into the F */
.logo .tk { transform-origin: 100% 50%; animation: growX .35s var(--spring) both; }
.logo .tk2 { transform-box: fill-box; transform-origin: 50% 100%; animation: growY .35s var(--spring) both; }

/* ---------- shop home: browse by picture ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.cat { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #efeeeb; transition: transform .15s var(--ease); }
.cat:active, .pcard:active { transform: scale(.97); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.cat span { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: baseline; padding: 30px 11px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, 0)); color: #fff; }
.cat b { font-size: 15px; font-weight: 600; } .cat i { font-style: normal; font-size: 12px; opacity: .72; }
.hscroll { display: flex; gap: 12px; margin-top: 12px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 136px; text-align: left; scroll-snap-align: start; transition: transform .15s var(--ease); }
.pcard .tile { width: 136px; height: 168px; border-radius: 14px; }
.pcard span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .brand { font-size: 12px; color: var(--text2); margin-top: 8px; }
.pcard .name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pcard .price { font-size: 12px; color: var(--text2); }

/* ---------- a quieter shop home ---------- */
.shoptitle { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.cat span { padding: 34px 12px 11px; }
.cat b { font-size: 16px; }
.pcard .name { font-weight: 500; }

/* Browse grid */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 16px; }
.pgrid .pcard { width: auto; }
.pgrid .pcard .tile { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 16px; }
.pcard .price s { margin-left: 6px; color: var(--text3); }
.fchips { display: flex; gap: 8px; margin: 2px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--s1); color: var(--text2); font-size: 13px; font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease); }
.fchip.on { background: #fff; color: #000; }

/* Fit bar: what reviewers say, one dot on a small-to-large scale */
.fitbar { padding: 16px 18px 14px; border-radius: 18px; background: var(--s1); }
.fb-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text2); }
.fb-n { font-variant-numeric: tabular-nums; }
.fb-label { margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.fitbar.lo .fb-label, .fitbar.hi .fb-label { color: var(--orange); }
.fb-track { position: relative; height: 6px; margin: 16px 2px 0; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.22) 50%, rgba(255,255,255,.10)); }
.fb-track::after { content: ""; position: absolute; left: 50%; top: -3px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: rgba(255,255,255,.28); }
.fb-track i { position: absolute; top: 50%; left: calc(var(--pos) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); z-index: 1; animation: fbSlide .7s var(--ease) both; }
.fitbar.lo .fb-track i, .fitbar.hi .fb-track i { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,159,10,.18); }
@keyframes fbSlide { from { left: 50%; } }
.still .fb-track i { animation: none; }
.fb-ends { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--text3, rgba(235,235,245,.3)); }
.fb-line { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--text2); font-variant-numeric: tabular-nums; }
.pcard .ftag { margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .fb-track i { animation: none; } }
/* Onboarding payoff: why each size moved */
.payoff-row .name { -webkit-line-clamp: 1; font-size: 15px; }
.pwhy { margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--text2); }
.pwhy.chg { color: var(--orange); font-weight: 500; }
@keyframes sewnL { from { opacity: 0; transform: translateY(14px) scale(.92); } to { transform: none; } }
@keyframes sewnR { from { opacity: 0; transform: translateY(14px) scale(.92); } to { transform: none; } }
.payoff-row .tag { min-width: 42px; height: 42px; padding: 0 10px; font-size: 16px; border-radius: 11px; }
.payoff-row .tags { gap: 5px; }
.payoff-row .grow { min-width: 0; }
.pwhy { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rng span { white-space: nowrap; }
@media (max-width: 359px) { .payoff-row { gap: 10px; padding: 12px 12px; } .payoff-row .tag { min-width: 36px; height: 36px; padding: 0 7px; font-size: 14px; border-radius: 10px; } .payoff-row .tags { gap: 4px; } }
.tag.moved:not(.doubt) { background: rgba(10, 132, 255, .18); color: var(--blue); }
.evlink { display: block; text-align: center; padding: 18px 0 4px; color: var(--text3); }

/* ---------- filters: one quiet control, options in a sheet ---------- */
.filterbar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin: 0 0 12px; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--s1); color: var(--text); font-size: 15px; font-weight: 500; }
.fbtn svg { width: 18px; height: 18px; color: var(--text2); }
.fbtn.on { background: var(--btn); color: #fff; } .fbtn.on svg { color: #fff; }
.sheet.left { text-align: left; }
.fsheet { display: grid; gap: 10px; }
.fsheet .section-label { padding: 12px 4px 0; }
.fsheet .list { background: var(--s2); }
.fsheet .cell .check { width: 20px; height: 20px; color: var(--blue); opacity: 0; }
.fsheet .cell[aria-pressed="true"] .check { opacity: 1; }
.fsheet .seg button { font-size: 13px; padding: 0 4px; }
.fsheet .btn { margin-top: 14px; }
.fs-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 4px; }
.fs-head .textlink { font-size: 15px; }
@media (max-width: 359px) { .fsheet .seg button { font-size: 12px; } }

/* ---------- About, Privacy, Terms, Photo credits ---------- */
.doc { display: grid; gap: 22px; padding-bottom: 40px; }
.doc h2 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.doc p { color: var(--text2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.doc p b { color: var(--text); font-weight: 600; }
.doc section:first-child p { color: var(--text); font-size: 19px; line-height: 1.35; }
.credits { list-style: none; margin: 6px 0 0; padding: 0; border-radius: 14px; background: var(--s1); }
.credits li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15px; }
.credits li + li { border-top: .5px solid var(--sep); }

/* ---------- install as an app ---------- */
.hint-icon .logo { width: 64px; height: 64px; }
svg.inline { width: 18px; height: 18px; vertical-align: -3px; color: var(--blue); }
