/* ===================================================================
   LocknAlert - site stylesheet
   Warm beige and teal blue. Flat colours only: no gradients, no blur,
   no glass. Content is laid out in simple rows; cards are used only
   for product listings.
   =================================================================== */

/* ===================================================================
   RESET
   =================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ===================================================================
   THEME
   =================================================================== */
:root {
	--bg: #eee9da;
	--bg-alt: #f6f2e8;
	--bg-accent: #e6e0cf;
	--white: #fdfbf6;

	--primary: #46758e;
	--primary-dark: #35596c;

	--ink: #1f2a30;
	--ink-soft: #55626a;
	--line: rgba(31, 42, 48, 0.14);

	--radius: 10px;
	--border: 1px solid var(--line);

	--s-1: 6px;
	--s-2: 10px;
	--s-3: 14px;
	--s-4: 20px;
	--s-5: 28px;
	--s-6: 40px;
	--s-7: 64px;
	--s-8: 88px;

	--header-h: 76px;

	/* Text on a --primary fill */
	--on-primary: #fff;
}

/* ===================================================================
   SCROLL THEMES
   The page moves from day into night as you scroll into the sections
   marked data-theme="night" (index.js sets data-theme on <html>).
   Registering the colours lets them cross-fade rather than snap.
   =================================================================== */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #eee9da; }
@property --bg-alt { syntax: "<color>"; inherits: true; initial-value: #f6f2e8; }
@property --bg-accent { syntax: "<color>"; inherits: true; initial-value: #e6e0cf; }
@property --white { syntax: "<color>"; inherits: true; initial-value: #fdfbf6; }
@property --primary { syntax: "<color>"; inherits: true; initial-value: #46758e; }
@property --primary-dark { syntax: "<color>"; inherits: true; initial-value: #35596c; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1f2a30; }
@property --ink-soft { syntax: "<color>"; inherits: true; initial-value: #55626a; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(31, 42, 48, 0.14); }
@property --on-primary { syntax: "<color>"; inherits: true; initial-value: #fff; }

html {
	transition:
		--bg 0.8s ease,
		--bg-alt 0.8s ease,
		--bg-accent 0.8s ease,
		--white 0.8s ease,
		--primary 0.8s ease,
		--primary-dark 0.8s ease,
		--ink 0.8s ease,
		--ink-soft 0.8s ease,
		--line 0.8s ease,
		--on-primary 0.8s ease;
}
@media (prefers-reduced-motion: reduce) {
	html {
		transition: none;
	}
}
html[data-theme="night"] {
	--bg: #121e26;
	--bg-alt: #16252f;
	--bg-accent: #1d313d;
	--white: #1a2c37;

	--primary: #86b9d1;
	--primary-dark: #abd2e4;

	--ink: #eef1ec;
	--ink-soft: #a7b6bd;
	--line: rgba(238, 233, 218, 0.16);

	--on-primary: #10202a;
}
/* The Home Assistant logo has a dark wordmark: knock it out to white */
.ha-split-logo {
	transition: filter 0.8s ease;
}
html[data-theme="night"] .ha-split-logo {
	filter: brightness(0) invert(1);
}
/* Site chrome and brand-coloured blocks keep the day palette at night */
header,
footer,
.cta-section,
.scroll-progress,
.tt-phone,
#locki-widget {
	--bg: #eee9da;
	--bg-alt: #f6f2e8;
	--bg-accent: #e6e0cf;
	--white: #fdfbf6;
	--primary: #46758e;
	--primary-dark: #35596c;
	--ink: #1f2a30;
	--ink-soft: #55626a;
	--line: rgba(31, 42, 48, 0.14);
	--border: 1px solid var(--line);
	--on-primary: #fff;
}

/* ===================================================================
   BASE
   =================================================================== */
html {
	scroll-behavior: smooth;
}
body {
	font-family:
		"Inter",
		system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Arial,
		sans-serif;
	background: var(--bg);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img {
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration: none;
}
p a,
li a,
td a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
p a:hover,
li a:hover,
td a:hover {
	color: var(--primary-dark);
}
strong {
	font-weight: 600;
}
.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px);
}

/* ===================================================================
   HEADER
   =================================================================== */
header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	background: var(--primary-dark);
	color: var(--bg);
	padding: 0 clamp(16px, 3vw, var(--s-6));
}
.site-logo {
	height: 72px;
	width: auto;
	display: block;
	flex-shrink: 0;
}
@media (max-width: 600px) {
	.site-logo {
		height: 56px;
	}
}

#main-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}
#main-nav a {
	font-size: 14px;
	font-weight: 500;
	color: var(--bg);
	padding: 8px 10px;
	border-radius: 6px;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}
#main-nav a:hover,
#main-nav a.nav-active {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 6px;
}
#main-nav a.nav-cta {
	margin-left: var(--s-2);
	background: var(--bg);
	color: var(--primary-dark);
	font-weight: 600;
	opacity: 1;
	padding: 8px 16px;
}
#main-nav a.nav-cta:hover {
	background: var(--white);
	text-decoration: none;
}

