/* Original Squarespace product visuals, ported 2026-11-12.
   Tokens and rules are scoped to .feat-sqs so they cannot leak. */

/* Two Prompt Studio stills: stack with a gap */
.feat-media .feat-still + .feat-still{margin-top:32px}

.feat-sqs{
  --sb-pink:#D85094;
  --sb-navy:#0d2340;
  --sb-text:#1c2b3a;
  --sb-muted:#4a5f75;
  --sb-radius:14px;
  font-family:Inter,system-ui,sans-serif;
  color:var(--sb-text);
  max-width:800px;
  margin:0 auto;
  box-sizing:border-box;
}
.feat-sqs *,
.feat-sqs *::before,
.feat-sqs *::after{box-sizing:border-box}

/* ===== Web Research animated panel ===== */
.feat-sqs .sb-panel-wrap{
  margin:0;
  display:flex;
  justify-content:center;
}
.feat-sqs .sb-panel{
  width:100%;
  max-width:480px;
  background:#0f1b38;
  border-radius:16px;
  border:1px solid rgba(216,80,148,.22);
  box-shadow:
    0 2px 4px rgba(0,0,0,.28),
    0 16px 48px rgba(0,0,0,.38),
    0 0 80px rgba(216,80,148,.07);
  overflow:hidden;
}
.feat-sqs .sb-panel-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 18px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.025);
}
.feat-sqs .sb-panel-dots{display:flex;gap:6px}
.feat-sqs .sb-panel-dots span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.13);
}
.feat-sqs .sb-panel-title{
  font-size:11px;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:rgba(255,255,255,.32);
  margin-left:4px;
}
.feat-sqs .sb-panel-body{
  position:relative;
  height:290px;
  overflow:hidden;
}
.feat-sqs .sb-phase{
  position:absolute;
  inset:0;
  padding:28px 26px 32px;
  opacity:0;
  transition:opacity .35s ease;
  pointer-events:none;
}
.feat-sqs .sb-phase.active{
  opacity:1;
  pointer-events:auto;
}
.feat-sqs .sb-globe{
  font-size:26px;
  display:inline-block;
  margin-bottom:12px;
  animation:sb-globePulse 1.5s ease-in-out infinite;
}
@keyframes sb-globePulse{
  0%,100%{transform:scale(1);opacity:.85}
  50%{transform:scale(1.13);opacity:1}
}
.feat-sqs .sb-typing-line{
  display:flex;
  align-items:center;
  height:20px;
  margin-bottom:18px;
}
.feat-sqs .sb-typed-text{
  font-size:12.5px;
  font-weight:500;
  color:rgba(255,255,255,.72);
  letter-spacing:.01em;
}
.feat-sqs .sb-cursor{
  display:inline-block;
  width:2px;
  height:13px;
  background:var(--sb-pink);
  margin-left:2px;
  flex-shrink:0;
  animation:sb-blink .72s step-end infinite;
}
@keyframes sb-blink{
  0%,100%{opacity:1}
  50%{opacity:0}
}
.feat-sqs .sb-url-list{
  display:flex;
  flex-direction:column;
  gap:13px;
}
.feat-sqs .sb-url-item{
  opacity:0;
  transform:translateY(5px);
  transition:opacity .32s ease,transform .32s ease;
}
.feat-sqs .sb-url-item.visible{
  opacity:1;
  transform:translateY(0);
}
.feat-sqs .sb-url-text{
  font-family:"Courier New",Courier,monospace;
  font-size:10.5px;
  color:rgba(255,255,255,.44);
  display:block;
  margin-bottom:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.feat-sqs .sb-url-text .sb-domain{color:rgba(216,80,148,.82)}
.feat-sqs .sb-progress-bar{
  height:3px;
  background:rgba(255,255,255,.07);
  border-radius:99px;
  overflow:hidden;
}
.feat-sqs .sb-progress-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--sb-pink) 0%,#e87bbf 100%);
  border-radius:99px;
  transition:width .75s ease;
}
.feat-sqs .sb-url-item.visible .sb-progress-fill{width:var(--fill,80%)}
.feat-sqs .sb-synth-area{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.feat-sqs .sb-synth-label{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12.5px;
  font-weight:500;
  color:rgba(255,255,255,.72);
  margin-bottom:22px;
}
.feat-sqs .sb-spinner{
  width:14px;
  height:14px;
  border:2px solid rgba(216,80,148,.22);
  border-top-color:var(--sb-pink);
  border-radius:50%;
  flex-shrink:0;
  animation:sb-spin .75s linear infinite;
}
@keyframes sb-spin{to{transform:rotate(360deg)}}
.feat-sqs .sb-scan-container{
  position:relative;
  height:88px;
  border-radius:10px;
  background:rgba(255,255,255,.028);
  border:1px solid rgba(255,255,255,.055);
  overflow:hidden;
}
.feat-sqs .sb-scan-container::before,
.feat-sqs .sb-scan-container::after{
  content:'';
  position:absolute;
  left:16px;
  border-radius:4px;
  background:rgba(255,255,255,.07);
}
.feat-sqs .sb-scan-container::before{
  right:16px;
  top:18px;
  height:8px;
}
.feat-sqs .sb-scan-container::after{
  right:52px;
  top:36px;
  height:8px;
  background:rgba(255,255,255,.045);
}
.feat-sqs .sb-scan-line{
  position:absolute;
  top:0;
  bottom:0;
  width:3px;
  border-radius:2px;
  background:linear-gradient(to bottom,transparent 0%,var(--sb-pink) 18%,var(--sb-pink) 82%,transparent 100%);
  box-shadow:0 0 14px 5px rgba(216,80,148,.42);
  left:-4px;
  opacity:0;
}
.feat-sqs .sb-scan-line.scanning{
  opacity:1;
  animation:sb-scanBeam 1.65s cubic-bezier(.4,0,.6,1) forwards;
}
@keyframes sb-scanBeam{
  0%{left:-4px;opacity:1}
  90%{left:100%;opacity:.8}
  100%{left:100%;opacity:0}
}
.feat-sqs .sb-result-card{
  background:#fff;
  border-radius:12px;
  width:100%;
  padding:18px 18px 15px;
  box-shadow:0 2px 8px rgba(0,0,0,.18),0 8px 28px rgba(0,0,0,.22);
  transform:scale(.94) translateY(8px);
  opacity:0;
  transition:transform .38s cubic-bezier(.34,1.56,.64,1),opacity .28s ease;
}
.feat-sqs .sb-result-card.snapped{
  transform:scale(1) translateY(0);
  opacity:1;
}
.feat-sqs .sb-result-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.feat-sqs .sb-result-label{
  font-size:13px;
  font-weight:700;
  color:var(--sb-navy);
  line-height:1.3;
  letter-spacing:-.01em;
}
.feat-sqs .sb-checkmark{
  width:21px;
  height:21px;
  background:#22c55e;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  color:#fff;
  flex-shrink:0;
  line-height:1;
}
.feat-sqs .sb-result-body{
  font-size:12px;
  font-weight:400;
  color:#4a5568;
  line-height:1.65;
  margin-bottom:11px;
}
.feat-sqs .sb-result-footer{display:flex;align-items:center}
.feat-sqs .sb-web-pill{
  background:#fdf2f8;
  color:var(--sb-pink);
  border:1px solid rgba(216,80,148,.18);
  border-radius:99px;
  padding:3px 10px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.01em;
}
@media (max-width:640px){
  .feat-sqs .sb-panel-body{height:310px}
}

/* ===== Usage Controls admin card + charts ===== */
.feat-sqs .sb-card{
  background:#fff;
  border-radius:var(--sb-radius);
  border:1px solid rgba(13,35,64,.08);
  box-shadow:
    0 1px 3px rgba(13,35,64,.06),
    0 8px 24px rgba(13,35,64,.10);
}
.feat-sqs .sb-visuals-wrap{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.feat-sqs .sb-admin-card{
  padding:18px 20px;
  display:grid;
  grid-template-columns:1fr 1px 1fr;
  gap:0;
  align-items:center;
}
.feat-sqs .sb-admin-col{padding:0 18px}
.feat-sqs .sb-admin-col:first-child{padding-left:0}
.feat-sqs .sb-admin-col:last-child{padding-right:0}
.feat-sqs .sb-admin-v-divider{
  width:1px;
  align-self:stretch;
  background:rgba(13,35,64,.08);
}
.feat-sqs .sb-admin-section-label{
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--sb-pink);
  margin-bottom:10px;
}
.feat-sqs .sb-model-select{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:7px;
  padding:8px 11px;
  margin-bottom:7px;
  cursor:default;
}
.feat-sqs .sb-model-select-left{
  display:flex;
  align-items:center;
  gap:7px;
}
.feat-sqs .sb-model-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#22c55e;
  flex-shrink:0;
}
.feat-sqs .sb-model-name{
  font-size:12px;
  font-weight:600;
  color:var(--sb-navy);
}
.feat-sqs .sb-model-tag{
  font-size:9px;
  font-weight:600;
  background:rgba(216,80,148,.1);
  color:var(--sb-pink);
  border-radius:99px;
  padding:2px 6px;
  letter-spacing:.02em;
}
.feat-sqs .sb-model-chevron{color:#94a3b8;font-size:10px}
.feat-sqs .sb-model-hint{
  font-size:10.5px;
  color:var(--sb-muted);
  line-height:1.4;
  margin:0;
}
.feat-sqs .sb-perm-list{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.feat-sqs .sb-perm-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#f0fdf4;
  border:1px solid #86efac;
  border-radius:6px;
  padding:6px 10px;
  width:fit-content;
}
.feat-sqs .sb-perm-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#22c55e;
  flex-shrink:0;
}
.feat-sqs .sb-perm-name{
  font-size:11.5px;
  font-weight:500;
  color:#166534;
  white-space:nowrap;
}
.feat-sqs .sb-charts-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.feat-sqs .sb-chart-card{
  padding:20px 16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.feat-sqs .sb-chart-card svg{
  display:block;
  width:100%;
  height:auto;
}
@media (max-width:640px){
  .feat-sqs .sb-admin-card{grid-template-columns:1fr}
  .feat-sqs .sb-admin-v-divider{display:none}
  .feat-sqs .sb-admin-col{padding:12px 0 0}
  .feat-sqs .sb-admin-col:first-child{padding-left:0;padding-top:0}
  .feat-sqs .sb-charts-grid{grid-template-columns:1fr}
}


/* ===== DQA 2026-11-12 r5 =====
   Usage charts: legend no longer overlaps the pie; bar card
   top-aligns instead of vertically centering in leftover space.
   Web Research panel body hugs the active phase (grows as URLs
   appear, shrinks around the result card) so there is no empty
   navy void mid-animation or at the end. Panel radius and
   shadow aligned with the other feature-page media. */
.feat-sqs{--sb-radius:18px}
.feat-sqs .sb-panel{
  border-radius:20px;
  box-shadow:
    0 12px 32px rgba(1,51,89,.16),
    0 2px 6px rgba(1,51,89,.08);
}
.feat-sqs .sb-charts-grid{align-items:start}
.feat-sqs .sb-chart-card{
  justify-content:flex-start;
  padding:18px 16px 16px;
}

/* Panel body height is set by JS to the active phase's content.
   Phases are height:auto (not stretched via inset) so scrollHeight
   is the content height. Hidden URL rows stay out of flow. */
.feat-sqs .sb-panel-body{
  height:120px;
  overflow:hidden;
  transition:height .4s cubic-bezier(.4,0,.2,1);
}
@media (max-width:640px){
  .feat-sqs .sb-panel-body{height:120px} /* beat the earlier 310px */
}
.feat-sqs .sb-phase{
  top:0;
  left:0;
  right:0;
  bottom:auto;
  height:auto;
  width:100%;
  padding:22px 24px 24px;
}
.feat-sqs .sb-synth-area{
  height:auto;
  justify-content:flex-start;
}
.feat-sqs .sb-url-list{gap:0}
.feat-sqs .sb-url-item{
  max-height:0;
  margin:0;
  overflow:hidden;
  pointer-events:none;
}
.feat-sqs .sb-url-item.visible{
  max-height:48px;
  margin-top:13px;
  overflow:visible;
  pointer-events:auto;
}
.feat-sqs .sb-url-item.visible:first-child{margin-top:0}
.feat-sqs .sb-result-card{border-radius:14px}

@media (prefers-reduced-motion:reduce){
  .feat-sqs .sb-panel-body{transition:none}
}

/* Prompt Studio stills are opaque RGB with a thin gray canvas around a
   rounded Lightning window. Clip to 20px so they match record-pages
   video radius; the r4 parent drop-shadow then follows the clip. */
.feat-media .feat-still img[src*="prompt-studio"]{
  border-radius:20px;
}
