﻿:root{--ink:#071723;--navy:#061521;--blue:#1268d8;--blue-dark:#073d83;--gold:#e7a81d;--paper:#fff;--pale:#eef5f8;--line:#d5e0e6;--muted:#60717b;--green:#08764b;--amber:#8f5600;--red:#9f2d2d}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f5f8fa;color:var(--ink);font:16px/1.5 Inter,Arial,sans-serif}
main{max-width:1280px;margin:auto;padding:0 24px 80px}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:46px;align-items:end;padding:38px 0 28px}
.eyebrow,.step-label{color:#075fc4;font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.hero h1{font-size:clamp(38px,4.6vw,58px);line-height:1.02;letter-spacing:-.04em;margin:7px 0 14px}
.intro{font-size:18px;max-width:760px;color:#3d4b53}
.safety-card{padding:24px;border-radius:16px;background:var(--navy);color:#fff;box-shadow:0 18px 42px rgba(4,22,35,.16)}
.safety-card strong,.safety-card span{display:block}
.safety-card strong{color:#69b2ff;font-size:20px;margin-bottom:7px}
.finder{display:grid;grid-template-columns:220px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 20px 55px rgba(12,41,61,.09)}
.steps{padding:28px 18px;background:var(--navy);display:flex;flex-direction:column;gap:10px}
.steps button{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:10px;background:transparent;color:#aab9c4;padding:12px;text-align:left;font:inherit;font-weight:800;cursor:default}
.steps button span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#173244}
.steps button.active{background:#113254;color:#fff}
.steps button.active span{background:var(--blue)}
.stage-wrap{min-height:640px}
.stage{display:none;padding:48px}
.stage.active{display:block}
.stage h2{font-size:clamp(30px,4vw,46px);line-height:1.08;margin:4px 0 30px;letter-spacing:-.03em}
.finder label{display:block;font-weight:800;margin:20px 0}
.finder select,.finder input{display:block;width:100%;margin-top:8px;padding:14px 15px;border:1px solid #aabac5;border-radius:9px;background:#fff;color:var(--ink);font:inherit}
.finder select:focus,.finder input:focus{outline:3px solid rgba(18,104,216,.18);border-color:var(--blue)}
.finder select:disabled{background:#eef2f4}
.model-card{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center;margin:28px 0;padding:18px;border:1px solid #b7d2ef;border-radius:14px;background:#f2f8ff}
.reference-image{display:grid;place-items:center;height:120px;border-radius:10px;background:linear-gradient(145deg,#0a1c29,#123e62);color:#fff;font-size:30px;font-weight:900}
.model-card strong{font-size:22px}
.model-card p{margin:5px 0;color:#52636e}
.actions{display:flex;justify-content:space-between;gap:12px;margin-top:36px}
.finder button,.finder .button,.help-panel .button{appearance:none;border:0;border-radius:8px;background:var(--blue);color:#fff;padding:13px 20px;font:inherit;font-weight:850;text-decoration:none;cursor:pointer}
.finder button:hover,.finder .button:hover,.help-panel .button:hover{background:#084da3}
.secondary,[data-back]{background:#e9eff3;color:#172a36}
.secondary:hover,[data-back]:hover{background:#dce6ec;color:#071723}
fieldset{margin:23px 0;padding:18px;border:1px solid var(--line);border-radius:12px}
legend{padding:0 7px;font-weight:900}
.choice{display:flex;align-items:flex-start;gap:10px;margin:10px 0;font-weight:600}
.choice input{width:18px;height:18px;margin:3px 0 0}
.optional{float:right;color:var(--muted);font-weight:500}
.verification,.notice{padding:17px;border-left:4px solid var(--blue);background:var(--pale)}
.verification p{margin:4px 0}
.confidence{margin:20px 0;padding:14px 16px;border-radius:10px;font-weight:800}
.confidence.high{background:#e3f6ec;color:#086842}
.confidence.medium{background:#fff2dc;color:#784800}
.confidence.low{background:#ffe8e8;color:#8c2525}
.results-head{display:flex;justify-content:space-between;gap:20px;align-items:start}
.results-head h2{margin-bottom:4px}
.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.product{display:grid;grid-template-columns:130px 1fr;gap:16px;padding:15px;border:1px solid var(--line);border-radius:13px;background:#fff}
.product img,.product-placeholder{width:130px;height:130px;object-fit:contain;border-radius:8px;background:#f1f5f7}
.product-placeholder{display:grid;place-items:center;color:#60717b;font-weight:900}
.product h3{font-size:17px;line-height:1.25;margin:8px 0}
.fit{display:inline-block;padding:4px 8px;border-radius:999px;background:#e7f3ff;color:#0756a8;font-size:11px;font-weight:900}
.sku{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.buy{display:flex;justify-content:space-between;align-items:center;gap:10px}
.buy a{color:var(--blue);font-weight:850}
.empty,.loading{grid-column:1/-1;padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--pale)}
.help-panel{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-top:28px;padding:22px;border-radius:14px;background:var(--navy);color:#fff}
.help-panel p{margin:5px 0}
@media(max-width:900px){
.hero{grid-template-columns:1fr;gap:20px}
.finder{grid-template-columns:1fr}
.steps{flex-direction:row;overflow:auto}
.steps button{min-width:max-content}
.stage-wrap{min-height:0}
.stage{padding:30px}
.results{grid-template-columns:1fr}
}

/* Version 10 shell isolation: the main site also uses .hero, .intro and
   shared button selectors. Keep those rules out of the Product Finder. */
.product-finder-page main > .hero {
  position: static;
  min-height: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  align-items: end;
}

.product-finder-page main > .hero h1 {
  max-width: none;
  color: var(--ink);
}

.product-finder-page main > .hero .intro,
.product-finder-page main > .hero p.intro {
  display: block;
  grid-template-columns: none;
  gap: 0;
  align-items: initial;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #3d4b53;
}

.product-finder-page .finder .steps button {
  background: transparent;
  color: #aab9c4;
}

.product-finder-page .finder .steps button:hover,
.product-finder-page .finder .steps button:focus-visible {
  background: #0d2940;
  color: #ffffff;
}

.product-finder-page .finder .steps button.active {
  background: #113254;
  color: #ffffff;
}

.product-finder-page .finder .steps button.active span {
  background: var(--blue);
}
@media(max-width:580px){main{padding-left:12px;padding-right:12px}
.stage{padding:22px 16px}
.steps button{font-size:0}
.steps button span{font-size:14px}
.model-card,.product{grid-template-columns:1fr}
.product img,.product-placeholder{width:100%;height:190px}
.results-head,.help-panel{align-items:stretch;flex-direction:column}
.optional{display:block;float:none}
.hero{padding-top:40px}
}