/* Hamburger button */
#menu-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid rgba(238, 233, 218, 0.4);
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
}
.bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--bg);
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}
#menu-toggle.is-open .bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
#menu-toggle.is-open .bar:nth-child(2) {
	opacity: 0;
}
#menu-toggle.is-open .bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1000px) {
	#menu-toggle {
		display: flex;
	}
	#main-nav {
		display: none;
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--primary-dark);
		padding: var(--s-2) var(--s-4) var(--s-4);
		border-top: 1px solid rgba(238, 233, 218, 0.15);
	}
	#main-nav.show {
		display: flex;
	}
	#main-nav a {
		padding: 12px 4px;
		border-bottom: 1px solid rgba(238, 233, 218, 0.12);
		border-radius: 0;
	}
	#main-nav a.nav-cta {
		margin: var(--s-3) 0 0;
		text-align: center;
		border-radius: 6px;
		border-bottom: none;
	}
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid var(--primary);
	border-radius: 6px;
	background: var(--primary);
	color: var(--on-primary);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}
.button:hover {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
	color: var(--on-primary);
	text-decoration: none;
}
.button.ghost {
	background: transparent;
	color: var(--primary);
}
.button.ghost:hover {
	background: var(--primary);
	color: var(--on-primary);
}
.button-lg {
	padding: 14px 28px;
	font-size: 16px;
}

/* ===================================================================
   SECTIONS
   =================================================================== */
section {
	padding: var(--s-8) 0;
	border-top: var(--border);
}
section:nth-of-type(even) {
	background: var(--bg-alt);
}
.hero,
.page-hero {
	border-top: none;
}
@media (max-width: 768px) {
	section {
		padding: var(--s-7) 0;
	}
}

section h2 {
	font-size: clamp(26px, 3.6vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.5px;
	color: var(--ink);
	margin-bottom: var(--s-3);
	text-align: center;
}
section h2 em {
	font-style: normal;
	color: var(--primary);
}
section h3 {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
}
.lede {
	max-width: 640px;
	margin: 0 auto var(--s-6);
	text-align: center;
	color: var(--ink-soft);
	font-size: 17px;
}
.section-label,
.story-eyebrow,
.pip-label {
	display: block;
	margin-bottom: var(--s-2);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary);
	text-align: center;
}
.muted {
	color: var(--ink-soft);
}

/* ===================================================================
   SCROLL REVEAL (simple fade)
   =================================================================== */
.reveal {
	opacity: 0;
	transition: opacity 0.6s ease;
}
.reveal.visible {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transition: none;
	}
}

/* Headings split into words by index.js: each word rises out of its own
   clip. The padding leaves room for descenders inside the clip. */
.split-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
}
.split-w > span {
	display: inline-block;
	transform: translateY(110%);
}

/* Reading progress, driven by Motion's scroll() in index.js */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
	height: 3px;
	background: var(--bg);
	transform: scaleX(0);
	transform-origin: 0 50%;
	pointer-events: none;
}

/* ===================================================================
   HOME HERO
   =================================================================== */
.hero {
	--hero-pad: clamp(16px, 4vw, 48px);
	background: var(--bg);
	padding: var(--s-8) var(--hero-pad) var(--s-7);
	/* The signal map spills past the phone; never let it widen the page */
	overflow-x: clip;
}
.hero-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-7);
	max-width: 1120px;
	margin: 0 auto;
}
.hero-content {
	flex: 1;
	min-width: 0;
}
/* The phone is a transparent cut-out, so it sits on the page with its own
   shadow and a soft brand-blue glow behind it */
.hero-visual {
	flex: 0 0 clamp(300px, 38%, 420px);
	display: flex;
	justify-content: center;
	background: radial-gradient(closest-side, rgba(70, 117, 142, 0.22), rgba(70, 117, 142, 0));
}
.hero-phone {
	display: block;
	/* Also capped by screen height so the whole phone fits on short laptops */
	width: clamp(240px, min(24vw, (100svh - 200px) * 0.49), 310px);
	height: auto;
	filter: drop-shadow(0 30px 34px rgba(31, 42, 48, 0.28))
		drop-shadow(0 6px 10px rgba(31, 42, 48, 0.18));
}
.phone-stack {
	position: relative;
}
.hero-phone {
	position: relative;
	z-index: 1;
}

/* Signal map: sensors around the phone report in to it. Line art in
   the brand blue; index.js draws it in on load and keeps it running. */
