/* Printrio product visuals — purposeful, lightweight and scroll-triggered. */
.art-feature {
  border-color: #2c2338;
  background: linear-gradient(155deg, #100d17, #09080e 80%);
}
.art-feature-meta { border-color: #2c2338; color: #9a90aa; }
.art-feature h3 { color: #f2edf9; }
.art-feature p { color: #a8a0b5; }
.feature-art {
  border: 1px solid #2b2238;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #0b0911;
}
.feature-art-visual-fleet,
.feature-art-visual-spool,
.feature-art-visual-gcode {
  isolation: isolate;
  color: #eee8fa;
  background:
    radial-gradient(ellipse at 50% 0%, #8b5cf620, transparent 60%),
    linear-gradient(145deg, #120e1b, #09080f 76%);
}
.visual-fleet-ui { width: 100%; max-width: 440px; margin: auto; }
.visual-fleet-top {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 0 0 10px;
  border-bottom: 1px solid #30253d;
  color: #b8aecb; font: 700 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.visual-window-dots { display: flex; gap: 3px; }
.visual-window-dots i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #63566f; }
.visual-fleet-top .visual-sample-tag {
  margin-left: auto; padding: 4px 6px; border-radius: 4px;
  background: #a78bfa14; color: #c9b8ff; font-size: 7px; letter-spacing: .1em;
}
 .visual-fleet-row {
  display: grid; grid-template-columns: 25px minmax(0, 1fr) 30px;
  align-items: center; gap: 9px; padding: 9px 8px;
  border: 1px solid #292134; border-radius: 7px;
  background: #16111f; margin-top: 6px;
}
.art-feature.is-revealed .visual-fleet-row {
  animation: visual-row-enter 420ms cubic-bezier(.2,.7,.2,1) forwards;
}
.art-feature.is-revealed .visual-fleet-row:nth-of-type(2) { animation-delay: 70ms; }
.art-feature.is-revealed .visual-fleet-row:nth-of-type(3) { animation-delay: 135ms; }
.art-feature.is-revealed .visual-fleet-row:nth-of-type(4) { animation-delay: 200ms; }
.visual-printer-symbol {
  position: relative; display: block; width: 23px; height: 23px;
  border: 1px solid #4a3b60; border-radius: 6px; background: #22182f;
}
.visual-printer-symbol:before {
  content: ""; position: absolute; left: 5px; top: 4px; width: 11px; height: 7px;
  border: 1px solid #c4b5fd; border-radius: 2px;
}
.visual-printer-symbol:after {
  content: ""; position: absolute; left: 5px; top: 12px; width: 11px; height: 5px;
  border: 1px solid #8f7ab6; border-radius: 1px;
}
.visual-printer-symbol i { position: absolute; left: 9px; top: 1px; width: 5px; height: 3px; background: #a78bfa; }
.visual-printer-symbol b { position: absolute; right: 2px; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: #a7f3d0; }
.visual-printer-details { display: block; min-width: 0; }
.visual-printer-details > b { display: block; font-size: 10px; font-weight: 650; line-height: 1.3; }
.visual-printer-details small {
  display: block; margin: 3px 0 5px; color: #9b91ad;
  font-size: 8px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.visual-printer-details small i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #a7f3d0; }
.visual-fleet-row.is-idle .visual-printer-details small i { background: #847b91; }
.visual-progress, .visual-stock-track {
  display: block; height: 3px; border-radius: 9px; overflow: hidden; background: #352840;
}
 .visual-progress i, .visual-stock-track i {
  display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
  transform: scaleX(0); transform-origin: left center;
}
.art-feature.is-revealed .visual-progress i,
.art-feature.is-revealed .visual-stock-track i { animation: visual-bar-fill 680ms cubic-bezier(.2,.7,.2,1) 200ms forwards; }
.visual-fleet-row > strong { justify-self: end; color: #c4b5fd; font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.visual-fleet-row.is-idle > strong { color: #9b91ad; font-size: 8px; }
.feature-art-visual-spool { position: relative; }
.feature-art-visual-spool {
  height: auto !important;
  min-height: 190px;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible;
}
.visual-spool-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 168px;
}
.visual-spool-art {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 0;
}
.visual-spool-svg {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  overflow: visible;
  filter: drop-shadow(0 9px 12px #0005);
}
.visual-spool-caption {
  display: block;
  position: static;
  margin: 0;
  color: #9f8eb4;
  font: 700 7px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-align: center;
  white-space: nowrap;
}
.visual-spool-stage .visual-spool-info {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid #413050;
  border-radius: 8px;
  background: linear-gradient(145deg, #21172eF2, #100c17F2);
  box-shadow: 0 9px 18px #0003;
}
.visual-spool-label {
  display: block;
  color: #b7a5d1;
  font: 700 7px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  overflow-wrap: anywhere;
}
.visual-spool-info > b {
  display: block;
  margin-top: 7px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.1;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.visual-spool-info > small {
  display: block;
  margin: 4px 0 10px;
  color: #a69ab5;
  font-size: 9px;
}
.feature-art-visual-gcode { display: grid; place-items: center; padding: 12px; }
.visual-gcode-window {
  width: 100%; max-width: 410px; overflow: hidden;
  border: 1px solid #3b2d4f; border-radius: 8px;
  background: linear-gradient(150deg, #171020, #0d0a13 70%);
  box-shadow: 0 13px 30px #0005;
}
.visual-gcode-toolbar { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 9px; border-bottom: 1px solid #30243e; }
.visual-file-icon { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #574072; border-radius: 4px; color: #d8c9ff; background: #a78bfa1a; font: 700 8px/1 ui-monospace, monospace; }
.visual-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d7cce7; font: 650 8px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.visual-file-state { margin-left: auto; color: #b6a3d9; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .07em; }
.visual-gcode-scene { position: relative; height: 110px; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #8b5cf61b, transparent 60%); }
.visual-gcode-scene svg { display: block; width: 100%; height: 100%; overflow: visible; }
.visual-build-grid { fill: none; stroke: #514164; stroke-width: .7; opacity: .56; }
.visual-model-top { fill: #9b7be2; fill-opacity: .45; stroke: #c4b5fd; stroke-width: 1.1; }
.visual-model-left { fill: #7250b3; fill-opacity: .55; stroke: #b9a3fa; stroke-width: 1.1; }
.visual-model-right { fill: #4a3376; fill-opacity: .76; stroke: #9d80eb; stroke-width: 1.1; }
.visual-model-layers { fill: none; stroke: #d4c5ff; stroke-width: .65; opacity: .72; }
.visual-toolpath { fill: none; stroke: #f0abfc; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art-feature.is-revealed .visual-toolpath { animation: visual-toolpath-draw 1.1s ease-out 180ms forwards; }
.visual-scene-chip {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 7px; border: 1px solid #443250; border-radius: 5px; color: #c5b6db;
  background: #100b19e8; font-size: 7px; line-height: 1.2;
}
.visual-scene-chip i { width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 9px #a78bfa85; }
.visual-gcode-footer { display: flex; justify-content: space-between; gap: 7px; padding: 8px 10px; border-top: 1px solid #30243e; color: #9c90b0; font: 7px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.visual-gcode-footer span { white-space: nowrap; }
.section-output { background: #09070f; }
.visual-cost-card {
  position: absolute; inset: 0 35px 30px 0; overflow: hidden; padding: clamp(18px, 3vw, 30px);
  border: 1px solid #342644; border-radius: 10px;
  background: radial-gradient(ellipse at 85% 0%, #8b5cf61d, transparent 42%), linear-gradient(145deg, #17111f, #0b0911 80%);
  box-shadow: 0 25px 60px #0005;
}
.visual-cost-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #32263f; color: #a99abb; font: 700 8px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.visual-cost-heading span:last-child { color: #8d7aaa; font-size: 7px; white-space: nowrap; }
.visual-cost-total { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 0 20px; }
.visual-cost-total > div > span { display: block; color: #cfc4dc; font-size: 12px; font-weight: 600; }
.visual-cost-total small { display: block; margin-top: 5px; color: #9f92af; font-size: 10px; }
.visual-cost-total > strong { color: #e5d7ff; font-size: clamp(27px, 3.5vw, 42px); font-weight: 620; letter-spacing: -.06em; white-space: nowrap; }
.visual-cost-divider { height: 1px; background: #32263f; }
.visual-cost-line { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; padding: 13px 0 12px; border-bottom: 1px solid #251c30; }
.visual-cost-line > span { display: flex; align-items: center; gap: 8px; color: #c5b8d6; font-size: 11px; }
.visual-cost-line > strong { color: #e8e0f2; font-size: 11px; font-weight: 620; }
.visual-cost-line > small { grid-column: 1 / -1; color: #90839f; font-size: 9px; }
.visual-cost-dot { width: 7px; height: 7px; border-radius: 50%; background: #bda4ff; box-shadow: 0 0 12px #a78bfa35; }
.visual-cost-dot.dot-time { background: #79d8be; box-shadow: 0 0 12px #79d8be25; }
.visual-cost-bar { grid-column: 1 / -1; height: 4px; border-radius: 10px; overflow: hidden; background: #30243c; }
.visual-cost-bar i { display: block; width: 0; height: 100%; border-radius: inherit; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #8056db, #bda4ff); }
.visual-cost-line:nth-of-type(5) .visual-cost-bar i { background: linear-gradient(90deg, #438f85, #8be4cf); }
.section-output.is-revealed .visual-cost-bar i { animation: visual-bar-fill 700ms cubic-bezier(.2,.7,.2,1) forwards; }
.section-output.is-revealed .visual-cost-line:nth-of-type(5) .visual-cost-bar i { animation-delay: 130ms; }
.visual-cost-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 15px; color: #84768f; font: 700 7px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.visual-cost-footer span:last-child { text-align: right; font-weight: 500; letter-spacing: 0; }
 .visual-cost-float {
  position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  width: min(68%, 260px); padding: 13px; border: 1px solid #4a365e; border-radius: 9px;
  background: linear-gradient(145deg, #21182d, #110d18); box-shadow: 0 18px 40px #0008;
}
.section-output.is-revealed .visual-cost-float { animation: visual-row-enter 460ms cubic-bezier(.2,.7,.2,1) 220ms forwards; }
.visual-cost-float-icon { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #62477b; border-radius: 7px; background: #a78bfa17; color: #ddceff; font-size: 15px; }
.visual-cost-float small { display: block; color: #9d8eb2; font: 700 7px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.visual-cost-float b { display: block; margin-top: 3px; color: #e6dafa; font-size: 10px; font-weight: 600; }
@keyframes visual-row-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes visual-bar-fill { to { transform: scaleX(1); } }
@keyframes visual-spool-enter { to { transform: rotate(-8deg) scale(1); } }
@keyframes visual-toolpath-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .feature-art { margin-bottom: 17px; }
  .art-feature-grid { gap: 12px; }
  .visual-fleet-row { padding: 8px 7px; grid-template-columns: 23px minmax(0,1fr) 27px; gap: 7px; }
  .visual-printer-details > b { font-size: 9px; }
  .visual-printer-details small { font-size: 7px; }
  .visual-cost-card { inset: 0 22px 24px 0; padding: 18px; }
  .visual-cost-total { padding: 18px 0; }
  .visual-cost-total > strong { font-size: 30px; }
  .visual-cost-float { width: min(72%, 260px); padding: 10px; }
}
@media (max-width: 380px) {
  .visual-cost-card { padding: 14px; inset: 0 12px 25px 0; }
  .visual-cost-heading { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .art-feature.is-revealed .visual-fleet-row,
  .art-feature.is-revealed .visual-toolpath,
  .art-feature.is-revealed .visual-progress i,
  .art-feature.is-revealed .visual-stock-track i,
  .art-feature.is-revealed .visual-cost-bar i,
  .section-output.is-revealed .visual-cost-float {
    animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0;
  }
  .visual-progress i, .visual-stock-track i, .visual-cost-bar i { transform: scaleX(1); }
}


/* Mobile refinements: keep the product previews fully visible and reduce dead space. */
@media (max-width: 760px) {
  .art-feature-grid { align-items: stretch; }
  .art-feature { min-width: 0; }
  .feature-art-visual-fleet {
    height: auto;
    min-height: 0;
    padding: 12px;
    overflow: visible;
  }
  .visual-fleet-ui { width: 100%; max-width: none; }
  .visual-fleet-top { margin-bottom: 9px; padding-bottom: 8px; }
  .visual-fleet-row {
    min-height: 52px;
    margin-top: 6px;
    padding: 7px;
  }
  .visual-printer-symbol { width: 22px; height: 22px; }
  .visual-printer-details small { font-size: 8px; }
  .visual-progress { margin-top: 4px; }
  .art-feature-grid .art-feature-large .feature-art { height: auto; }
  .visual-spool-stage { min-height: 190px; }
  .feature-art-visual-gcode { min-height: 160px; }
}
@media (max-width: 380px) {
  .feature-art-visual-fleet { padding: 9px; }
  .visual-fleet-row { grid-template-columns: 21px minmax(0,1fr) 25px; gap: 6px; }
  .visual-printer-symbol { transform: scale(.92); transform-origin: left center; }
  .visual-printer-details > b { font-size: 9px; }
  .visual-printer-details small { font-size: 7px; }
  .visual-fleet-row > strong { font-size: 8px; }
}


/* Fleet illustration: size to content instead of clipping the last printer row. */
.feature-art-visual-fleet {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box;
  display: block;
  padding: 12px;
  overflow: visible !important;
}
.visual-fleet-ui {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 6px;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
}
.visual-fleet-top {
  min-height: 0;
  margin: 0 0 3px;
  padding: 0 0 9px;
}
.visual-fleet-ui .visual-fleet-row {
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .art-feature-grid > .art-feature-large > .feature-art-visual-fleet {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 10px;
  }
  .art-feature-grid > .art-feature-large > .feature-art-visual-spool,
  .art-feature-grid > .art-feature > .feature-art-visual-spool {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px;
  }
  .visual-spool-stage { min-height: 148px; gap: 7px; }
  .visual-spool-info { padding: 9px 8px !important; }
  .visual-spool-info > b { font-size: 19px; }
  .visual-spool-label { font-size: 6px; }
  .visual-spool-info > small { margin-bottom: 8px; font-size: 8px; }
  .visual-spool-caption { font-size: 6px; letter-spacing: .06em; }
}
@media (max-width: 380px) {
  .feature-art-visual-fleet { padding: 8px; }
  .visual-fleet-ui { gap: 5px; }
  .visual-fleet-ui .visual-fleet-row {
    grid-template-columns: 22px minmax(0, 1fr) 26px;
    gap: 7px;
    padding: 7px;
  }
  .visual-printer-details > b { font-size: 9px; }
  .visual-printer-details small { font-size: 7px; }
  .visual-spool-stage { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 5px; min-height: 136px; }
  .visual-spool-info { padding: 8px 6px !important; }
  .visual-spool-info > b { font-size: 17px; }
  .visual-spool-label { font-size: 5.6px; }
  .visual-spool-caption { font-size: 5.5px; letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-spool-svg { filter: none; }
}
