/* ==========================================================================
   LubyAI — lubyai.abrionsolutions.com
   Standalone stylesheet for the one-page product site. Deliberately NOT
   abrion-theme.css: that file carries the Abrion brand, its dark/light
   toggle and the 28-page component set, none of which this page uses. The
   only thing shared with the main site is abrion-fonts.css, because those
   woff2 files are already on the same origin and already cached.

   Dark only. There is no theme switch here, so every colour is fixed and
   every pair below was checked for WCAG AA contrast against the surface it
   sits on.
   ========================================================================== */

:root {
	--ly-green: #22C55E;
	--ly-green-dim: #16A34A;
	--ly-sky: #0EA5E9;
	--ly-navy: #0B1220;
	--ly-navy-2: #0F172A;
	--ly-card: #111C2F;
	--ly-text: #F1F5F9;
	--ly-body: #CBD5E1;   /* 11.6:1 on --ly-navy */
	--ly-muted: #94A3B8;  /*  7.2:1 on --ly-navy */
	--ly-border: rgba(148, 163, 184, 0.22);
	--ly-border-strong: rgba(148, 163, 184, 0.34);
	--ly-head: 'Instrument Sans', 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
	--ly-body-font: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
	--ly-radius: 16px;
	--ly-container: 1100px;
	--ly-gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
	margin: 0;
	background: var(--ly-navy);
	color: var(--ly-body);
	font-family: var(--ly-body-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--ly-head); color: var(--ly-text); line-height: 1.14; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(31px, 7vw, 56px); font-weight: 700; }
h2 { font-size: clamp(25px, 4.6vw, 38px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: #7DD3FC; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #BAE6FD; }

/* One visible focus style for everything that takes focus. Never removed:
   the page has to be usable from the keyboard alone. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--ly-sky);
	outline-offset: 3px;
	border-radius: 6px;
}

.ly-container { width: 100%; max-width: var(--ly-container); margin: 0 auto; padding: 0 var(--ly-gutter); }

/* Skip link — visible the moment it takes focus. */
.ly-skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ly-green); color: #04140B; font-weight: 700;
	padding: 12px 18px; border-radius: 0 0 10px 0;
}
.ly-skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.ly-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 18, 32, 0.92);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--ly-border);
}
.ly-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.ly-logo { display: inline-flex; align-items: center; }
.ly-logo img { height: 36px; width: auto; display: block; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ly-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px;
	border-radius: 999px;
	font-family: var(--ly-head); font-weight: 600; font-size: 15px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ly-btn-primary { background: var(--ly-green); color: #04140B; }
.ly-btn-primary:hover { background: #34D97A; color: #04140B; transform: translateY(-1px); }
.ly-btn-ghost { background: transparent; color: var(--ly-text); border-color: var(--ly-border-strong); }
.ly-btn-ghost:hover { border-color: var(--ly-green); color: var(--ly-text); }
.ly-btn-sm { padding: 9px 16px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.ly-section { padding: clamp(52px, 9vw, 92px) 0; }
.ly-section-alt { background: var(--ly-navy-2); }
.ly-kicker {
	font-family: var(--ly-head); font-weight: 600; font-size: 12.5px;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--ly-green);
	margin-bottom: 12px;
}
.ly-lede { font-size: clamp(16.5px, 2.2vw, 19px); color: var(--ly-body); margin-top: 14px; max-width: 62ch; }
.ly-note { font-size: 14.5px; color: var(--ly-muted); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.ly-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 76px) 0 clamp(44px, 7vw, 80px); }
.ly-hero::before,
.ly-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.ly-hero::before { width: 420px; height: 420px; top: -200px; left: -160px; background: rgba(34, 197, 94, 0.22); }
.ly-hero::after { width: 460px; height: 460px; bottom: -260px; right: -180px; background: rgba(14, 165, 233, 0.20); }
.ly-hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(26px, 5vw, 48px); align-items: center; }
.ly-hero-art { order: -1; justify-self: center; max-width: 280px; }
/* From tablet up there is room for the mascot beside the copy rather than
   above it, which also lifts the headline into the first screen. */
@media (min-width: 860px) {
	.ly-hero-inner { grid-template-columns: 1.08fr 0.92fr; }
	.ly-hero-art { order: 0; justify-self: end; max-width: 380px; }
}
.ly-hero p.ly-lede { font-size: clamp(17px, 2.4vw, 20px); }
.ly-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ly-eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 7px 15px; margin-bottom: 18px;
	border: 1px solid rgba(34, 197, 94, 0.4); border-radius: 999px;
	background: rgba(34, 197, 94, 0.1);
	font-family: var(--ly-head); font-weight: 600; font-size: 13px; color: #BBF7D0;
}
.ly-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ly-green); }

