/* Mail Halo: the halo over the clouds. Loaded last, so it restyles the shared Mercury pages. */
@font-face { font-family: newsreader; src: url('./newsreader-latin.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: newsreader; src: url('./newsreader-latin-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: geist; src: url('./geist-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: geistMono; src: url('./geist-mono-latin.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
:root {
  --font-halo: newsreader, 'Iowan Old Style', Georgia, serif;
  --font-arcadia: geist, ui-sans-serif, system-ui, sans-serif;
  --font-arcadiadisplay: geist, ui-sans-serif, system-ui, sans-serif;
  --font-mono: geistMono, ui-monospace, Menlo, monospace;
  --halo: #5366ea;
  --ink: #15171c;
}
:root[data-theme="dark"] { --halo: #667cff; }
::selection { background: rgb(83 102 234 / .22); }

/* The mark (maillegion-app components/shell/Logo.tsx): a halo over a golden-rectangle envelope. The halo takes the
   accent; its back edge is thinner and fainter by phi, so it reads as a ring in space. Wordmark as in the app. */
.brand svg, .ml-sections .ml-footer-brand svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-halo { stroke: var(--halo); stroke-width: 2.05; }
.brand-halo-back { stroke-width: 1.27; stroke-opacity: .618; }
.brand, .ml-sections .ml-footer-brand { gap: 10px; }
.brand > span, .ml-sections .ml-footer-brand span { font-size: 15px; font-weight: 600; letter-spacing: .13em; }
@media (max-width: 760px) { .brand svg { width: 24px; height: 24px; } .brand > span { font-size: 13px; letter-spacing: .1em; } }
@media (max-width: 420px) { .brand { gap: 7px; } .brand svg { width: 22px; height: 22px; } .brand > span { font-size: 12px; letter-spacing: .06em; } }

.hero h1, .ml-section h2, .ml-final h2 { font-family: var(--font-halo); font-weight: 380; letter-spacing: -.022em; font-optical-sizing: auto; }
.hero h1 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1.04; max-width: 940px; }
.hero h1 { font-weight: 540; letter-spacing: -.03em; line-height: 1.02; }
.hero h1 em { font-style: normal; white-space: nowrap; }



/* Night: the brand Night (#0f1015) and the app's dark surfaces, so site and product are one dark theme. The hero keeps its night sky. */
:root[data-theme="dark"] {
  --color-onyx-canvas: #0f1015;
  --color-graphite-card: #1f2025;
  --color-obsidian-button: #2c2e33;
  --color-ash-text: #cdcfd6;
}
:root[data-theme="dark"] .ml-sections {
  --ml-canvas: #0f1015;
  --ml-card: #1f2025;
  --ml-control: #2c2e33;
  --ml-text: #f2f4fb;
  --ml-body: #cdcfd6;
  --ml-muted: #92959b;
  --ml-border: #24262b;
  --ml-border-strong: #3a3c42;
}
:root[data-theme="dark"] .ml-sections .ml-observability { background: #15161b; }
:root[data-theme="dark"] .ml-sections .ml-footer { background: #0b0c10; }
:root[data-theme="dark"] .feature-dropdown-panel { background: #1f2025; border-color: #3a3c42; }
:root[data-theme="dark"] * { scrollbar-color: #3a3c42 #0f1015; }

/* The hud.ai system in Mail Halo colours: a pale haze page, ink buttons with a halo-blue sheen, hairline grid
   guides with crosshair corners, pastel panels behind the product, and a night band at the close. */
body { font-feature-settings: "ss01"; }
.button { min-height: 40px; gap: 10px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.button span { font-size: 15px; }
/* The Mail Halo accent, same values as the app's --color-btn tokens. */
:root { --halo-accent: #5366ea; --halo-accent-hover: #4656d9; --halo-accent-active: #3b46c8; }
:root[data-theme="dark"] { --halo-accent: #4b5ce0; --halo-accent-hover: #3f4cce; --halo-accent-active: #343bbd; }
.primary, :root .ml-sections .ml-final .ml-button { background: var(--halo-accent); color: #ffffff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 2px rgb(40 52 140 / .25); }
.primary:hover, :root .ml-sections .ml-final .ml-button:hover { background: var(--halo-accent-hover); }
.primary:active, :root .ml-sections .ml-final .ml-button:active { background: var(--halo-accent-active); }
.nav-cta { min-height: 38px; }
.site-nav nav a, .feature-dropdown > summary { font-weight: 450; }

/* Hero: the ring floats on a moving cloud sea at dawn (night: blue hour), a 12 s loop rendered as video.
   The copy sits in the sky; a paper veil at the top keeps it readable. */
.hero-stage { --scene-y: .7; }
.landscape { background: linear-gradient(180deg, #9db9e0 0%, #c3d0e6 38%, #e6e1e6 72%, #f2f4fb 100%); will-change: transform; } /* own layer for good: a promote/demote as the entrance or the dive hands over redraws the scene a pixel off */
:root[data-theme="dark"] .landscape { background: linear-gradient(180deg, #1d4482 0%, #2b5597 38%, #1a2a4f 76%, #0f1015 100%); }
.landscape video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; will-change: transform; }
:root[data-theme="light"] .hero-shade { background: linear-gradient(180deg, rgb(242 244 251 / .7) 0%, rgb(242 244 251 / 0) 55%); }
:root[data-theme="dark"] .hero-shade { background: linear-gradient(180deg, rgb(10 16 34 / .76) 0%, rgb(10 16 34 / .6) 42%, rgb(10 16 34 / 0) 72%); }
.hero-copy { top: calc(72px + clamp(28px, 7vh, 96px)); }
.hero h1 { font-size: clamp(38px, 5.2vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; max-width: 19em; margin-bottom: 0; }
.hero-description { margin: 18px auto 26px; font-size: clamp(16px, 1.4vw, 20px); }
:root[data-theme="light"] .hero-copy { color: #15171c; }
:root[data-theme="light"] .hero-description { color: #46484f; }
:root[data-theme="dark"] .hero-description { color: #f2f4fb; }
/* Small type over the moving sky gets a soft night halo so it holds 4.5:1 on any frame. */
:root[data-theme="dark"] :is(.hero-description, .bison-api-note), .ml-sections .ml-final-copy p { text-shadow: 0 0 14px rgb(10 16 34 / .7), 0 1px 2px rgb(10 16 34 / .6); }
.hero-conversion { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; margin-top: 0; }
.hero-conversion .button { min-height: 48px; padding: 0 22px; font-size: 16px; }
.hero-conversion .bison-api-note { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hero-conversion .bison-api-note:hover { text-decoration-thickness: 2px; }
/* A quieter second way in, for teams that already run inboxes: the line under the two hero actions. */
.hero-existing { margin: 4px 0 0; font-size: 13px; text-align: center; }
.hero-existing a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; opacity: .8; text-decoration: none; }
.hero-existing a:hover, .hero-existing a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
:root[data-theme="dark"] .hero-existing { text-shadow: 0 0 14px rgb(10 16 34 / .7), 0 1px 2px rgb(10 16 34 / .6); }
.hero-bottom { bottom: 18px; }
:root[data-theme="light"] .hero-bottom { color: #15171c; }
:root[data-theme="dark"] .hero-bottom { text-shadow: 0 1px 12px rgb(1 4 13 / .5); }
.hero-bottom .scroll-cue { min-height: 44px; font-size: 13px; }
@media (max-width: 760px) {
  /* A phone sees the whole ring under the copy instead of a cover crop of the desk; the sky above is the gradient. */
  .hero-stage { --scene-width: 2; --scene-y: 1; }
  .landscape video { mask-image: linear-gradient(180deg, transparent 0, #000 18%); }
  .hero-copy { top: 128px; }
  .hero h1 { font-size: clamp(32px, 8.4vw, 42px); }
  .hero-description { margin: 14px auto 20px; }
  .hero-conversion .button { min-height: 46px; font-size: 14px; padding: 0 16px; }
}

/* Lower page: one quiet surface, framed by hairline guides that meet in crosshairs at every section. */
:root[data-theme="light"] .ml-sections {
  --ml-canvas: #f2f4fb;
  --ml-card: #fdffff;
  --ml-border: #dddfe6;
  --ml-border-strong: #c9cbd3;
  --ml-text: #15171c;
  --ml-body: #46484f;
  --ml-muted: #62646b;
}
.ml-sections { --guide: max(24px, calc(50% - 600px)); position: relative; background: linear-gradient(var(--ml-border), var(--ml-border)) var(--guide) 0 / 1px 100% no-repeat, linear-gradient(var(--ml-border), var(--ml-border)) calc(100% - var(--guide)) 0 / 1px 100% no-repeat, var(--ml-canvas); }
:root[data-theme="light"] .ml-sections :is(.ml-warm, .ml-stealth, .ml-observability, .ml-native, .ml-scale, .ml-comparison) { background: transparent; }
.ml-sections .ml-section { position: relative; }
.ml-sections :is(.ml-section, .ml-final)::before,
.ml-sections :is(.ml-section, .ml-final)::after { content: ""; position: absolute; top: -6px; width: 11px; height: 11px; background: linear-gradient(var(--ml-muted), var(--ml-muted)) center / 1px 100% no-repeat, linear-gradient(var(--ml-muted), var(--ml-muted)) center / 100% 1px no-repeat; opacity: .7; pointer-events: none; }
.ml-sections :is(.ml-section, .ml-final)::before { left: calc(var(--guide) - 5px); }
.ml-sections :is(.ml-section, .ml-final)::after { right: calc(var(--guide) - 5px); }
.ml-sections .ml-section-copy h2, .ml-sections .ml-observe-heading h2, .ml-sections .ml-scale-head h2, .ml-sections .ml-comparison-head h2, .ml-sections .ml-final h2 { font-weight: 460; letter-spacing: -.03em; }
.ml-sections .ml-feature-links a, .ml-sections .ml-stage-rail { font-family: var(--font-mono); letter-spacing: 0; }

/* Pastel panels hold the product, each tinted from the halo's sky. */
.ml-sections :is(.ml-product-shot, .ml-alert-preview, .ml-identity-stack, .ml-bison-field) { padding: clamp(16px, 2.6vw, 36px); border: 0; border-radius: 20px; }
/* 20 Oct: the panels are windows onto the hero's own sky, cut from the cloud video's first frame (night: blue hour). */
.ml-sections .ml-product-shot { background: #b9c7e3 url('./hero-video/day-panel-a.webp') center / cover; }
.ml-sections .ml-identity-stack { background: #c7cde3 url('./hero-video/day-panel-b.webp') center / cover; }
.ml-sections .ml-product-shot figcaption { color: #15171c; }
.ml-sections .ml-bison-field { background: radial-gradient(110% 90% at 0% 0%, #fdeadd 0%, rgb(253 234 221 / 0) 62%), radial-gradient(90% 90% at 100% 100%, #e1e6fd 0%, rgb(225 230 253 / 0) 60%), #f8f2ef; }
.ml-sections .ml-shot-frame, .ml-sections .ml-alert-workspace { border-color: rgb(12 14 19 / .08); border-radius: 12px; box-shadow: 0 1px 2px rgb(12 14 19 / .06), 0 18px 48px rgb(40 52 90 / .12); }
:root[data-theme="dark"] .ml-sections .ml-bison-field { background: radial-gradient(120% 90% at 0% 0%, rgb(83 102 234 / .22) 0%, rgb(83 102 234 / 0) 60%), #18191e; }
:root[data-theme="dark"] .ml-sections .ml-product-shot { background: linear-gradient(180deg, rgb(15 16 21 / 0) 62%, rgb(15 16 21 / .72) 100%), #20508e url('./hero-video/night-panel-a.webp') center / cover; }
:root[data-theme="dark"] .ml-sections .ml-identity-stack { background: linear-gradient(180deg, rgb(15 16 21 / 0) 62%, rgb(15 16 21 / .72) 100%), #20508e url('./hero-video/night-panel-b.webp') center / cover; }
:root[data-theme="dark"] .ml-sections .ml-product-shot figcaption { color: #f2f4fb; }

/* A night band carries the observability story, as hud's dark interlude does. */
:root[data-theme="light"] .ml-sections .ml-observability {
  --ml-canvas: #0f1015; --ml-card: #1f2025; --ml-control: #2c2e33; --ml-text: #f2f4fb; --ml-body: #cdcfd6; --ml-muted: #92959b; --ml-border: #24262b; --ml-border-strong: #3a3c42;
  color: var(--ml-text);
}
/* The night band is the sky before dawn: night at the top, brightening to the hero's blue hour. */
.ml-sections .ml-observability, :root[data-theme] .ml-sections .ml-observability { background: linear-gradient(180deg, #0f1015 0%, #111a33 40%, #1a3567 100%); }
.ml-sections .ml-observability .ml-alert-preview { background: #20508e url('./hero-video/night-panel-c.webp') center bottom / cover; }

/* The close: night again, the halo's night scene glowing under the footer. */
:root[data-theme="light"] .ml-sections :is(.ml-final, .ml-footer) {
  --ml-canvas: #0f1015; --ml-card: #1f2025; --ml-control: #2c2e33; --ml-text: #f2f4fb; --ml-body: #cdcfd6; --ml-muted: #92959b; --ml-border: #24262b; --ml-border-strong: #3a3c42; color: var(--ml-text);
}
/* The close is the hero's ring at blue hour, playing: the page opens at dawn and ends at dusk. */
.ml-sections .ml-final { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(560px, 56.25vw, 980px); padding-block: clamp(96px, 9vw, 140px) 0; background: #0c1328; }
.ml-sections .ml-final-scene { filter: brightness(.74); position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.ml-sections .ml-final::before, .ml-sections .ml-final::after { z-index: 1; }
.ml-sections .ml-final .ml-shell { align-items: start; }
.ml-sections .ml-final h2 { text-shadow: 0 1px 24px rgb(12 19 40 / .35); }
.ml-sections .ml-final-copy p, :root[data-theme] .ml-sections .ml-final-copy p { color: #fff; }
.ml-sections .ml-final-copy p { color: var(--ml-body); }
:root .ml-sections .ml-final .ml-button { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.ml-sections .ml-footer, :root[data-theme] .ml-sections .ml-footer { border-top: 0; background: #0c1328; }
.ml-sections .ml-button { border-radius: 12px; }
.ml-sections .ml-comparison-table thead .ml-legion-column { border-radius: 16px 16px 0 0; }
.ml-sections .ml-comparison-table tfoot .ml-legion-column { border-radius: 0 0 16px 16px; }
.ml-sections .ml-comparison-cta { border-radius: 12px; }

/* Polish pass, 18 Oct: the system's own materials everywhere. */
/* Guides sit a step outside the 1200px column, so copy never touches a hairline. */
.ml-sections { --guide: max(12px, calc(50% - 640px)); }
/* Large brand surfaces are ink with the halo-blue sheen, like the buttons; flat cobalt stays for small signals. */
.ml-sections .ml-comparison-table .ml-legion-column { border-left-color: rgb(255 255 255 / .14); background: var(--halo-accent); color: #ffffff; }
.ml-sections .ml-comparison-table thead .ml-legion-column { background: linear-gradient(to left bottom, rgb(255 255 255 / .18), rgb(255 255 255 / 0) 70%), var(--halo-accent); }
.ml-sections .ml-comparison-table thead .ml-legion-column span { border-color: rgb(255 255 255 / .22); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }
.ml-sections .ml-comparison-table tfoot .ml-legion-column { background: var(--halo-accent); }
.ml-sections .ml-comparison-cta { min-height: 40px; background: #f7f8fc; color: var(--ink); font-size: 14px; font-weight: 500; }
/* The agency flow reads as one line of steps: label, outcome, note, close together. */
.ml-sections .ml-automation-rail > div { min-height: 0; padding: 30px 4px 32px; }
.ml-sections .ml-automation-rail span { margin-bottom: 0; font-family: var(--font-mono); font-size: 12px; }
.ml-sections .ml-automation-rail strong { margin-top: 14px; font-family: var(--font-halo); font-size: 28px; font-weight: 460; letter-spacing: -.02em; line-height: 1.1; }
.ml-sections .ml-automation-rail small { max-width: 260px; margin-top: 8px; color: var(--ml-body); font-size: 14px; }
/* Each arrow sits level with the step titles, with the same air before and after it, so it reads as "this leads to that". */
@media (min-width: 761px) {
  .ml-sections .ml-automation-rail { grid-template-columns: auto minmax(88px, 1fr) auto minmax(88px, 1fr) auto; }
  .ml-sections .ml-automation-rail > i { align-self: start; justify-self: center; width: 56px; margin-top: 77px; }
}
@media (max-width: 760px) {
  .ml-sections .ml-automation-rail > div { padding: 22px 0; }
  .ml-sections .ml-automation-rail strong { margin-top: 10px; font-size: 24px; }
  .ml-sections .ml-automation-rail > i { height: 24px; }
}
/* Nav: a drawn chevron replaces the browser's disclosure triangle; the theme toggle matches the 12px controls. */
.feature-dropdown > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.feature-dropdown > summary::-webkit-details-marker { display: none; }
.feature-dropdown > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms ease; }
.feature-dropdown[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.site-nav [data-theme-toggle] { min-height: 38px; border-radius: 12px; font-weight: 500; }
.skip-link { border-radius: 12px; }
:root[data-theme="light"] ::selection, :root[data-theme="light"] .ml-sections ::selection { background: rgb(83 102 234 / .2); color: inherit; }
@media (max-width: 760px) { .site-nav [data-theme-toggle] { min-height: 44px; } .ml-sections { --guide: 6px; } }
/* Nothing readable below 12px. */
.ml-sections :is(.ml-comparison-note, .ml-automation-figure figcaption, .ml-bison-status small), .dashboard-caption p { font-size: 12px; }
/* Inner pages speak in the same serif as the homepage. */
.feature-page :is(h1, h2) { font-family: var(--font-halo); font-weight: 460; letter-spacing: -.03em; }
/* Dive caption: dark enough to read on the accent haze, and nothing under 12px. */
:root[data-theme="light"] .dashboard-caption :is(span, p) { color: #33353b; }
:root[data-theme="light"] .dashboard-caption a { color: #15171c; }
.dashboard-caption > span, .dashboard-caption .scroll-cue { font-size: 12px; }

/* Inner pages open under the same dawn sky as the homepage and end on the ring above the clouds. */
:root body.feature-page { --page: #f2f4fb; --sky-h: max(36vw, 520px); background: linear-gradient(180deg, rgb(242 244 251 / .5) 0%, rgb(242 244 251 / .15) 45%, var(--page) 100%) top center / 100% var(--sky-h) no-repeat, url('./hero-video/day-sky.webp') top center / auto var(--sky-h) no-repeat, var(--page); }
:root[data-theme="dark"] body.feature-page { --page: #0f1015; background: linear-gradient(180deg, rgb(15 16 21 / .45) 0%, rgb(15 16 21 / .2) 45%, var(--page) 100%) top center / 100% var(--sky-h) no-repeat, url('./hero-video/night-sky.webp') top center / auto var(--sky-h) no-repeat, var(--page); }
:root[data-theme="light"] .feature-page .site-nav { background: rgb(242 244 251 / .72); backdrop-filter: blur(16px); border-bottom-color: rgb(21 23 28 / .08); }
:root[data-theme="dark"] .feature-page .site-nav { background: rgb(15 16 21 / .6); backdrop-filter: blur(16px); }
body.feature-page::after { content: ""; display: block; height: clamp(180px, 24vw, 360px); background: linear-gradient(180deg, var(--page) 0%, rgb(242 244 251 / 0) 45%) top / 100% 100% no-repeat, url('./hero-video/day-ring.webp') center 30% / cover no-repeat; }
:root[data-theme="dark"] body.feature-page::after { background: linear-gradient(180deg, var(--page) 0%, rgb(15 16 21 / 0) 45%) top / 100% 100% no-repeat, url('./hero-video/night-ring.webp') center 30% / cover no-repeat; }

/* Polish pass, 20 Oct: 12px reading floor, phone tap targets, dive caption, breadcrumb. */
.ml-sections :is(.ml-product-shot figcaption, .ml-identity-origin span, .ml-identity-output span, .ml-automation-rail span, .ml-identity-origin small, .ml-identity-output small, .ml-mask-route, .ml-workspace-tab small, .ml-bison-status small, .ml-automation-rail small, .ml-automation-figure figcaption, .ml-comparison-note, .ml-mike figcaption, .ml-stage-rail, .ml-footer-base, .ml-mike-frame button) { font-size: 12px; }
.dashboard-caption > span { display: block; font: 400 clamp(17px, 1.4vw, 20px)/1.2 Newsreader, Georgia, serif; letter-spacing: -.01em; }
.dashboard-caption p { margin: 6px 0 0; }
.dashboard-caption .scroll-cue { min-height: 44px; gap: 8px; font-size: 13px; }
.scroll-cue .icon { width: 16px; height: 16px; }
.button .icon { width: 16px; height: 16px; }
.feature-page .back-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.feature-page .back-link a { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.feature-page .back-link [aria-current] { opacity: .72; }
@media (max-width: 760px) {
  :is(.brand, .footer-brand, .back-link a, .feature-link, .feature-footer nav a, .ml-footer-top a, .ml-mike figcaption a) { display: inline-flex; align-items: center; min-height: 44px; }
  :is(.site-nav .button, .feature-page .button, .feature-dropdown-panel a) { min-height: 44px; display: inline-flex; align-items: center; }
  :is(.ml-sections .ml-mike-frame button, .ml-sections .ml-comparison-cta) { min-height: 44px; }
  .ml-sections .ml-feature-links a { display: inline-flex; align-items: flex-end; min-height: 44px; }
}
:root[data-theme="dark"] .ml-sections :is(.ml-shot-frame, .ml-alert-workspace) { box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 48px rgb(0 0 0 / .32); }

/* One section, one screen: on a laptop or desktop each section fills the view under the fixed nav.
   The two screenshot sections are exactly a screen tall; their app shots crop from the top left instead of running past the fold. */
@media (min-width: 901px) and (min-height: 600px) {
  .ml-sections .ml-section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(72px + clamp(24px, 5svh, 56px)) clamp(32px, 6svh, 72px); }
  .ml-sections .ml-section > .ml-shell { min-height: 0; }
  .ml-sections h2 { font-size: clamp(2.5rem, min(5.25vw, 8.5svh), 4.7rem); }
  .ml-sections :is(.ml-editorial-head, .ml-scale-head) { margin-bottom: clamp(28px, 5svh, 64px); }
  .ml-sections :is(.ml-warm, .ml-observability) { height: 100svh; }
  .ml-sections :is(.ml-warm, .ml-observability) > .ml-shell { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  .ml-sections :is(.ml-editorial-head, .ml-observe-heading) { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: clamp(40px, 5vw, 80px); align-items: end; margin-bottom: clamp(24px, 4svh, 48px); }
  .ml-sections :is(.ml-editorial-head, .ml-observe-heading) > h2 { grid-row: span 2; }
  .ml-sections :is(.ml-editorial-head, .ml-observe-heading) > p { margin: 0; }
  .ml-sections .ml-observe-heading h2 { font-size: clamp(2.25rem, min(3.7vw, 6.4svh), 3.6rem); }
  .ml-sections :is(.ml-product-shot, .ml-alert-workspace, .ml-alert-preview) { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .ml-sections :is(.ml-shot-frame, .ml-workspace-panel.ml-app-panel) { flex: 0 1 auto; min-height: 0; overflow: hidden; }
  .ml-sections :is(.ml-shot-frame, .ml-app-panel) img { height: 100%; object-fit: cover; object-position: left top; }
  /* The three screens stack as a column beside the shot, so the shot keeps most of the screen. */
  .ml-sections .ml-alert-workspace { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); }
  .ml-sections .ml-workspace-tabs { grid-template-columns: none; grid-auto-rows: min-content; border-bottom: 0; border-right: 1px solid var(--ml-border); }
  .ml-sections .ml-workspace-tab { border-right: 0; border-bottom: 1px solid var(--ml-border); }
  .ml-sections .ml-workspace-tab.is-active::after { top: 0; right: auto; bottom: 0; width: 2px; height: auto; }
  .ml-sections .ml-comparison-head { margin-bottom: clamp(24px, 4svh, 56px); }
  .ml-sections .ml-comparison-head h2 { font-size: clamp(2.25rem, min(3.7vw, 6svh), 3.35rem); }
  .ml-sections .ml-comparison-table :is(th, td) { height: clamp(40px, 5.6svh, 84px); padding-block: 8px; }
  .ml-sections .ml-comparison-table thead th { height: clamp(44px, 6svh, 72px); }
  .ml-sections .ml-comparison-table tfoot td { height: clamp(52px, 7svh, 86px); }
}
/* A short laptop screen also tightens the comparison type and spacing. */
@media (min-width: 901px) and (min-height: 600px) and (max-height: 800px) {
  .ml-sections .ml-comparison { padding-bottom: 20px; }
  .ml-sections .ml-comparison-head { margin-bottom: 16px; }
  .ml-sections .ml-comparison-head h2 { font-size: 2.25rem; }
  .ml-sections .ml-comparison-table { font-size: 15px; }
  .ml-sections .ml-comparison-table td { line-height: 1.3; }
}


/* The laptop screen in the hero shows the app's Home from the first paint: the same image the sample opens on, so the iframe swaps in unseen. */
.dashboard-world { background: #15161c url('./app/overview-dark.webp') left top / cover; }
:root[data-theme="light"] .dashboard-world { background: #f3f6f9 url('./app/overview-light.webp') left top / cover; }

/* Theme switch as a time of day. Dusk: the day warms to gold while night falls from the top of the sky. Dawn: day rises from the horizon, warm at first. */
:root[data-theme-shift]::view-transition-old(root),
:root[data-theme-shift]::view-transition-new(root) { mix-blend-mode: normal; animation-duration: 1s; animation-timing-function: cubic-bezier(.45, 0, .2, 1); animation-fill-mode: both; }
:root[data-theme-shift="dusk"]::view-transition-old(root) { animation-name: halo-golden-hour; }
:root[data-theme-shift="dusk"]::view-transition-new(root) { -webkit-mask: linear-gradient(to bottom, #000 40%, transparent 60%) 0 100% / 100% 250% no-repeat; mask: linear-gradient(to bottom, #000 40%, transparent 60%) 0 100% / 100% 250% no-repeat; animation-name: halo-nightfall; }
:root[data-theme-shift="dawn"]::view-transition-old(root) { animation-name: none; }
:root[data-theme-shift="dawn"]::view-transition-new(root) { -webkit-mask: linear-gradient(to top, #000 40%, transparent 60%) 0 0 / 100% 250% no-repeat; mask: linear-gradient(to top, #000 40%, transparent 60%) 0 0 / 100% 250% no-repeat; animation-name: halo-sunrise; }
@keyframes halo-golden-hour { to { filter: sepia(.4) saturate(1.6) hue-rotate(-12deg) brightness(.82); } }
@keyframes halo-nightfall { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes halo-sunrise { from { filter: sepia(.35) saturate(1.5) hue-rotate(-10deg); } to { -webkit-mask-position: 0 100%; mask-position: 0 100%; filter: none; } }

/* The top bar tucks away while reading down (theme.js) and glides back on scroll up. */
.site-nav { transition: background .3s, transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; }
.site-nav.nav-hidden { transform: translateY(calc(-100% - 8px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .site-nav { transition: background .3s, opacity .2s; } }

/* Controls, 21 Oct: glass for the top bar, a sheen on the accent buttons, one focus ring.
   Glass: a frosted tint of the page with a hairline edge and a top highlight, so controls float on the sky. */
:root { --glass: rgb(255 255 255 / .56); --glass-hover: rgb(255 255 255 / .86); --glass-edge: rgb(21 23 28 / .09); --glass-shine: rgb(255 255 255 / .7); --glass-press: rgb(21 23 28 / .06); --glass-nav: rgb(255 255 255 / .66); }
:root[data-theme="dark"] { --glass: rgb(255 255 255 / .07); --glass-hover: rgb(255 255 255 / .13); --glass-edge: rgb(255 255 255 / .13); --glass-shine: rgb(255 255 255 / .09); --glass-press: rgb(255 255 255 / .1); --glass-nav: rgb(20 24 40 / .42); }
.site-nav .nav-actions { gap: 10px; }
.site-nav [data-theme-toggle], :root[data-theme] .site-nav [data-theme-toggle] {
  display: inline-grid; place-items: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0;
  border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--glass); color: inherit;
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 1px 2px rgb(21 23 28 / .06); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  transition: background-color .18s ease, transform .18s ease;
}
:root[data-theme] .site-nav [data-theme-toggle]:hover { background: var(--glass-hover); }
.site-nav [data-theme-toggle]:active { transform: scale(.94); }
/* The sun's rays fold away and a shadow slides across it into a crescent; reversed at dawn. The mask sits on a group,
   so it stays put while the core grows. */
.theme-icon { width: 18px; height: 18px; overflow: visible; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.theme-icon-core { fill: currentColor; transform-origin: 12px 12px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.theme-icon-cut { transform: translate(7px, 7px); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.theme-icon-rays { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transform-origin: 12px 12px; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; }
:root[data-theme="dark"] .theme-icon { transform: rotate(-90deg); }
:root[data-theme="dark"] .theme-icon-core { transform: scale(1.55); }
:root[data-theme="dark"] .theme-icon-cut { transform: none; }
:root[data-theme="dark"] .theme-icon-rays { transform: scale(.5) rotate(45deg); opacity: 0; }

/* On a laptop or desktop the links sit in one glass capsule; the page you are on is the raised segment. */
@media (min-width: 761px) {
  .site-nav nav, :root[data-theme] .site-nav nav { gap: 2px; padding: 4px; border: 1px solid var(--glass-edge); border-radius: 14px; background: var(--glass-nav); box-shadow: inset 0 1px 0 var(--glass-shine), 0 1px 2px rgb(21 23 28 / .05); }
  /* No backdrop blur here: it would make the capsule the menu's containing block and pull the menu off centre. */
  .site-nav nav > a, .site-nav .feature-dropdown > summary { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 10px; transition: background-color .16s ease, color .16s ease; }
  .site-nav nav > a:hover, .site-nav .feature-dropdown > summary:hover, .site-nav .feature-dropdown[open] > summary { background: var(--glass-press); }
  :root[data-theme] .site-nav nav > a[aria-current], .feature-page .site-nav nav > a[aria-current] { text-decoration: none; background: var(--glass-hover); box-shadow: 0 1px 2px rgb(21 23 28 / .1); }
  .site-nav .feature-dropdown > summary { padding-right: 12px; }
}
:root[data-theme="light"] .site-nav nav > a:hover, :root[data-theme="light"] .feature-dropdown > summary:hover { color: inherit; }

/* Accent buttons: a soft top sheen and a halo-blue glow; they lift a pixel on hover and the arrow leans the way it points. */
.primary, :root .ml-sections .ml-final .ml-button {
  background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / 0) 55%), var(--halo-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .24), inset 0 -1px 0 rgb(20 26 90 / .2), 0 1px 2px rgb(30 40 120 / .28), 0 8px 20px -8px rgb(83 102 234 / .7);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.primary:hover, :root .ml-sections .ml-final .ml-button:hover { background: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / 0) 55%), var(--halo-accent-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .26), inset 0 -1px 0 rgb(20 26 90 / .2), 0 2px 4px rgb(30 40 120 / .25), 0 12px 28px -8px rgb(83 102 234 / .8); }
.primary:active, :root .ml-sections .ml-final .ml-button:active { background: var(--halo-accent-active); transform: translateY(0); }
.button .icon, .ml-button .icon { transition: transform .18s ease; }
:is(.button, .ml-button):hover .icon { transform: translate(2px, -2px); }

/* The Features menu: frosted, grouped like the hub, each feature with its one-line promise. */
.feature-dropdown-panel, :root[data-theme] .feature-dropdown-panel { top: calc(100% - 6px); width: min(880px, calc(100vw - 48px)); padding: 10px; border: 1px solid var(--glass-edge); border-radius: 18px; background: #ffffff; box-shadow: 0 24px 64px -16px rgb(30 40 80 / .32); }
:root[data-theme="dark"] .feature-dropdown-panel { background: #1c1d24; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 24px 64px -16px rgb(0 0 0 / .6); }
.feature-dropdown[open] .feature-dropdown-panel { animation: halo-menu-in .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes halo-menu-in { from { opacity: 0; translate: 0 -6px; scale: .985; } }
.site-nav nav .feature-dropdown-panel .feature-dropdown-all, :root[data-theme] .site-nav nav .feature-dropdown-panel .feature-dropdown-all { min-height: 40px; margin: 0 0 6px; padding: 8px 12px; border: 0; border-radius: 10px; font-weight: 500; }
.feature-dropdown-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.feature-dropdown-group { margin: 0; padding: 12px 12px 6px; font: 500 12px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; opacity: .62; }
.feature-dropdown-panel ul, :root .feature-dropdown-panel ul { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 0; }
.site-nav nav .feature-dropdown-panel li a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 9px 12px; border-radius: 10px; transition: background-color .14s ease; }
.site-nav nav .feature-dropdown-panel li a span { margin: 0; opacity: 1; font-size: 14px; font-weight: 500; line-height: 1.25; }
.feature-dropdown-panel li a small { font-size: 12.5px; line-height: 1.35; opacity: .66; }
:root[data-theme] .site-nav nav .feature-dropdown-panel a:is(:hover, :focus-visible) { background: rgb(83 102 234 / .1); color: inherit; }
:root[data-theme] .site-nav nav .feature-dropdown-panel a:is(:hover, :focus-visible) span { color: var(--halo); }
:root[data-theme] .site-nav nav .feature-dropdown-panel a[aria-current="page"] { text-decoration: none; background: rgb(83 102 234 / .1); }
@media (max-width: 760px) {
  .feature-dropdown-panel, :root[data-theme] .feature-dropdown-panel { top: calc(100% + 4px); padding: 8px; }
  .feature-dropdown-groups { grid-template-columns: 1fr; }
  .feature-dropdown-panel li a small { display: none; }
  .site-nav nav .feature-dropdown-panel :is(li a, .feature-dropdown-all), :root[data-theme] .site-nav nav .feature-dropdown-panel .feature-dropdown-all { min-height: 44px; }
  .site-nav [data-theme-toggle], :root[data-theme] .site-nav [data-theme-toggle] { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
}

/* One focus ring for every control: the halo colour, clear of the edge. */
:is(.button, .ml-button, [data-theme-toggle], .site-nav nav a, .feature-dropdown > summary, .menu-toggle):focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .theme-icon, .theme-icon-core, .theme-icon-cut, .theme-icon-rays, .primary, .button .icon { transition-duration: .01ms; }
  .feature-dropdown[open] .feature-dropdown-panel { animation: none; }
  .primary:hover, :root .ml-sections .ml-final .ml-button:hover, :is(.button, .ml-button):hover .icon { transform: none; }
}

/* Free diagnosis hand-off (navigation.js): the diagnose page's ground (the app's --color-bg) opens out of
   the button, then the loading orb and its line rise in. */
.diagnose-veil {
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-content: center; justify-items: center; gap: 20px;
  background: #f2f4fb; color: #5b6070; font: 450 14px/1.4 geist, system-ui, sans-serif; letter-spacing: .01em;
  clip-path: circle(0 at var(--x) var(--y)); animation: diagnose-veil .7s cubic-bezier(.7, 0, .2, 1) forwards;
}
.diagnose-veil.is-dark { background: #0f1015; color: #9a9fae; }
.diagnose-veil > * { margin: 0; opacity: 0; animation: diagnose-veil-in .5s .32s cubic-bezier(.2, .8, .2, 1) forwards; }
.diagnose-veil p { animation-delay: .45s; }
.diagnose-veil canvas { width: 112px; height: 112px; }
@keyframes diagnose-veil { to { clip-path: circle(150vmax at var(--x) var(--y)); } }
@keyframes diagnose-veil-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
