/**
 * Crescita Studio: the four rebuilt Portfolio demos (2026-10-26). See assets/js/lab-pro.js.
 * A product look rather than a form: soft panels, quiet borders, one accent. These are
 * a demo practice's tools, so their colours are the demo's, not Crescita's brand.
 */
.lp-chat, .lp-voice, .lp-est, .lp-cmp { --lp-ink: #0f1d2b; --lp-mute: #5b6b7a; --lp-line: #e3e8ee; --lp-soft: #f5f7fa; --lp-acc: #2563eb; --lp-acc-soft: #e8efff; --lp-ok: #13795b; font-family: var(--font-primary); color: var(--lp-ink); }
.lp-chat button, .lp-voice button, .lp-est button { font: inherit; cursor: pointer; }
.lp-chat :focus-visible, .lp-voice :focus-visible, .lp-est :focus-visible { outline: 2px solid var(--lp-acc); outline-offset: 2px; }

/* ── 1. Before / after ───────────────────────────────────────────── */
.lp-cmp__stage { position: relative; aspect-ratio: 1100 / 680; overflow: hidden; border-radius: 16px; border: 1px solid var(--lp-line); background: #fff; }
.lp-cmp__scale { position: absolute; top: 0; left: 0; width: 1100px; height: 680px; transform-origin: 0 0; transform: scale(var(--k, 0.6)); }
.lp-cmp__page { position: absolute; inset: 0; overflow: hidden; }
.lp-new { clip-path: inset(0 0 0 var(--cut, 50%)); }
.lp-cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 29, 43, 0.25); pointer-events: none; }
.lp-cmp__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; color: var(--lp-ink); font-weight: 700; box-shadow: 0 6px 18px rgba(15, 29, 43, 0.3); }
/* During the drag hint the knob glows, so the eye follows it. */
.lp-cmp__stage.is-hinting .lp-cmp__handle::after { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.25), 0 6px 18px rgba(15, 29, 43, 0.3); }
.lp-cmp__stage:focus-within .lp-cmp__handle::after { outline: 3px solid var(--lp-acc); outline-offset: 2px; }
.lp-cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.lp-cmp__tag { position: absolute; top: 12px; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(15, 29, 43, 0.78); pointer-events: none; }
.lp-cmp__tag--b { left: 12px; }
.lp-cmp__tag--a { right: 12px; background: var(--lp-ok); }
.lp-cmp__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: n; }
.lp-cmp__notes li { counter-increment: n; position: relative; padding: 0.875rem 0.875rem 0.875rem 2.75rem; border-radius: 12px; background: var(--lp-soft); font-size: 0.875rem; line-height: 1.45; color: var(--lp-mute); }
.lp-cmp__notes li::before { content: counter(n); position: absolute; left: 0.875rem; top: 0.875rem; display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--lp-ok); color: #fff; font-size: 0.75rem; font-weight: 700; }
.lp-cmp__notes b { color: var(--lp-ink); }
/* The old site: what a 2009 template looks like. */
.lp-old { background: #e6eef5; color: #384b5a; font-family: Verdana, Tahoma, sans-serif; font-size: 13px; }
.lp-old__head { display: grid; gap: 4px; padding: 22px 30px; background: linear-gradient(#3a85b8, #22628f); color: #fff; }
.lp-old__head b { font-size: 26px; letter-spacing: 1px; }
.lp-old__nav { padding: 8px 30px; background: #1b4f74; color: #cfe3f2; font-size: 12px; }
.lp-old__marquee { margin: 0; padding: 6px; background: #fff27a; color: #c00; font-weight: 700; text-align: center; }
.lp-old__body { display: grid; grid-template-columns: 1fr 240px; gap: 24px; padding: 22px 30px; }
.lp-old__main h4 { margin: 0 0 12px; font-size: 22px; color: #22628f; text-align: center; }
.lp-old__main p { margin: 0 0 10px; line-height: 1.5; text-align: justify; }
.lp-old__img { height: 170px; margin-top: 8px; border: 4px solid #fff; background: repeating-linear-gradient(45deg, #c9d8e4 0 10px, #d6e2ec 10px 20px); box-shadow: 2px 2px 4px #9ab; }
.lp-old__side { padding: 12px; border: 1px dashed #8aa; background: #f3f8fb; }
.lp-old__side b { color: #c00; }
.lp-old__side p { margin: 8px 0 0; font-size: 12px; }
.lp-old__foot { position: absolute; left: 30px; right: 30px; bottom: 14px; color: #54636f; font-size: 11px; }
/* The rebuilt site. */
.lp-new { background: #fbfaf8; color: #14202b; font-family: "Avenir Next", "Segoe UI", sans-serif; }
.lp-new__util { display: flex; gap: 24px; justify-content: flex-end; padding: 8px 40px; background: #0f2e2a; color: #d7efe9; font-size: 13px; }
.lp-new__util b { color: #fff; }
.lp-new__nav { display: flex; align-items: center; gap: 26px; padding: 16px 40px; border-bottom: 1px solid #ece8e1; font-size: 15px; }
.lp-new__nav b { margin-right: auto; font-size: 20px; }
.lp-new__nav i { font-style: normal; padding: 10px 18px; border-radius: 999px; background: #1f6f5c; color: #fff; font-weight: 600; }
.lp-new__hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; padding: 36px 40px 24px; }
.lp-new__copy { display: grid; align-content: start; gap: 14px; }
.lp-new__copy small { color: #1f6f5c; font-size: 14px; font-weight: 600; }
.lp-new__copy h4 { margin: 0; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; }
.lp-new__copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.lp-new__copy li::before { content: "✓"; margin-right: 10px; color: #1f6f5c; font-weight: 700; }
.lp-new__ctas { display: flex; gap: 12px; margin-top: 6px; }
.lp-new__ctas i { font-style: normal; padding: 15px 24px; border-radius: 999px; background: #1f6f5c; color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 10px 22px -12px rgba(31, 111, 92, 0.8); }
.lp-new__ctas u { text-decoration: none; padding: 15px 22px; border-radius: 999px; border: 1.5px solid #14202b; font-weight: 600; font-size: 16px; }
.lp-new__next { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: 999px; background: #e7f4ef; color: #1f6f5c; font-size: 14px; font-weight: 600; }
.lp-new__next em { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.2); }
.lp-new__book { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -28px rgba(20, 32, 43, 0.45); border: 1px solid #ece8e1; }
.lp-new__book b { font-size: 18px; }
.lp-new__select, .lp-new__field { padding: 11px 14px; border-radius: 10px; border: 1px solid #ddd8cf; color: #5d6873; font-size: 14px; }
.lp-new__select { color: #14202b; }
.lp-new__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-new__slots span { padding: 8px 4px; border-radius: 8px; border: 1px solid #ddd8cf; text-align: center; font-size: 13px; }
.lp-new__slots .is-on { background: #1f6f5c; border-color: #1f6f5c; color: #fff; }
.lp-new__book i { font-style: normal; padding: 13px; border-radius: 999px; background: #1f6f5c; color: #fff; text-align: center; font-weight: 700; }
.lp-new__book small { color: #5d6873; font-size: 12px; text-align: center; }
.lp-new__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 40px; }
.lp-new__strip p { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 14px; background: #f1eee8; font-size: 15px; }
.lp-new__strip b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #14202b; color: #fff; font-size: 13px; }
.lp-new__wa { position: absolute; right: 24px; bottom: 22px; padding: 12px 18px; border-radius: 999px; background: #25d366; color: #073b1e; font-weight: 700; font-size: 14px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.4); }

/* ── 2. Chat ─────────────────────────────────────────────────────── */
.lp-chat__win { display: grid; grid-template-rows: auto 1fr auto auto; height: 34rem; border: 1px solid var(--lp-line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(15, 29, 43, 0.5); }
.lp-chat__head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.875rem 1rem; border-bottom: 1px solid var(--lp-line); background: #fff; }
.lp-chat__avatar, .lp-msg__av { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: linear-gradient(135deg, #5b8def, #2563eb); color: #fff; font-weight: 700; }
.lp-msg__av { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }
.lp-chat__who { display: grid; margin-right: auto; }
.lp-chat__who b { font-size: 0.9375rem; }
.lp-chat__status { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--lp-mute); }
.lp-chat__status i { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; }
.lp-chat__tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--lp-soft); }
.lp-chat__tabs button { padding: 0.375rem 0.75rem; border: 0; border-radius: 8px; background: none; color: var(--lp-mute); font-size: 0.8125rem; font-weight: 600; }
.lp-chat__tabs button[aria-pressed="true"] { background: #fff; color: var(--lp-ink); box-shadow: 0 1px 3px rgba(15, 29, 43, 0.15); }
.lp-chat__log { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; overflow-y: auto; background: var(--lp-soft); }
.lp-msg { display: flex; align-items: flex-end; gap: 0.5rem; max-width: 88%; }
.lp-msg--me { align-self: flex-end; }
.lp-msg__bubble { display: grid; gap: 0.5rem; padding: 0.625rem 0.875rem; border-radius: 16px; font-size: 0.9375rem; line-height: 1.45; }
.lp-msg__bubble p { margin: 0; }
.lp-msg--bot .lp-msg__bubble { background: #fff; border: 1px solid var(--lp-line); border-bottom-left-radius: 4px; }
.lp-msg--me .lp-msg__bubble { background: var(--lp-acc); color: #fff; border-bottom-right-radius: 4px; }
.lp-typing { display: inline-flex; gap: 4px; padding: 0.25rem 0; }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa7b4; animation: lp-dot 1s ease-in-out infinite; }
.lp-typing i:nth-child(2) { animation-delay: 0.15s; }
.lp-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lp-dot { 50% { transform: translateY(-4px); opacity: 0.5; } }
.lp-card { display: grid; gap: 0.25rem; padding: 0.625rem 0.75rem; border-radius: 10px; background: var(--lp-soft); font-size: 0.875rem; }
.lp-card--hours { border-collapse: collapse; width: 100%; }
.lp-card--hours th, .lp-card--hours td { padding: 0.25rem 0; border: 0; text-align: left; font-weight: 400; }
.lp-card--hours td { text-align: right; font-weight: 600; }
.lp-card--map { position: relative; padding-left: 2.25rem; background: linear-gradient(135deg, #e8f1fb, #eef7f1); }
.lp-card__pin { position: absolute; left: 0.75rem; top: 0.75rem; width: 0.875rem; height: 0.875rem; border-radius: 50% 50% 50% 0; background: #e5484d; transform: rotate(-45deg); }
.lp-card--ok { border: 1px solid #b7e2cf; background: #effaf5; }
.lp-card--ok b { color: var(--lp-ok); }
.lp-chat__chips { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.625rem 1rem 0; background: #fff; }
.lp-chip { padding: 0.4375rem 0.75rem; border: 1px solid #c9d6f5; border-radius: 999px; background: var(--lp-acc-soft); color: #1d4ed8; font-size: 0.8125rem; font-weight: 600; }
.lp-chip:hover { background: #dbe6ff; }
.lp-chat__form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem 1rem; background: #fff; }
.lp-chat__form input { flex: 1; min-height: 46px; padding: 0 1rem; border: 1px solid var(--lp-line); border-radius: 999px; background: var(--lp-soft); font-size: 16px; color: var(--lp-ink); }
.lp-chat__form input:focus { outline: none; border-color: var(--lp-acc); background: #fff; }
.lp-chat__send { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--lp-acc); color: #fff; }

/* ── 3. Voice receptionist ───────────────────────────────────────── */
.lp-voice__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1rem; }
.lp-voice__phone { display: grid; justify-items: center; align-content: center; gap: 0.75rem; min-height: 26rem; padding: 1.5rem; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, #1c2f4d, #0b1424); color: #e6eefb; text-align: center; }
.lp-voice__badge { justify-self: center; padding: 0.3125rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; color: #ffd9a3; background: rgba(255, 196, 120, 0.12); border: 1px solid rgba(255, 196, 120, 0.4); }
.lp-voice__badge.is-live { color: #b5f1d6; background: rgba(47, 191, 143, 0.14); border-color: rgba(47, 191, 143, 0.5); }
.lp-voice__caller { display: grid; gap: 0.125rem; }
.lp-voice__caller b { font-size: 1.0625rem; }
.lp-voice__caller span { font-size: 0.8125rem; color: #9fb3cf; }
/* The orb (founder, 2026-10-26: "more fluid, like ChatGPT voice mode"): a soft sphere in which
   three blurred clouds of colour swirl on their own orbits and blend. It swells with the audio
   level (--lvl, set by lab-pro.js), swirls faster while anyone is speaking, and breathes when idle. */
.lp-voice__orb {
  --lvl: 0;
  position: relative; width: 9rem; height: 9rem; margin: 0.75rem 0; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 40%, #6f9cff 0%, #3a68e8 45%, #18338c 100%);
  box-shadow: 0 0 calc(28px + var(--lvl) * 46px) rgba(110, 160, 255, 0.45), inset 0 -10px 30px rgba(15, 30, 90, 0.45);
  transform: scale(calc(0.9 + var(--lvl) * 0.16));
  transition: transform 120ms linear, box-shadow 160ms linear;
}
.lp-voice__orb span {
  position: absolute; width: 68%; height: 68%; left: 16%; top: 16%;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  filter: blur(9px); mix-blend-mode: screen; opacity: 0.95;
  animation: lp-swirl 8s linear infinite;
}
.lp-voice__orb span:nth-child(1) { background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 60%); transform-origin: 20% 80%; }
.lp-voice__orb span:nth-child(2) { background: radial-gradient(circle, #5fe1ff 0%, rgba(95, 225, 255, 0) 62%); transform-origin: 85% 30%; animation-duration: 11s; animation-direction: reverse; }
.lp-voice__orb span:nth-child(3) { background: radial-gradient(circle, #a479ff 0%, rgba(164, 121, 255, 0) 60%); transform-origin: 40% 5%; animation-duration: 14s; }
.lp-voice__orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 38%); pointer-events: none; }
.lp-voice.is-on .lp-voice__orb span:nth-child(1) { animation-duration: 3.2s; }
.lp-voice.is-on .lp-voice__orb span:nth-child(2) { animation-duration: 4.4s; }
.lp-voice.is-on .lp-voice__orb span:nth-child(3) { animation-duration: 5.6s; }
.lp-voice.is-agent .lp-voice__orb span:nth-child(2) { background: radial-gradient(circle, #9ff5d6 0%, rgba(159, 245, 214, 0) 65%); }
.lp-voice:not(.is-on) .lp-voice__orb { animation: lp-orb-breathe 4.2s ease-in-out infinite; }
@keyframes lp-swirl { from { transform: rotate(0deg) scale(1.05, 0.95); } 50% { transform: rotate(180deg) scale(0.95, 1.08); } to { transform: rotate(360deg) scale(1.05, 0.95); } }
@keyframes lp-orb-breathe { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(0.95); } }
.lp-voice__state { margin: 0; font-weight: 600; }
.lp-voice__timer { font-variant-numeric: tabular-nums; font-size: 0.875rem; color: #9fb3cf; }
.lp-voice__btns { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.lp-voice__call { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.375rem; border: 0; border-radius: 999px; background: #167a52; color: #fff; font-weight: 700; box-shadow: 0 12px 26px -12px rgba(22, 122, 82, 0.9); }
.lp-voice__call.is-hangup { background: #e5484d; box-shadow: 0 12px 26px -12px rgba(229, 72, 77, 0.9); }
.lp-voice__call.is-hangup svg { transform: rotate(135deg); }
.lp-voice__call.is-stop { background: var(--crescita-midnight); box-shadow: 0 12px 26px -12px rgba(15, 23, 34, 0.7); }
.lp-voice__call:disabled { opacity: 0.6; cursor: progress; }
.lp-voice__mute { padding: 0.875rem 1rem; border: 1px solid rgba(230, 238, 251, 0.3); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #e6eefb; }
.lp-voice__mute[aria-pressed="true"] { background: #fff; color: #0b1424; }
.lp-voice__panel { display: grid; grid-template-rows: auto 1fr; min-height: 26rem; max-height: 26rem; border: 1px solid var(--lp-line); border-radius: 24px; background: #fff; overflow: hidden; }
.lp-voice__panel-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--lp-line); font-size: 0.875rem; }
.lp-voice__model { padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--lp-soft); color: var(--lp-mute); font-size: 0.75rem; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.lp-voice__feed { display: flex; flex-direction: column; gap: 0.625rem; padding: 1rem; overflow-y: auto; }
.lp-voice__feed:empty::before { content: "La trascrizione e le azioni dell'assistente compaiono qui durante la chiamata."; color: var(--lp-mute); font-size: 0.875rem; }
.lp-line { display: grid; gap: 0.125rem; }
.lp-line__who { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-mute); }
.lp-line p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.lp-line--agent .lp-line__who { color: #1d4ed8; }
.lp-line.is-new { animation: lp-in 360ms ease-out; }
@keyframes lp-in { from { opacity: 0; transform: translateY(6px); } }
.lp-tool { display: flex; gap: 0.625rem; align-items: center; padding: 0.625rem 0.75rem; border-radius: 12px; border: 1px dashed #c9d6f5; background: var(--lp-acc-soft); font-size: 0.8125rem; animation: lp-in 360ms ease-out; }
.lp-tool.is-ok { border-style: solid; border-color: #b7e2cf; background: #effaf5; }
.lp-tool__icon { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: #fff; font-weight: 700; color: #1d4ed8; }
.lp-tool.is-ok .lp-tool__icon { color: var(--lp-ok); }
.lp-tool div { display: grid; }
.lp-tool span { color: var(--lp-mute); }
.lp-voice__note { margin: 0.875rem 0 0; padding: 0.75rem 1rem; border-radius: 12px; background: var(--lp-soft); font-size: 0.875rem; line-height: 1.5; color: var(--lp-ink, #1d2633); }
.lp-voice__arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.lp-voice__arch li { position: relative; display: grid; gap: 0.125rem; padding: 0.75rem; border-radius: 12px; background: var(--lp-soft); font-size: 0.75rem; color: var(--lp-mute); }
.lp-voice__arch b { font-size: 0.8125rem; color: var(--lp-ink); }
.lp-voice__arch li:not(:last-child)::after { content: "→"; position: absolute; right: -0.5rem; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--lp-mute); }

/* ── 4. Estimator ────────────────────────────────────────────────── */
.lp-est { border: 1px solid var(--lp-line); border-radius: 20px; overflow: hidden; background: #fff; }
.lp-est__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--lp-line); }
.lp-est__brand { font-weight: 700; font-size: 0.9375rem; }
.lp-est__tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--lp-soft); }
.lp-est__tabs button { padding: 0.375rem 0.75rem; border: 0; border-radius: 8px; background: none; color: var(--lp-mute); font-size: 0.8125rem; font-weight: 600; }
.lp-est__tabs button[aria-pressed="true"] { background: #fff; color: var(--lp-ink); box-shadow: 0 1px 3px rgba(15, 29, 43, 0.15); }
.lp-est__body { padding: 1.25rem; }
.lp-est__patient { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; }
.lp-est__q { margin: 0 0 0.75rem; font-weight: 700; font-size: 1.0625rem; }
.lp-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.5rem; }
.lp-need { display: grid; gap: 0.25rem; justify-items: start; padding: 0.875rem; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff; text-align: left; color: var(--lp-ink); }
.lp-need b { font-size: 0.875rem; }
.lp-need span:last-child { font-size: 0.75rem; color: var(--lp-mute); }
.lp-need__i { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--lp-acc-soft); color: var(--lp-acc); font-size: 1rem; }
.lp-need[aria-checked="true"] { border-color: var(--lp-acc); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.lp-opts { display: grid; gap: 0.625rem; margin-top: 1rem; }
.lp-toggle { position: relative; display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; cursor: pointer; }
.lp-toggle input { position: absolute; opacity: 0; }
.lp-toggle span { flex: none; width: 2.25rem; height: 1.25rem; border-radius: 999px; background: #cfd8e3; transition: background 200ms ease; }
.lp-toggle span::after { content: ""; display: block; width: 1rem; height: 1rem; margin: 0.125rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 200ms ease; }
.lp-toggle input:checked + span { background: var(--lp-acc); }
.lp-toggle input:checked + span::after { transform: translateX(1rem); }
.lp-toggle input:focus-visible + span { outline: 2px solid var(--lp-acc); outline-offset: 2px; }
.lp-step { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.875rem; }
.lp-step__ctl { display: inline-flex; align-items: center; border: 1px solid var(--lp-line); border-radius: 10px; overflow: hidden; }
.lp-step__ctl button { width: 2.5rem; height: 2.5rem; border: 0; background: var(--lp-soft); font-size: 1.125rem; color: var(--lp-ink); }
.lp-step__ctl output { min-width: 2.5rem; text-align: center; font-weight: 700; }
.lp-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--lp-soft); }
.lp-seg button { padding: 0.5rem 0.875rem; border: 0; border-radius: 8px; background: none; color: var(--lp-mute); font-size: 0.8125rem; font-weight: 600; }
.lp-seg button[aria-pressed="true"] { background: #fff; color: var(--lp-ink); box-shadow: 0 1px 3px rgba(15, 29, 43, 0.15); }
.lp-result { display: grid; align-content: start; gap: 0.625rem; padding: 1.125rem; border-radius: 16px; background: linear-gradient(160deg, #0f1d2b, #1c3352); color: #e6eefb; }
.lp-result__label { margin: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb3cf; }
.lp-result__total { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp-result__table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.lp-result__table td { padding: 0.4375rem 0; border: 0; border-top: 1px solid rgba(230, 238, 251, 0.12); vertical-align: top; }
.lp-result__table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-result__table small { display: block; color: #9fb3cf; }
.lp-result__table .is-maybe { color: #b8c7da; }
.lp-result__sep td { padding-top: 0.75rem; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9fb3cf; }
.lp-result__notes { display: grid; gap: 0.25rem; margin: 0; padding-left: 1rem; font-size: 0.75rem; color: #b8c7da; }
.lp-result__cta { margin-top: 0.25rem; padding: 0.75rem 1rem; border: 0; border-radius: 999px; background: #fff; color: #0f1d2b; font-weight: 700; }
.lp-list { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.lp-list th { padding: 0.5rem; border: 0; border-bottom: 1px solid var(--lp-line); text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lp-mute); }
.lp-list td { padding: 0.375rem 0.5rem; border: 0; border-bottom: 1px solid var(--lp-line); }
.lp-list small { display: block; color: var(--lp-mute); font-size: 0.75rem; }
.lp-list input { width: 6rem; min-height: 40px; padding: 0 0.5rem; border: 1px solid var(--lp-line); border-radius: 8px; font-size: 16px; }

/* The widgets sit in tiles of different widths (Portfolio, service pages): they
   stack on their own width, not the screen's. */
.lp-voice, .lp-est__body { container-type: inline-size; }
@container (max-width: 640px) {
  .lp-voice__grid, .lp-est__patient { grid-template-columns: 1fr; }
  .lp-voice__phone { min-height: 22rem; }
  .lp-voice__arch { grid-template-columns: 1fr 1fr; }
  .lp-voice__arch li:not(:last-child)::after { content: none; }
}
@media (max-width: 767.98px) {
  .lp-chat__win { height: 36rem; }
  /* One swipeable row of suggestions: wrapped onto four rows they left the conversation a sliver
     and cut the assistant's first message (founder, 2026-10-26). */
  .lp-chat__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
  .lp-chat__chips::-webkit-scrollbar { display: none; }
  .lp-chat__chips > * { flex: none; }
  .lp-chat__tabs { width: 100%; }
  .lp-chat__tabs button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-typing i, .lp-voice__orb, .lp-voice__orb span, .lp-line.is-new, .lp-tool { animation: none; }
  .lp-voice__orb span { transition: none; }
}
