/* ==========================================================================
   B2BTechnosoft — Interactive components
   Site assistant · option cards · stepper · estimator · ROI calculator ·
   solution finder · booking calendar · demos (pipeline, workflow, messaging)
   ========================================================================== */

/* ---- Tool cards (homepage / service pages) ----------------------------- */
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border);
  color: var(--text); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--text); }
.tool-card h3 { margin: 6px 0 0; }
.tool-card p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.tool-card .icon-tile { margin: 0; }
.tool-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--accent-700); }
.tool-card .link-arrow { margin-top: auto; padding-top: 8px; }
.section--dark .tool-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #CBD5E1; }
.section--dark .tool-card h3 { color: #fff; }
.section--dark .tool-card p { color: #94A3B8; }
.section--dark .tool-card__meta { color: var(--accent-400); }
.section--dark .tool-card:hover { border-color: rgba(129, 140, 248, .5); }

.tools-strip {
  display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--radius-lg);
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.tools-strip h2 { font-size: 1.25rem; margin: 0 0 4px; }
.tools-strip p { margin: 0; color: var(--text-soft); }

/* ---- Option cards (styled native radios / checkboxes) ------------------ */
.options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.options--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option__box {
  display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px; border-radius: var(--radius);
  background: var(--white); border: 1.5px solid var(--border); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.option__box .icon { width: 22px; height: 22px; color: var(--blue-600); flex: none; margin-top: 1px; }
.option__title { display: block; font-weight: 600; color: var(--navy-900); line-height: 1.35; }
.option__desc { display: block; font-size: .84rem; color: var(--text-muted); line-height: 1.45; margin-top: 3px; }
.option__check {
  margin-left: auto; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #C5CBDA; background: #fff;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.option input[type="checkbox"] + .option__box .option__check { border-radius: 6px; }
.option__check::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.option:hover .option__box { border-color: #B9C0F5; }
.option input:checked + .option__box { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-600) inset; }
.option input:checked + .option__box .option__check { background: var(--blue-600); border-color: var(--blue-600); }
.option input:checked + .option__box .option__check::after { opacity: 1; }
.option input:focus-visible + .option__box { outline: 2px solid var(--blue-600); outline-offset: 3px; }
.option input:disabled + .option__box { opacity: .5; cursor: not-allowed; }

/* ---- Stepper / multi-step wizard -------------------------------------- */
.wizard { display: grid; gap: 28px; align-items: start; }
.wizard__panel { padding: 28px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.progress { margin-bottom: 28px; }
.progress__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.progress__meta strong { color: var(--navy-900); }
.progress__track { height: 6px; border-radius: 999px; background: #E9EBF3; overflow: hidden; }
.progress__bar { height: 100%; width: 0; border-radius: 999px; background: var(--blue-600); transition: width .35s var(--ease); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend { padding: 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; margin-bottom: 6px; }
.step__hint { color: var(--text-muted); margin: 0 0 22px; }
.step__group + .step__group { margin-top: 28px; }
.step__group > h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 12px; }
.step-error { margin-top: 14px; color: var(--danger); font-weight: 600; font-size: .9rem; }
.step-error:empty { display: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.wizard__nav .btn[hidden] { display: none; }
.step-enter { animation: step-in .35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Live summary sidebar */
.summary { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--grad-dark); color: #CBD5E1; overflow: hidden; }
.summary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px); background-size: 20px 20px;
  mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.summary > * { position: relative; }
.summary h2, .summary h3 { color: #fff; }
.summary h2 { font-size: 1.05rem; margin-bottom: 4px; }
.summary__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #94A3B8; font-weight: 600; }
.summary__big { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.summary__big small { font-size: .45em; font-weight: 600; color: #A5B4FC; letter-spacing: 0; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.summary__row span:last-child { color: #fff; font-weight: 600; text-align: right; }
.summary__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.summary__list li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #E2E8F0; }
.summary__note { font-size: .78rem; color: #8B95AD; margin: 16px 0 0; line-height: 1.5; }
.summary .btn { width: 100%; margin-top: 12px; }
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background-color .3s; }
.meter[data-level="1"] span:nth-child(-n+1), .meter[data-level="2"] span:nth-child(-n+2),
.meter[data-level="3"] span:nth-child(-n+3), .meter[data-level="4"] span:nth-child(-n+4) { background: var(--accent-400); }

/* Results */
.results { display: grid; gap: 16px; }
.results[hidden] { display: none; }
.result-hero { padding: 28px; border-radius: var(--radius-lg); background: var(--accent-50); border: 1px solid #A7F3D0; }
.result-hero h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.stat { padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); }
.stat__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--text-muted); }
.stat__value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat__sub { display: block; font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.stat--accent { background: var(--navy-900); border-color: var(--navy-900); }
.stat--accent .stat__label { color: #94A3B8; }
.stat--accent .stat__value { color: var(--accent-400); }
.stat--accent .stat__sub { color: #94A3B8; }

/* ---- Tabs ---------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 12px; background: #ECEEF6; margin-bottom: 24px; }
.tab {
  flex: 1 1 auto; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 0; background: transparent;
  font-weight: 600; color: var(--text-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--navy-900); }
.tab[aria-selected="true"] { background: var(--white); color: var(--blue-600); box-shadow: var(--shadow-sm); }

/* ---- Range + number inputs ---------------------------------------------- */
.calc-field { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.calc-field:last-of-type { border-bottom: 0; }
.calc-field__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc-field label { font-weight: 600; color: var(--navy-900); font-size: .95rem; }
.calc-field .input { width: 130px; min-height: 42px; padding: 8px 12px; text-align: right; font-variant-numeric: tabular-nums; }
.calc-field__hint { font-size: .82rem; color: var(--text-muted); }
.input-affix { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .9rem; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--blue-600) var(--fill, 50%), #E2E5F0 var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #E2E5F0; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--blue-600); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-600); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-600); }
input[type="range"]:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 4px; border-radius: 6px; }

/* Comparison bars (single series, direct-labelled) */
.compare { display: grid; gap: 14px; margin-top: 8px; }
.compare__row { display: grid; gap: 6px; }
.compare__head { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: #CBD5E1; }
.compare__head strong { color: #fff; font-variant-numeric: tabular-nums; }
.compare__track { height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.compare__bar { height: 100%; border-radius: 4px; background: #818CF8; width: 0; transition: width .6s var(--ease); }
.compare__bar--after { background: var(--accent-400); }

/* ---- Solution finder quiz ------------------------------------------------ */
.quiz { max-width: 860px; margin-inline: auto; }
.quiz__result-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); }
.quiz__result-card--top { border: 2px solid var(--blue-600); box-shadow: var(--shadow); }
.quiz__rank { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.quiz__match { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--accent-700); background: var(--accent-50); padding: 4px 10px; border-radius: 999px; }
.quiz__head { display: flex; align-items: center; gap: 14px; }
.quiz__head .icon-tile { margin: 0; flex: none; }
.quiz__head h3 { margin: 0; }
.quiz__why { list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--text-soft); }
.quiz__why li { display: flex; gap: 8px; }
.quiz__why li::before { content: "→"; color: var(--blue-600); font-weight: 700; }
.roadmap { list-style: none; display: grid; gap: 0; counter-reset: rm; }
.roadmap li { counter-increment: rm; position: relative; padding: 0 0 22px 48px; }
.roadmap li::before {
  content: counter(rm); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-900); color: var(--accent-400); font-weight: 700; font-size: .9rem;
}
.roadmap li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border); }
.roadmap li:last-child::after { display: none; }
.roadmap strong { display: block; color: var(--navy-900); }
.roadmap span { color: var(--text-muted); font-size: .92rem; }

/* ---- Booking calendar ---------------------------------------------------- */
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.slot .option__box { flex-direction: column; align-items: center; gap: 0; padding: 10px 6px; text-align: center; }
.slot__dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.slot__day { font-size: 1.35rem; font-weight: 700; color: var(--navy-900); line-height: 1.2; }
.slot__mon { font-size: .76rem; color: var(--text-muted); }
.slot input:checked + .option__box .slot__dow, .slot input:checked + .option__box .slot__mon { color: var(--blue-600); }
.tz-note { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-muted); margin-top: 10px; }
.tz-note .icon { width: 16px; height: 16px; }

/* Lead context card on contact form */
.lead-context { padding: 16px 18px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); }
.lead-context[hidden] { display: none; }
.lead-context__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.lead-context__top strong { color: var(--navy-900); font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.lead-context__top .icon { width: 18px; height: 18px; color: var(--blue-600); }
.lead-context pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: .86rem; color: var(--text-soft); line-height: 1.55; max-height: 180px; overflow: auto; }
.btn-text { background: none; border: 0; padding: 4px; color: var(--blue-600); font-weight: 600; font-size: .85rem; cursor: pointer; border-radius: 6px; }
.btn-text:hover { text-decoration: underline; }

/* ---- Demos: pipeline ----------------------------------------------------- */
.demo-shell { border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.demo-shell__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: #FAFBFE; }
.demo-shell__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-900); }
.demo-shell__title .icon { color: var(--blue-600); }
.demo-shell__body { padding: 18px; }
.demo-badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent-700); }
.pipeline-stats { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; color: var(--text-muted); }
.pipeline-stats strong { color: var(--navy-900); font-variant-numeric: tabular-nums; }
.pipeline { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
.stage { display: flex; flex-direction: column; gap: 8px; min-height: 260px; padding: 10px; border-radius: var(--radius); background: #F3F4FA; border: 2px dashed transparent; transition: border-color .15s, background-color .15s; }
.stage.is-over { border-color: var(--blue-500); background: var(--blue-50); }
.stage__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 4px 6px; }
.stage__name { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.stage__sum { font-size: .8rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.deal { padding: 12px; border-radius: 8px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: grab; display: grid; gap: 6px; touch-action: manipulation; }
.deal:active { cursor: grabbing; }
.deal.is-dragging { opacity: .45; }
.deal.is-new { animation: step-in .4s var(--ease); }
.deal__name { font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.deal__meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); }
.deal__value { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.deal__moves { display: flex; gap: 4px; }
.deal__moves button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--text-soft); cursor: pointer; display: grid; place-items: center; }
.deal__moves button:hover:not([disabled]) { border-color: var(--blue-600); color: var(--blue-600); }
.deal__moves button[disabled] { opacity: .35; cursor: default; }
.deal__moves .icon { width: 14px; height: 14px; }
.add-lead { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.add-lead .input { flex: 1 1 180px; min-height: 42px; padding: 8px 12px; }
.add-lead .input--sm { flex: 0 1 130px; }

/* ---- Demos: workflow simulator ------------------------------------------ */
.wf { display: grid; gap: 18px; }
.wf__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wf__controls .input { width: auto; min-height: 44px; flex: 1 1 220px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--text-soft); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 999px; background: #CBD0E0; position: relative; cursor: pointer; transition: background-color .2s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--blue-600); }
.switch input:checked::after { transform: translateX(16px); }
.wf__steps { list-style: none; display: grid; gap: 10px; }
.wf__step { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; transition: border-color .2s, background-color .2s; }
.wf__dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #F1F2F8; color: var(--text-muted); }
.wf__dot .icon { width: 18px; height: 18px; }
.wf__name { font-weight: 600; color: var(--navy-900); font-size: .93rem; }
.wf__desc { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 400; }
.wf__status { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #F1F2F8; color: var(--text-muted); white-space: nowrap; }
.wf__step.is-running { border-color: var(--blue-500); background: var(--blue-50); }
.wf__step.is-running .wf__dot { background: var(--blue-600); color: #fff; }
.wf__step.is-running .wf__status { background: var(--blue-100); color: var(--blue-700); }
.wf__step.is-done .wf__dot { background: var(--accent-50); color: var(--accent-700); }
.wf__step.is-done .wf__status { background: var(--accent-50); color: var(--accent-700); }
.wf__step.is-waiting { border-color: #F59E0B; background: #FFFBEB; }
.wf__step.is-waiting .wf__dot { background: #FEF3C7; color: #92400E; }
.wf__step.is-waiting .wf__status { background: #FEF3C7; color: #92400E; }
.wf__step.is-rejected .wf__status { background: #FEE2E2; color: #991B1B; }
.wf__approve { display: flex; gap: 8px; grid-column: 2 / -1; }
.wf__log { margin: 0; padding: 14px; border-radius: var(--radius); background: var(--navy-900); color: #A5B4CB; font-family: var(--mono); font-size: .78rem; line-height: 1.7; min-height: 120px; max-height: 200px; overflow: auto; }
.wf__log b { color: var(--accent-400); font-weight: 400; }

/* ---- Demos: message template preview ------------------------------------ */
.msg-builder { display: grid; gap: 24px; align-items: start; }
.msg-phone { width: min(100%, 320px); margin-inline: auto; border-radius: 34px; padding: 10px; background: var(--navy-900); box-shadow: var(--shadow-lg); }
.msg-phone__screen { border-radius: 26px; overflow: hidden; background: #ECE5DD; min-height: 460px; display: flex; flex-direction: column; }
.msg-phone__head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; background: #1F2C34; color: #fff; }
.msg-phone__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-600); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.msg-phone__head b { display: block; font-size: .9rem; }
.msg-phone__head small { color: #A7B3BA; font-size: .72rem; }
.msg-phone__body { padding: 14px; display: grid; gap: 8px; align-content: start; flex: 1; }
.msg-bubble { justify-self: start; max-width: 88%; padding: 10px 12px 6px; border-radius: 4px 12px 12px 12px; background: #fff; font-size: .86rem; line-height: 1.5; color: #111B21; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); white-space: pre-wrap; word-wrap: break-word; }
.msg-bubble mark { background: #E0E7FF; color: #3730A3; border-radius: 3px; padding: 0 2px; }
.msg-bubble time { display: block; text-align: right; font-size: .68rem; color: #667781; margin-top: 2px; }
.msg-actions { justify-self: start; width: 88%; display: grid; gap: 4px; }
.msg-actions span { display: block; text-align: center; padding: 9px; border-radius: 10px; background: #fff; color: #027EB5; font-size: .85rem; font-weight: 600; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.char-count { font-size: .82rem; color: var(--text-muted); }

/* ---- Site assistant ------------------------------------------------------ */
.assistant-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 95; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue-600); color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 12px 28px -10px rgba(79, 70, 229, .7);
  transition: transform .2s var(--ease), background-color .2s;
}
.assistant-launcher:hover { background: var(--blue-700); transform: translateY(-2px); }
.assistant-launcher .icon { width: 22px; height: 22px; }
.assistant-launcher[aria-expanded="true"] { display: none; }
.assistant-launcher__dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-400); border: 2px solid var(--blue-600); }
.back-to-top { bottom: 82px; }
.assistant-teaser {
  position: fixed; right: 18px; bottom: 82px; z-index: 95; max-width: 280px; padding: 14px 40px 14px 16px; border-radius: 14px 14px 4px 14px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; color: var(--text); animation: step-in .35s var(--ease);
}
.assistant-teaser[hidden] { display: none; }
.assistant-teaser button.assistant-teaser__open { background: none; border: 0; padding: 0; color: var(--blue-600); font-weight: 600; cursor: pointer; margin-top: 6px; display: block; }
.assistant-teaser__close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; }
.assistant-teaser__close .icon { width: 16px; height: 16px; }
.assistant-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 96; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 100px));
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 30px 70px -20px rgba(12, 19, 36, .45);
  animation: step-in .25s var(--ease);
}
.assistant-panel[hidden] { display: none; }
.assistant--inline { position: static; width: 100%; height: 560px; animation: none; box-shadow: var(--shadow); }
.assistant__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--navy-900); color: #fff; }
.assistant__avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-600); display: grid; place-items: center; flex: none; }
.assistant__avatar .icon { width: 20px; height: 20px; }
.assistant__head b { display: block; font-size: .95rem; }
.assistant__head small { color: #A5B4CB; font-size: .76rem; display: inline-flex; align-items: center; gap: 6px; }
.assistant__head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-400); }
.assistant__close { margin-left: auto; width: 38px; height: 38px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.assistant__close:hover { background: rgba(255, 255, 255, .16); }
.assistant__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F7F8FC; overscroll-behavior: contain; }
.a-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.a-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.a-msg--user { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }
.a-msg p { margin: 0 0 6px; }
.a-msg p:last-child { margin: 0; }
.a-links { display: grid; gap: 6px; margin-top: 8px; }
.a-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); font-weight: 600; font-size: .84rem; }
.a-links a:hover { background: var(--blue-100); }
.a-links .icon { width: 14px; height: 14px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.a-chips button { min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--blue-100); background: #fff; color: var(--blue-700); font-size: .82rem; font-weight: 600; cursor: pointer; }
.a-chips button:hover { background: var(--blue-50); border-color: var(--blue-500); }
.a-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.a-typing i { width: 6px; height: 6px; border-radius: 50%; background: #94A3B8; animation: typing 1.2s infinite; }
.a-typing i:nth-child(2) { animation-delay: .15s; }
.a-typing i:nth-child(3) { animation-delay: .3s; }
.assistant__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.assistant__form .input { min-height: 44px; padding: 10px 12px; font-size: .92rem; }
.assistant__send { flex: none; width: 44px; height: 44px; border-radius: 8px; border: 0; background: var(--blue-600); color: #fff; cursor: pointer; display: grid; place-items: center; }
.assistant__send:hover { background: var(--blue-700); }
.assistant__send .icon { width: 18px; height: 18px; }
.assistant__foot { padding: 0 12px 10px; font-size: .72rem; color: var(--text-muted); background: #fff; }

@media (max-width: 599px) {
  .assistant-launcher { padding: 0; width: 56px; justify-content: center; }
  .assistant-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .assistant-panel:not(.assistant--inline) { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .wizard__panel { padding: 22px 16px; }
  .wizard__nav .btn { flex: 1; }
  .pipeline { grid-template-columns: repeat(4, 82%); scroll-snap-type: x mandatory; }
  .stage { scroll-snap-align: start; }
}

@media (min-width: 900px) {
  .wizard { grid-template-columns: minmax(0, 1fr) 340px; }
  .wizard__aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .wizard__panel { padding: 36px; }
  .tools-strip { grid-template-columns: 1fr auto; padding: 28px 32px; }
  .msg-builder { grid-template-columns: minmax(0, 1fr) 340px; }
  .wf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .step-enter, .assistant-panel, .assistant-teaser, .deal.is-new { animation: none; }
}
.svc-card--featured .icon-tile--grad { background: rgba(255, 255, 255, .08); color: var(--accent-400); }
.wf > *, .wf-layout > *, .demo-shell, .msg-builder > * { min-width: 0; }
.wf__controls .input { min-width: 0; max-width: 100%; }
@media (max-width: 599px) {
  .wf__controls .input { flex: 1 1 100%; }
  .wf__step { grid-template-columns: 32px 1fr; }
  .wf__status { grid-column: 2; justify-self: start; }
  .demo-shell__body { padding: 12px; }
}
.wf__log { white-space: pre-wrap; word-break: break-word; }
.assistant-panel:not(.assistant--inline) { z-index: 120; }

/* Technology expertise */
a.tech--link { color: var(--navy-900); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
a.tech--link:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--navy-900); }
.tech__mark { min-width: 34px; width: auto; padding: 0 6px; }
.tech-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tech-hero__mark { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 16px; background: var(--navy-900); color: var(--accent-400); font-family: var(--mono); font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow); }
.tag--link { color: #E2E8F0; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); transition: background-color .2s, border-color .2s; }
.tag--link:hover { color: #fff; background: rgba(99, 102, 241, .25); border-color: rgba(129, 140, 248, .6); }