.hero-net-wrap {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40%;
	right: -40%;
	display: flex;
	align-items: center;
	pointer-events: none;
}
.hero-net {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.hero-net use,
.hero-toast use {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.net-ring,
.net-pulse,
.net-halo {
	stroke: var(--primary);
	stroke-width: 1.25;
}
.net-ring {
	stroke-opacity: 0.22;
}
.net-ring--dash {
	stroke-dasharray: 2 7;
	stroke-opacity: 0.4;
}
.net-ring,
.net-pulse,
.net-halo,
.net-node,
.cta-rings circle {
	transform-box: fill-box;
	transform-origin: center;
}
.net-link {
	stroke: var(--primary);
	stroke-opacity: 0.45;
	stroke-width: 1.25;
}
.net-packet {
	fill: var(--primary);
}
.net-node {
	color: var(--primary-dark);
	transition: color 0.3s ease;
}
.net-dot {
	fill: var(--white);
	stroke: var(--primary);
	stroke-width: 1.5;
	transition: fill 0.3s ease;
}
.net-node.is-active {
	color: #fff;
}
.net-node.is-active .net-dot {
	fill: var(--primary);
}

/* Notification banner that drops onto the phone screen */
.hero-toast {
	position: absolute;
	z-index: 2;
	top: 7.5%;
	left: 6%;
	right: 6%;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 11px;
	background: var(--white);
	border: var(--border);
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(31, 42, 48, 0.22);
	font-size: 12px;
	line-height: 1.3;
	color: var(--ink);
	pointer-events: none;
}
.hero-toast-ico {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--primary);
	color: #fff;
}
.hero-toast-text {
	flex: 1;
	min-width: 0;
}
.hero-toast-text strong,
.hero-toast-text span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hero-toast-text span {
	font-size: 11px;
	color: var(--ink-soft);
}
.hero-toast-time {
	align-self: flex-start;
	font-size: 10px;
	color: var(--ink-soft);
}

/* Intro: held back until index.js plays them in (see the script in <head>) */
.intro .hero-eyebrow,
.intro .hero h1,
.intro .hero-sub,
.intro .hero .buttons > *,
.intro .hero-chips > *,
.intro .hero-phone,
.intro .hero-toast,
.intro .hero-net-wrap {
	opacity: 0;
}

/* Every other page: its header (or article headline) is held back the same way */
.intro .page-hero > *,
.intro .article-headline,
.intro .article-meta,
.intro .policy > h1 {
	opacity: 0;
}

/* The mockup photo has a lilac backdrop baked in; shift it to blue */
.ha-split-phone {
	filter: hue-rotate(-30deg) saturate(0.85);
}
.hero-eyebrow {
	display: block;
	margin-bottom: var(--s-3);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primary);
}
.hero h1 {
	font-size: clamp(38px, 5.6vw, 62px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1.5px;
	color: var(--ink);
	margin-bottom: var(--s-4);
}
.hero h1 em {
	font-style: normal;
	color: var(--primary);
}
.hero-sub {
	max-width: 520px;
	margin-bottom: var(--s-5);
	font-size: 18px;
	color: var(--ink-soft);
}
.hero-sub strong {
	color: var(--ink);
}
.hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin-top: var(--s-5);
	font-size: 14px;
	color: var(--ink-soft);
}
.hero-disclaimer {
	max-width: 1120px;
	margin: var(--s-6) auto 0;
	font-size: 12px;
	color: var(--ink-soft);
}
.hero-disclaimer em {
	font-style: normal;
}
@media (max-width: 860px) {
	.hero-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--s-6);
	}
	/* Below the copy, big and centred */
	.hero-visual {
		flex: none;
		align-self: stretch;
	}
	.hero-phone {
		width: min(72vw, 330px);
	}
	/* Pull the sensors in so they stay on screen */
	.hero-net-wrap {
		left: -17%;
		right: -17%;
	}
}

/* ===================================================================
   PAGE HERO (sub-pages)
   =================================================================== */
.page-hero {
	background: var(--bg-alt);
	border-bottom: var(--border);
	text-align: center;
	padding: var(--s-8) clamp(16px, 4vw, 48px) var(--s-7);
}
.page-hero h1 {
	max-width: 820px;
	margin: 0 auto var(--s-3);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--ink);
}
.page-hero > p {
	max-width: 640px;
	margin: 0 auto var(--s-5);
	font-size: 18px;
	color: var(--ink-soft);
}
.page-hero .buttons {
	justify-content: center;
}
.back-link-row {
	margin-bottom: var(--s-3);
}
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-soft);
}
.back-link:hover {
	color: var(--primary);
}
.hero-badge {
	display: inline-block;
	margin-bottom: var(--s-2);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary);
}
.hero-price-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	margin-bottom: var(--s-4);
}
.hero-price {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1;
	color: var(--ink);
}
.hero-price-note {
	font-size: 15px;
	color: var(--ink-soft);
}

/* Short statement band under some page heroes */
.pain-bar {
	padding: var(--s-4) clamp(16px, 4vw, 48px);
	background: var(--bg);
	border-bottom: var(--border);
	text-align: center;
	font-size: 16px;
	color: var(--ink-soft);
}
.pain-bar strong {
	color: var(--ink);
}

/* ===================================================================
   ROW LISTS
   Steps, highlights, beliefs and feature points are shown as stacked
   rows with a thin divider, not as boxed cards.
   =================================================================== */
