/* ── Industry heroes (assets/workflow-hero.js): one product window at work, in a shared 3D space.
   Healthcare, finance, manufacturing, real estate and retail use this one design system; each brings its own app name
   and accent (--accent-d for the dark theme, --accent-l for light). Labels are sentence case; figures are tabular.
   Contrast: body text and labels are ≥ 4.5:1 on the window in both themes. ── */

.wf-stage {
  --win: #0F121B; --raise: #161A27; --well: rgba(255,255,255,.035);
  --ink: #ECEFF5; --muted: #B1B9C9; --dim: #8F98AB;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.14);
  --ok: #45D6BE; --warn: #F5C065; --warn-ink: #FFD98A; --bad: #FF8A7A; --on-accent: #0A0D14;
  --accent: var(--accent-d, #7AB8FF);
  --ease: cubic-bezier(.2,.8,.2,1);
  position: relative; width: 100%; max-width: 660px; color: var(--ink); font: 400 15px/1.45 var(--font-body); pointer-events: auto; }
:root[data-theme="light"] .wf-stage {
  --win: #FFFFFF; --raise: #F6F8FB; --well: rgba(14,19,32,.03);
  --ink: #0E1320; --muted: #3F4859; --dim: #59627A;
  --line: rgba(14,19,32,.08); --line2: rgba(14,19,32,.16);
  --ok: #0B7A6D; --warn: #B45309; --warn-ink: #92400E; --bad: #B42318; --on-accent: #FFFFFF;
  --accent: var(--accent-l, #1D4ED8); }

/* placement: the left column on desktop; under the copy on phones */
.svc-hero .wf-stage { grid-row: 1; grid-column: 1; align-self: center; justify-self: start; }
@media (max-width: 900px) { .svc-hero .wf-stage { grid-row: 2; grid-column: 1; max-width: none; justify-self: stretch; margin-top: 6px; } }
:root[data-layout="mobile"] .svc-hero .wf-stage { grid-row: 2; grid-column: 1; max-width: none; justify-self: stretch; margin-top: 6px; }
.wf-stage [hidden] { display: none !important; }
.wf-wrap { display: grid; gap: 16px; }
.wf-stage button { font: inherit; color: inherit; }
.wf-stage button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ── the timeline: the journey's stages, each with how far it has played ── */
.wf-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--wf-n, 5), minmax(0, 1fr)); gap: 6px; }
.wf-step { position: relative; width: 100%; min-height: 44px; padding: 8px 2px 14px; border: 0; background: none; text-align: left; cursor: pointer;
  font: 500 14px/1.2 var(--font-body); color: var(--dim); transition: color .25s ease; }
.wf-step:hover, .wf-step.current, .wf-step.done { color: var(--ink); }
.wf-short { display: none; }
.wf-fill { position: absolute; left: 2px; right: 2px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--line2); overflow: hidden; pointer-events: none; }
.wf-fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.wf-step.current .wf-fill { height: 4px; bottom: 3.5px; }

/* ── the scene: one window, tilted in a shared 3D space, with one soft glow of the industry's accent behind it ── */
.wf-scene { position: relative; perspective: 1800px; perspective-origin: 60% 30%; margin-bottom: 50px; }   /* room for the event below the window */
.wf-scene::before { content: ""; position: absolute; inset: 12% 8% 6%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); filter: blur(30px); }
.wf-rig { position: relative; transform-style: preserve-3d;
  transform: rotateX(calc(7deg + var(--wf-rx, 0deg))) rotateY(calc(-12deg + var(--wf-ry, 0deg)));
  transition: transform .9s var(--ease); }
.wf-scene:focus-within .wf-rig { transform: none; }             /* keyboard readers get the window face-on */

.wf-window { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--raise), var(--win) 140px);
  box-shadow: 0 0 0 1px var(--line2), inset 0 1px 0 rgba(255,255,255,.06), 0 50px 90px -40px rgba(0,0,0,.9), 0 20px 40px -26px rgba(0,0,0,.7); }
