/* L2Chat home page only. Shared chrome (header, mobile nav, footer) stays in site.css.
   Direction "After Hours": the business is shut, the window is still lit. */

.home {
	--h-ground: #0d0b1e;
	--h-surface: #161331;
	--h-surface-2: #1e1a40;
	--h-line: #2b2652;
	--h-text: #f1f0fa;
	--h-muted: #a7a3c4;
	--h-cyan: #22d3ee;
	--h-violet: #8b5cf6;
	--h-lit: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
	--h-dim: #221e45;
	--h-glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 30px 80px -20px rgba(139, 92, 246, 0.55), 0 0 120px -30px rgba(6, 182, 212, 0.6);
	--h-display: "Bricolage Grotesque", Georgia, serif;
	--h-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
	--h-digits: "JetBrains Mono", ui-monospace, monospace;

	--site-bg: var(--h-ground);
	--site-border: var(--h-line);
	--site-text: var(--h-text);
	--site-text-muted: var(--h-muted);
	--site-accent: var(--h-cyan);
	--site-font-sans: var(--h-body);

	background: var(--h-ground);
	color: var(--h-text);
	font-family: var(--h-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

:root.light .home {
	--h-ground: #f3f2fb;
	--h-surface: #ffffff;
	--h-surface-2: #e9e7f7;
	--h-line: #d6d3ec;
	--h-text: #17142f;
	--h-muted: #575275;
	--h-cyan: #0e7490;
	--h-violet: #6d3fe0;
	--h-dim: #dcd9ef;
	--h-glow: 0 0 0 1px rgba(14, 116, 144, 0.3), 0 30px 70px -24px rgba(109, 63, 224, 0.4);
}

.home .site-header { background: color-mix(in srgb, var(--h-ground) 82%, transparent); border-bottom-color: var(--h-line); }
.home .site-logo { font-family: var(--h-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.home .site-nav-link { font-family: var(--h-body); }
.home .site-footer { background: var(--h-ground); border-top: 1px solid var(--h-line); }
.home .mobile-nav-drawer { background: var(--h-surface); }

:where(.home) h1, :where(.home) h2, :where(.home) h3 {
	font-family: var(--h-display);
	font-optical-sizing: auto;
	letter-spacing: -0.025em;
	color: var(--h-text);
	margin: 0;
}
:where(.home) p { margin: 0; color: var(--h-muted); }
:where(.home) a { color: inherit; }
.home :focus-visible { outline: 3px solid var(--h-cyan); outline-offset: 3px; border-radius: 4px; }

.h-wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.h-section { padding-block: clamp(4rem, 9vw, 7.5rem); scroll-margin-top: 4.5rem; }
.h-section + .h-section { border-top: 1px solid var(--h-line); }

.h-kicker { font-family: var(--h-display); font-weight: 600; font-size: 1.05rem; color: var(--h-cyan); margin-bottom: 0.75rem; }
.h-title { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.04; font-weight: 700; max-width: 20ch; }
.h-lede { margin-top: 1rem; max-width: 56ch; font-size: 1.125rem; }

/* Buttons: squared-off, not pills */
.h-btn {
	display: inline-flex; align-items: center; gap: 0.6rem;
	min-height: 52px; padding: 0 1.4rem;
	border-radius: 10px; border: 1.5px solid var(--h-line);
	font-family: var(--h-display); font-weight: 600; font-size: 1.05rem;
	text-decoration: none; cursor: pointer; background: transparent; color: var(--h-text);
	transition: border-color 0.2s, transform 0.2s;
}
.h-btn:hover { border-color: var(--h-cyan); }
.h-btn--go { background: var(--h-text); color: var(--h-ground); border-color: var(--h-text); }
.h-btn--go:hover { transform: translateY(-1px); border-color: var(--h-text); }

/* ---------- Hero ---------- */
.h-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.h-hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); line-height: 0.96; font-weight: 800; letter-spacing: -0.035em; }
.h-hero h1 .h-after { display: block; color: var(--h-cyan); }
.h-hero .h-lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); margin-top: 1.5rem; }
.h-hero-price {
	margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem;
	padding-top: 1.25rem; border-top: 1px solid var(--h-line); max-width: 34rem;
}
.h-hero-price strong { font-family: var(--h-display); font-size: 1.6rem; font-weight: 700; color: var(--h-text); letter-spacing: -0.02em; }
.h-hero-price span { color: var(--h-muted); }
.h-hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The lit window: the real agent */
.h-window { position: relative; }
.h-window-label { display: flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; color: var(--h-muted); margin-bottom: 0.8rem; }
.h-window-label b { color: var(--h-text); font-weight: 700; }
.h-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); flex-shrink: 0; }
.h-window-frame {
	position: relative; height: 600px; border-radius: 22px; padding: 6px;
	background: var(--h-lit); box-shadow: var(--h-glow);
}
.h-window-inner { position: relative; height: 100%; border-radius: 17px; overflow: hidden; background: var(--h-surface); }
.h-window-inner l2-chat { position: absolute; inset: 0; display: block; width: 100%; height: 100%; z-index: 1; }
.h-window-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 2rem; gap: 0.75rem; }
.h-window-fallback a { color: var(--h-cyan); font-weight: 700; }

