/* Vector Lotties anywhere on the site (assets/lottie/mount.js). The still is the poster and keeps the figure's size;
   the player draws over it and hides it only once its first frame is up. */
.lottie-loop { position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: #f5f1e5; line-height: 0 }
.lottie-loop > img { display: block; width: 100%; height: auto }
.lottie-loop > .lottie-player { position: absolute; inset: 0 }
.lottie-loop > .lottie-player svg { display: block; width: 100%; height: 100% }
.lottie-loop[data-state="playing"] > img, .lottie-loop[data-state="paused"] > img { visibility: hidden }
@media (prefers-reduced-motion: reduce) { .lottie-loop > .lottie-player { display: none } .lottie-loop > img { visibility: visible !important } }
/* The product overview's tab loops (/product/). */
.pd-vignette { border-radius: 10px; box-shadow: 0 18px 40px -24px #0008 }
.pd-vignette-note { margin-top: 1.4rem; font-size: .85rem; opacity: .75 }
/* The smart-components gallery (/product/workshops/library/). */
.sc-group .hub-head { margin-bottom: 1.2rem }
/* Three columns at most on a desktop, so a loop is drawn 360px wide or more and its words read at 11px or more. */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem) }
.sc-card { display: flex; flex-direction: column; min-width: 0; padding: .7rem .7rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fffdf6 }
.sc-card h3 { margin: .85rem .2rem 0; font: 700 1.45rem/1.05 "Archivo Narrow", "Arial Narrow", sans-serif; letter-spacing: -.02em }
.sc-card p, .sc-card ol { margin: .45rem .2rem 0 }
.sc-line { color: #4d5f53 }
.sc-caption { padding: .45rem .6rem; border-left: 3px solid var(--c-workshops-deep, #76500a); background: #f7efd9; font: italic 1.08rem/1.25 "Instrument Serif", Georgia, serif }
.sc-caption small, .sc-say small { display: block; font: 600 .78rem/1.3 "Helvetica Neue", Arial, sans-serif; font-style: normal; letter-spacing: .02em; color: #5b6b60 }
.sc-steps { padding-left: 1.2rem; font-size: .93rem; line-height: 1.4 }
.sc-say { font-weight: 600 }
.sc-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: auto !important; padding-top: .8rem; font-weight: 600 }
.sc-lanes-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: start }
.sc-lane-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .2rem 1.4rem; margin: 1rem 0 0; padding: 0; list-style: none }
.sc-lane-list li { padding: .55rem 0; border-top: 1px solid var(--line) }
.sc-lane-list b { display: block; font: 700 1.15rem/1.1 "Archivo Narrow", "Arial Narrow", sans-serif }
.sc-lane-list span { display: block; font-size: .88rem; color: #4d5f53 }
.sc-lane-list em { display: block; font: italic 1rem/1.3 "Instrument Serif", Georgia, serif }
@media (max-width: 800px) { .sc-lanes-inner { grid-template-columns: minmax(0, 1fr) } }
/* The homepage library strip (site/parts/home/library-strip.html): the heading, the live count with "Build your own"
   right under it, then nine tiles. Three columns at most, so a loop is drawn 360px wide or more; two columns below that, with the build tile across both,
   so no row is left half empty; on a phone one row that scrolls sideways, each tile snapping into place. */
section.library-strip { padding: clamp(40px,5vw,84px) var(--pad) clamp(44px,5.4vw,92px); border-bottom: 1px solid var(--line) }
.library-strip h2 { max-width: 22ch; font-size: clamp(2.1rem,3.3vw,3.8rem) }
.library-strip .lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin: 1.4rem 0 0; padding: 0; list-style: none }
.library-strip .lib-grid a { display: block; color: inherit; text-decoration: none }
.library-strip .lib-grid b { display: block; margin-top: .6rem; font: 700 1.25rem/1.1 "Archivo Narrow", "Arial Narrow", sans-serif }
.library-strip .lib-grid em { display: block; margin-top: .2rem; font: italic 1.02rem/1.3 "Instrument Serif", Georgia, serif; color: #3e5145 }
.library-strip .lib-grid a:hover b { text-decoration: underline; text-underline-offset: .14em }
.library-strip .lib-lead { max-width: 60ch; margin: .8rem 0 0; color: #2f4438; font-size: 1.12rem; line-height: 1.45 }
.library-strip .lib-lead a { font-weight: 600; white-space: nowrap }
.library-strip .lib-note { max-width: 68ch; margin: 1.6rem 0 0; color: #2f4438; font-size: 1.02rem; line-height: 1.55 }
.library-strip .lib-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: .9rem 0 0; font-weight: 600 }
@media (max-width: 1239px) {
  .library-strip .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .library-strip .lib-build { grid-column: 1 / -1 }
  .library-strip .lib-build a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(1rem, 2vw, 1.6rem); align-items: center }
  .library-strip .lib-build figure { grid-row: 1 / span 2 }
  .library-strip .lib-build b { align-self: end }
  .library-strip .lib-build em { align-self: start }
}
@media (max-width: 800px) {
  section.library-strip { padding-inline: 0 }
  .library-strip h2, .library-strip .lib-lead, .library-strip .lib-note, .library-strip .lib-links { margin-inline: var(--pad) }
  .library-strip .lib-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 340px); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad) .6rem; scrollbar-width: thin }
  .library-strip .lib-grid > li { scroll-snap-align: start }
  .library-strip .lib-build { grid-column: auto }
  .library-strip .lib-build a { display: block }
}
/* The build tile: a chat turn, then the board it asks for growing lane by lane and card by card. */
.lib-build figure { margin: 0; overflow: hidden; border-radius: 8px; background: #f5f1e5; line-height: 0; box-shadow: inset 0 0 0 2px #24382d }
.lib-build svg { display: block; width: 100%; height: auto }
/* Its words are 11.5 units on a 240-unit drawing: 12px or more at a 250px tile. */
.lib-build text { font: 500 11.5px/1 "Helvetica Neue", Arial, sans-serif; fill: #24382d }
.lib-build .lb-lane-name { font-size: 12px }
.lib-build .lb-rule { font-weight: 700; fill: #7a1a42 }
.lib-build .lb-small { fill: #3e5145 }
.lib-build .lb-lane-name { font-weight: 700 }
.lib-build .lb-count { font-weight: 700; fill: #7a1a42 }
.lib-build .lb-send-text { font-weight: 700; fill: #fff }
.lib-build .lb-card rect:first-child { stroke: #d6cdb4 }
@media (prefers-reduced-motion: no-preference) {
  .lib-build :is(.lb-ask, .lb-done, .lb-lane, .lb-card, .lb-send) { transform-box: fill-box; transform-origin: 50% 0; animation: 8s ease-out infinite both }
  .lib-build .lb-ask { transform-origin: 0 50%; animation-name: lb-ask }
  .lib-build .lb-lane { animation-name: lb-lane }
  .lib-build .lb-lane:nth-child(2) { animation-name: lb-lane-2 }
  .lib-build .lb-lane:nth-child(3) { animation-name: lb-lane-3 }
  .lib-build .lb-card { animation-name: lb-card-1 }
  .lib-build .lb-card:nth-child(2) { animation-name: lb-card-2 }
  .lib-build .lb-card:nth-child(3) { animation-name: lb-card-3 }
  .lib-build .lb-card:nth-child(4) { animation-name: lb-card-4 }
  .lib-build .lb-card:nth-child(5) { animation-name: lb-card-5 }
  .lib-build .lb-done { animation-name: lb-done }
  .lib-build .lb-send { transform-origin: 50% 50%; animation-name: lb-send }
}
@keyframes lb-ask { 0% { opacity: 0; scale: .6 } 8%, 94% { opacity: 1; scale: 1 } 100% { opacity: 0 } }
@keyframes lb-lane { 0%, 12% { opacity: 0; scale: 1 .2 } 20%, 94% { opacity: 1; scale: 1 } 100% { opacity: 0 } }
@keyframes lb-lane-2 { 0%, 16% { opacity: 0; scale: 1 .2 } 24%, 94% { opacity: 1; scale: 1 } 100% { opacity: 0 } }
@keyframes lb-lane-3 { 0%, 20% { opacity: 0; scale: 1 .2 } 28%, 94% { opacity: 1; scale: 1 } 100% { opacity: 0 } }
@keyframes lb-card-1 { 0%, 32% { opacity: 0; translate: 0 -14px } 38%, 94% { opacity: 1; translate: 0 } 100% { opacity: 0 } }
@keyframes lb-card-2 { 0%, 40% { opacity: 0; translate: 0 -14px } 46%, 94% { opacity: 1; translate: 0 } 100% { opacity: 0 } }
@keyframes lb-card-3 { 0%, 48% { opacity: 0; translate: 0 -14px } 54%, 94% { opacity: 1; translate: 0 } 100% { opacity: 0 } }
@keyframes lb-card-4 { 0%, 56% { opacity: 0; translate: 0 -14px } 62%, 94% { opacity: 1; translate: 0 } 100% { opacity: 0 } }
@keyframes lb-card-5 { 0%, 64% { opacity: 0; translate: 0 -14px } 70%, 94% { opacity: 1; translate: 0 } 100% { opacity: 0 } }
@keyframes lb-done { 0%, 70% { opacity: 0 } 76%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes lb-send { 0%, 76% { opacity: 0; scale: .7 } 81% { opacity: 1; scale: 1.08 } 85%, 94% { opacity: 1; scale: 1 } 100% { opacity: 0 } }
.sc-hero-loop { box-shadow: 0 18px 40px -26px #0007 }
/* The homepage's "Your AI, your choice" column: the profile's AI settings, a connection made and a feature switched. */
.pricing-loop { margin-top: 1.2rem; border: 1px solid var(--line) }
/* /product/presentations/: the planned walkthrough and the published link, side by side. */
.present-loops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(1rem,2vw,1.6rem); max-width: 56rem; margin: 2rem auto 0 }
/* /developers/: how an agent that runs a script appears on the slate. */
.agent-loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem,3vw,2.4rem); align-items: center; margin: 2.2rem 0 }
.agent-loop p { margin: 0; max-width: 46ch }
@media (max-width: 800px) { .agent-loop { grid-template-columns: minmax(0, 1fr) } }
/* The Smart components hub: where its boards are watched on the real canvas. */
.sc-watch { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0; padding: 0 var(--pad) clamp(28px,3vw,48px); font-weight: 600 }
