/* Workflow library (/workflows/), loaded after workflow-page.css. Built by tools/workflow-pages/build.mjs from sense-automate-workflows-share.html (css/workflows.css); do not edit by hand. */

/* css/workflows.css */
/* ==========================================================================
   Automate — workflow library (sense-automate-workflows.html)
   Structure + copy from Figma "Automate - Workflow Library"; styling follows the home + agent pages.
   ========================================================================== */

/* ---------- 01 HERO — dark frame, copy left, two drifting columns of workflow cards ---------- */
.wf-page .wf-hero { position: relative; isolation: isolate; overflow: clip; color: var(--text-inv); padding: calc(var(--frame-inset) + 120px) 0 0;
  clip-path: inset(var(--frame-inset) var(--frame-inset) 0 var(--frame-inset) round var(--r-panel)); }
.wf-page .wf-hero .hero-frame { bottom: 0; }
.wf-page .wf-hero .hero-haze { background: radial-gradient(40% 50% at 78% 12%, rgba(99, 74, 252, .32) 0%, rgba(99, 74, 252, .08) 55%, transparent 75%); }
.wf-page .wf-hero-arc { /* Figma's purple horizon rising behind the cards, bottom-right */
  right: -18%; bottom: -70%; width: 85%; height: 120%; border-radius: 50%;
  background: radial-gradient(closest-side, #7B5CFF 0%, #5B3FF0 45%, rgba(91, 63, 240, .35) 70%, transparent 85%); filter: blur(10px); opacity: .9; }
.wf-page .wf-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: 600px; }
.wf-page .wf-hero-copy { text-align: left; align-items: flex-start; max-width: 560px; padding-bottom: 96px; }
.wf-page .wf-hero-copy h1 { color: #fff; font-size: clamp(42px, 4.6vw, 62px); line-height: 1.06; }
.wf-page .wf-hero-copy .lede { margin-top: 24px; max-width: 480px; }
.wf-page .wf-hero-copy .cta-group { margin-top: 36px; justify-content: flex-start; }

.wf-page .wf-hero-visual { position: relative; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; height: 620px; margin-top: -24px;   /* starts below the nav */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%); }
.wf-page .hc-col { overflow: hidden; }
.wf-page .hc-col-b { padding-top: 120px; }
.wf-page .hc-track { display: flex; flex-direction: column; gap: 22px; animation: hcUp 38s linear infinite; }
.wf-page .hc-col-b .hc-track { animation-name: hcDown; animation-duration: 44s; }
@keyframes hcUp { to { transform: translateY(calc(-50% - 11px)); } }
@keyframes hcDown { from { transform: translateY(calc(-50% - 11px)); } to { transform: translateY(0); } }
.wf-page .wf-hero-visual:hover .hc-track { animation-play-state: paused; }

/* supplied card artwork (outline baked into the image) */
.wf-page .hc { display: block; }
.wf-page .hc img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(20, 10, 90, .45)); }
@media (max-width: 1024px) { .wf-page .wf-hero-grid { gap: 32px; } .wf-page .wf-hero-visual { gap: 20px; } .wf-page .hc-track { gap: 20px; } }
@media (max-width: 900px) {
  .wf-page .wf-hero { padding-top: calc(var(--frame-inset) + 108px); }
  .wf-page .wf-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .wf-page .wf-hero-copy { padding-bottom: 0; }
  .wf-page .wf-hero-visual { height: 420px; margin: 8px 0 0; }
  .wf-page .hc-col-b { padding-top: 70px; }
  .wf-page .wf-hero-arc { width: 150%; right: -40%; bottom: -30%; height: 60%; }
}
@media (prefers-reduced-motion: reduce) { .wf-page .hc-track { animation: none; } }