.how-steps,
.pdp-highlights,
.belief-grid,
.frigate-grid,
.scenario-grid {
	max-width: 900px;
	margin: 0 auto;
	border-top: var(--border);
}
.how-step,
.pdp-highlight,
.belief-card,
.frigate-card,
.scenario-card {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) 2.4fr;
	column-gap: var(--s-6);
	row-gap: 6px;
	align-items: start;
	padding: var(--s-5) 0;
	border-bottom: var(--border);
}
.how-step > *,
.pdp-highlight > *,
.belief-card > *,
.frigate-card > *,
.scenario-card > * {
	grid-column: 2;
}
.how-num,
.pdp-h-title,
.belief-title,
.frigate-card h3,
.sc-badge {
	grid-column: 1 !important;
	grid-row: 1 / span 2;
}
.how-num,
.sc-badge {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primary);
	padding-top: 4px;
}
.pdp-h-title,
.belief-title,
.frigate-card h3 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
}
.how-step h3,
.scenario-card h3 {
	font-size: 19px;
	margin-bottom: 2px;
}
.how-step p,
.pdp-h-desc,
.belief-desc,
.frigate-card p,
.scenario-card p {
	color: var(--ink-soft);
}
.pdp-h-icon,
.belief-icon,
.frigate-icon-wrap {
	display: none;
}
@media (max-width: 680px) {
	.how-step,
	.pdp-highlight,
	.belief-card,
	.frigate-card,
	.scenario-card {
		grid-template-columns: 1fr;
	}
	.how-step > *,
	.pdp-highlight > *,
	.belief-card > *,
	.frigate-card > *,
	.scenario-card > * {
		grid-column: 1;
	}
	.how-num,
	.pdp-h-title,
	.belief-title,
	.frigate-card h3,
	.sc-badge {
		grid-row: auto;
		padding-top: 0;
	}
}

.how-cta,
.frigate-cta,
.ha-btns,
.tt-btns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	justify-content: center;
	margin-top: var(--s-6);
}
.ha-btns,
.tt-btns {
	justify-content: flex-start;
	margin-top: var(--s-5);
}

/* Info blocks (contact, compatibility): stacked rows */
.card {
	max-width: 760px;
	margin: 0 auto;
	padding: var(--s-5) 0;
	border-bottom: var(--border);
}
.card:first-child {
	border-top: var(--border);
}
.card h3 {
	margin-bottom: var(--s-2);
}
.card p {
	color: var(--ink-soft);
}
.card ul {
	list-style: none;
}
.card li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 6px;
	color: var(--ink-soft);
}
.card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
}
.contact-link {
	font-size: 17px;
	font-weight: 600;
	color: var(--primary);
	text-decoration: none;
}

/* ===================================================================
   HOME: OUR STORY
   =================================================================== */
.story-inner {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: var(--s-7);
	align-items: center;
}
.story-portrait {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}
.story-img-badge {
	margin-top: var(--s-2);
	font-size: 13px;
	color: var(--ink-soft);
}
.story-text-col .story-eyebrow {
	text-align: left;
}
.story-heading {
	text-align: left;
	margin-bottom: var(--s-4);
}
.story-body {
	color: var(--ink-soft);
	margin-bottom: var(--s-4);
}
.story-pull {
	margin-bottom: var(--s-4);
	padding-left: var(--s-4);
	border-left: 2px solid var(--primary);
	font-size: 19px;
	font-weight: 500;
	color: var(--ink);
}
.story-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--primary);
}
.story-cta:hover {
	color: var(--primary-dark);
}
@media (max-width: 860px) {
	.story-inner {
		grid-template-columns: 1fr;
		gap: var(--s-5);
	}
	.story-img-col {
		max-width: 360px;
	}
}

/* ===================================================================
   HOME: HOW IT CONNECTS (simple three-step diagram)
   =================================================================== */
.pipeline-strip {
	padding: var(--s-7) 0;
	background: var(--bg-alt);
	border-top: var(--border);
}
.pip-flow {
	display: grid;
	grid-template-columns: 1fr 48px 1fr 48px 1fr;
	align-items: start;
	gap: var(--s-3);
	max-width: 960px;
	margin: var(--s-5) auto 0;
	text-align: center;
}
.pip-card {
	padding: 0 var(--s-2);
}
.pip-n {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--primary);
	margin-bottom: var(--s-2);
}
.pip-ico {
	display: flex;
	justify-content: center;
	color: var(--ink);
	margin-bottom: var(--s-2);
}
.pip-card-title {
	font-size: 17px !important;
	margin-bottom: 4px;
}
.pip-card-body {
	font-size: 14px;
	color: var(--ink-soft);
}
.pip-ico.is-hit {
	color: var(--primary);
}
.pip-ico {
	transition: color 0.3s ease;
}
.pip-beam {
	position: relative;
	align-self: center;
	height: 1px;
	background: var(--primary);
	margin-top: 20px;
	transform-origin: left center;
}
/* Data packet that index.js runs along each beam */
.pip-packet {
	position: absolute;
	top: 50%;
	left: 0;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	border-radius: 50%;
	background: var(--primary);
	opacity: 0;
}
@media (max-width: 760px) {
	.pip-flow {
		grid-template-columns: 1fr;
		gap: var(--s-4);
	}
	.pip-beam {
		width: 1px;
		height: 28px;
		margin: 0 auto;
		transform-origin: center top;
	}
	.pip-packet {
		top: 0;
		left: 50%;
	}
}

/* ===================================================================
   HOME: SCENARIOS (one plan-view drawing, scrubbed by scroll)
   The drawing stays pinned while the three steps scroll past it;
   index.js moves the car, gate, cameras and visitor to match.
   =================================================================== */
