/* =========================================================
   AI solutions showcase (home page). Uses tokens from style.css.
   ========================================================= */
.sol { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .sol { grid-template-columns: 320px 1fr; gap: var(--s5); align-items: start; } }
.sol-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1024px) { .sol-tabs { grid-template-columns: 1fr; position: sticky; top: 96px; } }
.sol-tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; min-height: 64px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.sol-tabs button:hover { border-color: var(--brand-line); }
.sol-tabs button[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-sm); }
.sol-tabs .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex-shrink: 0; transition: background .2s, color .2s; }
.sol-tabs button[aria-selected="true"] .ic { background: var(--brand); color: #fff; }
.sol-tabs .tx { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.sol-tabs .tx b { font-size: 15.5px; font-weight: 700; }
.sol-tabs .tx small { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .sol-tabs .tx small { display: none; }
  .sol-tabs .tx b { font-size: 14px; line-height: 1.25; }
  .sol-tabs button { padding: 10px; gap: 10px; }
  .sol-tabs .ic { width: 36px; height: 36px; }
}
.sol-tabs .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); }
.sol.is-auto .sol-tabs button[aria-selected="true"] .bar { animation: solprog 9s linear forwards; }
@keyframes solprog { to { width: 100%; } }

.sol-stage { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.sol-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 500; flex-wrap: wrap; }
.sol-head .dots { display: flex; gap: 6px; }
.sol-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.sol-head .tag { margin-left: auto; }
.sol-body { padding: var(--s5); min-height: 470px; }
@media (max-width: 640px) { .sol-body { padding: var(--s4); } }
.sol-foot { display: grid; gap: var(--s4); padding: var(--s5); border-top: 1px solid var(--border); background: var(--bg); }
@media (min-width: 900px) { .sol-foot { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.sol-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sol-foot li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.sol-foot li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .chips-row { justify-content: flex-end; } }

/* demo pieces animate in each time their panel is shown */
.sol-panel .a { opacity: 0; transform: translateY(8px); animation: aIn .5s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes aIn { to { opacity: 1; transform: none; } }

/* --- document bot --- */
.dk { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .dk { grid-template-columns: 1fr 1fr; } }
.paper { position: relative; background: #fff; color: #0f172a; border-radius: 10px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(15,23,42,.4); border: 1px solid #e2e8f0; font-size: 12px; overflow: hidden; transform: rotate(-1deg); align-self: start; }
.p-sup b { display: block; font-family: var(--font-head); font-size: 15px; letter-spacing: .02em; }
.p-sup span { color: #64748b; font-size: 11px; }
.p-meta { display: flex; justify-content: space-between; margin: 14px 0 12px; color: #475569; font-size: 11.5px; flex-wrap: wrap; gap: 6px; }
.p-rows { border-top: 1px solid #e2e8f0; }
.p-rows div { display: grid; grid-template-columns: 1fr 44px 64px; gap: 6px; padding: 7px 0; border-bottom: 1px dashed #e2e8f0; font-variant-numeric: tabular-nums; }
.p-rows div span:nth-child(n+2) { text-align: right; }
.p-rows .h { color: #94a3b8; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom-style: solid; }
.p-tot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #475569; font-size: 11.5px; }
.p-tot b { font-size: 14px; color: #0f172a; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #2563eb; box-shadow: 0 0 14px 3px rgba(37, 99, 235, .45); z-index: 2; animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: calc(100% - 3px); } }
.hl { position: absolute; border: 2px solid #2563eb; background: rgba(37, 99, 235, .08); border-radius: 6px; opacity: 0; animation: aIn .4s forwards; animation-delay: var(--d); z-index: 1; }
.ex { display: grid; gap: 8px; align-content: start; }
.ex-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-text); margin-bottom: 4px; }
.ex-h svg.i { width: 16px; height: 16px; }
.ex-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.ex-row span { color: var(--muted); font-size: 12.5px; }
.ex-row b { font-weight: 600; }
.ex-row small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.ok { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.ok svg.i { width: 13px; height: 13px; stroke-width: 3; }
.ex-items { display: grid; gap: 2px; padding: 6px 12px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.ex-items div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.ex-items i { font-style: normal; color: var(--brand-text); font-weight: 600; white-space: nowrap; }
.ex-ok { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.ex-ok svg.i { width: 17px; height: 17px; }
.ex-btns { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.ex-btns span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.ex-btns .b1 { background: var(--brand); color: #fff; }
.ex-btns .b2 { border: 1px solid var(--border-strong); }

/* --- social agent --- */
.so-brief { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); margin-bottom: var(--s4); }
.so-brief svg.i { color: var(--brand-text); margin-top: 2px; }
.so-brief small { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-text); }
.so-brief b { font-weight: 600; font-size: 14.5px; }
.so-posts { display: grid; gap: 12px; }
@media (min-width: 760px) { .so-posts { grid-template-columns: repeat(3, 1fr); } }
.post { border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.post-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.post-h .tag { margin-left: auto; font-size: 10.5px; padding: 2px 8px; }
.pl { width: 24px; height: 24px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.post-img { height: 92px; border-radius: 12px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.post-img svg.i { width: 26px; height: 26px; }
.post p { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.post .hash { color: var(--brand-text); font-weight: 600; font-size: 12.5px; }
.sched { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(22,163,74,.1); color: var(--ok); }
.sched svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.sched.wait { background: var(--warn-soft); color: var(--warn); }
.so-dm { display: grid; gap: 8px; margin-top: var(--s4); }
@media (min-width: 760px) { .so-dm { grid-template-columns: 1fr 1.3fr; } }
.so-dm > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.so-dm small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.so-dm .q { background: var(--surface-2); border: 1px solid var(--border); }
.so-dm .r { background: var(--brand); color: #fff; }
.so-dm .r small { color: rgba(255,255,255,.8); }
.so-dm svg.i { margin-top: 2px; width: 18px; height: 18px; }

/* --- chat agent --- */
.ch { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .ch { grid-template-columns: 1.15fr .85fr; } }
.chat { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--bg); }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.chat-h b { display: block; font-size: 14.5px; }
.chat-h small { font-size: 12px; color: var(--ok); font-weight: 600; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.ch-ch { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #16a34a; color: #fff; }
.chat-b { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 330px; }
.m { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.m.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.m.out { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.m.out .typing i { background: #fff; }
.typing-b { max-height: 0; padding-block: 0; margin-top: -8px; opacity: 0; overflow: hidden; animation: tIn .25s forwards, tOut .2s forwards; animation-delay: var(--d), var(--e); }
@keyframes tIn { to { max-height: 44px; padding-block: 10px; margin-top: 0; opacity: 1; } }
@keyframes tOut { from { max-height: 44px; padding-block: 10px; margin-top: 0; opacity: 1; } to { max-height: 0; padding-block: 0; margin-top: -8px; opacity: 0; } }
.ch-side { display: grid; gap: var(--s4); align-content: start; }
.res { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 16px; box-shadow: var(--shadow-sm); }
.res-h { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; color: var(--brand-text); }
.res-r { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.res-r span { color: var(--muted); }
.res-s { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.res-s svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.also { display: flex; flex-wrap: wrap; gap: 6px; }
.also small { width: 100%; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
.also span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

/* --- workflow --- */
.wf { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .wf { grid-template-columns: 1.1fr .9fr; } }
.wf-nodes { display: grid; gap: 14px; }
.wf-n { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); opacity: .45; animation: nodeOn .35s forwards; animation-delay: var(--d); }
@keyframes nodeOn { to { opacity: 1; border-color: var(--brand-line); } }
.wf-n:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 100%; width: 2px; height: 14px; background: var(--border-strong); }
.wf-n .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex-shrink: 0; animation: icOn .35s forwards; animation-delay: var(--d); }
@keyframes icOn { to { background: var(--brand); color: #fff; } }
.wf-n .ic svg.i { width: 18px; height: 18px; }
.wf-n b { display: block; font-size: 14px; font-weight: 600; }
.wf-n small { font-size: 12.5px; color: var(--muted); }
.wf-n .st { margin-left: auto; display: grid; font-size: 11.5px; font-weight: 700; }
.wf-n .st i { grid-area: 1 / 1; font-style: normal; padding: 4px 9px; border-radius: 999px; text-align: center; }
.wf-n .st .w { background: var(--surface-2); color: var(--muted); animation: fadeOut .2s forwards; animation-delay: calc(var(--d) + .5s); }
.wf-n .st .d { background: rgba(22,163,74,.12); color: var(--ok); opacity: 0; animation: aIn .2s forwards; animation-delay: calc(var(--d) + .5s); }
@keyframes fadeOut { to { opacity: 0; } }
.wf-log { border-radius: 14px; background: #0a1325; color: #a5b3cb; padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.7; align-self: start; border: 1px solid #1b2843; }
.wf-log .lh { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6ea8ff; margin-bottom: 8px; }
.wf-log time { color: #6b7a99; margin-right: 6px; }
.wf-log .done { color: #4ade80; }

.sol-cta { margin-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5); border-radius: var(--radius-lg); border: 1px dashed var(--brand-line); background: var(--brand-soft); }
.sol-cta b { display: block; font-family: var(--font-head); font-size: 20px; }
.sol-cta span { color: var(--text-2); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .sol-panel .a, .hl, .wf-n, .wf-n .ic, .wf-n .st i, .typing-b { animation-delay: 0s !important; }
  .scanline { display: none; }
}
