/* Web del cliente — estilo limpio blanco/negro/azul (tipo páginas de soporte de fabricantes). */
:root {
  --ink: #000; --text: #1d1d1f; --muted: #6e6e73; --line: #e3e3e6; --soft: #f5f5f7; --soft2: #eef1f8;
  --blue: #1428a0; --blue2: #2189ff; --ok: #0b8a4a; --okbg: #e8f6ee; --warn: #b26b00; --warnbg: #fff6e5;
  --err: #d0242b; --errbg: #fdecec; --r: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--text); font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue2); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.022em; margin: 0; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- barra superior ---------- */
.top { position: sticky; top: 0; z-index: 30; height: 64px; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(16px); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: var(--ink); text-decoration: none; }
.top-r { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); background: var(--soft); padding: 6px 12px; border-radius: 999px; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #1fbf6b; box-shadow: 0 0 0 0 rgba(31,191,107,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31,191,107,0); } 100% { box-shadow: 0 0 0 0 rgba(31,191,107,0); } }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.progress b { display: block; height: 100%; width: 0; background: var(--blue2); transition: width .6s var(--ease); }

.loading { min-height: 60vh; display: grid; place-items: center; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { background: #222; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.blue { background: var(--blue2); border-color: var(--blue2); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; color: var(--blue2); font-weight: 600; padding: 0; }

/* ---------- portada de la guía ---------- */
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(32px, 7vw, 88px) clamp(16px, 4vw, 40px) 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue2); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; font-weight: 800; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 18px 0 26px; max-width: 34em; }
.points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--soft2); color: var(--blue2); display: grid; place-items: center; }
.ck svg { width: 14px; height: 14px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-cta small { color: var(--muted); }
.hero-art { background: var(--soft); border-radius: 32px; padding: 34px 20px; display: grid; place-items: center; min-height: 420px; position: relative; overflow: hidden; }
.hero-art img { border-radius: 20px; }
.hero-art .ph-wrap { max-width: 270px; }
.reqs { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 70px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.req { background: var(--soft); border-radius: var(--r); padding: 22px; }
.req h3 { font-size: 17px; margin-bottom: 10px; }
.req ul { margin: 0; padding-left: 18px; color: var(--muted); }
.flow { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 90px; }
.flow h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 22px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; counter-reset: f; }
.flow li { counter-increment: f; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.flow li::before { content: counter(f); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ---------- ventana (correo, confirmaciones) ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.42); display: flex; align-items: flex-end; justify-content: center; padding: 16px; animation: fade .25s both; }
@media (min-width: 640px) { .modal { align-items: center; } }
.sheet { width: 100%; max-width: 460px; background: #fff; border-radius: 28px; padding: 30px 28px 26px; animation: up .35s var(--ease) both; }
.sheet h2 { font-size: 26px; margin-bottom: 8px; }
.sheet p { color: var(--muted); margin: 0 0 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; height: 52px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; font: inherit; outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--ink); }
.sheet .btn { width: 100%; margin-top: 6px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.formerr { color: var(--err); font-size: 14px; min-height: 20px; margin: 4px 0 0; }

/* ---------- recorrido ---------- */
.run { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - 64px); }
.rail { border-right: 1px solid var(--line); padding: 28px 18px 28px clamp(16px, 3vw, 32px); position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow: auto; }
.rail h4 { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.rail .rt { font-weight: 700; color: var(--ink); margin-bottom: 18px; line-height: 1.3; }
.rail ol { list-style: none; padding: 0; margin: 0; position: relative; }
.rail li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--muted); position: relative; }
.rail li::before { content: ''; position: absolute; left: 11px; top: 32px; bottom: -8px; width: 2px; background: var(--line); }
.rail li:last-child::before { display: none; }
.rail .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; position: relative; z-index: 1; transition: all .3s; }
.rail li.done { color: var(--text); }
.rail li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail li.done::before { background: var(--ink); }
.rail li.cur { color: var(--ink); font-weight: 700; }
.rail li.cur .dot { border-color: var(--blue2); color: var(--blue2); box-shadow: 0 0 0 4px rgba(33,137,255,.15); }
.rail .dot svg { width: 12px; height: 12px; }

