/* Home page. Product windows, atmosphere, sections. Tokens come from base.css / theme.json. */

/* Home overrides of the shared section rhythm (5rem / 7rem). */
.home-page-atmosphere { position: relative; isolation: isolate; background: var(--bg); overflow-x: clip; }
.home-page-atmosphere [id] { scroll-margin-top: 96px; }
.home-page-content { position: relative; z-index: 10; }
.home-page-content > * + * { margin-block-start: 0; }
.home-page-content .bosly-section { padding-block: 5rem; }
.home-page-content .bosly-section__body { margin-top: 2.5rem; }
#home-assistant { padding-bottom: 2.5rem; }
#how-it-works { padding-top: 2.5rem; }
#why-bosly { padding-bottom: 2rem; }
@media (min-width: 768px) {
	.home-page-content .bosly-section { padding-block: 7rem; }
	#home-assistant { padding-bottom: 3.5rem; }
	#how-it-works { padding-top: 3.5rem; }
	#why-bosly { padding-bottom: 3rem; }
}

/* ---------- Atmosphere (page-wide, decorative) ---------- */
.home-atmosphere {
	position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
	background:
		radial-gradient(ellipse 54rem 44rem at 78% 8%, color-mix(in oklab, var(--accent-start) 15%, transparent), transparent 72%),
		radial-gradient(ellipse 48rem 42rem at 97% 25%, color-mix(in oklab, var(--accent-end) 12%, transparent), transparent 70%),
		radial-gradient(ellipse 58rem 46rem at 5% 48%, color-mix(in oklab, var(--accent-start) 8%, transparent), transparent 73%),
		radial-gradient(ellipse 48rem 40rem at 86% 73%, color-mix(in oklab, var(--accent-end) 9%, transparent), transparent 72%),
		radial-gradient(ellipse 55rem 42rem at 18% 94%, color-mix(in oklab, var(--accent-start) 7%, transparent), transparent 74%);
}
.home-atmosphere-glow { position: absolute; width: 58rem; height: 50rem; border-radius: 50%; filter: blur(70px); opacity: 0.65; will-change: transform; }
.glow-one { top: 4%; right: -18rem; background: radial-gradient(circle, color-mix(in oklab, var(--accent-start) 17%, transparent), color-mix(in oklab, var(--accent-end) 8%, transparent) 42%, transparent 72%); animation: home-glow-drift-one 28s ease-in-out infinite alternate; }
.glow-two { top: 38%; left: -24rem; background: radial-gradient(circle, color-mix(in oklab, var(--accent-end) 12%, transparent), color-mix(in oklab, var(--accent-start) 6%, transparent) 45%, transparent 72%); animation: home-glow-drift-two 34s ease-in-out infinite alternate; }
.glow-three { top: 72%; right: -20rem; background: radial-gradient(circle, color-mix(in oklab, var(--accent-start) 12%, transparent), color-mix(in oklab, var(--accent-end) 6%, transparent) 43%, transparent 72%); animation: home-glow-drift-three 31s ease-in-out infinite alternate; }
.home-atmosphere-ribbon { position: absolute; left: -15%; width: 130%; height: 220px; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--fg) 8%, transparent), transparent); filter: blur(46px); opacity: 0.6; will-change: transform; }
.home-ribbon-one { top: 21%; transform: rotate(-24deg) skewX(-28deg); animation: home-ribbon-drift 36s ease-in-out infinite alternate; }
.home-ribbon-two { top: 66%; transform: rotate(19deg) skewX(-20deg); opacity: 0.42; animation: home-ribbon-drift-two 42s ease-in-out infinite alternate; }
.home-atmosphere-grid { position: absolute; inset: 0; background-image: radial-gradient(var(--fg) 0.55px, transparent 0.75px); background-size: 22px 22px; opacity: 0.02; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }
.home-atmosphere-noise, .hero-noise { position: absolute; inset: 0; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.hero-noise { opacity: 0.035; }

/* ---------- Hero canvas (hero + showcase) ---------- */
.hero-canvas {
	position: relative; isolation: isolate; overflow-x: clip;
	--hero-surface: var(--wp--preset--color--background); --hero-ink: var(--wp--preset--color--foreground); --hero-muted-ink: var(--wp--preset--color--foreground-soft); --hero-hairline: rgba(255, 255, 255, 0.13);
	--hero-window-surface: var(--wp--preset--color--surface-raised); --hero-muted-surface: var(--wp--preset--color--surface-muted);
	--hero-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
	--bg: var(--hero-surface); --fg: var(--hero-ink); --primary: var(--hero-ink); --primary-fg: var(--hero-surface);
	--muted-fg: var(--hero-muted-ink); --border: var(--hero-hairline); --card: var(--hero-window-surface); --muted: var(--hero-muted-surface);
	color: var(--fg);
}
.hero-canvas-atmosphere {
	position: absolute; inset: 0; z-index: -10; pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%); mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
	background:
		radial-gradient(ellipse 65% 62% at 82% 32%, color-mix(in oklab, var(--accent-start) 18%, transparent), transparent 76%),
		radial-gradient(ellipse 55% 58% at 100% 34%, color-mix(in oklab, var(--accent-end) 16%, transparent), transparent 76%),
		conic-gradient(from 220deg at 74% 25%, transparent 0deg, color-mix(in oklab, var(--fg) 5%, transparent) 22deg, transparent 50deg),
		linear-gradient(to bottom, var(--hero-surface), transparent);
}
.hero-canvas-grid { position: absolute; inset: 0; background-image: radial-gradient(var(--fg) 0.6px, transparent 0.8px); background-size: 20px 20px; opacity: 0.02; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 70%, transparent 100%); }
.hero-ribbon { position: absolute; left: 45%; top: 9%; width: 90%; height: 160px; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--fg) 8%, transparent), transparent); filter: blur(35px); transform: rotate(-35deg) skewX(-30deg); animation: canvas-ribbon-drift 32s ease-in-out infinite alternate; }
.ribbon-two { top: 40%; left: 55%; height: 200px; opacity: 0.55; animation-delay: -16s; }
.hero-bottom-fade { position: absolute; inset: auto 0 0 0; height: 12rem; pointer-events: none; }

