/* The public site (Lmsqr ADR-0041). System fonts only, nothing from another origin (rule 7).
   One theme, dark and colourful (the owner's choice, 2026-10-27): a deep blue base with bands of
   colour, so the site reads apart from the app. The wordmark's blue leads; lemon, coral, mint and
   violet tint the sections. Motion is CSS only (scroll-driven animations), off for reduced motion
   and absent where the browser lacks it: the page is complete without it. */

:root {
  --bg: #0b1022;
  --bg-2: #0f1630;
  --band: #131b3a;
  --surface: #172045;
  --surface-2: #1d2855;
  --line: #27335f;
  --ink: #eef1fa;
  --muted: #a9b2d2;
  --blue: #5aa9ff;
  --lemon: #ffd25e;
  --coral: #ff8a73;
  --mint: #4fe0ae;
  --violet: #b195ff;
  --accent: var(--blue);
  --accent-ink: #08142b;
  --track: #4b5a85;
  --draft: #f2c26b;
  --draft-bg: #2e2412;
  --radius: 16px;
  --wrap: 74rem;
  --gutter: 16px;
  --tint: var(--blue);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.draft-banner {
  background: var(--draft-bg); color: var(--draft); border-bottom: 1px solid currentColor;
  text-align: center; font-weight: 600; padding: 8px 16px;
}

/* ── Wordmark ─────────────────────────────────────────────── */
.wordmark { display: block; height: 28px; width: auto; color: var(--ink); }
.wordmark__track { stroke: var(--track); }
.wordmark__arc { stroke: var(--accent); }

/* ── Header ───────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgb(11 16 34 / 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(39 51 95 / 0.7);
}
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.beta-chip {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 4px 6px; order: 3; width: 100%; font-size: 15px; overflow-x: auto; scrollbar-width: none; }
.nav > a, .menu__hub { display: inline-block; padding: 6px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav > a:hover, .menu__hub:hover, .menu:focus-within .menu__hub { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"], .menu--current .menu__hub { color: var(--lemon); font-weight: 600; }
.top__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 15px; }
.top__actions a:not(.button) { color: var(--muted); text-decoration: none; }
.top__actions a:not(.button):hover { color: var(--ink); }
@media (min-width: 960px) {
  .nav { order: 0; width: auto; overflow: visible; }
}
@media (max-width: 560px) {
  .top__actions { gap: 12px; }
  .top__actions .signin, .top__actions .help { display: none; }
}

/* The drop-down: opens on hover and on keyboard focus; on touch screens the entry opens the hub page. */
.menu { position: relative; }
.menu__hub::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: 0.7; }
.menu__panel {
  position: absolute; top: 100%; left: -8px; z-index: 40;
  width: min(26rem, 90vw); padding: 10px; margin-top: 8px;
  display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.6);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.menu__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu:hover .menu__panel, .menu:focus-within .menu__panel { opacity: 1; visibility: visible; transform: none; }
.menu__panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.menu__panel a:hover, .menu__panel a:focus-visible { background: var(--surface-2); }
.menu__panel a strong { font-weight: 650; }
.menu__panel a span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.menu__panel a[aria-current="page"] strong { color: var(--lemon); }
.menu__panel .menu__all { display: block; font-size: 14px; color: var(--accent); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
@media (hover: none), (max-width: 959px) { .menu__panel { display: none; } }

/* ── Buttons ──────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(23 32 69 / 0.6);
  color: var(--ink); font-weight: 650; text-decoration: none; line-height: 1.3;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.button:hover { border-color: var(--accent); transform: translateY(-1px); }
.button.primary {
  background: linear-gradient(135deg, #7bbcff, var(--blue) 55%, #4a8ef0);
  border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgb(90 169 255 / 0.7);
}
.button.primary:hover { filter: brightness(1.06); color: var(--accent-ink); }
.top .button { padding: 7px 16px; font-size: 15px; }

/* ── Content ──────────────────────────────────────────────── */
main.prose { padding-top: 8px; padding-bottom: 72px; }
.prose > * { max-width: 46rem; }
.prose > :is(.hero, .band, .scene, .cards, .steps, .cta, .table-scroll) { max-width: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; margin: 0.6em 0 0.35em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); font-weight: 750; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.14rem; font-weight: 700; margin: 1.4em 0 0.4em; letter-spacing: -0.01em; }
:is(h1, h2) em {
  font-style: normal;
  background: linear-gradient(95deg, var(--blue), var(--violet) 45%, var(--coral) 80%, var(--lemon));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--tint); }
code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
strong { color: var(--ink); }

