/* Lucid Margins landing page.
   Design read: B2B fintech landing for SMB owners and their advisors. Calm, precise, cobalt + cream + navy.
   Dials: variance 7, motion 6, density 4.
   Shape rule: cards 20px, controls (buttons, inputs, tabs) 12px, chips, badges and option boxes 8px. */

@font-face { font-family: "Britti Sans"; src: url("../fonts/britti-sans-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Britti Sans"; src: url("../fonts/britti-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Britti Sans"; src: url("../fonts/britti-sans-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Britti Sans"; src: url("../fonts/britti-sans-semibolditalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Britti Sans"; src: url("../fonts/britti-sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	color-scheme: light;
	--bg: #ffffff;
	--bg-deep: #f3f1ec;
	--surface: #ffffff;
	--surface-2: #f8f7f4;
	--ink: #0e1430;
	--ink-2: #454b66;
	--ink-3: #5f6580;
	--line: rgb(14 20 48 / 0.09);
	--line-strong: rgb(14 20 48 / 0.2);
	--accent: #3046df;
	--accent-hover: #2436c6;
	--accent-text: #3046df;
	--accent-ink: #fdfcfa;
	--accent-soft: #e4e7fb;
	--accent-line: rgb(48 70 223 / 0.28);
	--good: #0f6e52;
	--good-soft: #dcefe7;
	--bad: #b93b28;
	--bad-soft: #f6e1dc;
	--focus: #3046df;
	--shadow: 0 1px 2px rgb(14 20 48 / 0.06), 0 12px 32px -12px rgb(14 20 48 / 0.18);
	--shadow-lg: 0 2px 4px rgb(14 20 48 / 0.05), 0 32px 64px -24px rgb(14 20 48 / 0.28);

	/* Tinted sections (Margo, sign-up, security) use the brand cream on the white page. */
	--block-bg: #f3f1ec;
	--block-surface: #ffffff;
	--block-surface-2: #f5f3ee;
	--block-ink: #0e1430;
	--block-ink-2: #454b66;
	--block-line: rgb(14 20 48 / 0.1);

	--r-card: 20px;
	--r-ctl: 12px;
	--r-pill: 8px;

	--font: "Britti Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(96px, 12vw, 184px);
	--stack-gap: clamp(40px, 6vw, 64px); /* heading to content, and between blocks inside a section */
	--nav-h: 68px;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.lm-icon { width: 1.25em; height: 1.25em; flex: none; }
.brand-logo { width: 1.25em; height: 1.25em; flex: none; object-fit: contain; }
.facts__item .brand-logo, .sec__item .brand-logo { width: 26px; height: 26px; }
.auth__points .brand-logo { width: 20px; height: 20px; margin-top: 3px; }
.step__logos { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; z-index: 1; justify-self: start; }
.step__logos .brand-logo { width: 26px; height: 26px; }
.step__logos .lm-icon { width: 22px; height: 22px; color: var(--ink-3); }
.org__src { display: inline-flex; align-items: center; gap: 6px; }
.org__src .brand-logo { width: 16px; height: 16px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-ctl); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
/* One gap between sections everywhere: two white sections in a row share a single gap,
   and tinted sections (cream) keep their inner padding so the gap to their edge matches. */
.section:not(.section--tint) + .section:not(.section--tint) { padding-top: 0; }
/* Cream bands separate the page into chapters: steps, analysis, Margo and sign-up. */
.section--tint { background: var(--bg-deep); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.038em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); line-height: 1.06; letter-spacing: -0.032em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: var(--stack-gap); }
.h1 em, .h2 em { font-style: italic; color: var(--accent-text); padding-bottom: 0.06em; }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-line: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px;
	border-radius: var(--r-ctl); border: 1px solid var(--btn-line);
	background: var(--btn-bg); color: var(--btn-ink);
	font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
	transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { --btn-bg: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .lm-icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn:hover .lm-icon { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-line: var(--ink); }
.btn--quiet { --btn-bg: transparent; --btn-ink: var(--ink); padding-inline: 14px; }
.btn--quiet:hover { --btn-bg: var(--bg-deep); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--nav-h); transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
/* Logged-in editors: sit below the WordPress admin bar (fixed above 600px wide). */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.lm-logo { height: 34px; width: auto; }
.lm-logo__mark { fill: var(--accent); }
.lm-logo__word { fill: var(--ink); }
.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-ctl); text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.nav__link:hover { color: var(--ink); background: var(--bg-deep); }
.header-actions { display: none; align-items: center; gap: 6px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: transparent; }
.menu-toggle .lm-icon { width: 22px; height: 22px; }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 39; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.mobile-menu .btn { margin-top: 12px; }
@media (min-width: 1024px) {
	.nav, .header-actions { display: flex; }
	.menu-toggle, .mobile-menu { display: none !important; }
	.nav { margin-right: 8px; }
}

/* ---------- Hero ---------- */
/* The hero and facts strip fill the first screen below the header; the hero content sits in the middle. */
.hero-screen { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; }
.admin-bar .hero-screen { min-height: calc(100svh - var(--nav-h) - 32px); }
.hero { flex: 1; display: flex; align-items: center; padding-block: clamp(24px, 2.6vw, 40px); }
/* Shorter laptop screens: tighten the app preview so the facts strip stays on the first screen. */
@media (min-width: 1024px) and (max-height: 860px) {
	.app__body { padding-block: 16px 14px; }
	.app__filters { margin-top: 10px; }
	.app__table td { padding-block: 7px; }
	.app__table th { height: 34px; }
}
.hero > .container { width: 100%; }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 24px; align-content: start; }
.hero__copy .lead { max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 56px; }
	/* Capped so the longer Title Case second line (about 11em) stays on one line in the copy column. */
	.hero .h1 { font-size: clamp(2.6rem, 4.05vw, 3.2rem); }
}
.hero .h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero .h1 .line > span { display: inline-block; }

/* Hero preview: a compact copy of the app's real KPI Numbers screen.
   Measurements and colours follow app-review/landing-refs/kpi-numbers-spec.md: one white surface,
   hairline dividers, monospace right-aligned figures, colour only inside the status pills. */
.board { position: relative; }
.doc__brand .mehanna-logo { height: 22px; width: auto; color: var(--ink); }
.org__node .mehanna-mark { width: 20px; height: 20px; flex: none; }
.app { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 4px rgb(14 20 48 / 0.04), 0 40px 80px -36px rgb(14 20 48 / 0.26); overflow: hidden; color: var(--ink); font-size: 13px; line-height: 20px; }
.app__bar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 16px; border-bottom: 1px solid rgb(14 20 48 / 0.072); }
.app__logo .lm-mark { width: 20px; height: auto; fill: var(--accent); }
.app__company { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; }
.app__company .lm-icon { width: 14px; height: 14px; }
.app__nav { display: flex; gap: 2px; margin-left: 4px; }
.app__nav span { padding: 4px 10px; border-radius: 10px; color: var(--ink-3); }
.app__nav .is-active { background: var(--surface-2); color: var(--ink); }
.app__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app__bell { position: relative; display: grid; }
.app__bell .lm-icon { width: 18px; height: 18px; }
.app__bell::after { content: ""; position: absolute; top: 0; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.app__avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 11.5px; display: grid; place-items: center; }
.app__body { padding: 20px 20px 18px; }
.app__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.app__title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.025em; }
.app__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.app__period { color: var(--ink-3); white-space: nowrap; }
.app__period u { text-decoration: underline dashed var(--ink); text-underline-offset: 4px; color: var(--ink); font-weight: 600; }
.app__filters { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.app__chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 10px; white-space: nowrap; }
.app__chip b { font-weight: 600; }
.app__chip.is-pressed { background: var(--surface-2); }
.app__chip--good { color: var(--good); }
.app__chip--bad { color: var(--bad); }
.app__table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.app__table th { height: 38px; padding: 0 10px; font-weight: 600; text-align: right; white-space: nowrap; border-bottom: 1px solid #e9eaec; }
.app__table th:first-child, .app__table th:last-child { text-align: left; }
.app__table th span { font-weight: 400; color: var(--ink-3); }
.app__table td { padding: 9px 10px; border-bottom: 1px solid #e9eaec; }
.app__group td { background: #fcfcfb; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.app__letter { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 7px; font-size: 11px; letter-spacing: 0; vertical-align: -4px; }
.app__letter--a { background: #dbeafe; color: #1447e6; }
.app__letter--b { background: #fef3c6; color: #973c00; }
.app__letter--c { background: #cbfbf1; color: #00786f; }
.app__name { white-space: nowrap; }
.app__star { color: var(--ink-3); }
.app__info { display: inline-block; width: 13px; height: 13px; margin-left: 5px; color: #8f93a6; vertical-align: -2px; }
.app__trend .lm-icon, .app__company .lm-icon { display: inline-block; }
.app__num { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app__target { color: var(--ink-3); }
.app__trend { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; }
.app__trend .lm-icon { width: 11px; height: 11px; }
.app__trend--good { background: var(--good-soft); color: var(--good); }
.app__trend--bad { background: var(--bad-soft); color: var(--bad); }
.app__row:hover td { background: #faf9f7; }
.app__foot { margin-top: 10px; font-size: 11.5px; line-height: 16px; color: var(--ink-3); }
.board__note { margin-top: 12px; font-size: 0.75rem; color: var(--ink-3); text-align: right; }
@media (max-width: 560px) {
	.app__nav span:not(.is-active), .app__sub, .app__target, .app__info { display: none; }
	.app__body { padding: 16px 14px; }
	.app__head { flex-wrap: wrap; gap: 6px; }
	.app__filters { justify-content: flex-start; flex-wrap: wrap; }
	.app__name { white-space: normal; }
}

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: minmax(0, 1fr); }
.facts__item { display: flex; align-items: center; gap: 12px; padding: 22px 8px; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); }
.facts__item .lm-icon { color: var(--accent); width: 22px; height: 22px; }
.facts__item + .facts__item { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .facts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts__item + .facts__item { border-top: 0; } .facts__item { padding-inline: 20px; } .facts__item + .facts__item { border-left: 1px solid var(--line); } }

/* ---------- Steps ---------- */
.steps__track { position: relative; display: grid; gap: 40px; }
.steps__line { display: none; }
.step { display: grid; gap: 14px; align-content: start; }
.step__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); position: relative; z-index: 1; }
.step__icon .lm-icon { width: 24px; height: 24px; }
.step .body { max-width: 34ch; }
@media (min-width: 900px) {
	.steps__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
	.steps__line { display: block; position: absolute; top: 26px; left: 52px; right: 8%; height: 1px; background: var(--line-strong); transform-origin: left center; }
	.steps__line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left center; }
}

/* ---------- KPI bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.tile { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.tile__icon { width: 28px; height: 28px; color: var(--accent); }
.tile__kpis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }
.tile--wheel { background: var(--bg-deep); }
.tile--alerts { background: var(--bg-deep); }
.tile__stat { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.wheel { width: min(300px, 100%); aspect-ratio: 1; margin: 8px auto 0; position: relative; }
.wheel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wheel circle { fill: none; stroke-width: 22; }
.wheel .track { stroke: rgb(48 70 223 / 0.12); }
.wheel .seg-on { stroke: var(--accent); stroke-linecap: butt; }
.wheel .seg-off { stroke: var(--bad); }
.wheel__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.wheel__center strong { font-size: 2.4rem; letter-spacing: -0.04em; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.wheel__center span { font-size: 0.8125rem; color: var(--ink-2); }
.wheel-legend { display: flex; justify-content: center; gap: 18px; font-size: 0.8125rem; color: var(--ink-2); }
.wheel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wheel-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.wheel-legend i.off { background: var(--bad); }
.alert-rows { display: grid; gap: 8px; }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 0.875rem; }
.alert-row .lm-icon { width: 18px; height: 18px; }
.alert-row--bad .lm-icon { color: var(--bad); }
.alert-row--good .lm-icon { color: var(--good); }
.alert-row .num { color: var(--ink-3); font-size: 0.8125rem; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile--wheel, .tile--alerts { grid-column: span 2; } }
@media (min-width: 1100px) {
	.bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.tile--wheel { grid-column: 1 / span 5; grid-row: 1 / span 2; }
	.tile--cat:nth-of-type(2) { grid-column: 6 / span 4; }
	.tile--cat:nth-of-type(3) { grid-column: 10 / span 3; }
	.tile--cat:nth-of-type(4) { grid-column: 6 / span 3; }
	.tile--cat:nth-of-type(5) { grid-column: 9 / span 4; }
	.tile--alerts { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 32px; }
}

/* ---------- Analysis (pinned on desktop) ---------- */
.analysis__grid { display: grid; gap: 32px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; scroll-snap-align: start; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-ctl); padding: 10px 16px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); text-align: left; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tab__text { display: none; }
.stage { position: relative; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 28px); min-height: 360px; display: grid; }
.panel { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; }
.panel[hidden] { display: none; }
.panel__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 0.8125rem; color: var(--ink-3); }
.panel__head strong { color: var(--ink); font-size: 1rem; font-weight: 600; }
.panel__desc { font-size: 0.9375rem; color: var(--ink-2); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--ink-3); font-size: 11px; }
.chart .grid { stroke: var(--line); }
.chart .bar { fill: var(--accent); }
.chart .bar--muted { fill: rgb(48 70 223 / 0.25); }
.chart .bar--neg { fill: var(--bad); }
.chart .bar--good { fill: var(--good); }
.chart .val { fill: var(--ink); font-weight: 600; font-size: 12px; }
.chart .line-a { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-b { fill: none; stroke: var(--good); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .ref { stroke: var(--ink-3); stroke-dasharray: 4 4; }
.chart .quad { fill: var(--surface-2); }
.chart .quad--good { fill: var(--good-soft); }
.chart .pt { fill: var(--accent); }
.chart .pt--last { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.chart .connector { stroke: var(--line-strong); stroke-dasharray: 2 3; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.fin-table th { text-align: right; font-weight: 500; color: var(--ink-3); font-size: 0.75rem; padding: 0 0 8px; }
.fin-table th:first-child, .fin-table td:first-child { text-align: left; }
.fin-table td { padding: 9px 0; text-align: right; border-top: 1px solid var(--line); }
.fin-table tr.total td { font-weight: 600; border-top-color: var(--line-strong); }
.fin-table .pos { color: var(--good); }
.fin-table .neg { color: var(--bad); }
@media (min-width: 1024px) {
	.analysis__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
	.tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 2px; }
	.tab { border: 0; background: transparent; border-radius: 0; padding: 16px 0 16px 20px; border-left: 2px solid var(--line); display: grid; gap: 4px; }
	.tab[aria-selected="true"] { background: transparent; color: var(--ink); border-left-color: var(--accent); }
	.tab__label { font-size: 1.125rem; }
	.tab__text { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--ink-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.45s var(--ease-out), opacity 0.35s; }
	.tab[aria-selected="true"] .tab__text { max-height: 6em; opacity: 1; }
	.panel__desc { display: none; }
	.stage { min-height: 440px; }
}

/* ---------- Goal Seek ---------- */
.gs { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.gs__controls { padding: clamp(20px, 3vw, 36px); display: grid; gap: 26px; align-content: start; }
.gs__result { padding: clamp(24px, 3vw, 40px); background: var(--accent); color: var(--accent-ink); display: grid; gap: 14px; align-content: center; position: relative; }
.field-label { font-weight: 600; font-size: 0.9375rem; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field-label output { font-size: 1.5rem; letter-spacing: -0.03em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.range { width: 100%; margin-top: 14px; accent-color: var(--accent); height: 28px; }
.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-radio { position: relative; }
.pill-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-radio span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.9375rem; font-weight: 500; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.pill-radio input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill-radio input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.gs__base { font-size: 0.875rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gs__base strong { color: var(--ink); font-weight: 600; }
.gs__big { font-size: clamp(3.2rem, 7vw, 5.2rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.gs__sentence { font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.4; max-width: 30ch; }
.gs__note { font-size: 0.8125rem; opacity: 0.78; }
.gs__bars { display: grid; gap: 8px; margin-top: 6px; font-size: 0.8125rem; }
.gs__bar { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; }
.gs__bar i { display: block; height: 8px; border-radius: 8px; background: rgb(255 255 255 / 0.9); transform-origin: left center; }
.gs__bar--now i { background: rgb(255 255 255 / 0.4); }
@media (min-width: 900px) { .gs { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 0; } }

/* ---------- Margo (the one colour block) ---------- */
.margo { background: var(--block-bg); color: var(--block-ink); overflow: hidden; }
.margo .lead, .margo .body { color: var(--block-ink-2); }
.margo .eyebrow { color: var(--accent-text); }
.margo__grid { display: grid; gap: 48px; align-items: center; }
.margo__points { display: grid; gap: 18px; margin-top: 28px; }
.margo__point { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.margo__point .lm-icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.margo__point strong { display: block; font-weight: 600; color: var(--block-ink); }
.margo__point span { color: var(--block-ink-2); font-size: 0.9875rem; }
@media (min-width: 1024px) { .margo__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; } }
.chat { background: var(--block-surface); border: 1px solid var(--block-line); border-radius: var(--r-card); display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; box-shadow: 0 2px 4px rgb(14 20 48 / 0.04), 0 32px 64px -28px rgb(14 20 48 / 0.2); }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--block-line); font-size: 0.875rem; }
.chat__who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.chat__avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.chat__avatar svg { width: 16px; height: 16px; fill: #fff; }
.chat__ctx { color: var(--block-ink-2); font-size: 0.8125rem; }
.chat__log { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.msg { max-width: 88%; font-size: 0.9375rem; line-height: 1.5; }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; padding: 11px 15px; border-radius: 16px 16px 4px 16px; }
.msg--ai { align-self: flex-start; background: var(--block-surface-2); padding: 13px 16px; border-radius: 16px 16px 16px 4px; }
.msg--tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--block-ink-2); padding: 2px 4px; }
.msg--tool .lm-icon { width: 15px; height: 15px; }
.msg--tool .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(48 70 223 / 0.2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.msg--tool.is-done .spin { display: none; }
.msg--tool:not(.is-done) .lm-icon { display: none; }
.msg--tool.is-done .lm-icon { color: var(--good); }
@keyframes spin { to { transform: rotate(360deg); } }
.chat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--block-line); font-size: 0.8125rem; color: var(--block-ink-2); }
.chat__replay { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--block-line); color: var(--block-ink); border-radius: var(--r-ctl); padding: 6px 12px; font-size: 0.8125rem; font-weight: 600; }
.chat__replay:hover { border-color: var(--block-ink-2); }
.chat__replay .lm-icon { width: 14px; height: 14px; }

/* ---------- Reports ---------- */
.reports__grid { display: grid; gap: 48px; align-items: center; }
.reports__list { display: grid; gap: 16px; margin-top: 28px; }
.reports__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.reports__item .lm-icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.reports__item strong { color: var(--ink); font-weight: 600; display: block; }
@media (min-width: 1024px) { .reports__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; } .reports__doc-wrap { order: -1; } }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1.18; max-width: 560px; margin-inline: auto; padding: clamp(20px, 3vw, 34px); display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; position: relative; }
.doc__brand { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--ink-3); }
.doc__brand .lm-mark { width: 22px; height: auto; fill: var(--accent); }
.doc__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.doc__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.doc__kpi { border-radius: 10px; background: var(--surface-2); padding: 10px 12px; display: grid; gap: 2px; }
.doc__kpi span { font-size: 0.6875rem; color: var(--ink-3); }
.doc__kpi strong { font-size: 1.125rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.doc__chart { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px; display: grid; align-items: end; }
.doc__bars { display: flex; align-items: flex-end; gap: 6%; height: 100%; min-height: 110px; padding-inline: 4px; }
.doc__bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--accent); transform-origin: bottom center; }
.doc__bars i:nth-child(odd) { background: rgb(48 70 223 / 0.3); }
.doc__obs { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; font-size: 0.8125rem; color: var(--ink-2); }
.doc__obs strong { color: var(--ink); }
.marquee { margin-top: var(--stack-gap); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; }
.marquee__track .chip { height: 40px; padding: 0 18px; font-size: 0.9375rem; background: var(--surface); }
.marquee__track .chip .lm-icon { width: 16px; height: 16px; margin-right: 8px; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
	.marquee__track { animation: marquee 48s linear infinite; }
	.marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* ---------- Teams + security ---------- */
.trust__grid { display: grid; gap: 14px; }
.org { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.org__tree { display: grid; gap: 10px; }
.org__node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.9375rem; }
.org__node .lm-icon { color: var(--accent); width: 20px; height: 20px; }
.org__node small { margin-left: auto; color: var(--ink-3); font-size: 0.75rem; }
.org__children { display: grid; gap: 8px; padding-left: 26px; border-left: 1px dashed var(--line-strong); margin-left: 22px; }
.org__list { display: grid; gap: 12px; }
.org__list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--ink-2); }
.org__list .lm-icon { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }
.sec { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.sec__item { border-radius: var(--r-card); padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 10px; align-content: start; background: var(--bg-deep); }
.sec__item .lm-icon { width: 26px; height: 26px; color: var(--accent); }
.sec__item p { color: var(--ink-2); font-size: 0.9875rem; }
@media (min-width: 700px) { .sec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; } }

