.match-demo { padding-block: clamp(48px, 7vw, 92px); }
.match-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: clamp(30px, 6vw, 78px); }
.match-intro h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -.05em;
  font-weight: 700;
}
.match-intro p { margin-top: 16px; color: var(--muted); }
.match-intro .match-method { display: flex; align-items: flex-start; gap: 9px; color: var(--plum); font-weight: 650; }
.match-method img { flex-shrink: 0; margin-top: 1px; }
.match-demo { background: var(--blush); }
.match-panel {
  min-width: 0;
  overflow-anchor: none;
  padding: clamp(16px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 12px 28px #4c263d0c;
}
.match-panel label { display: block; font-weight: 700; margin-bottom: 8px; }
.match-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.match-search input { min-width: 0; width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #ad9fa9; border-radius: 9px; color: var(--ink); }
.match-search .button { font: inherit; font-weight: 700; cursor: pointer; }
.match-examples { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.match-examples button, .match-more {
  font: inherit;
  color: var(--plum);
  font-size: .875rem;
  background: var(--blush);
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: 50px;
  cursor: pointer;
}
.match-examples button:hover, .match-more:hover { background: var(--rule); }
.match-examples #match-play { background: transparent; }
.match-panel [role="status"]:not(:empty), .match-more { margin-top: 12px; }
.match-company-options { list-style: none; padding: 0; display: grid; gap: 6px; }
.match-company-options button { width: 100%; display: grid; gap: 2px; padding: 10px; text-align: left; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 8px; font: inherit; cursor: pointer; }
.match-company-options button span { color: var(--muted); font-size: .9rem; }
.match-response { display: grid; }
.match-response > * { grid-area: 1 / 1; min-width: 0; align-self: start; }
.match-output { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.match-output[data-rendered][hidden] { display: block; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .match-company-options li, .match-samples li { animation: match-appear 220ms ease-out both; }
  @keyframes match-appear {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
.match-samples-title { margin-bottom: 7px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.match-samples {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(143px, 35%, 168px);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding: 1px 1px 7px;
  margin-bottom: 13px;
  list-style: none;
}
.match-samples li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  overflow-wrap: anywhere;
  scroll-snap-align: start;
  min-block-size: 9rem;
}
.match-firm-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 26px;
  margin-bottom: 3px;
  border-radius: 5px;
  background: var(--blush);
  color: var(--plum);
  font-size: .82rem;
  font-weight: 750;
}
.match-firm-logo:has(img) { background: transparent; }
.match-firm-logo img { width: 100%; height: 26px; object-fit: contain; object-position: left center; }
.match-firm-name { font-size: .875rem; line-height: 1.25; }
.match-firm-evidence { color: var(--muted); font-size: .875rem; line-height: 1.25; }
.match-output h3 { font-size: 1.2rem; }
.match-output .button { margin-top: 13px; }
.match-output > p { color: var(--muted); font-size: .94rem; margin-top: 10px; }
@media (max-width: 760px) {
  .match-layout { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .match-search .button { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
