/* ===== TriageQuant carousel (landing page top) =====
   All styles are scoped under .tq so they don't leak into site.css. */
.tq-section{
  background:var(--bg-light,#f8f8f8);
  border-bottom:0.5px solid var(--border,rgba(0,0,0,.09));
}
.tq{
  --tq-ink:#2C333D;
  --tq-muted:#5E6875;
  --tq-line:#E3E8ED;
  --tq-soft:#F4F7F9;
  --tq-cyan:#07B6D5;
  --tq-cyan-ink:#0784A0;
  --tq-orange:#F49E0B;
  --tq-orange-ink:#A86400;
  --tq-grad:linear-gradient(90deg,#07B6D5 0%,#7FAE6A 52%,#F49E0B 100%);
  color:var(--tq-ink);
  max-width:1000px;margin:0 auto;padding:24px 24px 32px;
}
.tq *{box-sizing:border-box;}

/* logo + "try free" live inside the card, above the slides */
.tq-bar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px clamp(24px,5vw,64px) 0;
}
.tq-logo{display:block;}
.tq-bar img{height:26px;width:auto;display:block;}

.tq-btn{
  display:inline-block;font:inherit;font-weight:700;font-size:.95rem;line-height:1.2;cursor:pointer;
  padding:12px 20px;border-radius:10px;border:0;text-decoration:none;
  background:var(--tq-ink);color:#fff;
  transition:background .15s ease;
}
.tq-btn:hover{background:#1d232b;}
.tq-btn--accent{background:var(--tq-orange);color:#2a1a00;}
.tq-btn--accent:hover{background:#e08f00;}
.tq-btn--ghost{background:transparent;color:var(--tq-ink);box-shadow:inset 0 0 0 1.5px var(--tq-line);}
.tq-btn--ghost:hover{background:var(--tq-soft);}
.tq-btn--sm{padding:9px 16px;font-size:.85rem;border-radius:9px;}
.tq :focus-visible{outline:3px solid var(--tq-cyan);outline-offset:2px;}

.tq-car{
  position:relative;background:#fff;border:1px solid var(--tq-line);border-radius:20px;
  overflow:hidden;outline:none;touch-action:pan-y;
  box-shadow:0 1px 2px rgba(44,51,61,.04),0 24px 48px -32px rgba(44,51,61,.25);
}
.tq-viewport{overflow:hidden;}
.tq-track{display:flex;transition:transform .7s cubic-bezier(.22,.72,.18,1);}
.tq-slide{
  flex:0 0 100%;min-width:100%;
  display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;
  padding:clamp(16px,3vw,32px) clamp(24px,5vw,64px) 24px;
}
.tq-text{max-width:500px;}
.tq-stat{
  margin:0 0 6px;font-size:clamp(3.2rem,7vw,5.2rem);font-weight:800;line-height:1;letter-spacing:-.04em;
  background:var(--tq-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.tq h2{margin:0 0 16px;font-size:clamp(1.6rem,3.2vw,2.4rem);line-height:1.1;letter-spacing:-.025em;font-weight:800;color:var(--tq-ink);}
.tq p{margin:0 0 22px;font-size:clamp(1rem,1.25vw,1.08rem);line-height:1.6;color:var(--tq-muted);max-width:44ch;}
.tq-list{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:10px;}
.tq-list li{display:flex;align-items:center;gap:12px;font-weight:600;font-size:1rem;line-height:1.4;}
.tq-list li::before{content:"";flex:0 0 10px;height:10px;border-radius:50%;background:var(--tq-orange);box-shadow:0 0 0 4px rgba(244,158,11,.18);}
.tq-list--good li::before{background:var(--tq-cyan);box-shadow:0 0 0 4px rgba(7,182,213,.18);}
.tq-actions{display:flex;gap:12px;flex-wrap:wrap;}
.tq-art{display:flex;justify-content:center;}
.tq-art svg{width:100%;max-width:460px;height:auto;display:block;}
.tq-art text{font-family:'Inter',system-ui,Arial,sans-serif;}

/* text entrance: one quiet move per slide change */
.tq-text>*{opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease;}
.tq-slide.is-active .tq-text>*{opacity:1;transform:none;}
.tq-slide.is-active .tq-text>*:nth-child(2){transition-delay:.06s;}
.tq-slide.is-active .tq-text>*:nth-child(3){transition-delay:.12s;}
.tq-slide.is-active .tq-text>*:nth-child(4){transition-delay:.18s;}

/* the one looping motion: the top-priority ring */
.tq-ring{transform-box:fill-box;transform-origin:center;animation:tqRing 2.4s ease-out infinite;}
@keyframes tqRing{0%{transform:scale(.8);opacity:.7}80%,100%{transform:scale(1.9);opacity:0}}

/* ===== bottom controls: step tabs + arrows ===== */
.tq-controls{
  display:flex;align-items:center;gap:20px;
  padding:16px clamp(24px,5vw,64px) 20px;border-top:1px solid var(--tq-line);
}
.tq-steps{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.tq-step{
  font:inherit;cursor:pointer;background:none;border:0;padding:0;text-align:left;
  color:var(--tq-muted);font-size:.88rem;font-weight:600;
}
.tq-step-label{display:block;margin-bottom:8px;}
.tq-step i{display:block;height:3px;border-radius:3px;background:var(--tq-line);overflow:hidden;}
.tq-step b{display:block;height:100%;width:0;background:var(--tq-grad);}
.tq-step.is-done b{width:100%;}
.tq-step.is-active{color:var(--tq-ink);}
.tq-arrows{display:flex;gap:8px;}
.tq-arrow{
  width:42px;height:42px;border-radius:50%;cursor:pointer;padding:0;
  background:#fff;border:1.5px solid var(--tq-line);color:var(--tq-ink);
  display:grid;place-items:center;transition:background .15s ease,border-color .15s ease;
}
.tq-arrow:hover{background:var(--tq-soft);border-color:#cfd6dd;}
.tq-arrow svg{width:18px;height:18px;}
.tq-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0;}

@media (max-width:860px){
  .tq-slide{grid-template-columns:1fr;gap:16px;align-items:start;align-content:start;}
  .tq-art{order:-1;}
  .tq-art svg{max-width:300px;max-height:34vh;}
  .tq-step{font-size:.78rem;}
}
@media (max-width:520px){
  .tq{padding:16px 12px 24px;}
  .tq-bar{padding:14px 16px 0;}
  .tq-bar .tq-btn{padding:8px 12px;font-size:.8rem;}
  .tq-bar img{height:20px;}
  .tq-step-label{display:none;}
  .tq-controls{gap:14px;}
}
@media (prefers-reduced-motion:reduce){
  .tq *{animation:none!important;transition-duration:.001ms!important;}
  .tq-text>*{opacity:1!important;transform:none!important;}
}