/* ---------- Auth ---------- */
.auth { background: var(--bg-deep); }
.auth__grid { display: grid; gap: 40px; align-items: center; }
.auth__points { display: grid; gap: 14px; margin-top: 28px; }
.auth__points li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--ink-2); }
.auth__points .lm-icon { color: var(--good); width: 20px; height: 20px; margin-top: 3px; }
@media (min-width: 1024px) { .auth__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .auth-card { justify-self: end; } }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: clamp(20px, 3.4vw, 40px); max-width: 560px; width: 100%; justify-self: center; }
.auth-card__actions { display: grid; gap: 14px; }
.auth-card__actions .btn { min-height: 52px; }
.auth-card__or { text-align: center; font-size: 0.9375rem; color: var(--ink-2); margin-top: 6px; }
.auth-card__forgot { justify-self: center; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); text-decoration: none; margin-top: 2px; }
.auth-card__forgot:hover { text-decoration: underline; }
.auth-card__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.auth-card__foot .lm-icon { width: 16px; height: 16px; color: var(--good); margin-top: 2px; }
.auth-card__foot a { color: inherit; }

/* ---------- FAQ ---------- */
.faq__wrap { max-width: 860px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .lm-icon { width: 20px; height: 20px; flex: none; transition: transform 0.3s var(--ease-out); color: var(--ink-3); }
.faq__item[open] summary .lm-icon { transform: rotate(45deg); color: var(--accent); }
.faq__answer { padding: 0 0 24px; color: var(--ink-2); max-width: 68ch; }

/* ---------- Final CTA ---------- */
.final { text-align: left; }
.final__card { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); background: var(--accent); color: var(--accent-ink); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); display: grid; gap: 22px; }
.final__card .h2 { max-width: 16ch; }
.final__card p { max-width: 46ch; font-size: 1.125rem; opacity: 0.88; }
.final__card .btn { --btn-bg: var(--accent-ink); --btn-ink: var(--accent); justify-self: start; }
.final__card .btn:hover { --btn-bg: #ffffff; }
/* Illustration: under the button on small screens, its own column from 900px up. */
.final__art { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 8px; justify-self: start; pointer-events: none; }
.fi-text { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 900px) {
	/* The 1fr rows split any slack above and below the copy, so copy and art both sit centred. */
	.final__card { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 0; }
	.final__card > .h2 { grid-column: 1; grid-row: 2; }
	.final__card > p { grid-column: 1; grid-row: 3; margin-top: 22px; }
	.final__card > .btn { grid-column: 1; grid-row: 4; margin-top: 22px; }
	.final__art { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: end; max-width: 480px; margin-top: 0; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 0 40px; }
.footer__top { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand { display: grid; gap: 14px; max-width: 320px; color: var(--ink-2); font-size: 0.9375rem; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer__col h2 { font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.8125rem; color: var(--ink-3); }
.footer__credits { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__credits a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer__credits a:hover { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.2fr 1fr; } .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Motion setup ---------- */
/* Content stays visible if scripts fail: .js-motion is only set when GSAP is about to run. */
.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.js-motion .hero .h1 .line > span { transform: translateY(105%); }
/* The whole first screen (hero + facts strip) plays in on load, never waiting for a scroll. */
.js-motion .hero-screen [data-hero-fade] { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