/* The 24-hour band */
.h-band { margin-top: clamp(2.5rem, 5vw, 4rem); }
.h-band-row { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 34px; }
.h-hour { border-radius: 3px; background: var(--h-dim); position: relative; overflow: hidden; }
.h-hour::after { content: ""; position: absolute; inset: 0; background: var(--h-lit); background-size: 2400% 100%; background-position: var(--pos) 0; opacity: 0; transition: opacity 0.35s ease; }
.h-hour.is-lit::after { opacity: 1; }
.h-hour.is-open { background: transparent; border: 1.5px dashed var(--h-line); }
.h-band-ticks { display: grid; grid-template-columns: repeat(24, 1fr); margin-top: 0.45rem; font-family: var(--h-digits); font-size: 0.72rem; color: var(--h-muted); }
.h-band-ticks span { grid-row: 1; }
.h-band-key { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-size: 0.95rem; }
.h-band-key i { display: inline-block; width: 22px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 0.45rem; }
.h-band-key .k-open { border: 1.5px dashed var(--h-line); }
.h-band-key .k-lit { background: var(--h-lit); }

/* ---------- From a question to a lead (a real sequence) ---------- */
.h-path { margin-top: 3rem; display: grid; gap: 0; counter-reset: step; }
.h-step { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 300px); gap: 1.5rem; padding-block: 2rem; border-top: 1px solid var(--h-line); align-items: start; }
.h-step-n { font-family: var(--h-digits); font-size: 0.95rem; color: var(--h-cyan); padding-top: 0.45rem; }
.h-step h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.12; font-weight: 700; }
.h-step p { margin-top: 0.6rem; max-width: 46ch; }
.h-step ul { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.h-step li { padding-left: 1.1rem; position: relative; color: var(--h-text); font-size: 0.98rem; }
.h-step li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 1px; background: var(--h-cyan); }
.h-step-shot { margin: 0; justify-self: end; width: 100%; max-width: 300px; }
.h-step-shot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--h-line); }

/* the lead, as a phone message slip */
.h-slip {
	justify-self: end; width: 100%; max-width: 300px;
	background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 6px;
	padding: 1.1rem 1.2rem 1.25rem; font-size: 0.95rem;
	box-shadow: 6px 6px 0 var(--h-dim);
}
.h-slip-head { font-family: var(--h-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--h-text); padding-bottom: 0.6rem; border-bottom: 2px solid var(--h-text); }
.h-slip dl { margin: 0.4rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0; }
.h-slip dt { color: var(--h-muted); padding: 0.55rem 0.8rem 0.3rem 0; }
.h-slip dd { margin: 0; border-bottom: 1px solid var(--h-line); }
.h-slip-ticks { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; color: var(--h-text); }
.h-slip-ticks span::before { content: "\2713"; color: var(--h-cyan); margin-right: 0.35rem; font-weight: 700; }

/* ---------- Inside the chat: the reel ---------- */
.h-reel { margin-top: 2.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--h-line) transparent; }
.h-reel figure { margin: 0; scroll-snap-align: start; }
.h-reel img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--h-line); background: #fff; }
.h-reel figcaption { margin-top: 0.6rem; font-family: var(--h-display); font-weight: 600; color: var(--h-text); }
.h-reel-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.h-link { color: var(--h-cyan) !important; font-weight: 700; text-underline-offset: 4px; }

