/* Hero animation: a first-time Flowhow user describes the company, presses Send and watches the workspace build.
   The scene is laid out at a fixed size (1100 × 720, or 640 × 760 in the compact layout used on narrow screens)
   and scaled to the window with --s, set by onboarding.js. Colours follow the Flowhow app. */
.ob { --sage: #f3f6f1; --line: #e9e9e6; --ink: #26252c; --text: #37363e; --muted: #6b6a73; --faint: #9a99a1;
  --ai: #cd9ef9; --ai-bg: #f3ebfc; --ai-line: #e2cdf8; --ai-ink: #5b3a86;
  --lime: #b9f462;
  --sans: "InterVariable", "Inter", system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  position: relative; aspect-ratio: 1100 / 720; overflow: hidden; background: var(--sage); }
.ob.is-compact { aspect-ratio: 640 / 760; }
.ob-stage { position: absolute; left: 0; top: 0; width: 1100px; height: 720px; transform-origin: 0 0; transform: scale(var(--s, 1));
  display: flex; padding: 12px 12px 12px 0; font: 400 13px/1.45 var(--sans); letter-spacing: -.01em; color: var(--text);
  -webkit-font-smoothing: antialiased; transition: opacity .7s ease; }
/* Inter with the homepage's settings (index.html body). The `font` shorthand resets these, so all scene elements re-inherit them; Geist Mono text keeps its defaults. */
.ob .ob-stage, .ob .ob-stage * { font-feature-settings: "cv01", "cv05", "cv09", "cv11"; font-variation-settings: "opsz" 14; }
.ob .ob-stage :is(.ob-kind, .ob-dg .n, .ob-dg .ini, .ob-row-l, .ob-ini) { font-feature-settings: normal; font-variation-settings: normal; }
.ob.is-compact .ob-stage { width: 640px; height: 760px; padding-left: 12px; }
.ob-stage.fade { opacity: 0; }
.ob.is-reset .ob-stage *, .ob.is-reset .ob-stage *::after { transition: none !important; }
/* The window frame styles screenshots with ".shot img"; undo that for the scene's own images. */
.shot .ob img { width: auto; aspect-ratio: auto; background: none; border-radius: 0; object-fit: contain; }
.shot .ob .ob-tile img { width: 13px; height: 13px; }
.ob iconify-icon { display: inline-block; width: 1em; height: 1em; flex: none; }

/* App frame: sidebar and top bar follow the Flowhow prototype (flo-react: AppSidebar, AppHeader).
   Sidebar 232px wide with 12px around it; it folds into a 32px icon rail when the build starts. */
.ob-side { --fg: #171b14; --fg-muted: #606a59; --acc: #e2e8de;
  width: 256px; flex: none; display: flex; flex-direction: column; padding: 0 12px; overflow: hidden; color: var(--fg); font-size: 14px; letter-spacing: -.01em;
  transition: width .7s var(--ease), padding .7s var(--ease); }
