/* Kova site: tokens, chrome and every shared component. See _template.html for markup. */

@font-face {
  font-family: "Caslon Display";
  src: url("../fonts/libre-caslon-display-latin-400-normal.45a26b50.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-wght-normal.9920b3f0.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.e303cdb3.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Fallbacks sized to the web fonts' average glyph width and ascent/descent, so the swap barely moves text.
   size-adjust = web avg width / local avg width (English letter frequencies); overrides = web metric / size-adjust. */
@font-face {
  font-family: "Caslon Georgia";
  src: local("Georgia");
  size-adjust: 81.6%; ascent-override: 118.9%; descent-override: 32.6%; line-gap-override: 0%;
}
@font-face {
  font-family: "Caslon Times";
  src: local("Times New Roman"), local("Liberation Serif"), local("Tinos");
  size-adjust: 91%; ascent-override: 106.6%; descent-override: 29.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "Onest Arial";
  src: local("Arial"), local("Liberation Sans"), local("Arimo");
  size-adjust: 106%; ascent-override: 91.5%; descent-override: 28.8%; line-gap-override: 0%;
}

:root {
  --bg: #0d0e10;
  --panel: #131416;
  --raised: #1a1b1e;
  --sunk: #09090b;
  --line: #232428;
  --line-2: #313236;
  --line-3: #47484d;
  --text: #f0eee9;
  --text-2: #aaa9a4;
  --text-3: #8d8c87;
  --accent: #f5b04a;
  --accent-hi: #ffc670;
  --accent-ink: #1d1304;
  --accent-wash: rgb(245 176 74 / 0.08);
  --danger: #ff8f84;

  --serif: "Caslon Display", "Caslon Georgia", "Caslon Times", serif;
  --sans: "Onest", "Onest Arial", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1264px;
  --pad: clamp(20px, 3vw, 32px);
  --r: 12px;
  --header: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  scrollbar-color: var(--line-2) var(--bg);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p a, li a, dd a { color: var(--text); text-decoration-color: var(--accent); }
p a:hover, li a:hover, dd a:hover { color: var(--accent-hi); }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h3 { font-size: 1.1875rem; font-weight: 550; letter-spacing: -0.01em; line-height: 1.3; }
p, dd, li, figcaption { text-wrap: pretty; }
:not(pre) > code { font-family: var(--mono); font-size: 0.875em; font-weight: 400; color: var(--text); overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
/* Rails: two hairlines at the content edges frame the whole page. */
main {
  background:
    linear-gradient(var(--line), var(--line)) calc(50% - var(--wrap) / 2) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(50% + var(--wrap) / 2) 0 / 1px 100% no-repeat;
}
.section { padding-block: clamp(88px, 11vw, 144px); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > p { color: var(--text-2); font-size: 1.0625rem; max-width: 48ch; justify-self: end; }
.title { font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.015em; max-width: 18ch; }
.display { font-size: clamp(2.75rem, 1.4rem + 3.8vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
.lede { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46ch; }
.prose { color: var(--text-2); font-size: 1.0625rem; max-width: 60ch; }
.prose > * + * { margin-top: 1em; }
.prose strong { color: var(--text); font-weight: 550; }
/* Credits and privacy pages */
.legal { margin-top: 32px; }
.legal h2 { margin-top: 1.6em; color: var(--text); font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.01em; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 0.5em; }
.legal a { overflow-wrap: anywhere; }
.title + .prose, .title + .lede { margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split > .title + .prose { margin-top: 0; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 0.875rem; color: var(--text-3); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 500 0.9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 0.875rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-hi); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--line-3); background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.link .i { transition: transform 0.3s var(--ease); }
.link:hover { color: var(--accent-hi); }
.link:hover .i { transform: translateX(3px); }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }

/* Header and nav */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { position: relative; display: flex; align-items: center; gap: 40px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.brand-mark { width: 22px; height: 22px; }
.nav { flex: 1; display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px;
  border: 0; background: transparent; color: var(--text-2); font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--raised); }
.nav-link[aria-current] { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 6px 10px; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { background: var(--raised); color: var(--text); }

.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 8px; background: transparent; cursor: pointer; font-size: 0.9375rem;
}
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* Hero (home): the headline and its line over the live configurator, which fills the rest of the first screen. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-grid {
  position: absolute; inset: 0 max(0px, (100% - var(--wrap)) / 2); z-index: -1; pointer-events: none; /* the column, rail to rail */
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: calc(50% + 31.5px + var(--wrap) / 2) -1px; /* a line on the right rail (main) */
  -webkit-mask-image: radial-gradient(ellipse 50% 34% at 72% 0%, #000 20%, transparent 72%); /* behind the headline row, clear of the car */
          mask-image: radial-gradient(ellipse 50% 34% at 72% 0%, #000 20%, transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1; display: grid; align-items: end; gap: 40px 48px; padding-block: 40px 0; /* the stage runs to the fold: the dock sits at its bottom */
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); grid-template-areas: "title copy" "live live";
  grid-template-rows: auto minmax(420px, 1fr); min-height: calc(100svh - var(--header));
}
/* Two balanced lines, one sentence each, a step under the inner pages' display: the car keeps the room. */
.hero .display { grid-area: title; font-size: clamp(2.75rem, 1rem + 3vw, 4rem); }
.hero .display > span { display: block; }
.hero-copy { grid-area: copy; }
.hero .lede { max-width: 50ch; }
.hero .actions { margin-top: 20px; }
/* The live configurator on the page's own ground: the engine's still of the car with the embed's dock over
   it (site.js), the car live at the first touch. Desktop: the stage spans the column from rail to rail (the
   page's two hairlines, `main`); the car (the still here, the live 3D in the embed: preview.css, the same
   --hero-fade) fades to the page at its sides, top and bottom, so the rails run on past it and nothing draws a
   box; the dock, never faded, spans the column inside its gutters, under the headline and the buttons. */
:root {
  --hero-fade: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(transparent, rgb(0 0 0 / 0.1) 5%, rgb(0 0 0 / 0.35) 10%, rgb(0 0 0 / 0.65) 15%, rgb(0 0 0 / 0.9) 20%, #000 24%, #000 92%, transparent);
}
.hero .live { grid-area: live; align-self: stretch; max-height: 820px; display: flex; flex-direction: column; box-shadow: none; overflow: visible; margin-top: -32px; } /* its top fades under the gap */
.hero .live-stage { flex: 1; aspect-ratio: auto; min-height: 0; background: none; }
@media (min-width: 901px) {
  .hero .live { margin-inline: calc(-1 * var(--pad)); }
  .hero .live-stage img { -webkit-mask: var(--hero-fade); -webkit-mask-composite: source-in; mask: var(--hero-fade); mask-composite: intersect; }
}
.hero .live-start { bottom: 40%; }

/* Short hero (inner pages): copy left, visual right */
.p-hero { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px); }
.p-hero .display { font-size: clamp(2.75rem, 1rem + 3.1vw, 3.75rem); }
.p-hero .lede { margin-top: 24px; }
.p-hero .lede + .small { margin-top: 12px; }
.p-hero .actions + .small { margin-top: 14px; max-width: 46ch; }

.caption { margin-top: 16px; font-size: 0.875rem; color: var(--text-3); }

/* Fact list: label / value rows (doors, product facts) */
.facts { width: 100%; }
.facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; }
.facts dd { color: var(--text-2); font-size: 0.9375rem; }

/* Where the model lives: a dot that says browser, server or custom */
.where { display: inline-flex; align-items: baseline; gap: 8px; font-size: 0.875rem; color: var(--text-2); }
.where::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-3); transform: translateY(-1px); }
.where[data-where="server"] { color: var(--text); }
.where[data-where="server"]::before { background: var(--accent); border-color: var(--accent); }
.where[data-where="custom"]::before { border-style: dashed; }

/* Honest note: the plain security sentence */
.honest { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.9375rem; max-width: 52ch; }
.honest strong { color: var(--text); font-weight: 550; }

/* Code block */
.code { background: var(--sunk); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 0.8125rem; color: var(--text-2); }
.copy {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 0.8125rem; font-weight: 500; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy:hover { color: var(--text); border-color: var(--line-3); }
.copy .i { width: 14px; height: 14px; }
.copy.is-done { color: var(--accent); border-color: var(--accent); }
.code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; font: 400 0.8125rem/1.8 var(--mono); color: var(--text); tab-size: 2; scrollbar-width: thin; white-space: pre-wrap; overflow-wrap: anywhere; }
.code code { font: inherit; }
.t-p { color: #8d8c87; }
.t-tag { color: #e6e5e0; }
.t-attr { color: #9ab8d8; }
.t-str { color: var(--accent-hi); }
.t-key { color: #d2a8ff; }
.t-fn { color: #7fd1c7; }

/* Two products: ruled columns (icon, title, lede, copy, three bullets, for, link) */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.door { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-top: 40px; }
.door:first-child { padding-right: clamp(32px, 5vw, 64px); border-right: 1px solid var(--line); }
.door:last-child { padding-left: clamp(32px, 5vw, 64px); }
.door-icon { width: 28px; height: 28px; margin-bottom: 20px; fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.door h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.door > p { margin-top: 14px; color: var(--text-2); max-width: 52ch; }
.door > .door-lede { color: var(--text); font-size: 1.125rem; line-height: 1.45; }
.door .links { margin-top: auto; padding-top: 28px; }
/* The bullets: the dot that says where the model lives (the amber one: the file stays on our servers). */
.door-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.door-list .where { color: var(--text-2); }
.door-list .where[data-where="server"] { color: var(--text); }
/* Side by side: both columns share one row track per child (each bullet too), so every line starts at the same height. */
@media (min-width: 901px) {
  .doors { grid-template-rows: repeat(9, auto); }
  .door { display: grid; grid-row: span 9; grid-template-rows: subgrid; justify-items: start; align-content: start; }
  .door-list { grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; }
}

/* FAQ: question/answer pairs in two ruled columns */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.faq > div { padding-block: 24px; border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 1.1875rem; font-weight: 550; line-height: 1.3; letter-spacing: -0.01em; }
.faq p { margin-top: 8px; color: var(--text-2); max-width: 60ch; }

/* Live 3D (the home hero): the configurator (the demo in ?embed&wait) over the still; live at the first
   touch (site.js, preview.js). */
.live { overflow: hidden; box-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.7); }
/* The status is spoken; shown only with a failure, in the pill. */
.live-start .live-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.live[data-state="error"] .live-start .live-status { position: static; width: auto; height: auto; clip-path: none; padding-left: 12px; font-size: 0.8125rem; color: var(--danger); }
.live-stage {
  position: relative; aspect-ratio: 16 / 10;
  background: radial-gradient(ellipse 60% 22% at 50% 78%, rgb(255 255 255 / 0.04), transparent 70%), linear-gradient(var(--panel), var(--sunk));
}
/* The still: the engine's own render of the stream's first frame, covering the stage as the stream frames it
   (desktop: a 3:1 render, so the stage's height sets its scale as it sets the engine's fit, `&lift` included;
   phones: their own, at their stage's aspect). The embed is see-through (preview.css `.embed`): its dock shows
   over the still, then its own copy of the still (preview.js) lies over its 3D and goes at once at the first touch. */
.live-stage img, .live-stage > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.live-stage > iframe { opacity: 0; transition: opacity 0.3s var(--ease); }
/* Keyboard focus inside the embed (site.js `data-focus`; .kbd: keyboard use only). */
.kbd .live[data-focus] .live-stage > iframe { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Shown where there is no live 3D (no JavaScript, the engine busy or failing): one small pill over the
   still, never a box over it. */
.live-start {
  position: absolute; z-index: 1; left: 50%; bottom: 16px; translate: -50% 0;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 4px; border-radius: 99px;
  background: rgb(19 20 22 / 0.9); border: 1px solid var(--line-2); white-space: nowrap;
  transition: none; /* must be focusable the instant the 3D stops */
}
.live-start .btn { border-radius: 99px; border-color: transparent; }
.live-start .link { padding-right: 14px; font-size: 0.8125rem; }
.live-start noscript p { padding: 6px 14px; font-size: 0.8125rem; color: var(--text-2); }
/* With JavaScript, only a failure shows it. */
.js .live:not([data-state="error"]) .live-start { display: none; }
.live[data-shown] .live-stage > iframe { opacity: 1; } /* the embed's page is in: its dock over the still */
/* Live (or paused, dimmed): the still goes at once (the embed's copy of it went with the touch), so it never shows
   through the 3D's faded edges or its pause; a session that ends (`reset`) brings it back at once. */
.live:is([data-state="on"], [data-state="paused"]) .live-stage picture { visibility: hidden; }

/* API reference column (developers page): h3 + facts/code stacks */
.ref h3 + * { margin-top: 16px; }
.ref * + h3 { margin-top: 56px; }

/* Closing band (inner pages) */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.cta-band .title { max-width: 16ch; }
.cta-band p { margin-top: 20px; color: var(--text-2); font-size: 1.0625rem; max-width: 46ch; }
.cta-band p + p { margin-top: 8px; }
.cta-band .actions { margin-top: 0; }

/* Booking: two big actions, no fields (site.js puts the build tried into their links). */
.cta-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.cta-grid .title { font-size: clamp(2.75rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; max-width: 12ch; }
.cta-grid .title + p, .cta-grid .title + p + p { margin-top: 24px; color: var(--text-2); font-size: 1.0625rem; max-width: 40ch; }
.cta-grid .title + p + p, .lede + .lede { margin-top: 12px; }
.book { display: grid; gap: 12px; }
.book .btn { justify-content: space-between; height: 64px; padding: 0 24px; border-radius: var(--r); font-size: 1.0625rem; }
.book-addr { color: var(--text-3); font-weight: 400; font-size: 0.9375rem; }
.book .small { margin-top: 4px; }
.book .small a { color: var(--text-2); white-space: nowrap; }
.book-config { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.book-config .copy { justify-content: center; min-width: 28px; padding: 0; border-color: transparent; font-size: 1.125rem; }

/* Demo cards (/demo/ and under each demo; site/kit/page.ts): the engine's still of the product, its category,
   its name and the engines it renders on (the .where dots). */
.demo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; margin: 0; padding: 0; list-style: none; }
.demo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--text); text-decoration: none; }
.demo-card__img { display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color 0.2s; }
.demo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.demo-card:hover .demo-card__img { border-color: rgb(255 255 255 / 0.16); }
.demo-card:hover .demo-card__img img { transform: scale(1.02); }
.demo-card:focus-visible { outline-offset: 6px; }
.demo-card__cat { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.demo-card__options { margin-top: -2px; }
.demo-card__name { display: flex; align-items: center; gap: 10px; font: 550 1.25rem/1.3 var(--sans); letter-spacing: -0.01em; }
.demo-card__name .i { color: var(--text-3); transition: transform 0.3s var(--ease), color 0.2s; }
.demo-card:hover .demo-card__name .i { color: var(--accent-hi); transform: translateX(3px); }
.demo-card__options { font-size: 0.9375rem; color: var(--text-2); }
.demo-card:hover .demo-card__name { color: var(--accent-hi); }
.demo-card__where { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; line-height: 1.4; }
.demo-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-hub { padding-block: clamp(40px, 5vw, 72px) 96px; }
.demo-hub .demo-cards { margin-top: 56px; }
.demo-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 0.8125rem; }
.demo-legend .where { font-size: 0.8125rem; }
@media (max-width: 900px) { .demo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .demo-cards, .demo-cards[data-count="2"] { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 0.9375rem; color: var(--text-2); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-id { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-id a:not(.brand) { text-decoration-color: var(--line-3); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-id a:hover { color: var(--text); }
.footer-credit { flex-basis: 100%; font-size: 0.8125rem; padding-inline-end: max(0px, 100% - 80ch); }

/* Responsive */
@media (max-width: 1359px) { main { background: none; } }
@media (max-width: 900px) {
  :root { --header: 60px; }
  .menu-toggle { display: inline-flex; }
  html:not(.js) .menu-toggle { display: none; }
  .js .nav { display: none; }
  .js .site-header.is-open .nav { display: flex; min-height: calc(100svh - var(--header)); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 20px;
    max-height: calc(100svh - var(--header)); overflow-y: auto;
    padding: 8px var(--pad) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  html:not(.js) .nav { position: static; flex-basis: 100%; padding: 0 0 16px; border: 0; }
  html:not(.js) .header-row { flex-wrap: wrap; height: auto; padding-top: 14px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; height: 52px; padding: 0 4px; font-size: 1.0625rem; color: var(--text); justify-content: space-between; border-radius: 0; }
  .nav-link:hover { background: transparent; }
  .nav-actions { margin-left: 0; justify-content: space-between; }

  /* One column: the headline, its line and the booking button, then the live configurator to the screen's edges. */
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "copy" "live"; grid-template-rows: none; min-height: 0; gap: 16px; padding-block: 20px 32px; }
  .hero .live { margin-top: 0; }
  .hero .live-stage {
    flex: none; margin-inline: calc(-1 * var(--pad)); height: clamp(280px, 80vw, 480px);
    -webkit-mask: linear-gradient(transparent, #000 16%, #000 calc(100% - 6px), transparent); mask: linear-gradient(transparent, #000 16%, #000 calc(100% - 6px), transparent);
  }
  .hero-grid { -webkit-mask-image: radial-gradient(ellipse 90% 30% at 50% 8%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 90% 30% at 50% 8%, #000 20%, transparent 72%); }

  .section-head, .split, .doors, .cta-grid, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .door:first-child { padding-right: 0; padding-bottom: 56px; border-right: 0; }
  .door:last-child { padding-left: 0; border-top: 1px solid var(--line); }
  .section-head > p { justify-self: start; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav-actions .btn { flex: 1; }
  .header-row .nav-actions { gap: 12px; }
  .display { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .hero .display { font-size: clamp(2rem, 9.2vw, 3rem); }
  .p-hero .display { font-size: clamp(2.4rem, 10vw, 3rem); }
  .lede { font-size: 1.0625rem; }
  .actions .btn { width: 100%; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .code pre { font-size: 0.75rem; padding: 16px; }
  .book .btn { height: 56px; padding: 0 20px; }
  /* The booking button above the car, « Ouvrir en plein écran » under it. */
  .hero-inner { grid-template-areas: "title" "lede" "book" "live" "more"; }
  .hero-copy, .hero .actions { display: contents; }
  .hero .lede { grid-area: lede; }
  .hero .actions .btn-primary { grid-area: book; }
  .hero .actions .btn-ghost { grid-area: more; }
  .hero .live-stage { height: auto; aspect-ratio: 393 / 500; } /* its portrait still's aspect: the stream frames it the same; the dock pinned under the car */
}
/* Phone in landscape: the headline, its line and the booking button in one short row, the live car under them at
   the screen's height (the full-screen link waits for portrait: the row has no room for it). */
@media (orientation: landscape) and (max-height: 520px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); grid-template-areas: "title copy" "live live"; gap: 12px 24px; padding-block: 12px 24px; }
  .hero .display { font-size: min(2rem, 3.6vw); }
  .hero .lede { font-size: 0.875rem; line-height: 1.5; }
  .hero .actions { margin-top: 8px; }
  .hero .actions .btn { width: auto; }
  .hero .actions .btn-ghost { display: none; }
  .hero .live-stage { height: calc(100svh - var(--header) - 44px - 24px); }
}
/* Short laptop screens (1366 × 657, 1280 × 600 under the browser's bars): the inner pages' hero CTA stays above
   the fold; the home's headline steps down so its live car keeps the room. */
@media (min-width: 901px) and (min-height: 521px) and (max-height: 780px) {
  .p-hero { padding-block: 40px 72px; }
  .p-hero .display { font-size: min(3.25rem, 1rem + 3.1vw); }
  .p-hero .lede { margin-top: 18px; }
  .p-hero .actions { margin-top: 28px; }
  .hero-inner { padding-block: 24px 0; gap: 32px 48px; }
  .hero .display { font-size: min(3.5rem, 1rem + 2.6vw); }
}
/* Touch: 44px targets. */
@media (pointer: coarse) {
  .link, .footer-nav a, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-nav a, .footer-legal a { min-width: 44px; justify-content: center; }
  .lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .menu-toggle, .nav-link, .btn-sm, .copy { min-height: 44px; }
  .book-config .copy { min-width: 44px; }
  .brand, .footer-id a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
/* Big screens, 1800 px and wider (1440 and below untouched): a wider column (the hero's live car grows
   with it) and a larger type scale. */
@media (min-width: 1800px) {
  :root { --wrap: min(1680px, 86vw); --display: clamp(4.75rem, 2rem + 2.6vw, 7rem); }
  .display { font-size: var(--display); }
  .hero .display { font-size: 4.5rem; }
  .p-hero .display, .cta-grid .title { font-size: clamp(4.5rem, 1.5rem + 2.4vw, 6.25rem); }
  .title { font-size: clamp(3.5rem, 1rem + 2.4vw, 5rem); }
  .lede { font-size: 1.3125rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); }
}
/* Ultrawide, 2800 px and wider: a wider column again and every rem one step up. */
@media (min-width: 2800px) {
  html { font-size: 112.5%; }
  :root { --wrap: min(2000px, 80vw); }
}

/* no-JS */
html:not(.js) :is([data-live-start], .stage .spinner, .skeleton, .live-start > p) { display: none; }
