/* ---------- Shoe finder ---------- */
.finder-main {
  min-height: 100vh;
  padding: calc(var(--header-h) + 28px) var(--pad) 64px;
  background: linear-gradient(180deg, rgba(20, 21, 23, .92), var(--bg) 70%), var(--bg);
}
.finder-stage { width: 100%; max-width: 760px; margin: 0 auto; }
.finder-stage:has(.finder-result) { max-width: 1080px; }
.finder-stage h1, .finder-stage h2, .finder-stage h3 { font-family: var(--font-display); color: var(--ink); }

.finder-step, .finder-intro, .finder-result > * { animation: finder-rise .35s ease; }
@keyframes finder-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Intro */
.finder-main:has(.finder-intro) {
  background: linear-gradient(180deg, rgba(20, 21, 23, .55), rgba(20, 21, 23, .93) 62%), url("../assets/img/scenes/hero-mobile.webp") center / cover no-repeat, var(--bg);
}
.finder-intro { padding: 30vh 0 6vh; }
.finder-kicker { color: var(--red-text); font-size: 13px; letter-spacing: .08em; margin-bottom: 18px; }
.finder-intro h1 { font-size: clamp(28px, 8vw, 60px); line-height: 1.22; letter-spacing: .01em; }
.finder-lead { margin-top: 20px; max-width: 34em; color: var(--ink-dim); font-size: 17px; line-height: 1.8; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.finder-actions .btn { min-height: 48px; cursor: pointer; border-width: 0; }
.finder-actions .btn-ghost { border-width: 1px; border-style: solid; background: transparent; }

/* Question */
.finder-top { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-faint); font-size: 13px; }
.finder-count { color: var(--red-text); }
.finder-progress { display: flex; gap: 6px; margin-top: 10px; }
.finder-progress span { flex: 1; height: 4px; background: var(--bg-raise); transition: background .25s; }
.finder-progress .is-done { background: var(--red); }
.finder-reply {
  margin-top: 26px; padding: 2px 0 2px 14px;
  border-left: 3px solid var(--red);
  color: var(--ink-dim); font-size: 16px; line-height: 1.7;
}
.finder-step h1 { margin-top: 24px; font-size: clamp(25px, 6.4vw, 38px); line-height: 1.3; outline: none; }

.finder-options { display: grid; gap: 10px; margin-top: 24px; }
.finder-option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px;
  padding: 14px 16px; text-align: left; cursor: pointer;
  color: var(--ink); background: var(--bg-raise); border: 1px solid #3a3d41;
  transition: border-color .15s, background .15s, transform .15s;
}
.finder-option:hover, .finder-option:focus-visible, .finder-option.is-picked { border-color: var(--red); background: #2a1a1c; }
.finder-option:active { transform: scale(.985); }
.finder-option-text { display: grid; gap: 3px; }
.finder-option strong { font-size: 17px; font-weight: 700; }
.finder-option-text span { color: var(--ink-faint); font-size: 14px; }

.finder-options.is-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.is-visual .finder-option {
  position: relative; display: block; min-height: 132px; padding: 0; overflow: hidden; isolation: isolate;
}
.is-visual .finder-option img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.is-visual .finder-option:hover img { transform: scale(1.05); }
.is-visual .finder-option::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 17, 19, .1), rgba(16, 17, 19, .9) 72%);
}
.is-visual .finder-option-text { position: absolute; left: 12px; right: 12px; bottom: 10px; }
.is-visual .finder-option strong { font-size: 16px; }
.is-visual .finder-option-text span { font-size: 13px; }

.finder-sizes { display: grid; gap: 16px; justify-items: start; margin-top: 24px; }
.finder-size-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.finder-size {
  min-height: 48px; font-family: var(--font-mono); font-size: 14px; cursor: pointer;
  color: var(--ink); background: var(--bg-raise); border: 1px solid #3a3d41;
}
.finder-size:hover, .finder-size:focus-visible, .finder-size.is-picked { border-color: var(--red); background: #2a1a1c; }
.finder-size span { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 11px; white-space: nowrap; }
.finder-size-grid.is-buy { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finder-size-hint { color: var(--ink-dim); font-size: 15px; line-height: 1.7; }
.finder-size-guide { color: var(--ink-dim); font-size: 14px; }
.finder-sizes .btn { background: transparent; cursor: pointer; }

.finder-back {
  margin-top: 26px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--ink-faint); font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
}
.finder-back:hover { color: var(--red-text); }

/* Anticipation before the result */
.finder-checking { display: grid; justify-items: center; gap: 22px; padding: 22vh 0; text-align: center; color: var(--ink-dim); font-size: 17px; }
.finder-scan { position: relative; width: 200px; height: 4px; overflow: hidden; background: var(--bg-raise); }
.finder-scan::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--red);
  animation: finder-scan 1s ease-in-out infinite alternate;
}
@keyframes finder-scan { from { transform: translateX(-20%); } to { transform: translateX(170%); } }