.ly-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.ly-pills li {
	padding: 6px 13px; border-radius: 999px;
	border: 1px solid var(--ly-border-strong); background: rgba(148, 163, 184, 0.08);
	font-size: 14px; font-weight: 600; color: var(--ly-text);
}

/* --------------------------------------------------------------------------
   Grids and cards
   -------------------------------------------------------------------------- */
.ly-grid { display: grid; gap: 16px; margin-top: clamp(26px, 4vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .ly-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .ly-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ly-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) { .ly-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ly-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ly-card {
	padding: 22px;
	border: 1px solid var(--ly-border);
	border-radius: var(--ly-radius);
	background: var(--ly-card);
}
.ly-card h3 { margin-bottom: 8px; }
.ly-card p { font-size: 15px; color: var(--ly-body); }
.ly-card-num {
	display: inline-block; font-family: var(--ly-head); font-weight: 700; font-size: 13px;
	letter-spacing: 0.1em; color: var(--ly-sky); margin-bottom: 10px;
}
.ly-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px;
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(14, 165, 233, 0.2));
	color: var(--ly-green);
}

/* Problem / LubyAI-way comparison. Two columns from 760px, stacked below. */
.ly-compare { display: grid; gap: 16px; margin-top: clamp(26px, 4vw, 40px); }
@media (min-width: 760px) { .ly-compare { grid-template-columns: 1fr 1fr; } }
.ly-compare-card { padding: clamp(20px, 3vw, 30px); border-radius: var(--ly-radius); border: 1px solid var(--ly-border); }
.ly-compare-hard { background: rgba(148, 163, 184, 0.06); }
.ly-compare-easy { background: linear-gradient(150deg, rgba(34, 197, 94, 0.13), rgba(14, 165, 233, 0.1)); border-color: rgba(34, 197, 94, 0.32); }
.ly-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.ly-list li { display: flex; gap: 11px; font-size: 15.5px; }
.ly-list li::before { content: "—"; color: var(--ly-muted); flex: none; }
.ly-list-check li::before { content: "✓"; color: var(--ly-green); font-weight: 700; }

/* Band: copy beside a mascot. Single column until there is room for two. */
.ly-band {
	display: grid; gap: clamp(22px, 4vw, 44px); align-items: center;
	padding: clamp(22px, 4vw, 40px);
	border: 1px solid var(--ly-border); border-radius: 20px;
	background: linear-gradient(140deg, rgba(34, 197, 94, 0.1), rgba(14, 165, 233, 0.09), rgba(17, 28, 47, 0.6));
}
@media (min-width: 820px) { .ly-band { grid-template-columns: 1fr 0.8fr; } }
.ly-band-art { justify-self: center; max-width: 260px; }

