/* Homepage v2 — "AI Workers That Get Business Work Done" (Delegenix AI Workers SaaS Homepage.png) */
.home .hero2 h1 { max-width: 17ch; }
.hero2-points > span > span { display: block; line-height: 1.35; }
.hero2-points > span { align-items: flex-start; }
.hero2-points small { color: #aebbd8; font-size: 0.85rem; }

/* Hero diagram: inputs → worker → outcome, request on top */
.hw-art { display: none; position: relative; grid-template-columns: 1fr 1.05fr 1.1fr; grid-template-rows: auto 1fr; gap: 14px 26px; align-items: center; }
@media (min-width: 1000px) { .hw-art { display: grid; } }
.hw-art b { display: block; font-size: 0.82rem; color: #0f1b33; }
.hw-art span, .hw-art li { font-size: 0.72rem; color: #56607a; line-height: 1.35; }
.hw-req { grid-column: 2 / 4; justify-self: start; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 270px; position: relative; }
.hw-req::after { content: ""; position: absolute; left: 40px; top: 100%; width: 2px; height: 16px; background: rgba(160,180,255,.6); }
.hw-ico { width: 34px; height: 34px; border-radius: 8px; background: #e8f0fe; color: #1662e8; display: grid; place-items: center; flex: none; }
.hw-ico svg { width: 18px; height: 18px; }
.hw-inputs { grid-row: 2; display: flex; flex-direction: column; gap: 12px; }
.hw-in { position: relative; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 9px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.hw-in svg { width: 20px; height: 20px; color: #1662e8; flex: none; }
.hw-in::after { content: ""; position: absolute; left: 100%; top: 50%; width: 26px; border-top: 2px dashed rgba(160,180,255,.6); }
.hw-worker { grid-row: 2; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 0 0 3px rgba(80,140,255,.45), 0 20px 50px rgba(0,0,0,.4); position: relative; }
.hw-worker::after { content: ""; position: absolute; left: 100%; top: 50%; width: 26px; border-top: 2px solid rgba(160,180,255,.7); }
.hw-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #0f1b33; font-size: 0.95rem; }
.hw-brand svg { width: 20px; height: 20px; }
.hw-worker > b { font-size: 0.9rem; margin: 2px 0 8px; }
.hw-art ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hw-art li { position: relative; padding-left: 18px; }
.hw-art li::before { content: "✓"; position: absolute; left: 0; color: #1f9a55; font-weight: 700; }
.hw-out { grid-row: 2; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.hw-out > b { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 10px; }
.hw-ok { width: 24px; height: 24px; border-radius: 50%; background: #1f9a55; color: #fff !important; display: grid; place-items: center; font-size: 0.8rem !important; }
.hw-out li { background: #f2f5fa; border-radius: 6px; padding: 6px 8px 6px 24px; }
.hw-out li::before { left: 8px; top: 6px; color: #1662e8; }

/* Outcome Workers vs AI Managers */
.kind { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
@media (min-width: 640px) { .kind { grid-template-columns: minmax(0, 1fr) 200px; align-items: center; } }
.kind.mgr { background: color-mix(in srgb, #7c5ce0 6%, var(--surface)); }
.kind-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.kind-head h3 { margin: 0; font-size: 1.5rem; }
.kind-main p { color: var(--muted); }
.kind-list { display: flex; flex-direction: column; gap: 8px; }
.kind-list span { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 0.88rem; font-weight: 500; }
.kind-list span::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; flex: none; }
.kind.mgr .kind-list span::before { background: #e3f5ec; color: #1f7a4d; }
.kind-list span.warn::before { content: "!"; background: #fdeceb; color: #b3261e; }

/* Featured outcome table extras */
.st-od { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fdeceb; color: #b3261e; font-size: 0.72rem; font-weight: 600; }
.act-chip { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }

/* 3-screen product demo */
.demo3-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.demo3-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 6px; }
.demo3-head p { margin: 0; }
.demo3-nav { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 1.2rem; }
.icon-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.d3-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .d3-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.d3-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); min-width: 0; }
.d3-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 12px; }
.d3-card h3 .dot { width: 24px; height: 24px; border-radius: 50%; background: #1f9a55; color: #fff; display: grid; place-items: center; font-size: .75rem; }
.d3-card h3 .dot.blue { background: var(--accent); }
.d3-in { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 560px) { .d3-in { grid-template-columns: 1fr; } }
.d3-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.d3-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.d3-kpis b { display: block; font-size: 1.25rem; }
.d3-kpis span { font-size: 0.72rem; color: var(--muted); }
.d3-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.d3-bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.d3-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem; }
.d3-check li { display: flex; gap: 8px; align-items: flex-start; }
.d3-check li::before { content: "✓"; color: #1f9a55; font-weight: 800; }
.d3-check li.todo::before { content: "○"; color: var(--warn); }
.d3-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.d3-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.d3-steps li > span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.d3-steps b { display: block; font-size: 0.92rem; }
.d3-steps small { color: var(--muted); font-size: 0.8rem; }
.d3-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.d3-src em { font-style: normal; font-size: 0.72rem; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; }
.d3-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.d3-table th { text-align: left; background: var(--surface-2); padding: 7px 8px; }
.d3-table td { padding: 8px; border-top: 1px solid var(--line); }
.d3-cta { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Fit + consulting */
.fit2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin-top: 8px; }
.fit2 h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 10px; }
.fit-ok, .fit-warn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.85rem; flex: none; }
.fit-ok { background: #1f9a55; }
.fit-warn { background: #e07a10; }
.ticks-sm { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.ticks-sm li { position: relative; padding-left: 20px; }
.ticks-sm li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.opts2 { display: grid; gap: 14px; margin-top: 8px; }
.opt2 { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.opt2 h3 { font-size: 1rem; margin: 0 0 4px; }
.opt2 p { color: var(--muted); font-size: 0.88rem; margin: 0 0 10px; }

/* Final CTA band */
.cta.final { background: linear-gradient(135deg, #0a1733, #0d2150); }
.cta.final h2 { color: #fff; }
.cta.final p { color: #c9d4ec; }
.cta.final .btn:first-child { background: var(--accent); color: #fff; }
.pr-cta-ghost { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.7); }

/* "Why not just use ChatGPT?" comparison (moved from ai-workers.html) */
.why-ai h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 16px; }
.cmp2 { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
.cmp2 th, .cmp2 td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp2 tr:last-child td { border-bottom: 0; }
.cmp2 th { background: var(--surface-2); font-size: 0.88rem; }
.cmp2 th.us { background: var(--accent); color: var(--accent-ink); }
.cmp2 td.us { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); font-weight: 500; }
.why-lead { max-width: 52rem; margin: -6px 0 18px; }

/* "What does a tested AI worker look like?": three cards under the comparison */
.tw-h { margin: 26px 0 4px; font-size: 1.15rem; }
.tw-sub { margin: 0 0 12px; }
.tw-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.tw-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tw-card p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.tw-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.tw-exp { color: var(--muted); }
.tw-exp b { color: var(--text); }
.tw-cta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.tw-cta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.tw-cta span { font-size: 0.88rem; color: var(--muted); }
#why { scroll-margin-top: 72px; }

/* Homepage demo screen 1: the request and outcome in a team chat or AI assistant (home-demo.js chatScreen) */
.ch-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ch-tabs button { flex: 1 1 auto; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 0.82rem var(--font); cursor: pointer; white-space: nowrap; }
.ch-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.ch-win { --ch: #5b5fc7; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.ch-win.ch-slack { --ch: #611f69; }
.ch-win.ch-ai { --ch: #d97757; }
.ch-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 0.76rem; font-weight: 600; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); border-top: 3px solid var(--ch); }
.ch-bar i { width: 10px; height: 10px; border-radius: 3px; background: var(--ch); }
.ch-msgs { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.ch-msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.ch-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.ch-av.bot { border-radius: 8px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ch-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 0.74rem; color: var(--muted); }
.ch-meta b { color: var(--text); font-size: 0.82rem; }
.ch-meta time { margin-left: auto; }
.ch-app { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.ch-msg p { margin: 3px 0 0; font-size: 0.88rem; line-height: 1.45; }
.ch-at { color: var(--ch); font-weight: 600; }
.ch-tool { display: inline-block; margin-top: 4px; font-size: 0.72rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 8px; }
.ch-card { margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ch-card-h { font-size: 0.9rem; }
.ch-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.ch-card li b { display: block; color: var(--text); font-size: 0.8rem; }
.ch-card p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.ch-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ch-btns button { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 0.78rem var(--font); cursor: pointer; }
.ch-btns button.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ch-btns button:hover { border-color: var(--accent); }
.ch-card small { font-size: 0.72rem; color: var(--muted); }
.ch-note { margin: 8px 0 0; }

/* Homepage demo screen 3: full report, drafts and the next-morning update in the same app */
.ch-thread { font-size: 0.72rem; color: var(--muted); padding: 6px 10px; border-left: 3px solid var(--line); background: var(--surface); border-radius: 0 6px 6px 0; }
.ch-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; margin-top: 2px; }
.ch-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.ch-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.35; }
.ch-table tr:last-child td { border-bottom: 0; }
.ch-table td:first-child { font-weight: 600; }
.ch-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-src { border: 1px solid var(--line); background: var(--surface-2); color: var(--accent); border-radius: 999px; padding: 1px 8px; font: 600 0.68rem var(--font); cursor: pointer; white-space: nowrap; }
.ch-src:hover { border-color: var(--accent); }
.ch-drafts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-top: 6px; }
.ch-draft { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.ch-draft-h { display: flex; flex-direction: column; gap: 1px; }
.ch-draft-h b { font-size: 0.8rem; }
.ch-draft-h span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.ch-draft p { margin: 0; font-size: 0.78rem; font-style: italic; color: var(--muted); }
.ch-draft.hold { border-style: dashed; }
.ch-hold { font-size: 0.74rem; font-weight: 600; color: var(--warn); }
.ch-ok { font-size: 0.74rem; font-weight: 600; color: var(--ok); }
.ch-later { display: flex; align-items: center; gap: 10px; font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ch-later::before, .ch-later::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 520px) {
  .ch-table tr:first-child { display: none; }
  .ch-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .ch-table tr:last-child { border-bottom: 0; }
  .ch-table td { padding: 0; border: 0; }
  .ch-table td:last-child { grid-column: 1 / -1; color: var(--muted); }
}
.d3-free { margin: 10px 0 0; }

/* Hero diagram: where requests come from and where outcomes go back */
.hw-req .hw-via { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.hw-via em { font-style: normal; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #56607a; margin-right: 2px; }
.hw-via i { font-style: normal; font-size: 0.66rem; font-weight: 600; color: #1662e8; background: #eaf1fe; padding: 1px 7px; border-radius: 999px; }
.hw-back { display: block; margin: -6px 0 10px 30px; font-size: 0.72rem; color: #56607a; }

/* "View evidence" on demo screen 1 highlights the steps that gathered it */
.d3-steps li { border-radius: 8px; transition: background 0.3s, box-shadow 0.3s; }
.d3-steps li.hl { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 9%, var(--surface)); outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 6px; }
span.ch-src { cursor: default; }
.tw-q { margin: 0 0 2px; font-size: 1rem; color: var(--accent); }

/* Hero diagram: department carousel (hero-rotator.js) */
.hw-depts { grid-row: 1; grid-column: 1; align-self: center; display: flex; flex-direction: column; gap: 4px; color: #c9d4ec; }
.hw-art .hw-dept-l { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9fbaff; }
.hw-art .hw-dept { font-size: 1.05rem; color: #fff; }
.hw-dots { display: flex; gap: 6px; margin-top: 4px; }
.hw-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(160, 180, 255, 0.4); cursor: pointer; }
.hw-dots button[aria-pressed="true"] { width: 22px; border-radius: 5px; background: #ffd25e; }
.hw-dots button:focus-visible { outline: 2px solid #ffd25e; outline-offset: 2px; }
.hw-art [data-hw="req"], .hw-art [data-hw="apps"], .hw-art [data-hw="out"], .hw-art .hw-dept { transition: opacity 0.22s ease; }
.hw-art.hw-swap [data-hw="req"], .hw-art.hw-swap [data-hw="apps"], .hw-art.hw-swap [data-hw="out"], .hw-art.hw-swap .hw-dept { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hw-art [data-hw] , .hw-art .hw-dept { transition: none; } }

/* Hero: compact department carousel under 1000px (the diagram is hidden there) */
.hw-mini { display: none; }
@media (max-width: 999px) { .hw-mini { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; max-width: 520px; } }
.hwm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-mini .hw-dept-l { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9fbaff; }
.hw-mini .hw-dept { color: #fff; font-size: 1rem; }
.hwm-head .hw-dots { margin: 0 0 0 auto; }
.hwm-card { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 4px; }
.hwm-card > b { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #0f1b33; }
.hwm-card > span { font-size: 0.85rem; color: #33405c; line-height: 1.4; }
.hwm-card .hw-via { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.hwm-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.hwm-card li { position: relative; font-size: 0.8rem; color: #33405c; background: #f2f5fa; border-radius: 6px; padding: 6px 8px 6px 24px; line-height: 1.35; }
.hwm-card li::before { content: "✓"; position: absolute; left: 8px; top: 6px; color: #1662e8; font-weight: 700; }
.hwm-mid { color: #c9d4ec; font-size: 0.78rem; padding-left: 14px; line-height: 1.5; }
.hwm-mid b { color: #fff; font-size: 0.8rem; }
.hwm-mid span:first-child { color: #9fbaff; font-weight: 700; }
.hw-mini [data-hwm], .hw-mini .hw-dept { transition: opacity 0.22s ease; }
.hw-mini.hw-swap [data-hwm] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hw-mini [data-hwm] { transition: none; } }
.hw-pick { margin-top: 22px; }

/* Worker checks: department picker and swap fade (why-checks.js) */
.tw-pick { margin: 0 0 12px; }
.tw-cards { transition: opacity 0.22s ease; }
.tw-cards.tw-swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tw-cards { transition: none; } }

/* Product demo: department picker (home-demo.js) */
.d3-pick { margin: 0 0 12px; }

/* Prompt AI Worker: the worker instructions the person pastes with their request */
.ch-paste { display: block; margin: 2px 0 6px; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); font-size: 0.78rem; font-weight: 600; color: var(--text); }
.ch-paste small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.d3-pick .vt { margin-bottom: 10px; }

/* Demo controls: version toggle and department icons share one row; the version's one-liner sits under it */
.d3-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 6px; }
.d3-controls .d3-pick { margin: 0; }
.d3-desc { margin: 0 0 14px; }
.d3-desc .vt-d { font-size: 0.84rem; color: var(--muted); }
/* Behind the Scenes: titles and MCP chips by default; "Show details" adds each step's description */
.d3-bh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d3-bh h3 { margin: 0; }
.d3-more { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 600 0.8rem var(--font); cursor: pointer; flex: none; }
.d3-more:hover { border-color: var(--accent); }
.d3-steps.compact small { display: none; }
.d3-steps.compact { gap: 10px; }
/* Reply cards: compact by default */
.ch-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ch-more { flex: none; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 600 0.72rem var(--font); cursor: pointer; }
.ch-more:hover { border-color: var(--accent); }
.ch-card.compact > ul, .ch-card.compact > p, .ch-card.compact > small, .ch-card.compact > .table-scroll { display: none; }
.d3-controls .d3-pick { margin-left: auto; }
/* Screen 1 in stages: the chat alone (one column) until Behind the Scenes opens */
.d3-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.d3-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ch-typing { display: inline-flex; gap: 4px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.ch-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chdot 1s infinite ease-in-out; }
.ch-typing i:nth-child(2) { animation-delay: 0.15s; }
.ch-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chdot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ch-typing i { animation: none; } }
/* "Who makes sure it works?": three contrasts and three one-line checks */
.why-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.why-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.why-you { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.why-arrow { color: var(--accent); font-weight: 700; }
.why-us { font-weight: 600; }
@media (max-width: 560px) { .why-rows li { grid-template-columns: minmax(0, 1fr); gap: 2px; } .why-arrow { display: none; } }
.why-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.why-checks li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.why-checks b { font-size: 0.95rem; }
.why-checks span { font-size: 0.86rem; color: var(--muted); }
.why-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; text-decoration: none; }
/* Ways to start: three offer cards */
.offers3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.offer { display: flex; flex-direction: column; gap: 8px; }
.offer h3 { margin: 0; font-size: 1.1rem; }
.offer p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.offer .offer-price { color: var(--text); font-size: 1.5rem; font-weight: 800; }
.offer .offer-price small { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.offer .offer-price .tbc { font-size: 0.75rem; vertical-align: middle; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer.featured { border-color: var(--accent); }
.offer .offer-sub { font-size: 0.8rem; margin-top: -6px; }

/* Hero example in three beats (hero-rotator.js play): request + inputs, then the worker, then the outcome.
   Hidden parts keep their space (opacity only), so the layout doesn't move. */
.hw-art .hw-worker, .hw-art .hw-out, .hw-art .hw-in::after, .hw-art .hw-worker::after,
.hw-mini .hwm-mid, .hw-mini .hwm-card.out { transition: opacity 0.45s ease, transform 0.45s ease; }
.hw-art.seq .hw-worker, .hw-art.seq .hw-out, .hw-mini.seq .hwm-mid, .hw-mini.seq .hwm-card.out { opacity: 0; transform: translateY(6px); }
.hw-art.seq .hw-worker::after { opacity: 0; }
.hw-art.seq.seq-2 .hw-worker, .hw-art.seq.seq-2 .hw-worker::after, .hw-mini.seq.seq-2 .hwm-mid { opacity: 1; transform: none; }
.hw-art.seq.seq-3 .hw-out, .hw-mini.seq.seq-3 .hwm-card.out { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hw-art .hw-worker, .hw-art .hw-out, .hw-mini .hwm-mid, .hw-mini .hwm-card.out { transition: none; }
}

/* Connectors (desktop diagram): no line from the request; each input runs right to a shared vertical line,
   which joins the worker at its middle (an L from the top and bottom inputs). --bus-top / --bus-bottom are the
   first and last input centres, set by hero-rotator.js. */
.hw-req::after { display: none; }
.hw-inputs { position: relative; }
.hw-in::after { width: 13px; }
.hw-inputs::before { content: ""; position: absolute; left: calc(100% + 12px); top: var(--bus-top, 15%); bottom: var(--bus-bottom, 15%); border-left: 2px dashed rgba(160, 180, 255, 0.6); }
.hw-inputs::after { content: ""; position: absolute; left: calc(100% + 13px); top: 50%; width: 13px; border-top: 2px dashed rgba(160, 180, 255, 0.6); }

/* Data flow (hidden boxes would hide their own dots, so each dot lives on a box that is already showing).
   Step 1: dots run from each input to the shared line, which glows. Step 2: dots run from the worker to the outcome. */
.hw-art .hw-in::before, .hw-art .hw-worker::before { content: ""; position: absolute; left: 100%; top: 50%; width: 8px; height: 8px; margin-top: -3px; border-radius: 50%; background: #ffd25e; box-shadow: 0 0 8px 2px rgba(255, 210, 94, 0.7); opacity: 0; pointer-events: none; z-index: 1; }
.hw-art.seq:not(.seq-2) .hw-in::before { animation: hwflow-in 1s linear infinite; }
.hw-art.seq .hw-in:nth-child(2)::before { animation-delay: 0.33s; }
.hw-art.seq .hw-in:nth-child(3)::before { animation-delay: 0.66s; }
.hw-art.seq:not(.seq-2) .hw-inputs::before, .hw-art.seq:not(.seq-2) .hw-inputs::after { border-color: rgba(255, 210, 94, 0.85); animation: hwpulse 1s ease-in-out infinite; }
.hw-art.seq.seq-2:not(.seq-3) .hw-worker::before { animation: hwflow-out 0.8s linear infinite; }
@keyframes hwflow-in { 0% { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(8px); opacity: 0; } }
@keyframes hwflow-out { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(18px); opacity: 0; } }
@keyframes hwpulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hw-art .hw-in::before, .hw-art .hw-worker::before, .hw-art .hw-inputs::before, .hw-art .hw-inputs::after { animation: none !important; } }
/* Phone card: the arrow pulses while the worker hands over to the outcome */
.hw-mini.seq.seq-2:not(.seq-3) .hwm-mid span:first-child { display: inline-block; animation: hwbob 0.8s ease-in-out infinite; }
@keyframes hwbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hw-mini .hwm-mid span:first-child { animation: none !important; } }

/* No "Example · <department>" label on the hero diagram or phone card: the department picker already shows it */
.hw-art .hw-depts, .hw-mini .hwm-head { display: none; }
/* Knowledge and connector text fade with the rest of the example when the department changes */
.hw-art [data-hw="kb"], .hw-art [data-hw="conn"] { transition: opacity 0.22s ease; }
.hw-art.hw-swap [data-hw="kb"], .hw-art.hw-swap [data-hw="conn"] { opacity: 0; }

/* Hero: three short points in place of a paragraph */
.hero-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; max-width: 36rem; }
.hero-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #c9d4ec; font-size: 1.02rem; line-height: 1.45; }
.hero-points svg { width: 20px; height: 20px; margin-top: 2px; color: #9fbaff; }
.hero-points a { color: #fff; text-decoration: underline; text-decoration-color: rgba(159, 186, 255, 0.6); text-underline-offset: 3px; }
.hero-points b { color: #fff; }
.hero-lead { margin: 0 0 10px; color: #fff; font-weight: 600; font-size: 1.02rem; }
.hero-points { gap: 12px; }

/* ---------- v3 ---------- */
.hero-sub { color: #c9d4ec; font-size: 1.12rem; line-height: 1.55; margin: 0 0 18px; max-width: 36rem; }
.demo3-sub { color: var(--muted); max-width: 46rem; }
/* AI Factory in five parts */
.factory .lead { margin-bottom: 18px; }
.fx-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: none; }
.fx-part { position: relative; display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.fx-part h3 { font-size: 1rem; margin: 0 0 4px; }
.fx-part p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.fx-part .fx-ex { margin-top: 8px; font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.fx-n { position: absolute; top: 12px; right: 14px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.fx-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fx-ico svg { width: 20px; height: 20px; }
.fx-foot { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted); }