/* Full-bleed blocks: they leave the column and fill the window, their content kept in the column. */
.prose > :is(.hero, .band, .scene, .cta) {
  position: relative;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

/* ── Hero ─────────────────────────────────────────────────── */
.prose > .hero {
  margin-top: -8px;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(56px, 8vw, 104px);
  isolation: isolate;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero::before { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgb(90 169 255 / 0.45), transparent 65%); }
.hero::after { width: 40vw; height: 40vw; right: -10vw; bottom: -20vw; background: radial-gradient(circle, rgb(177 149 255 / 0.4), transparent 65%); }
.hero h1 { margin-top: 0.1em; max-width: 16ch; }
.hero > p { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36rem; }
.hero > p:first-child { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lemon); margin-bottom: 0; }
.hero > p:has(.button) { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.hero > p:last-child:not(:has(img)) { font-size: 0.95rem; }
.hero > p:has(> img) { max-width: none; margin: 0; }
@media (min-width: 1000px) {
  .hero.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 56px; align-items: center; }
  .hero.split > * { grid-column: 1; }
  .hero.split > p:has(> img) { grid-column: 2; grid-row: 1 / span 8; }
}
@media (max-width: 999px) { .hero.split > p:has(> img) { margin-top: 32px; } }

/* ── Bands: full-width sections with their own ground ─────── */
.prose > .band { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); margin-top: 48px; }
.band > :first-child { margin-top: 0; }
.band > p, .band > h2 { max-width: 46rem; }
.band.dusk { background: linear-gradient(180deg, var(--bg-2), var(--band)); border-block: 1px solid var(--line); }
.band.glow {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(255 138 115 / 0.16), transparent 70%),
    radial-gradient(50rem 30rem at 0% 100%, rgb(79 224 174 / 0.14), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.band.center { text-align: center; }
.band.center > * { margin-inline: auto; }

/* A video (ADR-0041 rule 17): the site's own player, wide, on the band's ground */
.band > p:has(> video) { max-width: 60rem; margin-top: 1.6em; }
.prose > p:has(> video) { max-width: 60rem; margin-inline: auto; }
video.video { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #0f1733; box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }

/* ── Scenes: one capability, its text and its picture ─────── */
.prose > .scene {
  padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px);
  isolation: isolate;
}
.scene::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(34rem, 90vw); height: min(34rem, 90vw); border-radius: 50%; filter: blur(80px); opacity: 0.45;
  background: radial-gradient(circle, var(--tint), transparent 65%);
  right: 4%; top: 10%;
}
.scene.flip::before { right: auto; left: 4%; }
.scene > :first-child { margin-top: 0; }
.scene > p:first-child { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tint); margin-bottom: 0.4em; }
.scene h2 { margin-top: 0; }
.scene > p { color: var(--muted); max-width: 34rem; }
.scene > ul { color: var(--muted); max-width: 34rem; padding-left: 1.2em; }
.scene > p:has(> img) { max-width: none; }
.scene > p:has(.button) { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 72px; align-content: center; }
  .scene > * { grid-column: 1; }
  .scene > p:has(> img) { grid-column: 2; grid-row: 1 / span 10; align-self: center; margin: 0; }
  .scene.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .scene.flip > * { grid-column: 2; }
  .scene.flip > p:has(> img) { grid-column: 1; }
}
@media (max-width: 899px) { .scene > p:has(> img) { margin-top: 28px; } }
.scene + .scene { border-top: 1px solid rgb(39 51 95 / 0.5); }
.scene:nth-of-type(even) { background: linear-gradient(180deg, transparent, rgb(19 27 58 / 0.7) 30%, rgb(19 27 58 / 0.7) 70%, transparent); }

.t-blue { --tint: var(--blue); }
.t-lemon { --tint: var(--lemon); }
.t-coral { --tint: var(--coral); }
.t-mint { --tint: var(--mint); }
.t-violet { --tint: var(--violet); }

/* ── Cards ────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 16px;
  margin: 1.4em 0 0.4em;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: linear-gradient(160deg, var(--surface), rgb(19 27 58 / 0.6));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tint) 55%, var(--line)); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0.6em; }
.card p:last-child { margin-bottom: 0; }
.card::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tint); }
.cards .card:nth-child(5n+1) { --tint: var(--blue); }
.cards .card:nth-child(5n+2) { --tint: var(--lemon); }
.cards .card:nth-child(5n+3) { --tint: var(--mint); }
.cards .card:nth-child(5n+4) { --tint: var(--coral); }
.cards .card:nth-child(5n+5) { --tint: var(--violet); }

/* Use cases: bigger cards, each a door. */
.cards.doors .card { padding: 28px; }
.cards.doors .card h3 { font-size: 1.3rem; }
.cards.doors .card p:last-child a { font-weight: 650; }