/* ---------- 02 LIBRARY — sticky frosted filter bar + grid ---------- */
.wf-page .wf-library { padding-top: 48px; padding-bottom: calc(var(--section-y) * .6); }   /* 48 + bar's 32 = 80px from the hero to the search */
.wf-page .wf-filterbar { position: sticky; top: 72px; z-index: 20; padding: 32px 0 20px; margin-bottom: 32px; background: rgba(244, 244, 247, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.wf-page .wf-filter-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wf-page .wf-search { display: flex; align-items: center; gap: 8px; width: min(320px, 100%); height: 44px; padding: 0 14px; border-radius: var(--btn-radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-3); transition: box-shadow .2s; }
.wf-page .wf-search:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.wf-page .wf-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.wf-page .wf-search input { flex: 1; min-width: 0; border: 0; background: none; font: 400 15px/1 var(--font-body); color: var(--text); outline: none; }
.wf-page .wf-search input::placeholder { color: var(--text-3); }
.wf-page .wf-count { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.wf-page .wf-chips-row { position: relative; margin-top: 16px; }
/* 22 categories: one scrollable row (arrows + edge fades) keeps the sticky bar compact */
.wf-page .wf-chips { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.wf-page .wf-chips::-webkit-scrollbar { display: none; }
.wf-page .wf-chips-row.fade-l .wf-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px); mask-image: linear-gradient(90deg, transparent, #000 64px); }
.wf-page .wf-chips-row.fade-r .wf-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.wf-page .wf-chips-row.fade-l.fade-r .wf-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.wf-page .wf-chips-nav { position: absolute; z-index: 2; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--text); box-shadow: var(--shadow-sm), 0 6px 16px -6px rgba(11, 10, 20, .25); transition: transform .2s var(--ease-out); }
.wf-page .wf-chips-nav:hover { transform: scale(.94); }
.wf-page .wf-chips-nav[hidden] { display: none; }
.wf-page .wf-chips-nav svg { width: 14px; height: 14px; }
.wf-page .wf-chips-prev { left: -6px; } .wf-page .wf-chips-prev svg { transform: rotate(180deg); }
.wf-page .wf-chips-next { right: -6px; }
.wf-page .wf-chip { height: 40px; padding: 0 16px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 14px/1 var(--font-body); color: var(--text); white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.wf-page .wf-chip:hover { box-shadow: inset 0 0 0 1px var(--brand); transform: scale(.97); }
.wf-page .wf-chip .wf-cnt { color: #B4B4B4; margin-left: 2px; }
.wf-page .wf-chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.wf-page .wf-chip.is-on .wf-cnt { color: rgba(255, 255, 255, .55); }
@media (max-width: 767px) {
  .wf-page .wf-filterbar { top: 64px; padding: 16px 0 12px; }
  .wf-page .wf-filter-top { flex-wrap: wrap; }
  .wf-page .wf-search { width: 100%; }
  .wf-page .wf-chips-row { margin: 12px calc(var(--gutter) * -1) 0; }
  .wf-page .wf-chips { padding: 2px var(--gutter) 4px; }
  .wf-page .wf-chips-nav { display: none !important; }
}

.wf-page .wf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .wf-page .wf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .wf-page .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wf-page .wf-grid { grid-template-columns: 1fr; } }

.wf-page .wf-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 64px 16px; text-align: center; color: var(--text-2); }
.wf-page .wf-empty[hidden] { display: none; }
.wf-page .wf-more { display: flex; justify-content: center; margin-top: 32px; }
.wf-page .wf-more[hidden] { display: none; }
.wf-page .wf-more-btn { background: #E5E7FF; color: #4931DC; }   /* Figma "Light" button */
.wf-page .wf-more-btn:hover { background: #DCDFFF; }

/* ---------- 03 CTA — reuses the AMI page's Meet-in-Person card (css/agents.css) ---------- */
.wf-page .wf-meet-cta { justify-content: center; margin-top: 28px; }

/* Without the script (or once the failsafe has dropped .js) every card shows; the filter bar and Show more need the script. */
html:not(.js) .wf-page .wf-card[hidden] { display: flex; }
html:not(.js) .wf-page .wf-filterbar, html:not(.js) .wf-page .wf-more { display: none; }