.scene-wrap {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: var(--s-7);
	align-items: start;
	max-width: 1040px;
	margin: 0 auto;
}
.scene-sticky {
	position: sticky;
	top: calc(var(--header-h) + (100vh - var(--header-h) - min(440px, 60vh)) / 2);
}
.scene-stage {
	position: relative;
	background: var(--white);
	border: var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.scene {
	display: block;
	width: 100%;
	height: auto;
}
.scene-wall,
.scene-line,
.scene-faint,
.scene-car rect,
.scene-car path,
.scene-person * {
	stroke: var(--ink);
	stroke-width: 1.5;
	stroke-linejoin: round;
}
.scene-wall {
	stroke-width: 2.5;
	transition: stroke 0.3s ease;
}
.scene.is-alert .scene-wall {
	stroke: var(--primary);
}
.scene-faint {
	stroke-opacity: 0.3;
}
.scene-dash {
	stroke-dasharray: 5 6;
}
.scene-zone,
.scene-cone {
	fill: var(--primary);
}
.scene-gate path {
	stroke: var(--primary);
	stroke-width: 5;
}
.scene-post,
.scene-cam {
	fill: var(--ink);
}
.scene-cam {
	fill: var(--primary);
	stroke: var(--white);
	stroke-width: 1.5;
}
.scene-car rect,
.scene-person * {
	fill: var(--white);
}
.scene-box {
	stroke: var(--primary);
	stroke-width: 2;
	stroke-linecap: square;
}
.scene-status {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px 5px 9px;
	border: var(--border);
	border-radius: 999px;
	background: var(--bg-alt);
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
	transition: color 0.3s ease;
}
.scene-status i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.scene-status.is-armed {
	color: var(--primary);
}
.scene-toast {
	top: auto;
	left: auto;
	right: 12px;
	bottom: 12px;
	max-width: calc(100% - 24px);
	padding-right: 16px;
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
}
.scene-toast.is-on {
	opacity: 1;
	transform: none;
}
.scene-step {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-height: 78vh;
	transition: opacity 0.4s ease;
}
.scene-step .sc-badge {
	padding-top: 0;
}
.scene-step h3 {
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.25;
	letter-spacing: -0.3px;
}
.scene-step p {
	color: var(--ink-soft);
	font-size: 17px;
}
/* Only once index.js is driving: the steps you're not on step back */
.scene-wrap.is-live .scene-step:not(.is-active) {
	opacity: 0.3;
}
@media (max-width: 860px) {
	.scene-wrap {
		grid-template-columns: 1fr;
		gap: 0;
	}
	/* Pinned under the header, with the steps scrolling beneath it */
	.scene-sticky {
		top: var(--header-h);
		z-index: 5;
		margin: 0 calc(-1 * clamp(16px, 4vw, 48px));
		padding: var(--s-3) clamp(16px, 4vw, 48px);
		background: var(--bg);
		border-bottom: var(--border);
	}
	.scene-stage {
		max-width: 440px;
		margin: 0 auto;
	}
	.scene-step {
		min-height: 52vh;
	}
}

/* ===================================================================
   HOME: TIKTOK CLIP
   =================================================================== */
.tt-split {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: var(--s-7);
	align-items: center;
}
.tt-text .section-label,
.tt-text h2 {
	text-align: left;
}
.tt-text > p {
	color: var(--ink-soft);
	margin-bottom: var(--s-4);
}
.tt-points,
.ha-feat-list,
.pdp-feats,
.prod-feats {
	list-style: none;
}
.tt-points li,
.ha-feat-list li,
.pdp-feats li,
.prod-feats li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 8px;
	color: var(--ink-soft);
}
.tt-points li::before,
.ha-feat-list li::before,
.pdp-feats li::before,
.prod-feats li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
}
.tt-visual {
	display: flex;
	justify-content: center;
}
.tt-phone {
	width: min(300px, 100%);
	padding: 10px;
	border-radius: 34px;
	background: var(--ink);
	/* Hairline so the bezel still reads against the night background */
	box-shadow: 0 0 0 1px rgba(238, 233, 218, 0.16);
}
.tt-screen {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 26px;
	overflow: hidden;
	background: var(--ink);
	color: #fff;
}
.tt-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tt-screen svg {
	display: block;
	width: 100%;
	height: 100%;
}
.tt-screen svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tt-screen svg .f {
	fill: currentColor;
	stroke: none;
}
.tt-tap {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.tt-play {
	width: 64px;
	height: 64px;
	padding: 18px 16px 18px 20px;
	border-radius: 50%;
	background: rgba(31, 42, 48, 0.6);
	color: #fff;
	transition: opacity 0.2s ease;
}
.tt-play path {
	fill: currentColor !important;
	stroke: none !important;
}
.tt-phone.is-playing .tt-play {
	opacity: 0;
}
.tt-mute {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	width: 32px;
	height: 32px;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: rgba(31, 42, 48, 0.6);
	color: #fff;
	cursor: pointer;
}
.tt-ico-on,
.tt-phone.is-unmuted .tt-ico-off {
	display: none !important;
}
.tt-phone.is-unmuted .tt-ico-on {
	display: block !important;
}
.tt-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	height: 3px;
	background: rgba(255, 255, 255, 0.25);
}
.tt-progress span {
	display: block;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left;
	background: var(--bg);
}
@media (max-width: 860px) {
	.tt-split {
		grid-template-columns: 1fr;
		gap: var(--s-6);
	}
}

