/* Results page: banner, pro cards, states, quote-form popup */

.banner { position: relative; overflow: hidden; width: calc(100% - 24px); max-width: 1024px; margin: 14px auto 0; background: var(--blue-50); border-radius: 28px; padding: 18px 20px; }
.banner__art { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 62px; height: auto; pointer-events: none; }
.banner h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(19px, 4.9vw, 30px); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); padding-right: 72px; max-width: 640px; }
.banner h1 .accent { color: var(--blue-700); }
@media (min-width: 700px) { .banner { padding: 26px 32px; } .banner__art { width: 118px; right: 32px; } .banner h1 { padding-right: 0; } }

.results { max-width: 64rem; margin: 0 auto; padding: 16px 12px 40px; min-height: 60vh; }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Pro card */
.card { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(15, 23, 42, .06); box-shadow: 0 6px 24px rgba(15, 23, 42, .08); padding: 14px 12px 12px; }
.card__body { flex: 1; display: flex; flex-direction: column; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar-tile { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-50); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.avatar { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { font-size: 28px; color: var(--blue-700); }
.card__name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; min-width: 0; overflow-wrap: anywhere; }
.card__intro { font-size: .8125rem; color: #475569; line-height: 1.55; }
.clamp.is-collapsed p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--blue-700); font-size: .8125rem; font-weight: 500; }
.read-more .material-symbols-outlined { font-size: 16px; }
.read-more:hover { text-decoration: underline; }
.spacer { height: 14px; }

.stats { display: flex; margin: 10px 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { flex: 1 1 0; min-width: 0; text-align: center; padding: 0 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .material-symbols-outlined { font-size: 20px; color: var(--blue-700); }
.stat__value { font-size: .75rem; font-weight: 700; color: var(--ink); line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.stat__label { font-size: .625rem; color: var(--muted); margin-top: 2px; }

.review { display: flex; align-items: stretch; gap: 10px; background: var(--blue-50); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
.review__rating { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; }
.review__num { font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--ink); }
.stars { display: flex; margin: 3px 0 2px; }
.star { font-size: 13px; color: #d1d5db; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.star.on { color: var(--gold); }
.star-wrap { position: relative; display: inline-flex; }
.star-wrap > span:last-child { position: absolute; left: 0; top: 0; }
.review__count { font-size: .625rem; color: var(--muted); white-space: nowrap; }
.review__quote { flex: 1 1 0; min-width: 0; border-left: 1px solid #d6e2f3; padding-left: 10px; display: flex; flex-direction: column; justify-content: center; }
.review__text { font-size: .71875rem; color: var(--text); line-height: 1.5; }
.review .clamp.is-collapsed p { -webkit-line-clamp: 4; line-clamp: 4; }
.review .read-more { margin-top: 3px; font-size: .6875rem; }

.cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 12px; background: var(--blue-700); color: #fff; font-weight: 700; font-size: .9375rem; transition: background .18s; }
.cta:hover { background: var(--blue-800); }
.cta .material-symbols-outlined { font-size: 20px; }

/* States */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 16px; }
.state__icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.state__icon .material-symbols-outlined { font-size: 36px; }
.state__title { font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.state__sub { font-size: 14px; color: #9ca3af; margin-bottom: 24px; }
.dots { display: flex; gap: 8px; margin-bottom: 24px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2563eb; animation: ldot 1.2s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: .2s; } .dot:nth-child(3) { animation-delay: .4s; }
@keyframes ldot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Quote-form popup */
.popup-backdrop { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .55); align-items: center; justify-content: center; padding: 16px; }
.popup-card { position: relative; background: #fff; border-radius: 12px; width: 860px; max-width: 100%; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: popIn .2s ease; }
.popup-card iframe { display: block; width: 860px; height: 760px; max-width: 100%; border: 0; }
.popup-loader { position: absolute; inset: 0; z-index: 5; background: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; color: #475569; font-size: 15px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--blue-100); border-top-color: var(--blue-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 660px) {
  .popup-backdrop { padding: 0; align-items: stretch; }
  .popup-card { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; display: flex; box-shadow: none; }
  .popup-card iframe { width: 100%; height: 100% !important; flex: 1; }
}