.wf-window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent 32%, transparent 72%, rgba(255,255,255,.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
:root[data-theme="light"] .wf-window { box-shadow: 0 0 0 1px var(--line2), 0 40px 70px -40px rgba(20,32,70,.35), 0 14px 30px -20px rgba(20,32,70,.2); }

.wf-chrome { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wf-lights { display: flex; gap: 6px; }
.wf-lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.wf-app { font: 600 13.5px/1 var(--font-display); color: var(--ink); }
.wf-demo { margin-left: auto; color: var(--dim); }
.wf-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 500; }
.wf-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.wf-live[data-s="live"] { color: var(--ink); }
.wf-live[data-s="live"] i { background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: wf-live 2s ease-out infinite; }
@keyframes wf-live { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.wf-body-wrap { display: grid; grid-template-columns: 148px minmax(0, 1fr); position: relative; }
.wf-nav { list-style: none; margin: 0; padding: 12px 8px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.wf-navbtn { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  text-align: left; font-size: 14px !important; color: var(--muted) !important; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.wf-navbtn:hover { color: var(--ink) !important; background: var(--well); }
.wf-navbtn.on { color: var(--ink) !important; background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.wf-navico { display: grid; place-items: center; width: 18px; height: 18px; color: var(--dim); }
.wf-navbtn.on .wf-navico { color: var(--accent); }
.wf-navico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* the module in use: one at a time (exit, then enter); the window follows its height */
.wf-cards { display: grid; position: relative; overflow: hidden; transition: height .45s var(--ease); }
.wf-card { grid-area: 1 / 1; align-self: start; min-width: 0; position: relative; opacity: 0; visibility: hidden; transform: translate3d(0, 6px, 0);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms; }
.wf-card.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms ease 140ms, transform 360ms var(--ease) 140ms, visibility 0s; }
.wf-body { padding: 16px 18px 18px; }
.wf-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.wf-head h3 { margin: 0; font: 600 16.5px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.wf-meta { margin-left: auto; font-size: 13px; color: var(--dim); text-align: right; }

/* the ghost cursor: it does the work while the walkthrough plays */
.wf-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; margin: -3px 0 0 -4px; opacity: 0; pointer-events: none;
  transform: translate3d(70%, 140px, 0); transition: transform .75s cubic-bezier(.3,.7,.2,1), opacity .3s ease; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.wf-cursor.on { opacity: 1; }
.wf-cursor svg { width: 22px; height: 22px; }
.wf-cursor path { fill: var(--ink); stroke: var(--win); stroke-width: 1.4; stroke-linejoin: round; }
.wf-cursor::after { content: ""; position: absolute; left: 2px; top: 1px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; transform: scale(.3); }
.wf-cursor.click::after { animation: wf-click .55s ease-out; }
@keyframes wf-click { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* the hand-off: an event lifts out of the window, in front of it */
.wf-event { position: absolute; right: -24px; bottom: -40px; z-index: 6; display: flex; align-items: center; gap: 11px; max-width: 320px;
  padding: 11px 16px 11px 11px; border-radius: 13px; background: var(--raise);
  box-shadow: 0 0 0 1px var(--line2), 0 26px 50px -22px rgba(0,0,0,.9), 0 0 0 5px color-mix(in srgb, var(--accent) 7%, transparent);
  transform: translateZ(90px); }
.wf-event.pop { animation: wf-pop .75s var(--ease) both; }
@keyframes wf-pop { from { opacity: 0; transform: translateZ(20px) translateY(12px) scale(.96); } to { opacity: 1; transform: translateZ(90px); } }
.wf-event-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.wf-event[data-tone="warn"] .wf-event-ico { background: var(--warn); }
.wf-event-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wf-event-txt { display: grid; gap: 1px; min-width: 0; }
.wf-event-txt b { font: 600 14px/1.3 var(--font-body); color: var(--ink); }
.wf-event-txt small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
:root[data-theme="light"] .wf-event { box-shadow: 0 0 0 1px var(--line2), 0 22px 40px -22px rgba(20,32,70,.45); }

/* caption and controls */
.wf-dock { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-right: 0; }
.wf-caption { flex: 1; margin: 0; min-height: 2.9em; font: 400 16px/1.45 var(--font-body); color: var(--ink); }
.wf-controls { display: flex; gap: 6px; }
.wf-ctl { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 11px; border: 1px solid var(--line2); background: var(--well);
  color: var(--ink); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.wf-ctl:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.wf-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wf-ctl svg .fill { fill: currentColor; stroke: none; }
.wf-ctl[aria-disabled="true"] { opacity: .4; cursor: default; }
.wf-play { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ── module content: rows, chips, figures (shared by every industry) ── */
.wf-label { font-size: 13px; color: var(--dim); }
.wf-rows { display: grid; }
.wf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; margin: 0 -6px;
  border-top: 1px solid var(--line); border-radius: 8px; transition: background-color .35s ease; }
.wf-row:first-child { border-top-color: transparent; }
.wf-row[data-s="todo"] .wf-t { color: var(--muted); }
.wf-row[data-s="hot"] { background: color-mix(in srgb, var(--warn) 11%, transparent); }
.wf-row[data-s="good"] { background: color-mix(in srgb, var(--ok) 9%, transparent); }
.wf-ico { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 4px; border-radius: 9px; font: 600 11.5px/1 var(--font-display);
  letter-spacing: .02em; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.wf-m { min-width: 0; display: block; }
.wf-t { display: block; font: 500 14.5px/1.3 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.wf-s { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.wf-r { display: flex; align-items: center; gap: 10px; justify-self: end; }
.wf-v { font: 600 14.5px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.wf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font: 500 12.5px/1 var(--font-body); color: var(--muted); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.wf-chip:empty { display: none; }
.wf-chip[data-s="ok"] { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); box-shadow: none; }
.wf-chip[data-s="info"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: none; }
.wf-chip[data-s="warn"] { color: var(--warn-ink); background: color-mix(in srgb, var(--warn) 15%, transparent); box-shadow: none; }
.wf-chip[data-s="info"]::before, .wf-chip[data-s="warn"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wf-kpi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 10px; }
.wf-kpi b { font: 600 32px/1 var(--font-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--ink); }
.wf-kpi small { font-size: 14px; color: var(--muted); }
.wf-kpi .wf-chip { margin-left: auto; align-self: center; }
.wf-bar { height: 6px; border-radius: 6px; background: var(--line2); overflow: hidden; margin-bottom: 10px; }
.wf-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--ok)); transform: scaleX(var(--k, 0)); transform-origin: left; transition: transform .7s var(--ease); }
.wf-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wf-foot-n { margin-left: auto; font: 600 14px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.wf-proof { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.wf-proof .wf-label { display: block; color: var(--accent); }
.wf-proof p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.wf-proof b { color: var(--ink); font-weight: 600; }
.wf-state { margin: 12px 0 0; padding-left: 10px; border-left: 2px solid var(--accent); font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.wf-state:empty { display: none; }

/* co-pilot conversation (finance) */
.wf-q { margin: 0 0 8px 16%; padding: 10px 12px; border-radius: 12px 12px 4px 12px; background: color-mix(in srgb, var(--accent) 15%, transparent); font-size: 14px; }
.wf-a { margin: 0 8% 0 0; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.45; }
.wf-q:empty, .wf-a:empty { display: none; }
.wf-cites, .wf-approve { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* dispatch map (manufacturing) */
.wf-map { display: block; width: 100%; height: auto; }
.wf-route { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.wf-depot { fill: var(--accent); }
.wf-stop { fill: var(--win); stroke: var(--muted); stroke-width: 2; transition: fill .4s ease, stroke .4s ease; }
.wf-stop[data-s="done"] { fill: var(--ok); stroke: var(--ok); }

/* lead score (real estate) */
.wf-score { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.wf-ring { width: 92px; height: 92px; flex: none; transform: rotate(-90deg); }
.wf-ring circle { fill: none; stroke-width: 8; }
.wf-ring-bg { stroke: var(--line2); }
.wf-ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.wf-score-n b { display: block; font: 600 32px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.wf-score-n small { font-size: 13px; color: var(--muted); }
.wf-signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wf-signals li { position: relative; padding-left: 24px; font-size: 14px; color: var(--dim); transition: color .4s ease; }
.wf-signals li::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); transition: background-color .4s ease; }
.wf-signals li[data-s="on"] { color: var(--ink); }
.wf-signals li[data-s="on"]::before { background: var(--ok) no-repeat center / 70%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23071016' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: none; }

/* storefront, inventory, customers (retail) */
.wf-product { display: flex; align-items: center; gap: 12px; }
.wf-steps2 { display: flex; gap: 6px; margin: 12px 0; }
.wf-steps2 span { flex: 1; padding: 7px 8px; border-radius: 8px; text-align: center; font-size: 13px; color: var(--muted); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.wf-funnel { display: grid; gap: 7px; margin-top: 10px; }
.wf-f-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; }
.wf-f-row .wf-bar { margin: 0; }
.wf-forecast { margin-top: 10px; }
.wf-forecast svg { display: block; width: 100%; height: auto; }
.wf-forecast .wf-label { display: block; margin-top: 4px; }
.wf-actual { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.wf-fc { fill: none; stroke: var(--warn); stroke-width: 2; stroke-dasharray: 5 4; transition: opacity .5s ease; }
.wf-reorder { stroke: var(--bad); stroke-width: 1.4; stroke-dasharray: 3 3; }
.wf-months { display: flex; align-items: flex-end; gap: 8px; height: 72px; margin-bottom: 8px; }
.wf-months i { flex: 1; height: calc(var(--h) * 100%); min-height: 6px; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.wf-months i:last-child { background: var(--accent); }

/* booking, schedule, record (healthcare) */
.wf-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.wf-field b { font-weight: 600; color: var(--ink); }
.wf-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.wf-slot { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 7px 4px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; cursor: pointer;
  font: 600 15px/1.1 var(--font-display) !important; font-variant-numeric: tabular-nums; color: var(--ink); transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.wf-slot small { font: 500 12px/1 var(--font-body); color: var(--dim); }
.wf-slot:not([disabled]):hover { border-color: var(--accent); }
.wf-slot[disabled] { color: var(--dim) !important; border-style: dashed; cursor: not-allowed; }
.wf-slot[disabled] span { text-decoration: line-through; }
.wf-slot.picked { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.wf-slot.picked small { color: var(--on-accent); }
.wf-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: var(--ink); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.wf-status:empty { display: none; }
.wf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.wf-btn { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent) !important; font-weight: 600 !important; cursor: pointer; }
.wf-btn[aria-disabled="true"] { background: var(--line2); color: var(--muted) !important; cursor: not-allowed; }
.wf-btn.done { background: var(--ok); color: var(--on-accent) !important; cursor: default; }
.wf-link { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--accent) !important; font-weight: 500 !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wf-cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 5px; font-size: 13.5px; }
.wf-cal th[scope="col"] { padding: 0 4px 2px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--dim); }
.wf-cal th[scope="row"] { width: 52px; padding: 0; text-align: left; font: 600 13.5px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); }
.wf-cal td { height: 38px; padding: 0; border-radius: 8px; box-shadow: inset 0 -1px 0 var(--line); vertical-align: middle; }
.wf-appt { display: flex; align-items: center; width: 100%; height: 100%; min-height: 32px; padding: 0 9px; box-sizing: border-box; border: 0; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  font: 500 13.5px/1.2 var(--font-body) !important; color: var(--ink) !important; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-appt.risk { background: color-mix(in srgb, var(--warn) 15%, transparent); box-shadow: inset 3px 0 0 var(--warn); color: var(--warn-ink) !important; }
button.wf-appt { cursor: pointer; }
button.wf-appt.booked { background: color-mix(in srgb, var(--accent) 26%, transparent); box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px var(--accent); animation: wf-land .5s var(--ease) both; }
@keyframes wf-land { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wf-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.wf-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: var(--accent); }
.wf-sw.risk { background: var(--warn); }
.wf-explain { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--dim); }
.wf-details { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.wf-details dl { display: grid; gap: 6px; margin: 0; }
.wf-details dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.wf-details dt { color: var(--dim); }
.wf-details dd { margin: 0; color: var(--ink); }
.wf-tick { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); transition: background-color .35s ease; }
.wf-tick[data-s="done"] { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }

/* ── phones: the window face-on (a slight tilt only), no sidebar, the event as a brief toast; the whole hero fits one screen ── */
@media (max-width: 900px) {
  .wf-wrap { gap: 8px; }
  .wf-steps ol { gap: 4px; }
  .wf-step { min-height: 40px; padding: 6px 1px 12px; font-size: 13px; }
  .wf-name { display: none; }
  .wf-short { display: inline; }
  .wf-scene { perspective: 1400px; margin-bottom: 0; }
  .wf-scene::before { inset: 20% 10% 10%; filter: blur(24px); }
  .wf-rig { transform: rotateX(calc(3deg + var(--wf-rx, 0deg))); }
  .wf-window { border-radius: 12px; }
  .wf-chrome { height: 34px; padding: 0 12px; gap: 9px; font-size: 12px; }
  .wf-lights i { width: 7px; height: 7px; }
  .wf-app { font-size: 12.5px; }
  .wf-live { padding: 3px 8px; }
  .wf-body-wrap { grid-template-columns: minmax(0, 1fr); }
  .wf-nav { display: none; }
  .wf-body { padding: 11px 12px 12px; }
  .wf-head { margin-bottom: 8px; }
  .wf-head h3 { font-size: 15px; }
  .wf-meta { font-size: 12px; }
  .wf-row { padding: 6px 4px; margin: 0 -4px; gap: 9px; }
  .wf-ico { min-width: 28px; height: 28px; font-size: 10.5px; }
  .wf-t { font-size: 13.5px; }
  .wf-s { font-size: 12px; }
  .wf-v { font-size: 13.5px; }
  .wf-chip { min-height: 22px; padding: 3px 8px; font-size: 11.5px; }
  .wf-kpi { margin-bottom: 6px; }
  .wf-kpi b { font-size: 24px; }
  .wf-bar { margin-bottom: 6px; }
  .wf-foot { margin-top: 6px; padding-top: 6px; }
  .wf-proof { margin-top: 6px; padding: 7px 10px; }
  .wf-proof p { font-size: 12px; line-height: 1.35; }
  .wf-q, .wf-a { padding: 7px 10px; font-size: 13px; line-height: 1.4; }
  .wf-cites, .wf-approve { margin-top: 5px; gap: 5px; }
  .wf-state { margin-top: 8px; font-size: 12.5px; }
  .wf-ring { width: 72px; height: 72px; }
  .wf-score { margin-bottom: 8px; }
  .wf-score-n b { font-size: 24px; }
  .wf-signals { gap: 4px; }
  .wf-signals li { font-size: 13px; }
  .wf-months { height: 54px; }
  .wf-slots { gap: 6px; margin-top: 6px; }
  .wf-slot { min-height: 42px; font-size: 14px !important; }
  .wf-field { padding: 7px 10px; margin-bottom: 6px; }
  .wf-status { margin-top: 8px; padding: 7px 10px; font-size: 12.5px; }
  .wf-actions { margin-top: 8px; }
  .wf-btn, .wf-link { min-height: 40px; }
  .wf-cal { border-spacing: 3px; font-size: 12.5px; }
  .wf-cal th[scope="row"] { width: 44px; font-size: 12.5px; }
  .wf-cal td { height: 26px; }
  .wf-appt { min-height: 22px; padding: 0 6px; font-size: 12.5px !important; }
  .wf-key { margin-top: 6px; font-size: 12px; }
  .wf-explain { margin-top: 3px; font-size: 12px; }
  .wf-event { right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 8px 12px 8px 8px; transform: none; opacity: 0; }
  .wf-event.pop { animation: wf-toast 3.2s var(--ease) both; }
  .wf-event-ico { width: 26px; height: 26px; }
  .wf-event-txt b { font-size: 13px; }
  .wf-event-txt small { font-size: 12px; }
  .wf-dock { flex-wrap: wrap; gap: 6px; padding-top: 2px; }
  .wf-caption { flex: 1 1 100%; min-height: 2.8em; font-size: 15px; line-height: 1.4; }
  .wf-controls { width: 100%; justify-content: flex-end; }
  .wf-ctl { width: 40px; height: 40px; }
  :root[data-layout="mobile"][data-orient="portrait"] .ind-wf .svc-hero .lede { font-size: 14px; line-height: 1.42; margin-top: 8px; }
}
@keyframes wf-toast { 0% { opacity: 0; transform: translateY(8px); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  .wf-stage *, .wf-stage *::before, .wf-stage *::after { transition: none !important; animation: none !important; }
  .wf-cursor { display: none; }
  .wf-event { opacity: 1; }
}

/* ── the industry pages' hero CTAs: a filled primary, a quiet secondary, plain labels, no terminal cursor ── */
.ind-wf .svc-hero .hero-ctas .btn-terminal { font-family: var(--font-body); font-size: 15px; padding: 15px 22px; letter-spacing: 0; text-transform: none; }
.ind-wf .svc-hero .hero-ctas .btn-terminal::after { display: none; }
.ind-wf .svc-hero .hero-ctas .btn-terminal:not(.ghost) { background: var(--text); color: var(--bg); border-color: var(--text); }
.ind-wf .svc-hero .hero-ctas .btn-terminal:not(.ghost):hover { background: transparent; color: var(--text); }
.ind-wf .svc-hero .hero-ctas .btn-terminal.ghost { border-color: var(--hair-strong, var(--dim)); color: var(--dim); }
.ind-wf .svc-hero .hero-ctas .btn-terminal.ghost:hover { color: var(--text); border-color: var(--text); }

.wf-forecast svg path, .wf-forecast svg line { vector-effect: non-scaling-stroke; }
@media (max-width: 900px) { .wf-forecast svg { height: 56px; } }