/* ===================================================================
   HOME ASSISTANT SPLIT
   =================================================================== */
.ha-split {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: var(--s-7);
	align-items: center;
}
.ha-split-visual {
	display: flex;
	justify-content: center;
}
.ha-split-phone {
	width: 100%;
	max-width: 480px;
	border-radius: 22px;
}
.ha-split-logo {
	display: block;
	height: 40px;
	width: auto;
	margin-bottom: var(--s-4);
}
.ha-split-text .section-label,
.ha-split-text h2 {
	text-align: left;
}
.ha-split-text > p {
	color: var(--ink-soft);
	margin-bottom: var(--s-4);
}
@media (max-width: 860px) {
	.ha-split {
		grid-template-columns: 1fr;
		gap: var(--s-5);
	}
	.ha-split-phone {
		max-width: 240px;
	}
}

/* ===================================================================
   PRODUCT CARDS (the one place cards are used)
   =================================================================== */
.prod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--s-5);
}
.prod-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.15s ease;
}
.prod-card:hover {
	border-color: var(--primary);
}
.prod-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.prod-img-wrap {
	aspect-ratio: 4 / 3;
	background: var(--bg-alt);
	border-bottom: var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.prod-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.prod-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--s-5);
}
.prod-tag {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: var(--s-2);
}
.prod-price {
	font-size: 24px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.2;
}
.prod-name {
	font-size: 19px !important;
	margin: 4px 0 var(--s-2);
}
.prod-desc {
	color: var(--ink-soft);
	font-size: 15px;
	margin-bottom: var(--s-3);
}
.prod-feats {
	margin-bottom: var(--s-4);
	font-size: 14px;
}
.prod-btn,
.prod-actions {
	position: relative;
	z-index: 2;
	margin-top: auto;
}
.prod-actions {
	display: flex;
	gap: var(--s-2);
}
.prod-actions .prod-btn {
	flex: 1;
	margin-top: 0;
}
.prod-demo-creds {
	position: relative;
	z-index: 2;
	margin-top: var(--s-2);
	font-size: 13px;
	color: var(--ink-soft);
}

.compat-note,
.build-notice {
	display: flex;
	gap: var(--s-3);
	align-items: flex-start;
	max-width: 900px;
	margin: var(--s-6) auto 0;
	padding: var(--s-4);
	border: var(--border);
	border-left: 3px solid var(--primary);
	border-radius: 6px;
	background: var(--bg-alt);
	font-size: 15px;
	color: var(--ink-soft);
}
.compat-note svg,
.build-notice svg {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--primary);
}
.compat-note strong,
.build-notice strong {
	color: var(--ink);
}

/* ===================================================================
   PRODUCT DETAIL PAGE
   =================================================================== */
.pdp-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--s-7);
	align-items: start;
}
.pdp-img-col img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	border: var(--border);
	background: var(--white);
}
.pdp-info-col {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}
.pdp-prices {
	display: flex;
	align-items: baseline;
	gap: var(--s-2);
}
.pdp-price-sale {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -1px;
	color: var(--ink);
}
.pdp-desc {
	color: var(--ink-soft);
}
.pdp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
}
.pdp-note {
	font-size: 13px;
	color: var(--ink-soft);
}
.pdp-demo {
	padding-top: var(--s-4);
	border-top: var(--border);
}
.pdp-demo-title {
	font-size: 16px !important;
	margin-bottom: var(--s-3);
}
.pdp-demo-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-3);
	margin-bottom: var(--s-2);
}
.pdp-demo-creds {
	font-size: 14px;
	color: var(--ink-soft);
}
.pdp-included {
	max-width: 900px;
	margin: 0 auto;
}
.pdp-included h3 {
	margin-bottom: var(--s-3);
}
.pdp-included-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0 var(--s-6);
	border-top: var(--border);
}
.pdp-included-item {
	position: relative;
	padding: var(--s-3) 0 var(--s-3) 18px;
	border-bottom: var(--border);
	color: var(--ink-soft);
}
.pdp-included-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(var(--s-3) + 0.7em);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
}
@media (max-width: 860px) {
	.pdp-inner {
		grid-template-columns: 1fr;
		gap: var(--s-5);
	}
}

/* ===================================================================
   TESTIMONIALS (plain quotes)
   =================================================================== */
