/* Quote Connect — screen styles */

.screen { padding: 34px 0 0; animation: scr-in .3s ease both; }
@keyframes scr-in { from { transform: translateY(8px); } to { transform: none; } }

/* shared form controls */
.qf-field { display: flex; flex-direction: column; gap: 7px; }
.qf-field.full { grid-column: 1 / -1; }
.qf-label { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.qf-req { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft); padding: 1px 5px; border-radius: 3px; font-style: normal; }
.qf-field input, .qf-field textarea, .qf-field select,
.qf-select-wrap select, .sp-price-in input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
  padding: 0 13px; height: 46px; font-size: 14.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.qf-field textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.45; }
.qf-field input:focus, .qf-field textarea:focus, .qf-field select:focus, .sp-price-in input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.qf-field input::placeholder, .qf-field textarea::placeholder { color: var(--ink-3); }
.qf-select-wrap { position: relative; }
.qf-select-wrap select { appearance: none; padding-right: 38px; cursor: pointer; }
.qf-select-wrap .qc-ic { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }

/* page header (browse/buyer) */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; flex-wrap: wrap; }
.page-title { font-size: clamp(30px, 5vw, 46px); margin: 6px 0 0; }
.page-sub { color: var(--ink-2); font-size: 16px; max-width: 56ch; margin: 12px 0 0; line-height: 1.55; }
.page-head-stat { display: flex; flex-direction: column; gap: 11px; padding: 16px 20px; min-width: 230px; }

/* =================== HERO =================== */
.hero { position: relative; overflow: hidden; padding: 30px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(900px 460px at 88% -8%, rgba(1,134,218,.13), transparent 60%),
    radial-gradient(720px 420px at 4% 108%, rgba(254,72,5,.09), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
  opacity: .9;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding-top: 40px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px 6px 10px; border-radius: 100px; box-shadow: var(--shadow); }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-h1 { font-size: clamp(38px, 5.6vw, 66px); margin: 22px 0 0; letter-spacing: -0.03em; }
.hero-mark { color: var(--accent); position: relative; white-space: nowrap; }
.hero-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.13em; background: var(--accent-gold); opacity: .35; border-radius: 2px; }
.hero-sub { font-size: 17px; color: var(--ink-2); line-height: 1.6; margin: 22px 0 26px; max-width: 52ch; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hero-trust-item .qc-ic { color: var(--blue); }

.hero-search { position: relative; }
.hero-search-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 8px 8px 8px 16px; box-shadow: var(--shadow); }
.hero-search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.hero-search-bar > .qc-ic { color: var(--ink-3); }
.hero-search-bar input { flex: 1; border: none; outline: none; background: none; font-size: 16px; color: var(--ink); height: 38px; min-width: 0; }
.hero-search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; padding: 6px; box-shadow: var(--shadow-lg); }
.hero-search-opt { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: none; padding: 9px 10px; border-radius: var(--r); text-align: left; color: var(--ink); }
.hero-search-opt:hover { background: var(--surface-2); }
.hero-search-opt-name { font-weight: 600; font-size: 14px; flex: 1; }
.hero-search-opt-n { color: var(--ink-3); font-size: 12px; }
.hero-search-opt .qc-ic { color: var(--accent); }

/* full-bleed image hero */
.hero.has-image { min-height: 624px; display: flex; align-items: center; padding: 96px 0 64px; border-bottom: none; }
#hero-bg, .hero-bg-slot { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; z-index: 0; display: block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,15,45,.62) 0%, rgba(2,15,45,.40) 50%, rgba(2,15,45,.32) 100%),
    linear-gradient(180deg, rgba(2,15,45,.42) 0%, rgba(2,15,45,.10) 26%, transparent 52%, rgba(2,15,45,.12) 82%, var(--paper) 100%);
}
/* readability scrim only behind the headline column */
.hero.has-image .hero-left { position: relative; }
.hero.has-image .hero-left::before {
  content: ""; position: absolute; inset: -30px -40px -30px -50vw; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 20% 50%, rgba(2,15,45,.42), transparent 72%);
}
.hero.has-image .hero-inner { padding-top: 0; }
.hero.has-image .hero-eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.hero.has-image .hero-h1 { color: #fff; }
.hero.has-image .hero-mark { color: var(--accent-gold); }
.hero.has-image .hero-mark::after { background: var(--accent); opacity: .6; }
.hero.has-image .hero-sub { color: rgba(255,255,255,.82); }
.hero.has-image .hero-trust-item { color: rgba(255,255,255,.86); }
.hero.has-image .hero-trust-item .qc-ic { color: var(--accent-gold); }
.hero.has-image .hero-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(254,72,5,.25); }

