/* Zrafted Shopify Tools v2 — fully scoped */
.zst,.zst *{box-sizing:border-box}
.zst{
  --zst-bg:#fff;
  --zst-text:#17141d;
  --zst-muted:#6e6877;
  --zst-border:#e7e1eb;
  --zst-green:#bbff35;
  --zst-yellow:#fff436;
  --zst-purple:#8b5cf6;
  --zst-pink:#fff7fb;
  font-family:inherit;
  color:var(--zst-text);
}
.zst-card{
  background:var(--zst-bg);
  border:1px solid var(--zst-border);
  border-radius:24px;
  padding:clamp(22px,4vw,42px);
  margin:0 0 20px;
  box-shadow:0 18px 45px rgba(40,20,60,.06);
}
.zst-hero-card{
  background:linear-gradient(135deg,var(--zst-pink),#fff 52%,rgba(187,255,53,.18));
  overflow:hidden;
  position:relative;
}
.zst-hero-card:after{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  border-radius:50%;
  right:-70px;
  top:-70px;
  background:var(--zst-yellow);
  opacity:.72;
  pointer-events:none;
}
.zst h2{
  font-size:clamp(34px,5vw,62px);
  line-height:1.01;
  letter-spacing:-.045em;
  max-width:950px;
  margin:10px 0 16px;
}
.zst h3{
  font-size:clamp(23px,3vw,32px);
  line-height:1.08;
  margin:0 0 18px;
  letter-spacing:-.025em;
}
.zst h4{font-size:18px;margin:3px 0 6px}
.zst p{color:var(--zst-muted);line-height:1.65}
.zst-kicker{
  display:inline-flex;
  font-size:11px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:8px 11px;
  border-radius:999px;
  background:var(--zst-green);
  color:#17141d;
}
.zst-input-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:28px;
  position:relative;
  z-index:2;
}
.zst input,.zst select{
  width:100%;
  min-height:54px;
  border:1px solid var(--zst-border);
  background:#fff;
  color:var(--zst-text);
  border-radius:14px;
  padding:0 16px;
  font:inherit;
  outline:none;
}
.zst select{appearance:auto}
.zst input:focus,.zst select:focus{
  border-color:var(--zst-purple);
  box-shadow:0 0 0 4px rgba(139,92,246,.12);
}
.zst-btn{
  min-height:54px;
  border:0;
  border-radius:14px;
  padding:0 22px;
  background:#17141d;
  color:#fff!important;
  font:inherit;
  font-weight:850;
  cursor:pointer;
  text-decoration:none!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.18s ease;
}
.zst-btn:hover{transform:translateY(-1px)}
.zst-btn:disabled{opacity:.6;cursor:wait}
.zst-btn-inline{margin-top:8px}
.zst-micro,.zst-disclaimer{font-size:12px;color:var(--zst-muted);margin-top:12px}
.zst-status{
  border:1px solid var(--zst-border);
  border-radius:18px;
  padding:18px;
  margin:20px 0;
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  font-weight:700;
}
.zst-status-error{border-color:#efb1b1;background:#fff7f7;color:#8a1f1f}
.zst-spinner{
  width:20px;height:20px;
  border:2px solid var(--zst-border);
  border-top-color:var(--zst-purple);
  border-radius:50%;
  animation:zstspin .7s linear infinite;
}
@keyframes zstspin{to{transform:rotate(360deg)}}
.zst-report-head{
  display:grid;
  grid-template-columns:1fr minmax(250px,360px);
  align-items:center;
  gap:28px;
  background:#17141d;
  color:#fff;
}
.zst-report-head p{color:#c9c4ce}
.zst-big-score{
  font-size:clamp(68px,12vw,122px);
  font-weight:900;
  line-height:.86;
  letter-spacing:-.065em;
  margin:22px 0 10px;
}
.zst-big-score small{font-size:20px;letter-spacing:0;color:#c9c4ce}
.zst-good{color:#45c76f!important}
.zst-warn{color:#d8a524!important}
.zst-bad{color:#e86767!important}
.zst-neutral{color:var(--zst-muted)!important}
.zst-report-side{display:grid;gap:16px}
.zst-confidence{
  background:rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px;
}
.zst-confidence span{font-size:12px;color:#c9c4ce}
.zst-confidence strong{display:block;font-size:28px;margin:4px 0 9px}
.zst-counts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.zst-counts span{
  background:rgba(255,255,255,.08);
  padding:12px 14px;
  border-radius:12px;
  font-size:13px;
}
.zst-counts b{display:inline-block;min-width:28px;font-size:18px}
.zst-score-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.zst-score-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.zst-score-item{
  border:1px solid var(--zst-border);
  border-radius:16px;
  padding:17px;
  display:grid;
  gap:10px;
}
.zst-score-line{display:flex;align-items:center;justify-content:space-between;gap:12px;text-transform:capitalize}
.zst-score-line span{color:var(--zst-muted);font-size:13px}
.zst-score-line strong{font-size:28px}
.zst-score-item small{font-size:11px;color:var(--zst-muted)}
.zst-bar{
  height:7px;
  border-radius:999px;
  background:#eeebf0;
  overflow:hidden;
}
.zst-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--zst-purple),var(--zst-green));
}
.zst-bar-light{background:rgba(255,255,255,.14)}
.zst-finding{
  display:grid;
  grid-template-columns:36px 1fr;
  gap:13px;
  padding:18px 0;
  border-top:1px solid var(--zst-border);
}
.zst-finding:first-of-type{border-top:0}
.zst-finding-icon{
  width:32px;height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:900;
  background:#f3f1f5;
}
.zst-finding-failed .zst-finding-icon{background:#ffe8e8;color:#bd3131}
.zst-finding-warning .zst-finding-icon{background:#fff6d2;color:#9d7400}
.zst-finding-unverified .zst-finding-icon{background:#f1eff4;color:#756e7e}
.zst-finding-passed .zst-finding-icon{background:#e6faec;color:#258f48}
.zst-finding-meta{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:var(--zst-muted);
  font-weight:850;
}
.zst-finding p{margin:0;font-size:14px}
.zst-chip-wrap{display:flex;flex-wrap:wrap;gap:9px}
.zst-chip{
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  border:1px solid var(--zst-border);
  background:#faf9fb;
  font-size:13px;
  font-weight:700;
}
.zst-gate{background:linear-gradient(135deg,#fff,var(--zst-pink))}
.zst-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:20px 0;
}
.zst-form-grid label{font-size:13px;font-weight:750;display:grid;gap:7px}
.zst-form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.zst-qualification{
  border-top:1px solid var(--zst-border);
  margin-top:20px;
  padding-top:3px;
}
.zst-recommendation{
  border-radius:24px;
  padding:clamp(25px,4vw,44px);
  background:linear-gradient(135deg,#211a29,#17141d);
  color:#fff;
  margin:20px 0;
}
.zst-recommendation p{color:#d4ced8;max-width:780px}
.zst-reasons{margin:16px 0 18px;padding-left:20px;color:#fff}
.zst-reasons li{margin:7px 0}
.zst-rec-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.zst-secondary-link{color:#fff!important;text-decoration:underline!important;text-underline-offset:4px}
.zst-metrics{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.zst-metric{
  padding:13px;
  border:1px solid var(--zst-border);
  border-radius:14px;
  display:grid;
  gap:4px;
}
.zst-metric span{color:var(--zst-muted);font-size:12px}
.zst-metric strong{font-size:16px}
.zst-calc-results{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}
.zst-calc-stat{
  min-height:120px;
  border-radius:18px;
  background:#17141d;
  color:#fff;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:15px;
}
.zst-calc-stat span{color:#c9c4ce;font-size:13px}
.zst-calc-stat strong{font-size:clamp(22px,3vw,34px)}
.zst-tools-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.zst-tool-card{
  display:block;
  border:1px solid var(--zst-border);
  border-radius:22px;
  padding:28px;
  background:#fff;
  color:var(--zst-text)!important;
  text-decoration:none!important;
  transition:.2s ease;
}
.zst-tool-card:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(40,20,60,.08)}
.zst-tool-card h3{margin-top:14px}
.zst-hp{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
}
.zst-sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.zst-lead-status{margin-top:10px;color:var(--zst-muted);font-size:13px}
@media(max-width:760px){
  .zst-input-row,.zst-report-head,.zst-form-grid,.zst-form-grid-2{grid-template-columns:1fr}
  .zst-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zst-calc-results,.zst-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zst-tools-grid{grid-template-columns:1fr}
  .zst-counts{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .zst-score-grid,.zst-calc-results,.zst-metrics{grid-template-columns:1fr}
  .zst-counts{grid-template-columns:1fr}
}


/* v2.1 conversion/report layer */
.zst-executive{background:linear-gradient(135deg,#fff,#fbf7ff 55%,rgba(255,244,54,.15))}
.zst-priority-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.zst-priority-card{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;border:1px solid var(--zst-border);border-radius:16px;padding:16px;background:#fff}
.zst-priority-card>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#17141d;color:#fff;font-size:11px;font-weight:850}
.zst-priority-card strong{display:block;line-height:1.25}
.zst-priority-card small{display:block;color:var(--zst-muted);margin-top:4px}
.zst-action{margin-top:10px;padding:11px 13px;border-radius:12px;background:#f7f5f8;color:#4f4956;font-size:13px;line-height:1.5}
.zst-finding-group{background:#fff;border:1px solid var(--zst-border);border-radius:24px;padding:clamp(22px,4vw,38px);margin:0 0 20px}
.zst-group-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:14px}
.zst-group-head h3{margin:12px 0 5px}
.zst-group-head p{margin:0;max-width:760px}
.zst-group-count{display:grid;place-items:center;min-width:44px;height:44px;border-radius:14px;background:#17141d;color:#fff;font-size:18px}
.zst-finding-group-failed{border-top:5px solid #e86767}
.zst-finding-group-warning{border-top:5px solid #d8a524}
.zst-finding-group-unverified{border-top:5px solid #8d8796}
.zst-finding-group-passed{border-top:5px solid #45c76f}
.zst-qualification{border:1px solid var(--zst-border);border-radius:16px;margin:18px 0;padding:0 16px;background:#fff}
.zst-qualification summary{cursor:pointer;padding:15px 0;font-weight:800;list-style:none}
.zst-qualification summary::-webkit-details-marker{display:none}
.zst-qualification summary span{margin-left:8px;color:var(--zst-muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.zst-report-actions{background:linear-gradient(135deg,#fff,var(--zst-pink))}
.zst-action-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}
.zst-btn-green{background:#17141d!important;box-shadow:inset 0 -3px 0 var(--zst-green)}
.zst-secondary-btn{min-height:54px;border:1px solid var(--zst-border);border-radius:14px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;color:var(--zst-text)!important;text-decoration:none!important;font-weight:800;background:#fff}
.zst-secondary-btn:hover{border-color:var(--zst-purple)}
@media(max-width:760px){
  .zst-priority-grid{grid-template-columns:1fr}
  .zst-group-head{display:grid;grid-template-columns:1fr auto}
}
@media print{
  body *{visibility:hidden!important}
  .zst-results,.zst-results *{visibility:visible!important}
  .zst-results{position:absolute!important;left:0!important;top:0!important;width:100%!important;background:#fff!important}
  .zst-report-actions,.zst-rec-actions,.zst-gate{display:none!important}
  .zst-card,.zst-finding-group{box-shadow:none!important;break-inside:avoid;border-color:#ddd!important}
  .zst-report-head{background:#17141d!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}


/* v2.2 Launch Edition */
.zst :focus-visible{outline:3px solid var(--zst-purple);outline-offset:3px}
.zst-qa-banner{padding:11px 14px;margin:0 0 14px;border-radius:12px;background:#17141d;color:#fff;font-size:12px;font-weight:800;letter-spacing:.04em}
.zst-turnstile-wrap{margin-top:14px;min-height:65px;display:flex;align-items:center}
.zst-security-error{font-size:12px;color:#a82525}
.zst-system-card{background:linear-gradient(135deg,#fff,#fbfcf7)}
.zst-system-head{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:start;margin-bottom:18px}
.zst-system-head h3{margin:12px 0 7px}
.zst-system-head p{margin:0}
.zst-system-head>strong{font-size:38px;line-height:1}
.zst-system-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.zst-system{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;border:1px solid var(--zst-border);border-radius:14px;padding:13px;background:#fff}
.zst-system>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:900}
.zst-system strong{display:block;font-size:13px}
.zst-system small{display:block;margin-top:2px;color:var(--zst-muted);font-size:11px}
.zst-system-ok>span{background:#e6faec;color:#258f48}
.zst-system-off>span{background:#f1eff4;color:#756e7e}
.zst-sample-note{margin-top:14px;font-size:12px;color:var(--zst-muted)}
.zst-comparison{background:linear-gradient(135deg,#fff,var(--zst-pink))}
.zst-comparison-row{display:grid;grid-template-columns:1fr auto 1fr 1fr;gap:12px;align-items:end;margin-top:18px}
.zst-comparison-row>div:not(.zst-comparison-arrow){border:1px solid var(--zst-border);border-radius:15px;padding:14px;background:#fff}
.zst-comparison-row span{display:block;font-size:11px;color:var(--zst-muted);text-transform:uppercase;letter-spacing:.08em}
.zst-comparison-row strong{display:block;font-size:24px;margin-top:3px}
.zst-comparison-arrow{font-size:24px;padding-bottom:16px}
.zst-change-up strong{color:#258f48}
.zst-change-down strong{color:#bd3131}
.zst-consent{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;margin:16px 0;font-size:12px;color:var(--zst-muted);line-height:1.5}
.zst-consent input{width:18px!important;min-height:18px!important;height:18px!important;margin-top:1px;padding:0}
.zst-print-header{display:none}
@media(max-width:760px){
  .zst-system-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zst-comparison-row{grid-template-columns:1fr 1fr}
  .zst-comparison-arrow{display:none}
}
@media(max-width:480px){
  .zst-system-grid{grid-template-columns:1fr}
}
@media print{
  @page{margin:14mm}
  .zst-print-header{display:flex!important;justify-content:space-between;gap:20px;align-items:flex-start;padding:0 0 18px;margin:0 0 22px;border-bottom:2px solid #17141d}
  .zst-print-brand{display:flex;gap:14px;align-items:center}
  .zst-print-brand img{display:block;max-width:150px;max-height:48px;object-fit:contain}
  .zst-print-brand>strong{font-size:24px}
  .zst-print-brand div{display:grid;gap:3px}
  .zst-print-brand span{font-weight:800;font-size:15px}
  .zst-print-brand small{font-size:11px;color:#666}
  .zst-print-meta{text-align:right;display:grid;gap:4px}
  .zst-print-meta strong{font-size:30px}
  .zst-print-meta span{font-size:10px;color:#666}
  .zst-system-card,.zst-comparison,.zst-executive,.zst-finding-group,.zst-recommendation{break-inside:avoid-page}
  .zst-turnstile-wrap,.zst-qa-banner{display:none!important}
}