.ob.is-rail .ob-side { width: 48px; padding: 0 8px; }
.ob.is-compact .ob-side { display: none; }
.ob-side iconify-icon { font-size: 16px; }
.ob-side .chev, .ob-side .sel { margin-left: auto; color: var(--fg-muted); transition: opacity .2s ease; }
.ob-side .chev { font-size: 14px; }
.ob-logo { position: relative; flex: none; display: flex; align-items: center; height: 36px; margin: 8px 0 16px; padding: 0 4px; }
.shot .ob .ob-logo .full { height: 26px; }
.shot .ob .ob-logo .mark { height: 24px; }
.ob-logo img { display: block; width: auto; }
.ob-logo .full { transition: opacity .25s ease; }
.ob-logo .mark { position: absolute; left: 4px; top: 6px; opacity: 0; transition: opacity .35s ease .1s; }
.ob.is-rail .ob-logo .full { opacity: 0; }
.ob.is-rail .ob-logo .mark { opacity: 1; }
.ob-acct, .ob-nav > div, .ob-user { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 8px; white-space: nowrap; }
.ob-acct { flex: none; padding-left: 6px; font-weight: 500; transition: padding .7s var(--ease); }
.ob.is-rail .ob-acct { padding-left: 4px; }
.ob-av { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: #c5f277; color: #050605; font: 500 10px/1 var(--sans); }
.ob-sep { flex: none; height: 1px; margin: 10px 0 8px; background: var(--acc); }
.ob-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
/* Items shrink with the sidebar (their hidden labels must not keep them wide), so the active one is a 32px square when folded */
.ob-nav > div { min-width: 0; overflow: hidden; }
.ob-nav > div.on { background: var(--acc); font-weight: 500; }
.ob-user { flex: none; margin: auto 0 0; top: 4px; height: 48px; font-weight: 500; transition: padding .7s var(--ease); }
.ob.is-rail .ob-user { padding-left: 4px; }
/* max-width: none stops the page's img rule squeezing the photo when the sidebar is folded */
.ob-user .ob-av, .shot .ob .ob-user .ob-av { width: 24px; height: 24px; max-width: none; border-radius: 8px; object-fit: cover; background: #e2e8de; }
.ob-nav .lbl, .ob-side .nm { transition: opacity .2s ease; }
.ob.is-rail .ob-nav .lbl, .ob.is-rail .ob-side .nm, .ob.is-rail .ob-side .chev, .ob.is-rail .ob-side .sel { opacity: 0; }
/* New items while the sidebar is folded: a small green dot on the icon */
.ob.is-rail .ob-nav > div.has-new::after { content: ""; position: absolute; top: 5px; left: 19px; width: 6px; height: 6px; border-radius: 50%; background: #9c6ade; box-shadow: 0 0 0 2px #f3f6f1; animation: ob-pop .45s var(--spring) both; }

/* Main panel: white, rounded, lifted off the sage frame by a soft shadow */
.ob-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); }
.ob-top { flex: none; display: flex; align-items: center; gap: 8px; height: 52px; padding: 4px 16px 0; color: #171b14; }
.ob-ib { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; font-size: 16px; }
/* Chat button: bordered like the search field, with a slight shadow */
.ob-chat { border: 1px solid #e2e8de; background: #fff; box-shadow: 0 1px 2px rgb(38 37 44 / .05), 0 2px 6px -3px rgb(38 37 44 / .08); }
.ob-top > .ob-ib:first-child { margin: 0 0 0 -4px; position: relative; top: -1px; font-size: 14px; }
.ob-top .crumb { flex: 1; min-width: 0; margin-left: -8px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.ob-top .crumb .m { color: #606a59; }
.ob-top .crumb iconify-icon { font-size: 12px; color: #606a59; }
.ob-top .crumb b { font-weight: 500; color: #171b14; }
.ob-search { display: flex; align-items: center; gap: 8px; width: 256px; height: 32px; padding: 0 10px; border: 1px solid #e2e8de; border-radius: 8px; color: #606a59; font-size: 14px; }
.ob-search iconify-icon { font-size: 16px; }
.ob-search kbd { margin-left: auto; height: 20px; padding: 0 4px; border-radius: 6px; background: #f3f6f1; font: 500 12px/20px var(--sans); color: #606a59; }
.ob.is-compact .ob-search { width: 200px; }
.ob-body { position: relative; flex: 1; min-height: 0; }
.ob-welcome, .ob-build { position: absolute; inset: 0; transition: opacity .35s ease, transform .7s var(--ease); }
.ob-build { display: flex; opacity: 0; transform: translateY(14px); pointer-events: none; }
.ob.is-build .ob-welcome { opacity: 0; transform: translateY(-16px) scale(.985); pointer-events: none; }
.ob.is-build .ob-build { opacity: 1; transform: none; transition-delay: .18s; }

/* Welcome */
.ob-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 40px 40px; }
.ob-wi { position: relative; isolation: isolate; width: 100%; max-width: 600px; }
/* A soft purple glow behind the message box */
.ob-wi::before { content: ""; position: absolute; z-index: -1; left: -90px; right: -90px; top: -20px; height: 280px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(180 128 246 / .34), rgb(195 148 248 / .24) 55%, rgb(210 170 250 / .1) 80%, rgb(220 190 251 / 0)); filter: blur(16px); }
.ob-h1 { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 22px; font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.ob-composer { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(38 37 44 / .04), 0 12px 32px -18px rgb(38 37 44 / .25); transition: border-color .25s, box-shadow .25s; }
.ob-composer.focus { border-color: var(--ai-line); box-shadow: 0 0 0 4px var(--ai-bg), 0 12px 32px -18px rgb(38 37 44 / .25); }
.ob-input { height: 92px; padding: 14px 16px 0; font-size: 14px; line-height: 1.55; color: var(--text); overflow: hidden; }
.ob-input .ph { color: var(--faint); }
.ob-caret { display: inline-block; width: 1.5px; height: 17px; margin-left: 1px; vertical-align: -3px; background: #a46ce8; animation: ob-blink 1s step-end infinite; }
/* Attached documents: chips that upload one by one next to the paperclip, each with a short upload bar */
.ob-files { flex: 1 1 auto; min-width: 0; margin-left: -4px; display: flex; gap: 6px; overflow: hidden; }
.ob-file { position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 5px; border: 1px solid var(--line); border-radius: 7px; background: #fbfbfa; overflow: hidden; animation: ob-in .4s var(--ease) both; }
.ob-file .ty { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font: 600 5px/1 var(--mono); letter-spacing: .02em; color: #fff; }
.ob-file .ty.pdf { background: #e5484d; } .ob-file .ty.doc { background: #2b6fd6; } .ob-file .ty.xls { background: #1f9d55; }
.ob-file .nm { font-size: 10.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-file .bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: #a46ce8; opacity: 0; animation: ob-upload .9s ease-out .15s both; }
.ob-actions { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; }
.ob-plus { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 13px; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
/* Pressed: the button sinks and darkens while the pointer clicks it */
.ob-plus.press { transform: scale(.88); background: #efefec; border-color: #d9d9d4; color: var(--ink); }
/* Send: a black square icon button with an up arrow, the same size as the attach button */
.ob-send { margin-left: auto; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 7px; font-size: 14px; background: var(--ink); color: #fff; transition: transform .2s var(--ease), background .2s, opacity .3s; }
.ob-send.idle { opacity: .35; }
.ob-send.press { transform: scale(.95); background: #000; }
.ob-templates { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.ob-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-weight: 500; }
.ob.is-compact .ob-welcome { padding: 24px 22px 40px; }
.ob.is-compact .ob-h1 { font-size: 22px; }
.ob.is-compact .ob-input { height: 130px; }


/* Build: the workspace board fills the app panel */
.ob-board { flex: 1; min-width: 0; padding: 2px 22px 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ob-h2 { margin: 0 0 3px; font-size: 19px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; color: var(--ink); }
/* Animated dots after the build title: each fades up in turn */
.ob-dots i { display: inline-block; font-style: normal; animation: ob-dot 1.2s ease-in-out infinite; }
.ob-dots i:nth-child(2) { animation-delay: .15s; } .ob-dots i:nth-child(3) { animation-delay: .3s; }
.ob-bar { position: relative; flex: none; width: 260px; height: 5px; border-radius: 999px; background: #eeefeb; overflow: hidden; }
.ob-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--lime); transition: width .8s cubic-bezier(.33, 1, .68, 1); }

.ob-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 216px; gap: 10px; }
.ob-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  --card-shadow: 0 1px 2px rgb(38 37 44 / .04), 0 4px 12px -6px rgb(38 37 44 / .1); box-shadow: var(--card-shadow); }
.ob-card.wide { grid-column: 1 / -1; }
/* Skeleton: shimmer bars over the card until it is planned; then they fade and the card's own content fades in */
.ob-card > * { transition: opacity .35s ease; }
.ob-card.sk > :not(.ob-sk) { opacity: 0; }
.ob-sk { position: absolute; inset: 12px 13px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; opacity: 0; }
.ob-card.sk > .ob-sk { opacity: 1; }
.ob-sk .s { display: block; flex: none; height: 9px; border-radius: 4px; background: linear-gradient(100deg, #f3f6f1 30%, #fbfcfa 50%, #f3f6f1 70%); background-size: 200% 100%; animation: ob-slide 1.6s linear infinite; }
.ob-sk .tt { display: grid; gap: 7px; padding: 4px 0 2px; }
/* Flow: one bar per swimlane, running across like the diagram's lanes */
.ob-sk .st { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ob-sk .st .s { height: auto; border-radius: 8px; }
.ob-sk .rows { display: grid; gap: 6px; margin-top: 3px; }
.ob-sk .rows .s { height: 28px; border-radius: 7px; }
.ob-card.just-ready { animation: ob-ready 1.4s ease; }
.ob-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ob-kind { display: flex; align-items: center; gap: 5px; font: 500 9.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ob-kind iconify-icon { font-size: 11.5px; }
/* Card status: a small circle. Queued: a dashed ring. Building: a black ring that fills with progress. Ready: neon green (the site's lime) with a bold black tick. */
.ob-status { position: relative; flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed #c9c8c1; color: #1f2226;
  transition: background-color .4s ease, border-color .4s ease; }
.ob-status.pop { animation: ob-pop .45s var(--spring); }
.ob-status svg { width: 9px; height: 9px; animation: ob-pop .45s var(--spring) .05s both; }
.ob-card[data-s="building"] .ob-status { border: 0; background: conic-gradient(var(--ink) calc(var(--p, 0) * 1%), #d9d9d4 0); }
.ob-card[data-s="building"] .ob-status::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #fff; }
.ob-card[data-s="ready"] .ob-status { border: 0; background: var(--lime); color: var(--ink); }
.ob-h3 { margin: 0; min-height: 19px; font-size: 13.5px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-h3 .ob-caret { height: 14px; vertical-align: -2px; }
/* Card progress: a thin bar along the bottom edge; the current step shows in the footer until the card is ready. */
.ob-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.ob-prog .ob-bar { width: 100%; height: 100%; border-radius: 0; background: transparent; }
.ob-prog .ob-bar i { background: var(--ink); transition-duration: .7s; }
.ob-prog { transition: opacity .4s ease .2s; }
.ob-card[data-s="ready"] .ob-prog { opacity: 0; }
.ob-prev { flex: 1; min-height: 0; }
.ob-card:not(.wide) .ob-prev { margin-top: 3px; }

/* Card previews */
/* Flow: swimlane diagram (SVG), styled like the prototype's diagram: sage bands, grey-outlined steps, tool logo on top, dark connectors */
.ob-dg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Phones: bottom cards just tall enough for the team card's wrapped avatars; the diagram (drawn for phones in onboarding.js) gets the rest */
.ob.is-compact .ob-cards { grid-template-rows: minmax(0, 1fr) 256px; }
.ob-dg.cmp .lbl { font-size: 8.5px; }
.ob-dg.cmp .lane { font-size: 8.5px; }
.ob-dg.cmp .stg { font-size: 10px; }
.ob-dg .ln { stroke: #ebefe8; stroke-width: 1; fill: none; }
.ob-dg .frame { fill: none; stroke: #ebefe8; }
.ob-dg .stg { font-size: 11px; font-weight: 500; fill: var(--ink); }
.ob-dg .stg .n { font: 400 11px var(--mono); fill: var(--faint); }
.ob-dg .ini { font: 500 8px var(--mono); fill: var(--ai-ink); text-anchor: middle; }
.ob-dg .lane { font-size: 10px; font-weight: 500; fill: var(--text); text-anchor: middle; }
/* Steps: white with a hairline and a soft shadow, like the rows in the Space cards */
.ob-dg .box { fill: #fff; stroke: var(--line); stroke-width: 1; filter: url(#dg-shadow); }
.ob-dg .lbl { font-size: 9.5px; font-weight: 500; fill: var(--ink); text-anchor: middle; }
.ob-dg .badge { fill: #fff; stroke: #e2e8de; }
.ob-dg .dg-b { opacity: 0; transition: opacity .45s ease; }
.ob-dg .dg-l { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .6s var(--ease); }
/* Stage columns: the divider draws down from the header as the title fades in */
.ob-dg .dg-s .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.ob-dg .dg-s .stg { opacity: 0; transition: opacity .4s ease; }
.ob-dg .dg-s.in .ln { stroke-dashoffset: 0; }
.ob-dg .dg-s.in .stg { opacity: 1; }
.ob-dg .dg-n { opacity: 0; transform: scale(.85); transform-box: fill-box; transform-origin: center; transition: opacity .35s ease, transform .45s var(--spring); }
.ob-dg .dg-e { fill: none; stroke: #a7ada3; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s linear; }
/* Playback, as in the prototype: a purple comet runs along each connector and the next step glows as it arrives */
.ob-dg .dg-trail-halo { filter: blur(2.5px); opacity: .4; }
.ob-dg .dg-trail-core { filter: blur(.3px) drop-shadow(0 0 3px #a78bfa); }
.ob-dg .dg-glow { fill: none; stroke: #a78bfa; stroke-width: 6; filter: blur(5px); opacity: 0; animation: dg-glow 1.3s ease forwards; }
@keyframes dg-glow { 30% { opacity: .4; } 100% { opacity: 0; } }
.ob-dg :is(.dg-b, .dg-l, .dg-n, .dg-e).in { opacity: 1; transform: none; stroke-dashoffset: 0; }
.ob-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.ob-row-l { margin: 0 0 5px; font: 500 9px/12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ob-wrap + .ob-row-l { margin-top: 10px; }
.ob-ini, .ob-tile { display: grid; place-items: center; width: 23px; height: 23px; animation: ob-pop .45s var(--spring) both; }
.ob-ini { border-radius: 50%; background: var(--ai-bg); color: var(--ai-ink); font: 500 8px/1 var(--mono); }
.ob-tile { border: 1px solid var(--line); border-radius: 7px; background: #fff; font: 600 11px/1 var(--sans); color: var(--muted); }
.ob-wrap + .ob-wrap { margin-top: 8px; }
.ob-page { display: flex; align-items: center; gap: 7px; height: 30px; margin-bottom: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgb(38 37 44 / .05), 0 2px 6px -3px rgb(38 37 44 / .08); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; animation: ob-in .5s var(--ease) both; transition: border-color .5s ease; }
.ob-page iconify-icon { color: #606a59; font-size: 13px; transition: color .4s ease; }

/* Pointer */
.ob-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 20px; height: 20px; pointer-events: none; opacity: 0; transition: opacity .3s;
  transform: translate(var(--cx, 900px), var(--cy, 620px)); }
.ob-cursor.on { opacity: 1; }
.ob-cursor.move { transition: opacity .3s, transform var(--cd, .8s) cubic-bezier(.65, 0, .25, 1); }
.ob-cursor svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .3)); transition: transform .12s; }
.ob-cursor.click svg { transform: scale(.82); }

/* Text that changes (titles, breadcrumb) eases in instead of snapping */
.ob .swap { animation: ob-swap .5s var(--ease); }

@keyframes ob-blink { 50% { opacity: 0; } }
@keyframes ob-upload { 0% { width: 0; opacity: 1; } 80% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
@keyframes ob-dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes ob-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes ob-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes ob-swap { from { opacity: 0; transform: translateY(4px); } }
@keyframes ob-slide { to { background-position: -200% 0; } }
@keyframes ob-ready { 0% { box-shadow: 0 0 0 0 #b9f46200, var(--card-shadow); } 25% { box-shadow: 0 0 0 4px #b9f46255, var(--card-shadow); border-color: #b5d985; } 100% { box-shadow: 0 0 0 0 #b9f46200, var(--card-shadow); } }
@media (prefers-reduced-motion: reduce) { .ob *, .ob *::before, .ob *::after { animation: none !important; transition: none !important; } }