/* hero match card */
.hero-right { display: flex; justify-content: center; }
.hero-match { width: 100%; max-width: 420px; padding: 20px; box-shadow: var(--shadow-lg); }
.hm-head { display: flex; align-items: center; justify-content: space-between; }
.hm-id { font-size: 12px; color: var(--ink-3); }
.hm-req { margin: 16px 0 14px; }
.hm-req-name { font-size: 22px; }
.hm-req-spec { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.hm-bcast { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); padding: 10px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
.hm-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.hm-pulse.on { background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(254,72,5,.5); } 70% { box-shadow: 0 0 0 8px rgba(254,72,5,0); } 100% { box-shadow: 0 0 0 0 rgba(254,72,5,0); } }
.hm-quotes { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; min-height: 150px; }
.hm-quote { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s, border-color .3s; }
.hm-quote.in { opacity: 1; transform: none; }
.hm-quote.best { border-color: var(--accent); background: var(--accent-soft); }
.hm-quote-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hm-quote-sup { font-size: 13px; font-weight: 700; }
.hm-quote-price { font-size: 15px; font-weight: 700; color: var(--ink); }
.hm-best { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 3px; }

/* =================== STATS STRIP =================== */
.stats-strip { background: var(--navy); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 26px 18px; border-left: 1px solid rgba(255,255,255,.1); }
.stat-cell:first-child { border-left: none; padding-left: 0; }
.stat-v { font-size: clamp(26px, 3.4vw, 38px); color: #fff; }
.stat-v::first-letter { color: var(--accent-gold); }
.stat-l { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 6px; }

/* =================== SECTIONS =================== */
.section-head { margin: 64px 0 26px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-title { font-size: clamp(26px, 3.6vw, 38px); margin: 8px 0 0; }

/* how it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.how-card { padding: var(--card-pad); position: relative; }
.how-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.how-n { font-size: 26px; font-weight: 700; color: var(--line-strong); }
.how-ic { width: 46px; height: 46px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; }
.how-t { font-size: 20px; margin: 0 0 8px; }
.how-d { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* =================== CATEGORY GRID =================== */
.cat-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.cat-search { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 0 14px; height: 52px; box-shadow: var(--shadow); }
.cat-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cat-search > .qc-ic { color: var(--ink-3); }
.cat-search input { flex: 1; border: none; outline: none; background: none; font-size: 15.5px; color: var(--ink); }
.cat-search-clear { border: none; background: var(--surface-2); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.cat-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-gchip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; }
.cat-gchip:hover { border-color: var(--ink-3); color: var(--ink); }
.cat-gchip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--grid-gap); }
.cat-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--card-pad); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.cat-card-arrow { color: var(--ink-3); transition: color .15s, transform .15s; }
.cat-card:hover .cat-card-arrow { color: var(--accent); transform: translate(2px, -2px); }
.cat-card-name { font-size: 17px; margin-bottom: 6px; }
.cat-card-blurb { font-size: 13px; color: var(--ink-2); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.cat-card-eta { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-deep); }
.cat-empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.cat-empty .qc-ic { color: var(--ink-3); }

/* =================== TRUST BAND =================== */
.trust-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; padding: 8px 0; }
.trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.trust-list { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 18px; }
.trust-li { display: flex; gap: 14px; }
.trust-li-ic { width: 42px; height: 42px; border-radius: var(--r); background: var(--blue-soft); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.trust-li b { display: block; font-size: 15px; margin-bottom: 3px; }
.trust-li span { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.trust-cards { display: flex; flex-direction: column; gap: 14px; }
.trust-sup { padding: 18px; box-shadow: var(--shadow); }
.trust-sup.lift-1 { margin-left: 36px; }
.trust-sup.lift-2 { margin-left: 18px; }
.trust-sup-top { display: flex; align-items: center; gap: 12px; }
.trust-sup-id { min-width: 0; }
.trust-sup-name { font-weight: 700; font-size: 15px; }
.trust-sup-loc { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.trust-sup-meta { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.trust-sup-foot { font-size: 11px; color: var(--ink-3); }

/* =================== CTA =================== */
.cta { position: relative; overflow: hidden; margin-top: 72px; background: var(--navy); border: none; }
.cta-bg { position: absolute; inset: 0; background-image: radial-gradient(640px 320px at 92% 120%, rgba(254,72,5,.32), transparent 62%), radial-gradient(520px 300px at 4% -20%, rgba(1,176,251,.22), transparent 60%); }
.cta-inner { position: relative; padding: 56px; text-align: center; }
.cta-h { font-size: clamp(28px, 4vw, 44px); color: #fff; }
.cta-sub { color: rgba(255,255,255,.72); font-size: 16px; margin: 16px auto 28px; max-width: 48ch; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-actions .v-ghost { color: #fff; }
.cta-actions .v-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 900px) {
  .hero-inner, .trust-inner { grid-template-columns: 1fr; gap: 36px; }
  .how-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; padding-left: 0; }
  .trust-sup.lift-1, .trust-sup.lift-2 { margin-left: 0; }
  .cta-inner { padding: 40px 24px; }
}