/* ---------- Price ---------- */
.h-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.h-ticket { border: 1.5px solid var(--h-text); border-radius: 14px; overflow: hidden; background: var(--h-surface); }
.h-ticket-main { padding: clamp(1.5rem, 4vw, 2.25rem); }
.h-ticket-fig { font-family: var(--h-display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; letter-spacing: -0.04em; color: var(--h-text); }
.h-ticket-fig small { font-size: 0.32em; font-weight: 600; letter-spacing: 0; color: var(--h-muted); }
.h-ticket-incl { margin-top: 0.9rem; font-family: var(--h-display); font-size: 1.35rem; font-weight: 600; color: var(--h-text); }
.h-ticket-extra { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.5rem, 4vw, 2.25rem); border-top: 1.5px dashed var(--h-line); background: var(--h-surface-2); color: var(--h-text); }
.h-ticket-extra span:first-child { color: var(--h-muted); }
.h-ticket-cta { padding: 1.25rem clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2rem); }
.h-ticket-cta .h-btn { width: 100%; justify-content: center; }
.h-incl { margin: 1.5rem 0 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.h-incl li { break-inside: avoid; padding: 0.55rem 0 0.55rem 1.6rem; position: relative; border-bottom: 1px solid var(--h-line); color: var(--h-text); }
.h-incl li::before { content: "\2713"; position: absolute; left: 0; color: var(--h-cyan); font-weight: 700; }

/* ---------- Live on real sites ---------- */
.h-proof { font-family: var(--h-display); font-size: clamp(1.45rem, 3.1vw, 2.35rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; color: var(--h-muted); max-width: 30ch; margin-top: 0.5rem; }
.h-proof b { color: var(--h-text); font-weight: 750; }
.h-proof-note { margin-top: 0.75rem; font-size: 0.9rem; }
.h-sites { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--h-line); }
.h-site { display: flex; align-items: center; gap: 0.9rem; padding: 1.15rem 0.25rem; border-bottom: 1px solid var(--h-line); text-decoration: none; }
.h-site:hover .h-site-name { color: var(--h-cyan); }
.h-site-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.h-site-name { font-family: var(--h-display); font-weight: 650; font-size: 1.12rem; color: var(--h-text); display: block; transition: color 0.2s; }
.h-site-what { font-size: 0.9rem; color: var(--h-muted); display: block; }
.h-site-go { margin-left: auto; color: var(--h-muted); font-size: 0.85rem; white-space: nowrap; }
.h-demos-title { margin-top: 3rem; font-size: 1.35rem; font-weight: 700; }

/* ---------- Compare ---------- */
.h-compare { margin-top: 2.5rem; border-top: 1.5px solid var(--h-text); }
.h-crow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--h-line); align-items: baseline; }
.h-crow--head { font-family: var(--h-display); font-weight: 700; color: var(--h-muted); font-size: 0.95rem; }
.h-crow--head .c-us { color: var(--h-cyan); }
.h-crow .c-what { font-family: var(--h-display); font-weight: 650; color: var(--h-text); }
.h-crow .c-us { color: var(--h-text); }
.h-crow .c-them { color: var(--h-muted); }
.h-built { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.h-built h3 { font-size: 1.2rem; font-weight: 700; }
.h-built p { margin-top: 0.45rem; font-size: 0.98rem; }

/* ---------- Get one ---------- */
.h-get { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.h-get-n { font-family: var(--h-digits); color: var(--h-cyan); font-size: 0.95rem; }
.h-get h3 { margin-top: 0.4rem; font-size: 1.3rem; font-weight: 700; }
.h-get p { margin-top: 0.45rem; }
.h-close { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding: clamp(2rem, 5vw, 3.5rem); border-radius: 22px; background: var(--h-surface); border: 1px solid var(--h-line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.h-close h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; font-weight: 800; }
.h-close p { margin-top: 0.75rem; max-width: 52ch; }
.h-close-actions { display: grid; gap: 0.75rem; }
.h-agency { margin-top: 1.5rem; font-size: 0.95rem; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
	.h-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.h-window-frame { height: 540px; }
	.h-step { grid-template-columns: 2.25rem minmax(0, 1fr); }
	.h-step-shot, .h-slip { grid-column: 2; justify-self: start; max-width: 280px; }
	.h-price { grid-template-columns: minmax(0, 1fr); }
	.h-built, .h-get { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.h-close { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.h-wrap { width: calc(100% - 2rem); }
	.h-band-row { gap: 2px; height: 28px; }
	.h-incl { columns: 1; }
	.h-crow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.35rem 1rem; }
	.h-crow .c-what { grid-column: 1 / -1; }
	.h-crow--head .c-what { display: none; }
	.h-reel { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 1.5rem 0.9rem; padding-bottom: 0; }
	.h-reel figcaption { font-size: 0.95rem; }
	.h-hero-actions .h-btn { flex: 1 1 100%; justify-content: center; }
	.h-ticket-extra { flex-direction: column; gap: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
	.h-hour::after { transition: none; }
	.h-btn { transition: none; }
}

.h-path, .h-get { list-style: none; padding: 0; margin-bottom: 0; }
.h-get li { padding-top: 1.25rem; border-top: 1px solid var(--h-line); }
@media (max-width: 640px) { .h-tick-minor { visibility: hidden; } }

/* The way back to the live agent: a quiet tab, the hero keeps the brand colour */
.h-back {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0 0.95rem 0 0.8rem;
	border-radius: 6px; background: var(--h-surface); border: 1px solid var(--h-line); color: var(--h-text) !important;
	text-decoration: none; font-family: var(--h-display); font-weight: 700; font-size: 0.98rem;
	box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.55);
}
.h-back:hover { border-color: var(--h-cyan); }
.h-back svg { color: var(--h-cyan); flex-shrink: 0; }
.h-back[hidden] { display: none; }
@media (min-width: 901px) { .h-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
@media (min-width: 901px) { .h-reel { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 2rem 1.5rem; padding-bottom: 0; } }