.home-hero {
	position: relative; min-height: 100svh; margin-bottom: -6rem; padding: 88px 1.25rem 0; background: transparent; color: inherit;
}
.hero-frame { position: relative; display: grid; max-width: 80rem; margin-inline: auto; align-items: center; min-height: calc(100svh - 88px); align-content: center; }
.hero-copy { position: relative; z-index: 10; min-width: 0; padding: 48px 14px 40px; }
.home-title { margin: 1.5rem 0 0; max-width: 560px; font-family: var(--font-display); font-size: 42px; font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; }
.hero-sub { max-width: 36rem; margin: 1.75rem 0 0; font-size: 1rem; line-height: 1.625; color: var(--muted-fg); }
.hero-pill { height: auto; max-width: 36rem; margin-top: 1.25rem; padding: 0.5rem 1rem; text-align: left; font-size: 0.75rem; white-space: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-reassure { margin: 1.25rem 0 0; font-size: 0.75rem; color: var(--muted-fg); }

.hero-product-stage { position: relative; min-width: 0; height: 290px; perspective: 1800px; }
.hero-product-stack {
	position: absolute; top: 15px; left: 50%; margin-left: -450px; width: 900px; height: 730px; transform-origin: top center; scale: 0.37;
	transform: rotateX(var(--rx, 2deg)) rotateY(var(--ry, -8deg));
}
.product-window {
	overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: color-mix(in oklab, var(--card) 95%, transparent);
	color: var(--fg); box-shadow: var(--hero-shadow, 0 20px 50px color-mix(in oklab, var(--fg) 8%, transparent));
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.product-chrome { display: flex; height: 38px; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; color: var(--muted-fg); }
.mk-dots { display: flex; gap: 6px; }
.product-chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-fg); opacity: 0.45; }
.mk-chrome-spacer { width: 32px; }
.stack-dashboard { position: absolute; top: 30px; left: 0; width: 900px; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); animation: product-enter 0.7s ease-out both, product-float 10s 1s ease-in-out infinite; }
.stack-chat { position: absolute; top: 345px; left: -48px; z-index: 2; width: 440px; animation: product-enter 0.7s 0.15s ease-out both, product-float 12s 1s ease-in-out infinite reverse; }
.stack-invoice { position: absolute; top: -15px; right: -10px; z-index: 3; display: none; width: 224px; animation: product-enter 0.7s 0.3s ease-out both, product-float 11s 1s ease-in-out infinite; }
.invoice-detail { padding: 22px; }
.invoice-detail p { margin: 0; }
.invoice-detail > .bosly-icon { stroke-width: 1.3; }
.mk-inv-no { margin-top: 1rem !important; font-size: 12px; font-weight: 400; }
.mk-inv-amount { margin-top: 0.5rem !important; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.2; }
.invoice-detail .mk-note--lg { margin-top: 0.5rem !important; font-size: 12px; }
.invoice-detail > .mk-note--lg:first-child { margin: 0 0 1.25rem !important; font-size: 11px; }
.mk-inv-status { height: 1.75rem; margin-top: 1.25rem; }
.invoice-detail > .mk-note:last-child { margin-top: 0.75rem !important; font-size: 10px; }
.product-status { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; border: 1px solid var(--border); border-radius: 5px; padding: 4px 6px; font-size: 10px; color: var(--muted-fg); background: color-mix(in oklab, var(--muted) 60%, transparent); }
.invoice-morph { animation: invoice-morph 0.35s ease-out; }
.product-caret { display: inline-block; height: 12px; width: 1px; margin-left: 4px; vertical-align: -2px; background: var(--muted-fg); animation: ai-caret 1s step-end infinite; }