.t-section-head {
	text-align: center;
	margin-bottom: var(--s-6);
}
.t-section-head > p {
	max-width: 620px;
	margin: 0 auto var(--s-3);
	color: var(--ink-soft);
}
.t-compare-pill {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
	color: var(--ink-soft);
}
.t-compare-bad {
	text-decoration: line-through;
}
.t-compare-good {
	font-weight: 600;
	color: var(--primary);
}
.testimonials-grid {
	max-width: 760px;
	margin: 0 auto;
	border-top: var(--border);
}
.t-card {
	padding: var(--s-5) 0;
	border-bottom: var(--border);
}
.t-stars {
	font-size: 14px;
	letter-spacing: 3px;
	color: var(--primary);
	margin-bottom: var(--s-2);
}
.t-card blockquote {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
	margin-bottom: var(--s-3);
}
.t-card figcaption {
	display: flex;
	align-items: center;
	gap: var(--s-3);
}
.t-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	flex-shrink: 0;
}
.t-name {
	display: block;
	font-weight: 600;
}
.t-role {
	display: block;
	font-size: 14px;
	color: var(--ink-soft);
}
.t-card-stat {
	text-align: center;
}
.t-stat-number {
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	color: var(--primary);
}
.t-stat-suffix {
	font-weight: 600;
	margin: 6px 0 var(--s-2);
}
.t-stat-desc {
	max-width: 480px;
	margin: 0 auto var(--s-2);
	color: var(--ink-soft);
}
.t-stat-saving {
	font-size: 14px;
	color: var(--ink-soft);
}

/* ===================================================================
   CALL TO ACTION BAND
   =================================================================== */
.cta-section {
	position: relative;
	overflow: hidden;
	background: var(--primary) !important;
	border-top: none;
	color: #fff;
}
.cta-section > .container {
	position: relative;
	z-index: 1;
}
/* The hero's signal rings again, closing the page (added by index.js) */
.cta-rings {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.cta-rings circle {
	fill: none;
	stroke: #fff;
	stroke-opacity: 0.14;
	stroke-width: 1.25;
}
.cta-rings .cta-ring--dash {
	stroke-dasharray: 3 10;
	stroke-opacity: 0.3;
}
.cta-rings .cta-pulse {
	stroke-opacity: 0.5;
}
.cta-card {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.cta-card h2 {
	color: #fff;
}
.cta-card p {
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: var(--s-5);
}
.cta-card .buttons {
	justify-content: center;
}
.cta-card .button {
	background: var(--bg);
	border-color: var(--bg);
	color: var(--primary-dark);
}
.cta-card .button:hover {
	background: var(--white);
	border-color: var(--white);
}
.cta-card .button.ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}
.cta-card .button.ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
	background: var(--primary-dark);
	color: rgba(238, 233, 218, 0.85);
	padding: var(--s-6) 0;
	text-align: center;
	font-size: 14px;
}
footer p {
	margin-top: var(--s-2);
}
footer a {
	color: var(--bg);
}
footer a:hover {
	text-decoration: underline;
}
.social-links {
	display: flex;
	justify-content: center;
	gap: var(--s-2);
	margin-bottom: var(--s-3);
}
.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(238, 233, 218, 0.35);
	border-radius: 50%;
	color: var(--bg);
}
.social-link:hover {
	background: rgba(238, 233, 218, 0.12);
}
.social-link svg {
	width: 16px;
	height: 16px;
}

/* ===================================================================
   ABOUT PAGE
   =================================================================== */
.about-inner {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: var(--s-7);
	align-items: start;
}
.about-img-wrap img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}
.about-img-caption {
	margin-top: var(--s-3);
}
.about-name {
	font-weight: 600;
}
.about-role {
	font-size: 14px;
	color: var(--ink-soft);
}
.about-text-col h2 {
	text-align: left;
}
.about-text-col p {
	color: var(--ink-soft);
	margin-bottom: var(--s-3);
}
.about-pull {
	margin: var(--s-4) 0;
	padding-left: var(--s-4);
	border-left: 2px solid var(--primary);
	font-size: 19px;
	font-weight: 500;
	color: var(--ink);
}
@media (max-width: 860px) {
	.about-inner {
		grid-template-columns: 1fr;
		gap: var(--s-5);
	}
	.about-img-wrap {
		max-width: 360px;
	}
}

/* ===================================================================
   BLOG
   =================================================================== */
.blog-grid {
	max-width: 760px;
	margin: 0 auto;
	border-top: var(--border);
}
.blog-card {
	padding: var(--s-5) 0;
	border-bottom: var(--border);
}
.blog-card-meta {
	font-size: 13px;
	color: var(--ink-soft);
	margin-bottom: 4px;
}
.blog-card-title {
	text-align: left !important;
	font-size: 22px !important;
	margin-bottom: var(--s-2) !important;
}
.blog-card-excerpt {
	color: var(--ink-soft);
	margin-bottom: var(--s-2);
}
.blog-card-link {
	font-weight: 600;
	color: var(--primary);
}
.blog-card-link:hover {
	color: var(--primary-dark);
}

