/* Site-only styles (not on the canvas): the load sequence ported from the old landing (site/index.html),
   the per-line heading reveal, and the Book a demo form messages. Off for prefers-reduced-motion (html.rm). */

/* Pre-rendered hero sizes (build.cjs DC.setSsrVars): the canvas rule is "full screen below 1400px tall, fixed above",
   so the page looks the same before and after its scripts start. */
:root { --dc-hero: 100svh; --dc-pbtop: 64px; --dc-pbh: calc(100svh - 64px); --dc-screen: calc(100svh - 64px) }
@media (min-height: 1400px) { :root { --dc-hero: 900px; --dc-pbtop: 0px; --dc-pbh: 836px; --dc-screen: 836px } }

@keyframes es-appear { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes es-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes es-border { from { border-left-color: transparent } }
@keyframes es-rule { from { border-bottom-color: transparent } }
@keyframes es-hero { from { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px) } }

/* Home: a clean orange screen, then the header, headline, line and picture appear, then the hero settles
   to its own height and the video band rises into view (old landing: 0.6–0.8 s in, resize at 1.4 s). */
.js:not(.rm) .pg-home .hd { animation: es-rule .45s ease .65s both }
.js:not(.rm) .pg-home .hd > div:first-child { animation: es-appear .45s ease .65s both }
.js:not(.rm) [data-hero-row] { animation: es-hero 1.05s cubic-bezier(.22, 1, .36, 1) 1.4s both }
.js:not(.rm) [data-hero-h1] { animation: es-fade .4s ease .6s both }
.js:not(.rm) [data-hero-tag] { animation: es-appear .45s cubic-bezier(.22, 1, .36, 1) .7s both }
.js:not(.rm) [data-hero-art] { animation: es-border .45s ease .65s both }
.js:not(.rm) [data-hero-art] > * { animation: es-fade .5s ease .65s both }
.js:not(.rm) [data-hero-art] svg { animation: es-appear .5s cubic-bezier(.22, 1, .36, 1) .7s both }

/* Headlines that reveal on load stay hidden until their line masks are in place (or 2.5 s pass). */
.js:not(.rm):not(.rv-on) [data-hero-h1],
.js:not(.rm):not(.rv-on) [data-rv-load] { visibility: hidden }

/* Per-line reveal: a block in the text colour covers each line and slides off to the right. */
.rv-line { position: absolute; overflow: hidden; pointer-events: none; z-index: 2 }
.rv-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: currentColor; transform: translateX(0) }
.rv-in .rv-mask { transform: translateX(101%); transition: transform .6s cubic-bezier(.76, 0, .24, 1) var(--d, 0s) }

/* Privacy notice (same text and dismiss key as the old landing) */
.pv { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 280px; max-width: calc(100vw - 48px); box-sizing: border-box; padding: 18px; background: #EDEAE3; color: #0C0B11; border: 1px solid #0C0B11; font-family: Archivo, system-ui, sans-serif }
.pv p { margin: 0 0 14px; font-size: 12px; line-height: 1.45 }
.pv a { color: #0C0B11; text-decoration: underline; text-underline-offset: 2px }
.pv button { display: block; width: 100%; margin: 0; padding: 12px 16px; border: 0; border-radius: 0; background: #0C0B11; color: #EDEAE3; cursor: pointer; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase }
.pv button:hover { opacity: .85 }
.pv button:focus-visible { outline: 2px solid #0C0B11; outline-offset: 2px }
.nv-open .pv { display: none }
@media (max-width: 680px) { .pv { right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none } }

/* Book a demo form */
.dm-msg { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; max-width: 520px }
.dm-err { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: #0C0B11 }
.dm-err a { color: inherit }
form[aria-busy="true"] button[type="submit"] { opacity: .6; pointer-events: none }

@media (prefers-reduced-motion: reduce) {
  .rv-line { display: none }
}