/* Mockup inner layout. Tailwind text-xs/sm leading (16px/20px) is reproduced explicitly. */
.product-window, .bigdash, .tile-prev { line-height: 1.333; }
.product-window p, .bigdash p, .tile-prev p { line-height: inherit; }
.mk-h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.mk-h3--lg { margin-bottom: 1.5rem; }
.mk-h3--xl { margin: 1.5rem 0 0; font-size: 30px; line-height: 1.2; }
.mk-note { margin: 0.25rem 0 0; font-size: 12px; color: var(--muted-fg); }
.mk-dash { display: flex; min-height: 510px; }
.mk-side { width: 158px; flex: none; padding: 24px 16px; border-right: 1px solid var(--border); }
.mk-side__logo { display: block; width: 80px; height: auto; margin-bottom: 28px; }
.mk-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 8px; border-radius: 10px; font-size: 12px; color: var(--muted-fg); }
.mk-nav.is-active { background: var(--muted); color: var(--fg); }
.mk-nav--addon { margin-bottom: 12px; padding: 0; }
.mk-side__addons { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted-fg); }
.mk-side__company { margin: 48px 0 0; font-size: 11px; color: var(--muted-fg); }
.mk-main { min-width: 0; flex: 1; padding: 24px; }
.mk-main__head { display: flex; justify-content: space-between; margin-bottom: 24px; }
.mk-main__head .mk-note { margin-top: 4px; }
.mk-period { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-fg); }
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mk-kpi { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.mk-kpi p { margin: 0; font-size: 12px; white-space: nowrap; color: var(--muted-fg); }
.mk-kpi strong { display: block; margin: 8px 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.mk-kpi small { font-size: 11px; color: var(--muted-fg); }
.mk-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; }
.mk-split__title { display: flex; align-items: center; justify-content: space-between; }
.mk-split h4 { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.mk-split__title span { font-size: 10px; color: var(--muted-fg); }
.mk-split__h { margin-bottom: 12px !important; }
.mk-owing { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mk-owing > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.mk-owing .product-status { display: inline-flex; margin-top: 8px; }
.product-chart { position: relative; height: 190px; margin-top: 20px; }
.chart-gridline { position: absolute; left: 32px; right: 0; border-top: 1px dashed var(--border); }
.chart-gridline span { position: absolute; left: -32px; top: -7px; font-size: 10px; color: var(--muted-fg); }
.chart-gridline-0 { top: 0; } .chart-gridline-1 { top: 25%; } .chart-gridline-2 { top: 50%; } .chart-gridline-3 { top: 75%; } .chart-gridline-4 { top: 100%; }
.chart-bars { position: absolute; inset: 0 0 0 32px; display: flex; justify-content: space-around; }
.chart-pair { display: flex; height: 100%; align-items: flex-end; gap: 4px; }
.chart-bar { width: 13px; border-radius: 2px 2px 0 0; transform-origin: bottom; animation: chart-rise 1.2s ease-out both; }
.revenue-bar { background: color-mix(in oklab, var(--fg) 55%, transparent); }
.expense-bar { background: color-mix(in oklab, var(--fg) 18%, transparent); }
.chart-line { position: absolute; inset: 0 0 0 32px; width: calc(100% - 32px); height: 100%; color: var(--fg); }
.chart-line polyline { stroke-dasharray: 650; animation: chart-draw 1.4s ease-out; }
.chart-months { display: flex; justify-content: space-around; margin: 8px 0 0 32px; font-size: 10px; color: var(--muted-fg); }

/* Compact assistant */
.compact-assistant { font-size: 12px; }
.mk-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.mk-chat-head h3 { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.mk-chat-head p { margin: 2px 0 0; font-size: 10px; color: var(--muted-fg); }
.mk-live-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--accent-start); }
.mk-chat-body { padding: 16px 20px; }
.mk-chat-user { display: flex; justify-content: flex-end; }
.mk-chat-user p { position: relative; max-width: 88%; margin: 0; padding: 8px 12px; border-radius: var(--radius); background: var(--muted); font-size: 12px; line-height: 1.625; }
.mk-chat-answer { margin: 12px 0 0; font-size: 12px; line-height: 1.625; }
.mk-chat-table { margin-top: 12px; }
.mk-chat-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.mk-chat-table th { padding: 0 0 8px; border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 400; color: var(--muted-fg); }
.mk-chat-table th:last-child, .mk-chat-table td:last-child { text-align: right; }
.mk-chat-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.mk-chat-table .is-total td { padding-top: 12px; border-bottom: 0; font-weight: 700; }
.mk-export { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 11px; }
.mk-composer { display: flex; align-items: center; justify-content: space-between; margin: 0 16px 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; color: var(--muted-fg); }

/* Platform previews (showcase) */
.platform-preview { min-height: 380px; }
.mk-preview { padding: 20px; }
.mk-preview > .mk-note:first-child { margin: 0 0 1.5rem; font-size: 10px; }
.mk-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.mk-table th { padding-bottom: 16px; font-size: 11px; font-weight: 400; color: var(--muted-fg); }
.mk-table td { padding: 20px 0; border-top: 1px solid var(--border); }
.mk-table--ledger { font-size: 14px; }
.mk-table--ledger th { font-size: 12px; }
.mk-balanced { display: flex; align-items: center; gap: 8px; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 12px; }
.mk-pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mk-stage { margin: 0 0 1rem; font-size: 12px; color: var(--muted-fg); }
.mk-stage span { margin-left: 8px; }
.mk-lead { display: block; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklab, var(--muted) 30%, transparent); }
.mk-lead strong { display: block; margin-top: 1rem; font-size: 12px; font-weight: 400; }
.mk-lead small { display: block; margin-top: 12px; font-size: 11px; color: var(--muted-fg); }
.mk-proposal-top { display: flex; justify-content: space-between; }
.mk-proposal-top p { margin: 0; }
.mk-scope { margin: 1.75rem 0; font-size: 14px; }
.mk-line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); font-size: 12px; }
.mk-proposal-total { margin: 1rem 0 0; text-align: right; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
@media (min-width: 768px) { .mk-preview { padding: 28px; } }

/* ---------- Showcase ---------- */
.home-showcase { position: relative; padding: 10rem 0 5rem; }
.showcase-title { max-width: 48rem; margin: 1rem 0 2.5rem; font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.showcase-surface { overflow: hidden; border-radius: var(--wp--custom--radius--xxl); background: color-mix(in oklab, var(--fg) 3%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 18px color-mix(in oklab, var(--fg) 3%, transparent); }
.showcase-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--border); }
.showcase-tab { position: relative; min-width: 0; min-height: 44px; padding: 1.25rem 0.25rem; border: 0; background: transparent; color: color-mix(in oklab, var(--fg) 60%, transparent); font: inherit; font-size: 0.75rem; line-height: 1.4; white-space: normal; cursor: pointer; transition: color 200ms; }
.showcase-tab:hover, .showcase-tab[aria-selected="true"] { color: var(--fg); }
.showcase-progress { position: absolute; display: none; height: 2px; inset: auto 0 0; background: var(--fg); }
.showcase-tab[aria-selected="true"] .showcase-progress { display: block; }
.showcase-progress.is-running { transform-origin: left; animation: showcase-progress 8s linear both; }
.showcase-panel { animation: showcase-fade 0.4s ease-out; }
.showcase-panel[hidden] { display: none; }
.showcase-grid { display: grid; align-items: center; gap: 2rem; padding: 2rem 1.25rem; }
.showcase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.showcase-head h3 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.showcase-desc { max-width: 28rem; margin: 1.5rem 0 0; font-size: 0.875rem; line-height: 1.625; color: var(--muted-fg); }
.showcase-bullets { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.showcase-bullets li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.showcase-bullets .bosly-icon { flex: none; margin-top: 2px; color: var(--muted-fg); }
.showcase-more { margin-top: 1.75rem; padding-inline: 0; }
.showcase-more:hover { background: transparent; }
.showcase-visual { min-width: 0; overflow: hidden; }
.showcase-visual .compact-assistant { max-width: 490px; margin: auto; font-size: 11px; }
.showcase-visual:has(.platform-preview) { height: 215px; }
.platform-preview { width: 570px; transform: scale(0.49); transform-origin: top left; min-height: 0; }
@media (min-width: 480px) { .showcase-visual:has(.platform-preview) { height: 280px; } .platform-preview { transform: scale(0.7); } }
@media (min-width: 768px) {
	.showcase-visual:has(.platform-preview) { height: auto; }
	.platform-preview { width: auto; transform: none; min-height: 380px; }
	.showcase-visual .compact-assistant { font-size: 12px; }
	.showcase-panel { min-height: 475px; }
	.showcase-grid { padding: 3rem 2rem; }
	.showcase-tab { font-size: 0.875rem; }
	.home-showcase { padding-bottom: 7rem; }
	.showcase-title { font-size: 3rem; }
}
@media (min-width: 1024px) { .showcase-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; } .home-showcase { padding-top: 20rem; } }

.module-cell-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; color: var(--muted-fg); }
.module-cell { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; font-size: 9px; transition: color 200ms; }
.module-cell:hover { color: var(--fg); }
.module-cell .bosly-icon, .marquee-set .bosly-icon { stroke-width: 1.3; }
@media (min-width: 768px) { .module-cell { flex-direction: row; gap: 0.75rem; font-size: 12px; } }

