/* AI Factory: /ai/factory/ and the band on /ai/ (factory_site.py, golde-3c 2026-10-11). Linked only on those two pages. */

/* band on /ai/ */
.fx-band-sec{padding:72px 0;background:var(--paper)}
.fx-band{display:grid;grid-template-columns:1fr auto;gap:32px 48px;align-items:center;padding:40px 44px;border-radius:24px;
  border:1px solid rgba(171,156,255,.38);background:radial-gradient(circle at 92% 0%,rgba(171,156,255,.14),transparent 55%),var(--white)}
.fx-band .label{color:var(--ai-lo,var(--gold-lo))}
.fx-band h3{font:400 clamp(30px,3vw,40px)/1.1 var(--display);margin:14px 0 10px;text-wrap:balance}
.fx-band h3 em{font-style:italic;color:var(--gold-lo)}
.fx-band p{color:var(--muted);max-width:640px}
@media (max-width:860px){.fx-band{grid-template-columns:1fr;padding:32px 26px}.fx-band .btn{justify-self:start}}

/* problem: two columns */
.fx-compare{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.fx-col{border-radius:22px;padding:36px 34px 30px}
.fx-col h3{font:400 clamp(28px,2.6vw,34px)/1.15 var(--display);margin:14px 0 18px}
.fx-col h3 em{font-style:italic}
.fx-col ul{list-style:none;border-top:1px solid var(--line)}
.fx-col li{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:15.5px}
.fx-col li .ico{width:17px;height:17px;margin-top:4px}
.fx-old{background:var(--white);border:1px solid var(--line)}
.fx-old h3 em{color:var(--muted)}
.fx-old li{color:var(--muted)}
.fx-old li .ico{color:var(--muted-2)}
.fx-new{background:var(--deep,var(--ink));color:#fff;border:1px solid rgba(200,163,90,.45)}
.fx-new .label{color:var(--gold)}
.fx-new h3 em{color:var(--gold)}
.fx-new ul,.fx-new li{border-color:var(--line-d)}
.fx-new li .ico{color:var(--gold)}
@media (max-width:860px){.fx-compare{grid-template-columns:1fr}.fx-col{padding:30px 24px 24px}}

/* flywheel */
.fx-fly{align-items:center}
.fx-fly .khead{margin-bottom:24px}
.fx-fly p{color:rgba(255,255,255,.66);margin-bottom:18px;max-width:540px}
.fx-svg{display:flex;justify-content:center}
.fw{display:block;width:100%;max-width:520px;height:auto;overflow:visible}
.fw-ring{fill:none;stroke:rgba(255,255,255,.07);stroke-width:1}
.fw-arc{fill:none;stroke:var(--ai,var(--gold));stroke-width:2;opacity:.85}
.fw-tip{fill:var(--ai,var(--gold))}
.fw-node rect{fill:#17142a;stroke:rgba(171,156,255,.5);stroke-width:1}
.fw-node text{fill:#fff;font:600 15.5px var(--sans);text-anchor:middle}
.fw-key rect{fill:var(--gold);stroke:none}
.fw-key text{fill:var(--ink)}
.fw-mid{fill:var(--gold-hi);font:italic 400 34px var(--display);text-anchor:middle}
.fx-four-head{margin:72px 0 0}
.fx-four-head .label{color:var(--gold)!important}
.fx-four{margin-top:22px}
@media (max-width:900px){.fx-fly{grid-template-columns:1fr;gap:28px}.fx-four-head{margin-top:48px}}

/* metrics + faq */
.fx-metrics .ai-card h3{font-size:26px}
/* five metric cards: centre the short last row (3 + 2 on desktop, 2 + 2 + 1 on tablets) */
@media (min-width:961px){.fx-metrics{grid-template-columns:repeat(6,1fr)}.fx-metrics>*{grid-column:span 2}.fx-metrics>:nth-child(4){grid-column:2/span 2}}
@media (min-width:601px) and (max-width:960px){.fx-metrics>:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 10px)}}
.fx-faq{max-width:820px;margin:0 auto}

/* band buttons on /ai/ */
.fx-band-btns{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
@media (max-width:860px){.fx-band-btns{justify-content:flex-start}}

/* ---------------- /ai/factory/demo/: the live bakery demo (factory_site.demo_page + files/demo/factory-demo.js) */
.bk-wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;align-items:start}
.bk-side .khead{margin-bottom:22px}
.bk-side .ticks li span b,.pg-bkdemo .ticks b{font-weight:600}
@media (max-width:960px){.bk-wrap{grid-template-columns:minmax(0,1fr);gap:36px}}

.bk-demo{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:22px;overflow:hidden;
  box-shadow:0 30px 70px rgba(13,14,17,.14);min-width:0}
.bk-top{display:flex;gap:12px;align-items:center;padding:16px 18px;background:var(--ink);color:#fff;border-bottom:1px solid rgba(200,163,90,.3)}
.bk-av{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--gold-grad,var(--gold));color:var(--ink);font:600 13px var(--sans)}
.bk-top div b{display:block;font:500 20px/1.1 var(--display)}
.bk-top div span{display:block;font-size:11.5px;color:rgba(255,255,255,.6)}
.bk-log{height:min(400px,62vh);overflow-y:auto;padding:18px 16px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.bk-msg{max-width:90%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.55;overflow-wrap:anywhere}
.bk-msg.ai{background:var(--white);border:1px solid var(--line);border-bottom-left-radius:5px;align-self:flex-start}
.bk-msg.you{background:var(--ink);color:#fff;border-bottom-right-radius:5px;align-self:flex-end}
.bk-text p+p,.bk-text p+ul,.bk-text ul+p{margin-top:8px}
.bk-text ul{list-style:none;margin:4px 0 0;padding:0}
.bk-text li{position:relative;padding-left:14px}
.bk-text li::before{content:"";position:absolute;left:2px;top:.72em;width:5px;height:5px;border-radius:50%;background:var(--gold)}
.bk-text .bk-lead{font-weight:600}
.bk-note{margin-top:10px;padding-top:8px;border-top:1px dashed var(--line);font-size:12.5px;color:var(--muted);font-style:italic}
.bk-wait{padding:0 16px 14px;font-size:13px;color:var(--muted)}
.bk-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.bk-chips button{min-height:36px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--white);font-size:13px;color:var(--text);transition:border-color .2s,background .2s}
.bk-chips button:hover{border-color:var(--gold);background:#fffaf0}
/* phones: the examples sit in one swipeable row, so the chat and the input fit on screen */
@media (max-width:600px){.bk-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.bk-chips::-webkit-scrollbar{display:none}.bk-chips button{flex:none;white-space:nowrap}.bk-log{height:min(420px,56vh)}}
.bk-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:var(--white)}
.bk-form input{flex:1;min-width:0;min-height:46px;padding:12px 14px;border-radius:999px;background:var(--paper);font-size:16px}
.bk-form button{width:46px;height:46px;flex:none;border-radius:50%;background:var(--gold-grad,var(--gold));color:var(--ink);display:grid;place-items:center}
.bk-form button .ico{width:18px;height:18px}
.bk-fine{padding:0 16px 12px;font-size:11.5px;color:var(--muted-2);background:var(--white)}
/* until the script starts, show the note instead of controls that wouldn't work */
.bk-demo:not(.is-live) .bk-chips,.bk-demo:not(.is-live) .bk-form{display:none}
.bk-demo.is-live .bk-wait{display:none}
/* one chat on this page: the site-wide "Ask our AI" button would sit on top of the demo's send button */
.pg-bkdemo .gra{display:none}

/* real answers */
.bk-exs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:8px}
.bk-ex{display:flex;flex-direction:column;gap:12px;padding:24px 22px;border-radius:20px;background:var(--paper);border:1px solid var(--line)}
.bk-ex .label{margin-bottom:2px}
.bk-ex .bk-msg{max-width:100%}
@media (max-width:760px){.bk-exs{grid-template-columns:minmax(0,1fr)}}

/* how we built it */
.bk-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:8px}
.bk-stats>div{padding:26px 22px;border-radius:20px;border:1px solid var(--line-d,rgba(255,255,255,.12));background:rgba(255,255,255,.03)}
.bk-stats b{display:block;font:400 clamp(40px,4vw,54px)/1 var(--display);color:var(--gold)}
.bk-stats span{display:block;margin-top:10px;font-size:14.5px;color:rgba(255,255,255,.7)}
.bk-story{max-width:760px;margin-top:28px;color:rgba(255,255,255,.72)}
@media (max-width:960px){.bk-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.bk-stats{grid-template-columns:minmax(0,1fr)}}

/* owner page sample */
.bk-owner{padding:22px;border-radius:22px;background:var(--white);border:1px solid var(--line);box-shadow:0 24px 60px rgba(13,14,17,.1);min-width:0}
.bk-owner-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.bk-owner-top b{font:500 22px var(--display)}
.bk-owner-top span{font-size:12px;color:var(--muted-2)}
.bk-owner h4{margin:18px 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bk-rows{list-style:none;margin:0;padding:0}
.bk-rows li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.bk-rows li:last-child{border-bottom:0}
.bk-rows li span{color:var(--muted);flex:1 1 180px}
.bk-rows i{font-style:normal;font-size:12px;padding:3px 10px;border-radius:999px;background:#fff3d9;color:var(--gold-lo)}
.bk-rows i.done{background:var(--paper);color:var(--muted)}

/* offer */
.bk-offer{padding:28px 26px;border-radius:22px;border:1px solid rgba(171,156,255,.38);background:radial-gradient(circle at 92% 0%,rgba(171,156,255,.14),transparent 55%),var(--white)}
.bk-offer p{margin-bottom:18px;font-size:16.5px}
.bk-hero-ctas{justify-content:flex-start;margin-top:28px}

/* the demo video (/ai/factory/demo/#watch) and its link in the /ai/factory/ band (golde-3c, 2026-10-12) */
.fx-band-alt{margin-top:10px;font-size:15px}
.fx-band-alt a{color:var(--gold-lo);font-weight:600;border-bottom:1px solid rgba(200,163,90,.5)}
.bk-watch{align-items:center}
.bk-watch-txt{margin-top:22px;max-width:560px;color:rgba(255,255,255,.66);font-size:15.5px}
.bk-video{margin:0;min-width:0}
.bk-video video{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1/1;border-radius:22px;background:#000;border:1px solid rgba(200,163,90,.3);box-shadow:0 30px 70px rgba(0,0,0,.4)}
.bk-video figcaption{margin-top:12px;font-size:13px;color:rgba(255,255,255,.55)}

/* the plumber demo (/ai/factory/demo/plumber/) and the links between the two demos (golde-3c, 2026-10-12) */
.bk-other{margin-top:22px;font-size:15px;color:var(--muted)}
.bk-other a{color:var(--gold-lo);font-weight:600;border-bottom:1px solid rgba(200,163,90,.5)}
.bk-msg.ai.bk-alert{border-color:#e0a24a;background:#fff8ec;box-shadow:inset 4px 0 0 #e0a24a}
/* always on screen, whatever the wording: the page backs up the assistant's gas rules */
.bk-safe{margin:0;padding:9px 16px;font-size:13.5px;line-height:1.45;color:#6b4310;background:#fff8ec;border-bottom:1px solid #f0d9b0}
.bk-safe b{color:#6b4310}
/* while the AI reading runs (up to 3.5 s): a quiet line, and no second message */
.bk-msg.ai .bk-typing{margin:0;color:var(--muted);font-style:italic}
.bk-demo.is-busy .bk-form button,.bk-demo.is-busy .bk-chips button{opacity:.55;pointer-events:none}
/* the demo band sits on a light card: btn-line is styled for dark sections */
.fx-demo-band .btn-line{border-color:var(--line);color:var(--text)}
.fx-demo-band .btn-line:hover{border-color:var(--gold-lo);background:rgba(13,14,17,.03)}
/* where the demo stats come from (stat-sources audit M82/M83) */
.bk-src{margin:14px 2px 0;font-size:13px;color:rgba(255,255,255,.62)}
