/* 추천받기 (recommend.html) — 단계별 설문 → 종합 추천. 토큰은 style.css 의 .board 를 쓴다 */
.rc { min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.rc-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rc-top-inner { max-width: 640px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rc-back { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; }
.rc-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-back:hover { background: var(--bg); }
.rc-back[hidden] { display: grid !important; visibility: hidden; }
.rc-back:focus-visible, .rc-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-progress { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.rc-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.rc-close { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 4px; }
.rc-close:hover { color: var(--link); }

.rc-main { max-width: 640px; margin: 0 auto; padding: 28px 16px calc(120px + env(safe-area-inset-bottom)); outline: 0; }
.rc-step { animation: rc-in .25s ease; }
@keyframes rc-in { from { opacity: 0; transform: translateY(8px); } }
.rc-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--link); }
.rc-q { margin: 0; font-size: clamp(24px, 6vw, 30px); font-weight: 700; line-height: 1.35; letter-spacing: -.03em; word-break: keep-all; }
.rc-sub { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; word-break: keep-all; }

.rc-opts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.rc-opt {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 26px; align-items: center; gap: 12px; width: 100%;
  min-height: 64px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface);
  color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rc-opt:hover { border-color: var(--line-strong); }
.rc-opt:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.rc-ico { font-size: 24px; line-height: 1; text-align: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.rc-txt { display: grid; gap: 2px; min-width: 0; }
.rc-txt b { font-size: 16.5px; font-weight: 600; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.rc-txt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.rc-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.rc-check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rc-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.rc-opt[aria-pressed="true"] b { font-weight: 700; }
.rc-opt[aria-pressed="true"] .rc-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.rc-opt.is-unsure { border-style: dashed; }
.rc-count { margin: 14px 2px 0; font-size: 13.5px; color: var(--muted); }

.rc-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--surface) 70%, color-mix(in srgb, var(--surface) 0%, transparent)); }
.rc-foot-inner { max-width: 608px; margin: 0 auto; }
.rc-next {
  width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .15s ease, opacity .15s ease;
}
.rc-next:hover:not(:disabled) { background: var(--pill-hover); }
.rc-next:disabled { opacity: .35; cursor: default; }
.rc-next:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }

/* ── 결과 ── */
.rc.is-result .rc-main { max-width: 880px; }
.rc.is-result .rc-top-inner { max-width: 880px; }
.rc-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.rc-sum li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 13.5px; font-weight: 500; }
.rc-h { margin: 36px 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.rc-h small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.rc-top3 { display: grid; gap: 16px; }
.rc-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tile-shadow);
}
.rc-card-media { position: relative; border-radius: 16px; overflow: hidden; background: var(--m-ui); display: grid; place-items: center; align-self: start; aspect-ratio: 16 / 10; }
.tier-fix .rc-card-media { background: var(--m-fix); }
.tier-flow .rc-card-media { background: var(--m-flow); }
.tier-measure .rc-card-media { background: var(--m-measure); }
.tier-repurchase .rc-card-media { background: var(--m-repurchase); }
.tier-later .rc-card-media { background: var(--m-later); }
.rc-card-media .thumb { display: block; width: 100%; margin: 0; border: 0; border-radius: 0; background: none; }
.rc-card-media .thumb svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.rc-rank { position: absolute; top: 10px; left: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.rc-card-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.rc-card-eb { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.rc-card-eb b { color: var(--muted); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.rc-card-name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; word-break: keep-all; }
.rc-card-pitch { margin: 0; font-size: 15px; color: var(--muted); }
.rc-solves { list-style: none; margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); display: grid; gap: 6px; font-size: 14px; }
.rc-solves li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; align-items: start; line-height: 1.45; word-break: keep-all; }
.rc-solves .rc-ico { font-size: 16px; }
.rc-solves-h { font-size: 12px; font-weight: 700; color: var(--muted); }
.rc-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.rc-price { font-size: 17px; font-weight: 700; white-space: nowrap; display: grid; }
.rc-price span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.rc-actions { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }

.rc-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-more a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 18px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none;
}
.rc-more a:hover { border-color: var(--accent); }
.rc-more b { font-size: 15.5px; font-weight: 600; word-break: keep-all; }
.rc-more b i { font-style: normal; font-size: 12px; color: var(--muted); margin-right: 6px; font-weight: 600; }
.rc-more small { grid-column: 1; font-size: 13px; color: var(--muted); }
.rc-more span { grid-row: 1 / span 2; grid-column: 2; font-size: 14px; font-weight: 600; white-space: nowrap; }

.rc-notes { margin: 28px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--bg); font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.rc-notes p { margin: 0; }
.rc-notes b { color: var(--fg); }
.rc-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rc-tool { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.rc-tool:hover { border-color: var(--accent); color: var(--link); }
.rc-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-empty { margin-top: 24px; color: var(--muted); }

@media (max-width: 640px) {
  .rc-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .rc-card-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-step { animation: none; }
  .rc-progress span, .rc-opt, .rc-next { transition: none; }
}
