/* Finder UI. A demo can override the --f-* tokens in its own small stylesheet. */
:root {
  --f-accent: var(--accent);
  --f-accent-ink: var(--accent-ink);
  --f-surface: var(--surface);
  --f-line: var(--line);
}

.finder-shell { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
@media (min-width: 48rem) { .finder-shell { padding: 2.5rem 2rem 4rem; } }
.finder-intro h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: .4rem; }
.finder-intro p { color: var(--muted); }

#finder {
  background: var(--f-surface); border: 1px solid var(--f-line); border-radius: var(--radius);
  padding: 1.25rem; margin-top: 1.25rem; min-height: 22rem;
}
@media (min-width: 48rem) { #finder { padding: 2rem; } }

.msp-progress { margin-bottom: 1.25rem; }
.msp-step { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0 0 .4rem; }
.msp-bar { height: .45rem; background: var(--f-line); border-radius: 999px; overflow: hidden; }
.msp-bar-fill { height: 100%; background: var(--f-accent); border-radius: 999px; transition: width .25s ease; }

.msp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.msp-q { font-size: clamp(1.3rem, 4.5vw, 1.6rem); font-weight: 750; line-height: 1.2; margin: 0 0 1rem; padding: 0; outline: none; }
.msp-options { display: grid; gap: .6rem; }
.msp-option {
  font: inherit; text-align: left; width: 100%; min-height: 3.25rem; padding: .85rem 1rem;
  background: var(--bg); color: var(--ink); border: 2px solid var(--f-line); border-radius: 12px; cursor: pointer;
}
.msp-option:hover { border-color: var(--f-accent); }
.msp-option.is-selected { border-color: var(--f-accent); background: var(--accent-soft); }

.msp-nav { display: flex; justify-content: space-between; margin-top: 1.25rem; }
.msp-link {
  font: inherit; font-weight: 700; color: var(--f-accent); background: none; border: 0;
  padding: .5rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.msp-note { background: var(--accent-soft); border-radius: 10px; padding: .6rem .9rem; font-weight: 600; }
.msp-tip { color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.msp-sub { font-size: 1.05rem; margin: 1.75rem 0 .75rem; }

.msp-card {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: start;
  border: 1px solid var(--f-line); border-radius: 12px; padding: 1rem; background: var(--bg);
}
.msp-card-best { border: 2px solid var(--f-accent); }
@media (min-width: 40rem) { .msp-card-best { grid-template-columns: 8rem 1fr; padding: 1.25rem; } }
.msp-card-img { background: var(--f-surface); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; }
.msp-img { width: 80%; height: auto; }
.msp-name { margin: 0 0 .25rem; font-size: 1.1rem; }
.msp-card-best .msp-name { font-size: 1.3rem; }
.msp-meta { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.msp-why { font-weight: 600; margin: 0 0 .35rem; }
.msp-blurb { color: var(--muted); font-size: .95rem; margin: 0 0 .8rem; }
.msp-alts { display: grid; gap: .75rem; }

.msp-btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem 1.1rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--f-accent); color: var(--f-accent);
}
.msp-btn-primary { background: var(--f-accent); color: var(--f-accent-ink); }

/* demo chrome */
.demo-banner {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); margin: .9rem 0 1.25rem; background: var(--f-line);
}
@media (max-width: 30rem) { .demo-banner { aspect-ratio: 5 / 2; } }
.demo-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.demo-top .pill { margin: 0; }
.cta-block {
  margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
}
.cta-block h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.cta-block p { opacity: .85; }
.cta-block .btn { margin-top: .5rem; }
.demo-foot-note { font-size: .9rem; }