/* Result */
.finder-result { display: grid; gap: 22px; }
.finder-pass {
  position: relative; overflow: hidden; padding: 22px 20px 20px;
  background: var(--bg-card); border: 1px solid #3a3d41; border-top: 5px solid var(--red);
}
.finder-pass-title { color: var(--ink-faint); font-size: 12px; letter-spacing: .12em; }
.finder-pass-label { margin-top: 18px; color: var(--ink-dim); font-size: 15px; }
.finder-pass h1 { margin-top: 4px; font-size: clamp(32px, 9vw, 52px); line-height: 1.2; outline: none; }
.finder-closing { margin-top: 14px; color: var(--ink-dim); font-size: 16px; line-height: 1.8; }
.finder-pass dl { display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed #4b4f54; }
.finder-pass dl div { display: flex; justify-content: space-between; gap: 16px; }
.finder-pass dt { color: var(--ink-faint); font-size: 12px; }
.finder-pass dd { color: var(--ink); font-size: 15px; font-weight: 700; text-align: right; }
.finder-stamp {
  position: absolute; top: 16px; right: 14px; padding: 4px 10px;
  color: var(--red); border: 2px solid var(--red);
  font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .08em;
  transform: rotate(-8deg);
  animation: finder-stamp .4s .3s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes finder-stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.9); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }

.finder-match { background: var(--bg-raise); border: 1px solid #3a3d41; }
.finder-match figure { background: #0c0d0e; }
.finder-match figure img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.finder-match-body { padding: 20px; }
.finder-model { color: var(--red-text); font-size: 14px; }
.finder-match h2 { margin-top: 4px; font-size: 24px; line-height: 1.35; }
.finder-price { margin-top: 12px; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); }
.finder-per-day { margin-top: 2px; color: var(--ink-faint); font-size: 14px; }
.finder-match h3 { margin-top: 22px; font-size: 16px; }
.finder-reasons { display: grid; gap: 8px; margin-top: 10px; list-style: none; }
.finder-reasons li { position: relative; padding-left: 20px; color: var(--ink-dim); font-size: 16px; line-height: 1.6; }
.finder-reasons li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.finder-note { margin-top: 14px; padding: 10px 12px; background: var(--bg-card); border-left: 3px solid var(--line); color: var(--ink-dim); font-size: 14px; line-height: 1.7; }
.finder-buy-sizes { margin-top: 22px; }
.finder-buy-sizes .mono { margin-bottom: 8px; color: var(--ink-faint); font-size: 12px; }
.finder-buy-sizes .finder-size { background: var(--bg-card); }
.finder-status { min-height: 1.6em; margin-top: 12px; font-size: 15px; }
.finder-status.is-ok { color: #9fe3b4; }
.finder-status.is-err { color: var(--red-text); }

.finder-alts h2 { font-size: 19px; }
.finder-alt-grid { display: grid; gap: 10px; margin-top: 12px; }
.finder-alt {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 10px;
  color: var(--ink); text-decoration: none; background: var(--bg-raise); border: 1px solid #3a3d41;
}
.finder-alt:hover { border-color: var(--red); }
.finder-alt img { width: 96px; height: 72px; object-fit: cover; }
.finder-alt > span { display: grid; gap: 2px; font-size: 13px; }
.finder-alt strong { font-size: 15px; line-height: 1.4; }
.finder-alt-price { color: var(--ink-dim); }

.finder-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.finder-share .mono { width: 100%; color: var(--ink-faint); font-size: 12px; }
.finder-share .btn { background: transparent; cursor: pointer; }
.finder-caution { color: var(--ink-faint); font-size: 14px; line-height: 1.7; }
.finder-empty { padding: 22px 20px; }
.finder-empty p { margin-bottom: 18px; color: var(--ink-dim); font-size: 16px; line-height: 1.8; }

@media (min-width: 560px) {
  .finder-options.is-visual { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .is-visual .finder-option { min-height: 170px; }
  .finder-size-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .finder-size-grid.is-buy { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finder-alt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .finder-main { padding-top: calc(var(--header-h) + 48px); }
  .finder-main:has(.finder-intro) {
    background: linear-gradient(90deg, rgba(20, 21, 23, .94) 34%, rgba(20, 21, 23, .35)), url("../assets/img/scenes/hero-desktop.webp") center / cover no-repeat, var(--bg);
  }
  .finder-intro { padding: 14vh 0; }
  .finder-result { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
  .finder-pass { position: sticky; top: calc(var(--header-h) + 24px); grid-row: span 4; }
  .finder-match { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .finder-match figure { min-height: 100%; }
  .finder-match figure img { height: 100%; max-height: none; object-fit: cover; }
  .finder-pass h1 { font-size: 38px; }
  .finder-result > .finder-back { grid-column: 2; justify-self: start; margin-top: 0; }
  .finder-result > .finder-caution { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .finder-step, .finder-intro, .finder-result > *, .finder-stamp, .finder-scan::after { animation: none; }
  .is-visual .finder-option img { transition: none; }
}