/* Voice steps: record once -> Luby learns -> every video speaks like you */
.ly-flow { display: grid; gap: 14px; margin-top: clamp(24px, 4vw, 36px); }
@media (min-width: 760px) { .ly-flow { grid-template-columns: repeat(3, 1fr); } }
.ly-flow-step { padding: 20px; border-radius: var(--ly-radius); border: 1px dashed var(--ly-border-strong); background: rgba(148, 163, 184, 0.05); }
.ly-flow-step strong { display: block; font-family: var(--ly-head); color: var(--ly-text); font-size: 16px; margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   FAQ — native <details>, so it works with no JavaScript at all
   -------------------------------------------------------------------------- */
.ly-faq { list-style: none; margin: clamp(24px, 4vw, 36px) 0 0; padding: 0; display: grid; gap: 10px; }
.ly-faq details { border: 1px solid var(--ly-border); border-radius: 12px; background: var(--ly-card); }
.ly-faq summary {
	cursor: pointer; padding: 16px 18px;
	font-family: var(--ly-head); font-weight: 600; font-size: 16px; color: var(--ly-text);
	display: flex; justify-content: space-between; gap: 14px; align-items: center;
	list-style: none;
}
.ly-faq summary::-webkit-details-marker { display: none; }
.ly-faq summary::after { content: "+"; color: var(--ly-green); font-size: 21px; line-height: 1; flex: none; }
.ly-faq details[open] summary::after { content: "–"; }
.ly-faq p { padding: 0 18px 18px; font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Demo form. Markup matches the main site's .ab-form so abrion-site.js
   enhances it and posts to the same endpoint; only the skin is local.
   -------------------------------------------------------------------------- */
.ly-form { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--ly-border); border-radius: var(--ly-radius); background: var(--ly-card); display: grid; gap: 14px; }
.ly-form .ab-field { display: grid; gap: 6px; }
.ly-form label { font-size: 14px; font-weight: 600; color: var(--ly-text); }
.ly-form input, .ly-form textarea {
	width: 100%; padding: 11px 13px;
	border: 1px solid var(--ly-border-strong); border-radius: 10px;
	background: rgba(2, 6, 16, 0.5); color: var(--ly-text);
	font-family: inherit; font-size: 15px;
}
.ly-form input::placeholder, .ly-form textarea::placeholder { color: #8092A8; }
.ly-form .ab-field-row { display: grid; gap: 14px; }
@media (min-width: 540px) { .ly-form .ab-field-row { grid-template-columns: 1fr 1fr; } }
.ly-form .ab-form-status { font-size: 14px; color: var(--ly-green); min-height: 1.2em; }
.ly-form .ab-form-status.is-error { color: #FCA5A5; }

.ly-contact { display: grid; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.ly-contact a { color: var(--ly-text); font-weight: 600; text-decoration: none; }
.ly-contact a:hover { color: var(--ly-green); text-decoration: underline; }

.ly-cta-grid { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 860px) { .ly-cta-grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ly-footer { border-top: 1px solid var(--ly-border); padding: 34px 0; background: var(--ly-navy-2); }
.ly-footer-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.ly-footer p { font-size: 14.5px; color: var(--ly-muted); }

/* ==========================================================================
   LUBY — the character
   The hero mascot is inlined (not an <img>) so its parts can be animated
   individually: the raised arm waves, the eyes blink, the antenna light
   pulses and the sparkles twinkle. Every id inside it is prefixed lw- because
   all five mascot files declare the same gradient ids, and two inlined at
   once would silently steal each other's fills.

   transform-box: view-box lets a transform-origin be written in the SVG's own
   user units, which is the only sane way to rotate an arm around a shoulder.
   ========================================================================== */
.luby-stage { display: block; width: 100%; height: auto; overflow: visible; }
.luby-float { animation: luby-float 6s ease-in-out infinite; }
@keyframes luby-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}

.luby-arm {
	transform-box: view-box;
	/* shoulder joint at user-space (62, 70); the viewBox starts at
	   (-200 -150), so view-box units are that point + (200, 150). */
	transform-origin: 262px 220px;
	animation: luby-wave 3.6s ease-in-out infinite;
}
@keyframes luby-wave {
	0%, 62%, 100% { transform: rotate(0deg); }
	68%           { transform: rotate(16deg); }
	74%           { transform: rotate(-10deg); }
	80%           { transform: rotate(14deg); }
	86%           { transform: rotate(-6deg); }
	92%           { transform: rotate(0deg); }
}

.luby-eyes {
	transform-box: view-box;
	transform-origin: 200px 147px;   /* eye centres, (0, -3) + (200, 150) */
	animation: luby-blink 5.4s ease-in-out infinite;
}
@keyframes luby-blink {
	0%, 92%, 100% { transform: scaleY(1); }
	94%           { transform: scaleY(0.12); }
	96%           { transform: scaleY(1); }
}

.luby-antenna { animation: luby-antenna 2.6s ease-in-out infinite; transform-box: view-box; transform-origin: 200px 42px;   /* antenna lamp, (0, -108) + (200, 150) */ }
@keyframes luby-antenna {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.72; transform: scale(1.14); }
}

.luby-sparkle { transform-box: fill-box; transform-origin: center; animation: luby-twinkle 3.2s ease-in-out infinite; }
.luby-sparkle-2 { animation-delay: 1.4s; }
@keyframes luby-twinkle {
	0%, 100% { opacity: 0.35; transform: scale(0.82) rotate(0deg); }
	50%      { opacity: 1;    transform: scale(1.08) rotate(22deg); }
}

/* The screen's own soft light, so the face does not read as a flat sticker. */
.luby-screen-light { animation: luby-screen 4.4s ease-in-out infinite; }
@keyframes luby-screen {
	0%, 100% { opacity: 0.7; }
	50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.luby-float, .luby-arm, .luby-eyes, .luby-antenna, .luby-sparkle, .luby-screen-light { animation: none; }
}

/* Scroll reveal. abrion-site.js is already on this page for the demo form, and
   it drives .ab-reveal → .is-in; these are the four rules that make it visible
   here, since this page does not load the site theme. */
.js-reveal .ab-reveal { opacity: 0; transform: translateY(18px); }
.ab-reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.ab-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js-reveal .ab-reveal { opacity: 1; transform: none; }
	.ab-reveal { transition: none; }
}

/* --------------------------------------------------------------------------
   Header navigation
   -------------------------------------------------------------------------- */
.ly-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; margin-right: 6px; }

/* Below 900px the nav moves to its own row and scrolls sideways rather than
   vanishing. There is no hamburger here on purpose: five short links fit in a
   strip, and a menu button would be a second thing to tap for no gain. */
@media (max-width: 899px) {
	.ly-header-inner { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
	.ly-nav {
		order: 3; width: 100%; margin: 0; gap: 18px;
		overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.ly-nav::-webkit-scrollbar { display: none; }
	.ly-nav a { white-space: nowrap; font-size: 13.5px; }
	.ly-nav a[aria-current="page"] { color: var(--ly-green); }
}
.ly-nav a { color: var(--ly-body); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.ly-nav a:hover { color: var(--ly-text); }

/* --------------------------------------------------------------------------
   Meet Luby — the cast strip
   -------------------------------------------------------------------------- */
.ly-cast { display: grid; gap: 14px; margin-top: clamp(26px, 4vw, 40px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .ly-cast { grid-template-columns: repeat(5, 1fr); } }
.ly-cast-card {
	padding: 16px 12px 18px;
	border: 1px solid var(--ly-border); border-radius: var(--ly-radius);
	background: linear-gradient(180deg, rgba(148,163,184,0.07), rgba(17,28,47,0.6));
	text-align: center;
}
.ly-cast-card img { width: 100%; max-width: 132px; height: auto; margin: 0 auto 10px; display: block; animation: luby-float 6.4s ease-in-out infinite; }
.ly-cast-card:nth-child(2) img { animation-delay: .5s; }
.ly-cast-card:nth-child(3) img { animation-delay: 1s; }
.ly-cast-card:nth-child(4) img { animation-delay: 1.5s; }
.ly-cast-card:nth-child(5) img { animation-delay: 2s; }
.ly-cast-card strong { display: block; font-family: var(--ly-head); font-size: 15px; color: var(--ly-text); margin-bottom: 4px; }
.ly-cast-card span { font-size: 13px; color: var(--ly-muted); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .ly-cast-card img { animation: none; } }

/* --------------------------------------------------------------------------
   Capability groups — the deep dive
   -------------------------------------------------------------------------- */
.ly-cap { display: grid; gap: 16px; margin-top: clamp(26px, 4vw, 40px); }
@media (min-width: 820px) { .ly-cap { grid-template-columns: repeat(2, 1fr); } }
.ly-cap-group {
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--ly-border); border-radius: var(--ly-radius);
	background: var(--ly-card);
}
.ly-cap-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ly-cap-group h3 .ly-icon { width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.ly-cap-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ly-cap-list li { font-size: 14.5px; line-height: 1.55; }
.ly-cap-list strong { color: var(--ly-text); font-weight: 600; }

/* --------------------------------------------------------------------------
   What Luby will never do
   -------------------------------------------------------------------------- */
.ly-never { display: grid; gap: 12px; margin-top: clamp(24px, 4vw, 36px); }
@media (min-width: 760px) { .ly-never { grid-template-columns: repeat(2, 1fr); } }
.ly-never-item {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid rgba(248, 113, 113, 0.22); border-radius: var(--ly-radius);
	background: rgba(248, 113, 113, 0.06);
	font-size: 14.5px;
}
.ly-never-item::before {
	content: "✕"; flex: none; color: #FCA5A5; font-weight: 700; line-height: 1.5;
}
.ly-never-item strong { display: block; color: var(--ly-text); font-family: var(--ly-head); font-size: 15px; margin-bottom: 3px; }

/* --------------------------------------------------------------------------
   Week one — the setup timeline
   -------------------------------------------------------------------------- */
.ly-week { display: grid; gap: 0; margin-top: clamp(26px, 4vw, 40px); padding: 0; list-style: none; }
.ly-week li {
	position: relative;
	padding: 0 0 26px 30px;
	border-left: 2px solid var(--ly-border-strong);
}
.ly-week li:last-child { border-left-color: transparent; padding-bottom: 0; }
.ly-week li::before {
	content: ""; position: absolute; left: -8px; top: 3px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--ly-green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}
.ly-week strong { display: block; font-family: var(--ly-head); font-size: 16px; color: var(--ly-text); margin-bottom: 4px; }
.ly-week span { font-size: 14.5px; color: var(--ly-body); }

/* A measured column for prose that should not run the full container width. */
.ly-narrow { max-width: 760px; }

/* --- games teaser on the home page ---------------------------------------
   The section before it and the FAQ after it are both plain, so this one
   carries its own card background rather than relying on the usual
   alternation to separate it. */
.ly-play-teaser {
	display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 36px); align-items: center;
	padding: clamp(20px, 4vw, 34px);
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(14, 165, 233, 0.08));
	border: 1px solid var(--ly-border);
	border-radius: var(--ly-radius);
}
.ly-play-teaser-art { flex: none; width: clamp(104px, 16vw, 150px); height: auto; }
.ly-play-teaser h2 { margin: 6px 0 10px; }
.ly-play-teaser .ly-lede { margin-bottom: 18px; }
.ly-play-teaser p:last-child { margin: 0; }

/* --- Ask Luby ------------------------------------------------------------
   The scripted chat widget, bottom right of every LubyAI page. Lives here
   rather than in its own file because both pages load this stylesheet and a
   separate file would be a second request on each of them. */
.lb {
	position: fixed; right: 16px; bottom: 16px; z-index: 60;
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

.lb-launch {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 9px 16px 9px 10px; border-radius: 999px; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: linear-gradient(135deg, var(--ly-green), var(--ly-sky));
	color: #04121f; font-family: var(--ly-head); font-size: 14.5px; font-weight: 600;
	box-shadow: 0 10px 26px rgba(2, 8, 20, 0.45);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.lb-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(2, 8, 20, 0.55); }
.lb-launch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-launch-face {
	display: grid; place-items: center; flex: none;
	width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
}
.lb-launch-face svg { width: 22px; height: 22px; display: block; }
.lb-launch-dot {
	width: 9px; height: 9px; border-radius: 50%; flex: none;
	background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.lb-launch-dot[hidden] { display: none; }
.lb.is-open .lb-launch-text { display: none; }
.lb.is-open .lb-launch { padding: 9px; }

/* --- the panel ----------------------------------------------------------- */
.lb-panel {
	width: min(370px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 120px));
	max-height: min(560px, calc(100dvh - 120px));
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--ly-card);
	border: 1px solid var(--ly-border-strong);
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(2, 8, 20, 0.6);
	animation: lb-in 0.2s ease-out;
}
.lb-panel[hidden] { display: none; }
@keyframes lb-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

.lb-head {
	display: flex; align-items: center; gap: 10px; flex: none;
	padding: 12px 12px 12px 14px;
	border-bottom: 1px solid var(--ly-border);
	background: rgba(148, 163, 184, 0.06);
}
.lb-head-face {
	display: grid; place-items: center; flex: none;
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
}
.lb-head-face svg { width: 26px; height: 26px; display: block; }
.lb-head-copy { min-width: 0; }
.lb-head-name { margin: 0; font-family: var(--ly-head); font-size: 15px; font-weight: 600; color: var(--ly-text); }
.lb-head-note { margin: 1px 0 0; font-size: 11.5px; color: var(--ly-muted); }
.lb-close {
	margin-left: auto; flex: none; display: grid; place-items: center;
	width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
	background: transparent; border: 1px solid transparent; color: var(--ly-muted);
}
.lb-close:hover { background: rgba(148, 163, 184, 0.14); color: var(--ly-text); }
.lb-close:focus-visible { outline: 2px solid var(--ly-sky); outline-offset: 1px; }

/* --- messages -------------------------------------------------------------- */
.lb-log {
	flex: 1 1 auto; overflow-y: auto; padding: 14px;
	display: flex; flex-direction: column; gap: 11px;
	overscroll-behavior: contain;
}
.lb-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.lb-msg-you { justify-content: flex-end; }
.lb-msg-face {
	display: grid; place-items: center; flex: none;
	width: 26px; height: 26px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
}
.lb-msg-face svg { width: 20px; height: 20px; display: block; }

.lb-bubble {
	max-width: 78%; padding: 9px 13px; border-radius: 14px;
	font-size: 14px; line-height: 1.55;
}
.lb-msg-luby .lb-bubble {
	background: rgba(148, 163, 184, 0.12);
	border: 1px solid var(--ly-border);
	border-bottom-left-radius: 5px;
	color: var(--ly-body);
}
.lb-msg-you .lb-bubble {
	background: linear-gradient(135deg, var(--ly-green), var(--ly-green-dim));
	color: #04121f; font-weight: 500;
	border-bottom-right-radius: 5px;
}
.lb-bubble p { margin: 0; }

.lb-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.lb-action {
	display: inline-block; padding: 6px 12px; border-radius: 999px;
	font-size: 12.5px; font-weight: 600; text-decoration: none;
	background: rgba(34, 197, 94, 0.14); color: var(--ly-green);
	border: 1px solid rgba(34, 197, 94, 0.4);
}
.lb-action:hover { background: rgba(34, 197, 94, 0.24); }
.lb-action:focus-visible { outline: 2px solid var(--ly-green); outline-offset: 2px; }

.lb-dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.lb-dots i {
	width: 6px; height: 6px; border-radius: 50%; background: var(--ly-muted);
	animation: lb-bounce 1.1s infinite ease-in-out;
}
.lb-dots i:nth-child(2) { animation-delay: 0.15s; }
.lb-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lb-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* --- suggestions and input --------------------------------------------------- */
.lb-chips {
	flex: none; display: flex; flex-wrap: wrap; gap: 6px;
	padding: 0 14px 10px;
}
.lb-chips:empty { display: none; }
.lb-chip {
	padding: 7px 12px; border-radius: 999px; cursor: pointer;
	font-family: inherit; font-size: 12.5px; line-height: 1.3; text-align: left;
	background: rgba(14, 165, 233, 0.1);
	border: 1px solid rgba(14, 165, 233, 0.34);
	color: #7DD3FC;
}
.lb-chip:hover { background: rgba(14, 165, 233, 0.2); }
.lb-chip:focus-visible { outline: 2px solid var(--ly-sky); outline-offset: 2px; }

.lb-form {
	flex: none; display: flex; gap: 8px; padding: 10px 12px;
	border-top: 1px solid var(--ly-border);
	background: rgba(148, 163, 184, 0.05);
}
.lb-input {
	flex: 1 1 auto; min-width: 0; padding: 10px 13px;
	border-radius: 999px; font-family: inherit; font-size: 14px;
	background: var(--ly-navy); color: var(--ly-text);
	border: 1px solid var(--ly-border-strong);
}
.lb-input::placeholder { color: var(--ly-muted); }
.lb-input:focus-visible { outline: 2px solid var(--ly-green); outline-offset: 1px; }
.lb-send {
	flex: none; display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 0;
	background: linear-gradient(135deg, var(--ly-green), var(--ly-sky));
	color: #04121f;
}
.lb-send:hover { filter: brightness(1.08); }
.lb-send:focus-visible { outline: 3px solid var(--ly-green); outline-offset: 2px; }

.lb-sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.lb-panel { animation: none; }
	.lb-launch { transition: none; }
	.lb-launch:hover { transform: none; }
	.lb-dots i { animation: none; }
}

@media (max-width: 480px) {
	.lb { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
	.lb-launch { align-self: flex-end; }
	.lb-panel { width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
}