/* Trust strip: small, quiet, four across. */
.cards.trust { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.cards.trust .card { background: transparent; border-color: rgb(39 51 95 / 0.8); padding: 18px 20px; }
.cards.trust .card h3 { font-size: 1rem; }
.cards.trust .card p { font-size: 0.95rem; }

/* Steps: numbered. */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; margin: 1.6em 0 0.4em; }
.steps .card { padding-top: 64px; }
.steps .card::before { counter-increment: step; content: counter(step); left: 24px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--accent-ink); }
.steps .card:nth-child(1) { --tint: var(--lemon); }
.steps .card:nth-child(2) { --tint: var(--blue); }
.steps .card:nth-child(3) { --tint: var(--mint); }

/* Plans: price cards. The plan's first paragraph is its price. */
.cards.plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: stretch; }
.cards.plans .card { display: flex; flex-direction: column; padding: 26px 24px; }
.cards.plans .card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tint); }
.cards.plans .card h3 + p { color: var(--ink); font-size: 1rem; margin: 0.2em 0 0.8em; }
.cards.plans .card h3 + p strong { display: block; font-size: 2.4rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.cards.plans .card ul { padding-left: 1.1em; color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }
.cards.plans .card:has(h3.featured) {
  border-color: transparent;
  background:
    linear-gradient(160deg, var(--surface-2), var(--surface)) padding-box,
    linear-gradient(135deg, var(--lemon), var(--coral), var(--violet)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 60px -30px rgb(255 210 94 / 0.35);
}

/* ── Note and call to action ──────────────────────────────── */
.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--tint);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 2.4em 0 1em;
}
.note p:last-child { margin-bottom: 0; }

.prose > .cta {
  margin-top: 72px; margin-bottom: -72px;
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 9vw, 120px);
  text-align: center;
  background:
    radial-gradient(40rem 22rem at 20% 0%, rgb(90 169 255 / 0.28), transparent 70%),
    radial-gradient(40rem 22rem at 80% 100%, rgb(255 210 94 / 0.2), transparent 70%),
    linear-gradient(180deg, var(--bg-2), #141a3c);
  border-top: 1px solid var(--line);
}
.cta > * { margin-inline: auto; max-width: 40rem; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); }
.cta p:has(.button) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.4em; }

/* ── Tables ───────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 36rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface-2); font-size: 0.95rem; }
tbody td:first-child { font-weight: 600; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: #080c1a; color: var(--muted); font-size: 15px; }
.foot__in { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 36px; }
@media (min-width: 820px) { .foot__in { grid-template-columns: 1.2fr 2fr; } }
.foot__brand .wordmark { height: 24px; }
.foot__brand p { margin: 14px 0 0; max-width: 20rem; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.foot__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 24px; }
.foot__group { display: grid; gap: 8px; align-content: start; }
.foot__label { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lemon); }
.foot__nav a { color: var(--muted); text-decoration: none; }
.foot__nav a:hover, .foot__nav a[aria-current="page"] { color: var(--ink); }
.foot__fine { margin: 0; font-size: 13px; }
@media (min-width: 820px) { .foot__fine { grid-column: 1 / -1; } }

/* ── Root chooser and 404 ─────────────────────────────────── */
.chooser { min-height: 100vh; display: grid; place-items: center; }
.chooser__in { display: grid; gap: 24px; justify-items: center; text-align: center; padding-top: 48px; padding-bottom: 48px; }
.chooser .wordmark { height: 40px; }
.chooser__list { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0; }
.chooser h1 { font-size: 1.6rem; margin: 0.4em 0 0.2em; }

/* ── Motion: parallax and reveal, driven by the scroll, no script ── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* The picture moves slower than the page; the glow behind it, the other way. */
    .scene > p:has(> img) img, .hero.split > p:has(> img) img {
      animation: drift linear both; animation-timeline: view(); animation-range: cover;
    }
    .scene::before { animation: drift-back linear both; animation-timeline: view(); animation-range: cover; }
    .scene > :not(p:has(> img)), .cards > .card, .steps > .card {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%;
    }
  }
  @supports (animation-timeline: scroll()) {
    .hero::before, .hero::after { animation: float linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes drift { from { transform: translateY(60px); } to { transform: translateY(-60px); } }
@keyframes drift-back { from { transform: translateY(-120px) scale(0.9); } to { transform: translateY(120px) scale(1.1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { to { transform: translateY(30vh) scale(1.2); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