/* ---------- Marquee ---------- */
.home-module-marquee { overflow: hidden; padding-block: 1.5rem; border-block: 1px solid var(--border); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee-set { display: flex; flex: none; align-items: center; }
.marquee-set span { display: flex; align-items: center; gap: 0.75rem; padding-inline: 1.5rem; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted-fg); }
.marquee-set em { margin-left: 1.5rem; font-style: normal; color: var(--border); }

/* ---------- Flow ---------- */
.flow-sub { margin: 1.25rem 0 0; font-size: 1.125rem; color: var(--muted-fg); }
.flow-scroll { margin-top: 3.5rem; overflow-x: auto; padding-bottom: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--muted-fg) transparent; }
.flow-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; min-width: 1120px; margin: 0; padding: 0; list-style: none; }
.flow-line { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--border); }
.flow-line--fill { background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 1)); }
.flow-step { position: relative; }
.flow-num { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-family: var(--font-mono); font-size: 0.75rem; }
.flow-step h3 { display: flex; align-items: center; justify-content: space-between; margin: 1.5rem 0 0; font-size: 1.125rem; font-weight: 500; }
.flow-step h3 .bosly-icon { color: var(--muted-fg); }
.flow-badge { margin-top: 0.75rem; }
.flow-desc { min-height: 3rem; margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.625; color: var(--muted-fg); }
.flow-card { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.flow-card > div { display: flex; align-items: center; justify-content: space-between; }
.flow-card > div span { font-family: var(--font-mono); font-size: 9px; color: var(--muted-fg); }
.flow-card > div .bosly-icon { color: var(--muted-fg); }
.flow-card p { margin: 1.25rem 0 0; font-size: 0.875rem; }
.flow-card small { display: block; margin-top: 0.5rem; font-size: 10px; color: var(--muted-fg); }
.flow-status { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 1.25rem; padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; font-size: 9px; }
.flow-note { max-width: 48rem; margin: 2rem 0 0; font-size: 1rem; line-height: 1.625; color: var(--muted-fg); }
.flow-sample { margin: 1rem 0 0; font-family: var(--font-mono); font-size: 10px; color: var(--muted-fg); }

/* ---------- Bento ---------- */
.home-bento-grid { display: grid; grid-auto-flow: dense; grid-auto-rows: minmax(220px, auto); grid-template-columns: 1fr; gap: 1rem; }
.bento-tile { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); transition: box-shadow 200ms ease-out, transform 200ms ease-out; }
.bento-tile:hover { transform: translateY(-4px); box-shadow: 0 0 30px color-mix(in oklab, var(--accent-start) 7%, transparent); }
.bento-tile > a { display: block; height: 100%; padding: 1.5rem; color: inherit; text-decoration: none; }
.bento-tile__top { display: flex; align-items: center; justify-content: space-between; }
.bento-tile__top .bosly-icon:first-child { stroke-width: 1.3; }
.bento-arrow { color: var(--muted-fg); transition: transform 200ms ease-out; }
.bento-tile:hover .bento-arrow { transform: translate(2px, -2px); }
.bento-tile h3 { margin: 1.75rem 0 0; font-size: 1.5rem; font-weight: 500; }
.bento-tile > a > p { max-width: 32rem; margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.625; color: var(--muted-fg); }
.bento-tile p { margin: 0; }
.tile-badge { margin-top: 1rem; }
.tile-prev { margin-top: 2rem; }
.tile-prev--chat { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tile-prev__user { max-width: 24rem; margin: 0 0 0 auto; padding: 0.75rem 1rem; border-radius: var(--radius-xl); background: var(--primary); color: var(--primary-fg); font-size: 0.875rem; line-height: 1.43; }
.tile-prev__answer { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.tile-prev__answer .bosly-icon { flex: none; margin-top: 0.25rem; color: var(--muted-fg); }
.tile-prev__answer p { margin: 0; color: var(--fg); font-size: 0.875rem; line-height: 1.625; }
.tile-prev__table { margin-top: 1.25rem; overflow-x: auto; }
.tile-prev__table table { width: 100%; min-width: 300px; border-collapse: collapse; text-align: left; font-size: 0.75rem; }
.tile-prev__table th { padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); font-weight: 400; color: var(--muted-fg); }
.tile-prev__table td { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.tile-prev__table .r { text-align: right; }
.tile-prev__note { margin: 1rem 0 0; font-size: 10px; color: var(--muted-fg); }
.tile-prev--status { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.status-chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--muted-fg); font-size: 10px; }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.is-paid { background: var(--fg); color: var(--bg); }
.tile-prev--books { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); }
.tile-prev--books .note { font-size: 10px; color: var(--muted-fg); }
.tile-prev--books .big { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; line-height: 1.2; }
.tile-prev--books .note--xs { margin-top: 0.5rem; font-size: 9px; color: var(--muted-fg); }
.mini-bars { display: flex; height: 3rem; align-items: flex-end; gap: 4px; }
.mini-bars span { width: 12px; border-radius: 2px 2px 0 0; background: color-mix(in oklab, var(--fg) 30%, transparent); }
.tile-prev--tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tile-prev--tags span { padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: 10px; font-size: 10px; color: var(--muted-fg); }
.tile-prev--health { margin-top: 1.5rem; }
.tile-prev--health > div:first-child { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted-fg); }
.meter { height: 4px; margin-top: 0.75rem; border-radius: 999px; background: var(--muted); }
.meter i { display: block; width: 78%; height: 100%; border-radius: 999px; background: color-mix(in oklab, var(--fg) 70%, transparent); }
.tile-prev--doc { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.tile-prev--doc p { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.75rem; }
.tile-prev--doc small { display: block; margin-top: 0.5rem; font-size: 10px; color: var(--muted-fg); }
@media (min-width: 768px) {
	.home-bento-grid { grid-template-columns: repeat(4, 1fr); }
	.bento-tile--assistant { grid-column: span 2; grid-row: span 2; }
	.bento-tile:last-child { grid-column: span 2; }
	.bento-tile > a { padding: 1.75rem; }
}

/* ---------- Big dashboard ---------- */
.dash-stage { position: relative; perspective: 1400px; }
.dash-glow { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.5); }
.dash-tilt { position: relative; transform: rotateX(var(--rx, 0deg)) translateY(var(--ty, 0px)); }
.bigdash { position: relative; max-width: 72rem; margin-inline: auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.bigdash__chrome { display: flex; height: 44px; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.bigdash__chrome span { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklab, var(--muted-fg) 40%, transparent); }
.bigdash__chrome span:nth-child(2) { background: color-mix(in oklab, var(--muted-fg) 30%, transparent); }
.bigdash__chrome span:nth-child(3) { background: color-mix(in oklab, var(--muted-fg) 20%, transparent); }
.bigdash__chrome em { margin-inline: auto; font-family: var(--font-mono); font-size: 10px; font-style: normal; color: var(--muted-fg); }
.bigdash__chrome b { width: 32px; }
.bigdash__body { display: flex; background: var(--bg); }
.bigdash__side { display: none; width: 176px; flex: none; padding: 20px; border-right: 1px solid var(--border); }
.bigdash__side img { display: block; width: 96px; height: auto; margin-bottom: 36px; }
.bigdash__side div { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: var(--muted-fg); }
.bigdash__side div.is-active { background: var(--muted); color: var(--fg); }
.bigdash__side p { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted-fg); }
.bigdash__main { min-width: 0; flex: 1; padding: 16px; }
.bigdash__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.bigdash__head h3 { margin: 0; font-size: 20px; font-weight: 700; }
.bigdash__head p { margin: 4px 0 0; font-size: 10px; color: var(--muted-fg); }
.bigdash__head > span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 10px; color: var(--muted-fg); }
.bigdash__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bigdash__kpis > div { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.bigdash__kpis p { margin: 0; font-size: 10px; color: var(--muted-fg); }
.bigdash__kpis strong { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.bigdash__kpis small { display: block; margin-top: 8px; font-size: 9px; color: var(--muted-fg); }
.bigdash__split { display: grid; gap: 28px; margin-top: 28px; }
.bigdash__chart-col { min-width: 0; }
.bigdash__chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bigdash__chart-head h4, .bigdash__owing-h { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.bigdash__owing-h { margin-bottom: 12px; }
.bigdash__chart-head > div { display: flex; gap: 12px; font-size: 9px; color: var(--muted-fg); }
.bigdash__chart-head span { display: flex; align-items: center; gap: 4px; }
.bigdash__chart-head i { width: 6px; height: 6px; }
.k1 { background: color-mix(in oklab, var(--fg) 70%, transparent); } .k2 { background: color-mix(in oklab, var(--muted-fg) 40%, transparent); }
.bigdash__chart { position: relative; height: 176px; margin-top: 20px; }
.bigdash__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: var(--muted-fg); }
.bigdash__grid div { display: flex; align-items: center; gap: 8px; }
.bigdash__grid span { width: 24px; flex: none; }
.bigdash__grid hr { width: 100%; margin: 0; border: 0; border-top: 1px dashed var(--border); }
.bigdash__bars { position: absolute; inset: 4px 0 4px 36px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; }
.bigdash__bars > div { display: flex; flex: 1; height: 100%; align-items: flex-end; justify-content: center; gap: 4px; }
.bigdash__bars i { width: 12px; border-radius: 2px 2px 0 0; transform-origin: bottom; }
.bigdash__bars .b1 { background: color-mix(in oklab, var(--fg) 65%, transparent); }
.bigdash__bars .b2 { background: color-mix(in oklab, var(--muted-fg) 30%, transparent); }
.bigdash__chart svg { position: absolute; top: 4px; left: 36px; width: calc(100% - 36px); height: calc(100% - 8px); overflow: visible; color: var(--fg); }
.bigdash__months { display: flex; justify-content: space-around; margin: 12px 0 0 36px; font-family: var(--font-mono); font-size: 9px; color: var(--muted-fg); }
.bigdash__owing { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bigdash__owing > div { min-width: 0; flex: 1; }
.bigdash__owing p { margin: 0; font-size: 11px; }
.bigdash__owing small { display: block; margin-top: 4px; font-size: 9px; color: var(--muted-fg); }
.bigdash__owing strong { font-size: 12px; font-weight: 400; }
.bigdash__avatar { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 10px; background: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.bigdash__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted-fg); }
.bigdash__foot span { display: flex; align-items: center; gap: 6px; }
.dash-caption { max-width: 42rem; margin: 2.25rem auto 0; text-align: center; font-size: 0.875rem; line-height: 1.625; color: var(--muted-fg); }
.home-dashboard { overflow: hidden; }
@media (min-width: 768px) {
	.bigdash__main { padding: 28px; }
	.bigdash__head h3 { font-size: 24px; }
	.bigdash__head p { font-size: 12px; }
	.bigdash__kpis p { font-size: 12px; }
	.bigdash__kpis strong { font-size: 30px; }
	.bigdash__kpis small { font-size: 10px; }
	.bigdash__split { grid-template-columns: 1.55fr 1fr; }
	.bigdash__bars i { width: 16px; }
}
@media (min-width: 1024px) { .bigdash__side { display: block; } }
@media (min-width: 1280px) { .bigdash__kpis { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Why / facts / security / pricing / CTA ---------- */
.why-grid { display: grid; gap: 2.5rem; }
.why-item { padding-top: 0.5rem; }
.why-item > .bosly-icon { stroke-width: 1.3; }
.why-item h3 { max-width: 20rem; margin: 1.5rem 0 0; font-size: 1.5rem; font-weight: 500; }
.why-item p { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.625; color: var(--muted-fg); }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.home-facts { padding: 1rem 0 5rem; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
.fact-value { margin: 0; font-family: var(--font-display); font-size: 3rem; font-weight: 500; line-height: 1; }
.fact-label { max-width: 13rem; margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted-fg); }
@media (min-width: 768px) { .home-facts { padding: 1.5rem 0 7rem; } .facts-grid { grid-template-columns: repeat(3, 1fr); } .fact-value { font-size: 3.75rem; } }

.home-security { position: relative; isolation: isolate; overflow: hidden; padding-block: 5rem; }
.security-backdrop { position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse 70% 90% at 50% 50%, color-mix(in oklab, var(--accent-start) 7%, transparent), transparent 70%), linear-gradient(to bottom, color-mix(in oklab, var(--fg) 2%, transparent), color-mix(in oklab, var(--fg) 5%, transparent) 45%, color-mix(in oklab, var(--fg) 2%, transparent)); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.security-row { display: flex; flex-direction: column; gap: 1.75rem; }
.security-copy { display: flex; align-items: flex-start; gap: 1.25rem; }
.security-copy > .bosly-icon { flex: none; margin-top: 0.25rem; stroke-width: 1.2; }
.security-copy h2 { margin: 0.75rem 0 0; font-size: 1.5rem; font-weight: 500; line-height: 1.3; }
.security-copy p:last-child { max-width: 42rem; margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.625; color: var(--muted-fg); }
.home-security .bosly-btn { align-self: flex-start; flex: none; }
@media (min-width: 768px) { .home-security { padding-block: 7rem; } .security-row { flex-direction: row; align-items: center; justify-content: space-between; } .home-security .bosly-btn { align-self: center; } }

.plan-grid { display: grid; gap: 1rem; }
.plan-card { padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg); }
.plan-card.is-featured { background: var(--card); }
.plan-card h3 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.plan-price { margin: 1.75rem 0 0; font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; line-height: 1.2; }
.plan-price span { margin-left: 0.25rem; font-family: var(--wp--preset--font-family--sans); font-size: 0.875rem; font-weight: 400; color: var(--muted-fg); }
.plan-detail { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted-fg); }
.pricing-summary { display: block; margin-top: 1.75rem; font-size: 0.875rem; color: var(--muted-fg); text-decoration: underline; text-underline-offset: 4px; }
.pricing-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.pricing-foot p { margin: 0; font-size: 0.75rem; color: var(--muted-fg); }
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }

.home-cta { position: relative; isolation: isolate; overflow: hidden; }
.cta-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 80% 65%, color-mix(in oklab, var(--accent-start) 10%, transparent), transparent 55%), radial-gradient(ellipse at 65% 35%, color-mix(in oklab, var(--accent-end) 6%, transparent), transparent 60%); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Keyframes ---------- */
@keyframes product-enter { from { opacity: 0.45; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes product-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes chart-rise { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }
@keyframes chart-draw { from { stroke-dashoffset: 650; } to { stroke-dashoffset: 0; } }
@keyframes invoice-morph { from { opacity: 0.3; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes showcase-progress { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes showcase-fade { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes ai-caret { 50% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes canvas-ribbon-drift { from { translate: 0 0; } to { translate: -8% 70px; } }
@keyframes home-glow-drift-one { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-18vw, 9rem, 0) scale(1.14); } }
@keyframes home-glow-drift-two { from { transform: translate3d(0, 0, 0) scale(0.94); } to { transform: translate3d(24vw, -8rem, 0) scale(1.12); } }
@keyframes home-glow-drift-three { from { transform: translate3d(0, 0, 0) scale(1.08); } to { transform: translate3d(-22vw, 7rem, 0) scale(0.96); } }
@keyframes home-ribbon-drift { from { transform: translate3d(-7%, 0, 0) rotate(-24deg) skewX(-28deg); } to { transform: translate3d(12%, 8rem, 0) rotate(-18deg) skewX(-24deg); } }
@keyframes home-ribbon-drift-two { from { transform: translate3d(8%, 0, 0) rotate(19deg) skewX(-20deg); } to { transform: translate3d(-12%, -7rem, 0) rotate(13deg) skewX(-16deg); } }

/* ---------- Hero responsive ---------- */
@media (min-width: 480px) and (max-width: 767px) { .hero-product-stage { height: 290px; } }
@media (min-width: 768px) {
	.home-hero { padding-inline: 2rem; }
	.hero-copy { padding: 65px 35px 45px; }
	.home-title { font-size: 64px; }
	.hero-sub { font-size: 1.125rem; }
	.hero-product-stage { height: 470px; }
	.hero-product-stack { scale: 0.58; }
}
@media (min-width: 1024px) {
	.home-hero { margin-bottom: -10rem; }
	.hero-frame { grid-template-columns: 42% 58%; }
	.hero-copy { padding: 64px 24px 74px; }
	.home-title { font-size: 60px; }
	.hero-product-stage { height: 620px; align-self: center; }
	.hero-product-stack { left: 24px; margin-left: 0; top: 70px; scale: 0.68; transform-origin: top left; }
	.stack-invoice { display: block; }
}
@media (min-width: 1440px) { .home-title { font-size: 72px; } .hero-product-stack { scale: 0.78; left: 36px; top: 70px; } .hero-copy { padding-inline: 32px 30px; } }
@media (min-width: 1920px) { .hero-product-stack { scale: 0.88; top: 80px; } .hero-product-stage { height: 740px; } }
@media (max-width: 1023px) {
	.home-hero { min-height: min(100svh, 1100px); }
	.hero-product-stack { transform: none !important; }
	.hero-frame { align-content: start; min-height: auto; }
}
@media (max-width: 767px) { .hero-copy { padding-inline: 14px; } .home-hero { padding-top: 96px; } }

@media (prefers-reduced-motion: reduce) {
	.hero-product-stack { transform: none !important; }
	.stack-dashboard, .stack-chat, .stack-invoice, .chart-bar, .chart-line polyline, .product-caret, .showcase-panel, .invoice-morph,
	.home-atmosphere-glow, .home-atmosphere-ribbon, .hero-ribbon, .marquee-track, .showcase-progress { animation: none; }
	.bosly-js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.dash-tilt { transform: none; }
}

/* Pause decorative motion while the pointer or keyboard focus is on it. */
.home-module-marquee:hover .marquee-track, .home-module-marquee:focus-within .marquee-track { animation-play-state: paused; }