.main { padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 56px) 140px; min-width: 0; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.step.single { grid-template-columns: minmax(0, 720px); }
.step.enter { animation: stepIn .5s var(--ease) both; }
.step.enter-back { animation: stepBack .5s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.copy { min-width: 0; }
.copy > .eyebrow { margin-bottom: 10px; }
.copy h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; font-weight: 800; }
.copy .sub { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.blocks { display: grid; gap: 18px; margin-top: 26px; }
.stage { position: sticky; top: 96px; background: var(--soft); border-radius: 32px; padding: 30px 22px; min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.stage > * { animation: fade .4s both; }
.stage img, .stage video { border-radius: 18px; max-height: 70vh; object-fit: contain; }
.stage .cap { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.md p { margin: 0 0 10px; }
.md p:last-child { margin: 0; }
.md ul { margin: 0; padding-left: 20px; }

/* instrucciones numeradas */
.ins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ins li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; border: 1.5px solid transparent; cursor: pointer; transition: background .25s, border-color .25s, opacity .25s; }
.ins li .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 14px; transition: all .25s; }
.ins li .t { padding-top: 3px; font-weight: 500; }
.ins li.on { background: #fff; border-color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.ins li.on .n { background: var(--ink); color: #fff; }
.ins li.seen .n { background: var(--soft2); color: var(--blue2); }
.ins li.later { opacity: .55; }
.ins-media-inline { margin: 6px 0 4px 44px; background: var(--soft); border-radius: 22px; padding: 18px; display: none; }

/* avisos */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--soft2); }
.callout .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue2); font-weight: 800; font-size: 14px; }
.callout b { display: block; color: var(--ink); margin-bottom: 2px; }
.callout p { margin: 0; color: #3a3a3c; font-size: 15px; }
.callout.warning { background: var(--warnbg); } .callout.warning .ic { background: #f0a500; }
.callout.danger { background: var(--errbg); } .callout.danger .ic { background: var(--err); }
.callout.success { background: var(--okbg); } .callout.success .ic { background: var(--ok); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.figure { border-radius: 22px; overflow: hidden; background: var(--soft); }
.figure figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* tarjetas */
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.dl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; }
.dl .ico svg { width: 26px; height: 26px; }
.dl .txt { flex: 1; min-width: 160px; }
.dl .txt b { display: block; color: var(--ink); }
.dl .txt small { color: var(--muted); }
.conn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conn .cbox { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.conn .cbox small { color: #b6b6bb; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.conn .cbox div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conn .cbox code { font: 700 22px/1.2 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.conn .cbox button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.conn .cnote { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.timer { display: flex; align-items: center; gap: 16px; }
.timer svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 6; }
.timer .bg { stroke: var(--line); }
.timer .fg { stroke: var(--blue2); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer b { font: 800 28px/1 Inter, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.timer.low .fg { stroke: var(--err); }
.timer.low b { color: var(--err); }
.timer small { display: block; color: var(--muted); font-size: 13px; }

/* procesando */
.proc { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--r); background: var(--soft); }
.orb { flex: none; position: relative; width: 56px; height: 56px; }
.orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue2); opacity: 0; animation: orb 2.4s var(--ease) infinite; }
.orb i:nth-child(2) { animation-delay: .8s; } .orb i:nth-child(3) { animation-delay: 1.6s; }
.orb b { position: absolute; inset: 18px; border-radius: 50%; background: var(--blue2); }
@keyframes orb { 0% { transform: scale(.35); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.proc .pl { font-weight: 700; color: var(--ink); min-height: 1.5em; }
.proc .pl span { display: inline-block; animation: up .5s var(--ease) both; }
.proc small { color: var(--muted); }
.proc.done .orb i { display: none; } .proc.done .orb b { background: var(--ok); inset: 12px; }

.techfile { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 22px; text-align: center; }
.techfile.has { border-style: solid; border-color: var(--ink); }
.techfile img { margin: 12px auto; max-width: 280px; width: 100%; border-radius: 12px; }
.techfile .ph-skel { margin: 12px auto; width: 200px; height: 200px; border-radius: 16px; background: linear-gradient(90deg, var(--soft) 0%, #e9e9ee 50%, var(--soft) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.techfile b { color: var(--ink); }
.techfile p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

/* elegir modelo */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 4px; }
.model { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; display: flex; gap: 12px; align-items: center; transition: border-color .2s, box-shadow .2s, transform .15s; }
.model:hover { border-color: #b9b9be; }
.model.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.model .mi { flex: none; width: 46px; height: 60px; border-radius: 10px; background: var(--soft) center / contain no-repeat; display: grid; place-items: center; }
.model .mi svg { width: 22px; height: 36px; color: #b0b0b5; }
.model span { font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.search { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 20px; font: inherit; margin-bottom: 14px; outline: none; }
.search:focus { border-color: var(--ink); }

/* subir foto (revisión con IA) */
.drop { border: 1.5px dashed #c7c7cc; border-radius: var(--r); padding: 28px 20px; text-align: center; transition: border-color .2s, background .2s; cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--blue2); background: #f6f9ff; }
.drop .ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--soft2); color: var(--blue2); display: grid; place-items: center; }
.drop .ico svg { width: 24px; height: 24px; }
.drop b { color: var(--ink); display: block; }
.drop small { color: var(--muted); }
.scan { position: relative; border-radius: var(--r); overflow: hidden; background: #000; }
.scan img { width: 100%; max-height: 360px; object-fit: contain; opacity: .75; }
.scan .bar { position: absolute; left: 0; right: 0; height: 3px; background: var(--blue2); box-shadow: 0 0 18px 4px rgba(33,137,255,.7); animation: scanbar 1.6s ease-in-out infinite alternate; }
@keyframes scanbar { from { top: 4%; } to { top: 94%; } }
.scan .lab { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.result { border-radius: var(--r); padding: 20px; }
.result.ok { background: var(--okbg); }
.result.bad { background: var(--errbg); }
.result .rh { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 18px; color: var(--ink); }
.result .rh i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; }
.result.ok .rh i { background: var(--ok); } .result.bad .rh i { background: var(--err); }
.result p { margin: 8px 0 0; }
.result table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.result td { padding: 7px 0; border-top: 1px solid rgba(0,0,0,.07); }
.result td:last-child { text-align: right; font-weight: 600; font-family: ui-monospace, Menlo, monospace; color: var(--ink); }
.result .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }

/* pago */
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price span { color: var(--muted); }
.paid { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--ok); }
.testnote { font-size: 13px; color: var(--warn); background: var(--warnbg); padding: 8px 12px; border-radius: 10px; margin-top: 10px; }

/* barra de acciones */
.actions { position: fixed; left: 0; width: 100%; bottom: 0; z-index: 25; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.actions .in { max-width: 1280px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 56px) calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; }
@media (min-width: 901px) { .actions .in { padding-left: calc(270px + clamp(16px, 4vw, 56px)); } }
.actions .sp { flex: 1; }
.actions .hint { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.wait { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); background: var(--soft); padding: 12px 18px; border-radius: 999px; }
.wait i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue2); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.confirm { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--soft); cursor: pointer; font-weight: 500; }
.confirm input { width: 22px; height: 22px; accent-color: #000; flex: none; margin: 1px 0 0; }

/* final */
.fin { text-align: center; max-width: 620px; margin: 4vh auto 0; }
.fin .big { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 24px; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop .6s var(--ease) both; }
.fin .big svg { width: 46px; height: 46px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .35s ease forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fin h1 { font-size: clamp(32px, 5vw, 48px); }
.fin .sub { margin-left: auto; margin-right: auto; }
.fin .blocks { text-align: left; }
.closed { max-width: 560px; margin: 10vh auto; text-align: center; }

/* chat */
.chat-btn { position: fixed; right: 20px; bottom: 96px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.22); display: grid; place-items: center; transition: transform .2s; }
.chat-btn:hover { transform: scale(1.05); }
.chat-btn svg { width: 26px; height: 26px; }
.chat-btn .badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--err); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; }
.chat-btn.locked { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.chat-tip { position: fixed; right: 90px; bottom: 108px; z-index: 40; background: var(--ink); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; animation: fade .2s both; }
.chat-panel { position: fixed; right: 20px; bottom: 96px; z-index: 60; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 130px)); background: #fff; border-radius: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; animation: up .3s var(--ease) both; }
@media (max-width: 600px) { .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; border-radius: 26px 26px 0 0; } }
.chat-h { padding: 18px 20px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; }
.chat-h .av { width: 40px; height: 40px; border-radius: 50%; background: #2a2a2d; display: grid; place-items: center; position: relative; }
.chat-h .av svg { width: 22px; height: 22px; }
.chat-h .av::after { content: ''; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #1fbf6b; border: 2px solid #000; }
.chat-h b { display: block; font-size: 15px; }
.chat-h small { color: #b6b6bb; font-size: 12px; }
.chat-h button { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.chat-m { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: up .25s both; }
.msg.client { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.tech, .msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.system { align-self: center; background: none; color: var(--muted); font-size: 12px; }
.msg .who { display: block; font-size: 11px; font-weight: 700; color: var(--blue2); margin-bottom: 2px; }
.msg img { border-radius: 12px; margin-top: 4px; max-height: 220px; }
.msg time { display: block; font-size: 10px; opacity: .55; margin-top: 3px; }
.typing { align-self: flex-start; font-size: 12px; color: var(--muted); padding: 2px 6px; }
.chat-i { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-i textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 20px; padding: 10px 14px; font: inherit; font-size: 15px; max-height: 120px; outline: none; }
.chat-i textarea:focus { border-color: var(--ink); }
.chat-i button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.chat-i .att { background: var(--soft); color: var(--ink); }
.chat-i svg { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; animation: up .25s both; max-width: calc(100vw - 32px); text-align: center; }
.toast.err { background: var(--err); }

.foot { border-top: 1px solid var(--line); padding: 26px clamp(16px, 4vw, 40px) 110px; font-size: 12px; color: var(--muted); text-align: center; }
.preview-flag { position: fixed; left: 12px; bottom: 90px; z-index: 50; background: #f0a500; color: #000; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { min-height: 340px; order: -1; }
  .run { grid-template-columns: 1fr; }
  .rail { display: none; }
  .step { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; order: -1; min-height: 0; padding: 22px 14px; border-radius: 26px; }
  .stage .ph-wrap { max-width: 210px; }
  .copy .sub { font-size: 16px; }
  .top-step { display: none; }
  .conn { grid-template-columns: 1fr; }
  .chat-btn { bottom: 92px; right: 14px; width: 54px; height: 54px; }
  .actions .btn { flex: 1; }
  .actions .hint { display: none; }
}
.live-pill { white-space: nowrap; }
@media (max-width: 600px) { .brand { font-size: 12.5px; letter-spacing: .1em; } .live-pill { padding: 5px 10px; font-size: 12px; } }