.article-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px);
}
.article-back {
	display: inline-block;
	margin-bottom: var(--s-4);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-soft);
}
.article-back:hover {
	color: var(--primary);
}
.article-headline {
	font-size: clamp(30px, 4.4vw, 42px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.8px;
	margin-bottom: var(--s-3);
}
.article-meta {
	font-size: 14px;
	color: var(--ink-soft);
	padding-bottom: var(--s-4);
	margin-bottom: var(--s-5);
	border-bottom: var(--border);
}
.article-body h2 {
	text-align: left;
	font-size: 24px;
	margin: var(--s-6) 0 var(--s-3);
}
.article-body h3 {
	margin: var(--s-5) 0 var(--s-2);
}
.article-body p {
	margin-bottom: var(--s-3);
	font-size: 17px;
}
.article-body ul,
.article-body ol {
	margin: 0 0 var(--s-4) 1.3em;
}
.article-body li {
	margin-bottom: 6px;
	font-size: 17px;
}
.article-body code {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.9em;
	background: var(--bg-accent);
	padding: 1px 6px;
	border-radius: 4px;
}
.article-body pre {
	overflow-x: auto;
	margin-bottom: var(--s-4);
	padding: var(--s-3);
	background: var(--bg-accent);
	border-radius: 6px;
	font-size: 14px;
}
.article-body pre code {
	background: none;
	padding: 0;
}
.article-cta {
	margin-top: var(--s-6);
	padding: var(--s-5);
	border: var(--border);
	border-left: 3px solid var(--primary);
	border-radius: 6px;
	background: var(--bg-alt);
}
.article-cta h3 {
	margin: 0 0 var(--s-2);
}
.article-cta p {
	color: var(--ink-soft);
	margin-bottom: var(--s-4);
}


/* ===================================================================
   POLICY / LONG-FORM PAGES
   =================================================================== */
.policy {
	max-width: 760px;
	margin: 0 auto;
	padding: var(--s-7) clamp(16px, 4vw, 48px);
}
.policy h1 {
	font-size: clamp(30px, 4.4vw, 42px);
	font-weight: 800;
	letter-spacing: -0.8px;
	margin-bottom: var(--s-2);
}
.policy h2 {
	font-size: 24px;
	margin: var(--s-6) 0 var(--s-3);
}
.policy h3 {
	font-size: 18px;
	margin: var(--s-5) 0 var(--s-2);
}
.policy p {
	margin-bottom: var(--s-3);
}
.policy ul,
.policy ol {
	margin: 0 0 var(--s-3) 1.3em;
}
.policy li {
	margin-bottom: 6px;
}
.policy-meta {
	font-size: 14px;
	color: var(--ink-soft);
	margin-bottom: var(--s-5);
}

/* ===================================================================
   TABLES
   =================================================================== */
.tick {
	color: var(--primary);
	font-weight: 600;
}
.cross {
	color: var(--ink-soft);
}

/* ===================================================================
   ASK LOCKI WIDGET
   =================================================================== */
#locki-widget {
	position: fixed;
	right: var(--s-4);
	bottom: var(--s-4);
	z-index: 2000;
}
#locki-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(31, 42, 48, 0.18);
}
#locki-toggle:hover {
	background: var(--primary-dark);
}
#locki-widget.open #locki-toggle {
	display: none;
}
#locki-panel {
	display: none;
	flex-direction: column;
	width: min(360px, calc(100vw - 2 * var(--s-4)));
	height: min(520px, calc(100vh - 120px));
	background: var(--bg-alt);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: 0 6px 24px rgba(31, 42, 48, 0.16);
	overflow: hidden;
	margin-bottom: var(--s-3);
}
#locki-widget.open #locki-panel {
	display: flex;
}
#locki-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--s-3) var(--s-4);
	background: var(--primary);
	color: #fff;
	flex-shrink: 0;
}
#locki-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	width: 28px;
	height: 28px;
	border-radius: 50%;
}
#locki-close:hover {
	background: rgba(255, 255, 255, 0.15);
}
#locki-log {
	flex: 1;
	overflow-y: auto;
	padding: var(--s-3);
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
}
#locki-empty {
	color: var(--ink-soft);
	text-align: center;
	margin: auto;
	font-size: 0.9rem;
	line-height: 1.5;
}
.locki-msg {
	padding: var(--s-2) var(--s-3);
	border-radius: 10px;
	max-width: 85%;
	font-size: 0.9rem;
	line-height: 1.45;
	white-space: pre-wrap;
}
.locki-msg.user {
	align-self: flex-end;
	background: var(--primary);
	color: #fff;
}
.locki-msg.assistant {
	align-self: flex-start;
	background: var(--white);
	color: var(--ink);
	border: var(--border);
}
.locki-msg.pending {
	align-self: flex-start;
	color: var(--ink-soft);
}
.locki-msg.error {
	align-self: flex-start;
	background: var(--bg-accent);
	color: var(--ink);
}
.locki-typing {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}
.locki-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.35;
	animation: locki-typing 1s infinite ease-in-out;
}
.locki-typing span:nth-child(2) {
	animation-delay: 0.15s;
}
.locki-typing span:nth-child(3) {
	animation-delay: 0.3s;
}
@keyframes locki-typing {
	0%,
	60%,
	100% {
		opacity: 0.35;
	}
	30% {
		opacity: 1;
	}
}
#locki-form {
	display: flex;
	gap: var(--s-2);
	padding: var(--s-3);
	border-top: var(--border);
	flex-shrink: 0;
}
#locki-input {
	flex: 1;
	resize: none;
	height: 44px;
	padding: var(--s-2);
	border: var(--border);
	border-radius: 6px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 0.9rem;
}
#locki-ask-btn {
	border: none;
	border-radius: 6px;
	padding: 0 var(--s-4);
	background: var(--primary);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
#locki-ask-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
@media (max-width: 480px) {
	#locki-widget {
		right: var(--s-2);
		bottom: var(--s-2);
	}
}
