/* ==========================================================================
   APP LANDING PAGES: the shared frame and the drawing kit (session 1, 2026-11-28)
   One home: Reference/Architecture/APP_LANDING_PAGES_SPEC.md (sections 2 to 4).

   Three parts:
     1. lp-   the frame every page shares (bands, type, the scene's stepper, questions, the booking band)
     2. lpm-  the drawing kit (window, tiles, rows, pills, rings, bars, floating card, sheet, cursor, a choice, an exchange with Otto)
     3. the booking calendar and the Message us form (demo-*, #contactModal), as on /principals

   Rules for anyone changing this file:
     - Raise the ?v= stamp on every page that links it (and on app-pages.js) whenever it changes.
     - A page's own scene styles live in the page, under its own prefix (lpfd- for Flight Deck). Never here.
     - Never a bare .on or .grp; never overflow-x: hidden on html or body; never a hide rule on .rtp-ctabtn.
     - Inside a drawn screen every size is in em. The canvas's font size follows the stage's width, so a
       screen scales as one piece. Under a 560px stage the narrow mode applies.
     - Nothing waits at zero opacity: the page is complete with no script and no motion.
     - Colour: charcoal dark bands, strong blue on calls to action and links only, grey labels and chips,
       8px corners. Red, amber and green only as statuses inside a drawn screen. Never navy.
   ========================================================================== */

/* ---------- 1. THE FRAME ---------- */
/* The page's base, as every page of the site sets it (the header and footer partials expect this reset). */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #fff; color: #292929; line-height: 1.6; }
.lp-page [id] { scroll-margin-top: 88px; }
.lp-page, .lp-page *, .lp-page *::before, .lp-page *::after { box-sizing: border-box; }
.lp-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #292929; line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
.lp-page ol, .lp-page ul { list-style: none; }
/* :where() keeps these at the weight of a bare element, so a class on a link (a button, a tile) always wins. */
:where(.lp-page) a { color: #1b46c0; }
.lp-wrap { width: 100%; max-width: 1240px; margin: 0 auto; }

.lp-sec { position: relative; padding: clamp(72px, 9vw, 132px) clamp(20px, 4vw, 48px); }
.lp-sec--white { background: #fff; }
.lp-sec--tint { background: #f8fafc; }
.lp-sec--dark { background: linear-gradient(135deg, #1f1f1f 0%, #292929 50%, #1f1f1f 100%); color: #fff; overflow: clip; }
.lp-sec--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 52% at 78% 18%, rgba(148, 148, 148, 0.13), transparent 70%), radial-gradient(40% 46% at 12% 88%, rgba(148, 148, 148, 0.08), transparent 72%); }
.lp-sec--dark > * { position: relative; }
:where(.lp-page .lp-sec--dark) a { color: #93c5fd; }

.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(100, 116, 139, 0.12); color: #334155; border: 1px solid rgba(100, 116, 139, 0.2); }
.lp-sec--dark .lp-eyebrow, .lp-hero .lp-eyebrow { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; border-color: rgba(255, 255, 255, 0.14); }
.lp-h2 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.028em; color: #292929; margin-top: 20px; text-wrap: balance; }
.lp-h2 span { color: #6e6e73; }
.lp-sec--dark .lp-h2 { color: #fff; }
.lp-sec--dark .lp-h2 span { color: #a1a1a6; }
.lp-lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: #475569; max-width: 38em; margin-top: 18px; }
.lp-sec--dark .lp-lede { color: rgba(255, 255, 255, 0.72); }
.lp-head { max-width: 820px; }
.lp-head--centre { margin: 0 auto; text-align: center; }
.lp-head--centre .lp-lede { margin-left: auto; margin-right: auto; }

/* Band 1: the first screen */
.lp-hero { position: relative; background: linear-gradient(135deg, #1f1f1f 0%, #292929 50%, #1f1f1f 100%); color: #fff; overflow: clip;
  padding: clamp(44px, 7vh, 92px) clamp(20px, 4vw, 64px) clamp(60px, 8vh, 104px); }
.lp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 56% at 74% 40%, rgba(148, 148, 148, 0.16), transparent 70%), radial-gradient(36% 44% at 8% 4%, rgba(148, 148, 148, 0.08), transparent 72%); }
.lp-hero-in { position: relative; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 4vw, 72px); align-items: center; }
.lp-hero-copy { min-width: 0; }
.lp-plan { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  background: rgba(255, 255, 255, 0.08); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.14); }
.lp-page a.lp-plan { color: #e2e8f0; }
a.lp-plan:hover { background: rgba(255, 255, 255, 0.13); }
.lp-plan b { font-weight: 700; color: #fff; }
.lp-plan i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.lp-h1 { font-size: clamp(38px, 3.8vw, 56px); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; color: #fff; margin-top: 26px; text-wrap: balance; }
.lp-h1 span { color: #a1a1a6; }
.lp-sub { font-size: clamp(17px, 1.42vw, 20.5px); line-height: 1.55; color: rgba(255, 255, 255, 0.8); max-width: 33em; margin-top: 22px; }
.lp-hero .rtp-ctaduo { justify-content: flex-start; margin-top: 32px; }
.lp-hero .rtp-ctabtn { padding: 17px 30px; font-size: 1.04rem; }
.lp-hero p.rtp-ctaduo-note { text-align: left; margin-left: 0; }
.lp-hero-fig { min-width: 0; }

/* Band 2: the proof strip */
.lp-proof { background: #fff; border-bottom: 1px solid #eef2f7; padding: 0 clamp(20px, 4vw, 48px); }
.lp-proof-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-proof-in--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-fact { padding: clamp(28px, 3.4vw, 44px) clamp(16px, 2.2vw, 32px); border-left: 1px solid #eef2f7; }
.lp-fact:first-child { border-left: 0; padding-left: 0; }
.lp-fact b { display: block; font-size: clamp(26px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #292929; }
.lp-fact span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: #64748b; max-width: 19em; }

/* Band 3: the problem */
.lp-problem { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lp-problem-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 0 14px; align-items: baseline; padding: clamp(20px, 2.4vw, 30px) 0; border-top: 1px solid #e2e8f0;
  font-size: clamp(20px, 2vw, 27px); font-weight: 600; line-height: 1.32; letter-spacing: -0.015em; color: #292929; }
.lp-problem-list li:last-child { border-bottom: 1px solid #e2e8f0; }
.lp-problem-list li::before { content: counter(lp-prob, decimal-leading-zero); counter-increment: lp-prob; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #94a3b8; }
.lp-problem-list { counter-reset: lp-prob; }

/* Band 4: see it work. Without script the steps are a plain list, each with its screen. With script
   (.lp-live, added by app-pages.js) the screens stack in one stage and the steps drive it. */
.lp-scene { margin-top: clamp(40px, 5vw, 72px); }
.lp-steps { display: grid; gap: clamp(40px, 5vw, 64px); }
.lp-step { display: grid; gap: 18px; min-width: 0; }
.lp-step-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: #fff; text-align: left; cursor: default; }
.lp-step-n { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #e2e8f0; }
.lp-step-t { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.015em; }
.lp-step-d { font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); max-width: 36em; }
.lp-step-d strong { display: none; }
.lp-step-fig { min-width: 0; }
.lp-scene-hint { display: none; }

.lp-live .lp-steps { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 64px); align-items: start; grid-auto-rows: min-content; }
.lp-live .lp-step { display: contents; }
.lp-live .lp-step-btn { grid-column: 1; cursor: pointer; padding: 18px 18px 18px 20px; border-left: 2px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.62); transition: color .2s ease, background .2s ease; position: relative; }
.lp-live .lp-step-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.lp-live .lp-step-btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: -2px; }
.lp-live .lp-step-btn::after { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: #fff; transform: scaleY(0); transform-origin: top; }
.lp-live .lp-on > .lp-step-btn { color: #fff; }
.lp-live .lp-on > .lp-step-btn::after { transform: scaleY(1); }
.lp-live .lp-on > .lp-step-btn .lp-step-n { background: #fff; color: #292929; border-color: #fff; }
.lp-live .lp-step-d { grid-column: 1; display: none; padding: 0 18px 22px 68px; border-left: 2px solid #fff; font-size: 15.5px; }
.lp-live .lp-on > .lp-step-d { display: block; }
.lp-live .lp-step-fig { grid-column: 2; grid-row: 1 / span 12; align-self: start; visibility: hidden; opacity: 0; pointer-events: none; }
.lp-live .lp-on > .lp-step-fig { visibility: visible; opacity: 1; pointer-events: auto; }
.lp-live .lp-scene-hint { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.lp-live .lp-scene-hint svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .lp-live .lp-step-fig { transition: opacity .45s ease, visibility 0s linear .45s; }
  .lp-live .lp-on > .lp-step-fig { transition: opacity .45s ease; }
  .lp-live.lp-auto .lp-on > .lp-step-btn::after { animation: lpDwell var(--lp-dwell, 5s) linear both; }
}
@keyframes lpDwell { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Band 5: what it produces */
.lp-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(40px, 5vw, 68px); }
.lp-out--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-out-item { min-width: 0; }
.lp-out-fig { background: #f1f5f9; border-radius: 8px; padding: clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px) 0; overflow: hidden; }
.lp-sec--tint .lp-out-fig { background: #eef2f7; }
.lp-out-name { margin-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: #292929; }
.lp-out-text { margin-top: 6px; font-size: 16px; color: #475569; max-width: 30em; }

/* Band 6: the rules it covers */
.lp-rules { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chip { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  background: rgba(100, 116, 139, 0.12); color: #334155; border: 1px solid rgba(100, 116, 139, 0.2); }
.lp-note { margin-top: 20px; font-size: 14.5px; color: #64748b; }
.lp-credit { margin-top: 14px; font-size: 13px; color: #94a3b8; }

/* Band 7: Otto here */
.lp-otto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.lp-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 16px; font-weight: 600; text-decoration: none; }
.lp-more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.lp-more:hover svg { transform: translateX(3px); }
.lp-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Band 8: works with */
.lp-works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 4.6vw, 60px); }
.lp-works--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-works--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-page a.lp-work { display: flex; flex-direction: column; min-width: 0; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: #292929; overflow: hidden; transition: border-color .2s ease, background .2s ease; }
.lp-page a.lp-work:hover { border-color: #94a3b8; background: #fcfdfe; }
.lp-work-fig { background: #f1f5f9; padding: 20px 20px 0; height: 150px; overflow: hidden; }
.lp-work-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.lp-work-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.lp-work-text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: #475569; }
.lp-work-go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: #1b46c0; }
.lp-work-go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.lp-work:hover .lp-work-go svg { transform: translateX(3px); }

/* Band 9: the download, health check or tool. The form or check itself is session 2's (css/app-capture.css, lpc-). */
.lp-get { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.lp-get-form { margin-top: 30px; }
.lp-get-fig { background: #eef2f7; border-radius: 8px; padding: clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px) 0; overflow: hidden; }
.lp-sec--white .lp-get-fig { background: #f1f5f9; }

/* Band 11: questions */
.lp-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.lp-qs { border-top: 1px solid #e2e8f0; }
.lp-q { border-bottom: 1px solid #e2e8f0; }
.lp-q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.4vw, 19px); font-weight: 600; letter-spacing: -0.01em; color: #292929; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.lp-q[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.lp-q summary:focus-visible { outline: 2px solid #2053db; outline-offset: 4px; border-radius: 4px; }
.lp-q p { padding: 0 44px 24px 0; font-size: 16.5px; line-height: 1.65; color: #475569; max-width: 42em; }

/* Band 12: start free, or book a demo */
.lp-book { text-align: center; }
.lp-book .lp-h2 { margin-top: 0; }
.lp-book .lp-lede { margin-left: auto; margin-right: auto; }
.lp-book .rtp-ctaduo { margin-top: 28px; }
.lp-book-slot { max-width: 1140px; margin: clamp(32px, 4vw, 48px) auto 0; text-align: left; }
.lp-page .lp-book a.lp-book-plain { color: #fff; font-weight: 600; }

@media (max-width: 1100px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .lp-live .lp-steps { grid-template-columns: repeat(var(--lp-n, 5), minmax(0, 1fr)); gap: 0; }
  .lp-live .lp-step-btn { grid-column: auto; grid-row: 1; justify-content: center; padding: 0 0 18px; border-left: 0; }
  .lp-live .lp-step-btn::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: rgba(255, 255, 255, 0.14); }
  .lp-live .lp-step:first-child > .lp-step-btn::before { left: 50%; }
  .lp-live .lp-step:last-child > .lp-step-btn::before { right: 50%; }
  .lp-live .lp-step-btn::after { display: none; }
  .lp-live .lp-step-btn:hover { background: none; }
  .lp-live .lp-step-n { position: relative; background: #2d2d2d; }
  .lp-live .lp-step-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lp-live .lp-step-d { grid-column: 1 / -1; grid-row: 2; padding: 4px 0 26px; border-left: 0; font-size: 16px; text-align: center; max-width: 34em; justify-self: center; min-height: 6.6em; }
  .lp-live .lp-step-d strong { display: block; font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 4px; }
  .lp-live .lp-step-fig { grid-column: 1 / -1; grid-row: 3; }
  .lp-live .lp-scene-hint { justify-content: center; }
  .lp-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* THE FIRST SCREEN'S FLOATING CARDS STAY ON THE PAGE (2026-11-28, session 5). From a tablet up to 1100px the drawn screen
   sits under the copy at the page's full width, and a card placed a few em outside the window (left: -3.6em on Flight
   Deck) ran off the page's edge, where the first screen clips it. The figure is brought in a little on each side, so
   the cards keep their place against the window and stay on the page. It holds for a card up to 4em outside the left
   of the window and 3.5em outside the right; the checker (_verify_app_pages.mjs) fails a page that places one further
   out. Under 641px the stage is in its narrow mode, where a page sets its cards 1em out, inside the page's own margin.
   ⛔ One home: never answer this in a page's own styles. */
@media (min-width: 641px) and (max-width: 1100px) {
  .lp-hero-fig { padding: 0 2.4vw; }
}
@media (max-width: 860px) {
  .lp-proof-in, .lp-proof-in--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-fact { padding-left: 0; border-left: 0; border-top: 1px solid #eef2f7; }
  .lp-fact:nth-child(-n+2) { border-top: 0; }
  .lp-fact:nth-child(even) { padding-left: 20px; border-left: 1px solid #eef2f7; }
  .lp-problem, .lp-rules, .lp-otto, .lp-faq, .lp-get { grid-template-columns: minmax(0, 1fr); }
  .lp-out, .lp-out--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lp-hero { padding: 26px 20px 48px; }
  .lp-hero-in { gap: 30px; }
  .lp-plan { font-size: 12.5px; padding: 7px 12px; }
  .lp-h1 { font-size: clamp(33px, 9.6vw, 40px); margin-top: 18px; }
  .lp-sub { font-size: 16.5px; margin-top: 14px; }
  .lp-hero .rtp-ctaduo { margin-top: 22px; max-width: none; gap: 10px; }
  .lp-hero .rtp-ctabtn { padding: 16px 20px; }
  .lp-hero p.rtp-ctaduo-note { margin-top: 12px; font-size: .86rem; }
  .lp-live .lp-step-d { min-height: 11em; }
  .lp-works, .lp-works--3, .lp-works--2 { grid-template-columns: minmax(0, 1fr); }
  .lp-work-fig { height: 132px; }
  .lp-q p { padding-right: 0; }
}

/* ---------- 2. THE DRAWING KIT ---------- */
.lpm-fig { margin: 0; position: relative; min-width: 0; }
.lpm-stage { container-type: inline-size; width: 100%; }
.lpm-canvas { position: relative; font-size: 10px; font-size: calc(100cqw / 64); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #475569; line-height: 1.35; letter-spacing: 0; text-align: left; font-weight: 400; }
.lpm-canvas *, .lpm-canvas *::before, .lpm-canvas *::after { box-sizing: border-box; }
.lpm-canvas svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lpm-canvas b, .lpm-canvas strong { font-weight: 700; }
.lpm-canvas--float { padding: 3.2em 0 4.6em; }
.lpm-glow { position: absolute; inset: -6% -10% -4% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(44% 48% at 70% 36%, rgba(148, 148, 148, 0.18), transparent 70%), radial-gradient(46% 50% at 28% 70%, rgba(148, 148, 148, 0.12), transparent 72%); }

/* the window */
.lpm-win { position: relative; z-index: 1; border-radius: 1.1em; background: #f5f7fb; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 3.2em 6.4em -1.6em rgba(0, 0, 0, 0.7), 0 1.2em 2.4em -1.2em rgba(0, 0, 0, 0.5); }
.lpm-win--light { box-shadow: 0 0 0 1px rgba(41, 41, 41, 0.08), 0 2.6em 5.2em -2em rgba(41, 41, 41, 0.34), 0 1em 2em -1.2em rgba(41, 41, 41, 0.2); }
.lpm-bar { display: grid; grid-template-columns: 6em 1fr 6em; align-items: center; height: 2.9em; padding: 0 1.2em; background: #292929; }
.lpm-dots { display: flex; gap: .55em; }
.lpm-dots i { width: .85em; height: .85em; border-radius: 50%; background: #ff5f57; }
.lpm-dots i:nth-child(2) { background: #febc2e; } .lpm-dots i:nth-child(3) { background: #28c840; }
.lpm-url { justify-self: center; display: flex; align-items: center; gap: .55em; height: 2em; padding: 0 1.4em; border-radius: .6em; background: rgba(255, 255, 255, 0.07); color: rgba(226, 232, 240, 0.72); font-size: .84em; white-space: nowrap; }
.lpm-url svg { width: 1em; height: 1em; }
.lpm-body { position: relative; padding: 1.5em 1.8em 1.8em; }

/* the page header inside a window: title, tools, tabs */
.lpm-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.lpm-title { display: flex; align-items: center; gap: .3em; font-size: 1.8em; font-weight: 800; color: #292929; letter-spacing: -0.02em; white-space: nowrap; }
.lpm-title svg { width: .5em; height: .5em; color: #94a3b8; }
.lpm-tools { display: flex; align-items: center; gap: .55em; min-width: 0; }
.lpm-pill { display: inline-flex; align-items: center; gap: .45em; height: 2.5em; padding: 0 .95em; border-radius: .7em; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; font-size: .84em; font-weight: 600; color: #334155; white-space: nowrap; }
.lpm-pill svg { width: 1.1em; height: 1.1em; color: #64748b; }
.lpm-pill small { font-size: 1em; font-weight: 500; color: #94a3b8; }
.lpm-pill--on { box-shadow: inset 0 0 0 1.5px #2053db, 0 0 0 .3em rgba(32, 83, 219, 0.12); color: #1f2937; }
.lpm-av { display: flex; align-items: center; justify-content: center; width: 2.6em; height: 2.6em; border-radius: 50%; flex: none; background: #2053db; color: #fff; font-size: .78em; font-weight: 700; letter-spacing: .02em; }
.lpm-av--grey { background: rgba(100, 116, 139, 0.16); color: #334155; }
.lpm-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3em; margin-top: 1.1em; padding: .4em; border-radius: .85em; background: #fff; box-shadow: inset 0 0 0 1px #e6ebf3; }
.lpm-tabs--line { display: flex; gap: 1.6em; padding: 0; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 #e2e8f0; }
.lpm-tab { text-align: center; padding: .62em .9em; border-radius: .55em; font-size: .84em; font-weight: 600; color: #475569; white-space: nowrap; }
.lpm-tab.lpm-on { background: rgba(32, 83, 219, 0.10); color: #1f2937; font-weight: 700; }
.lpm-tabs--line .lpm-tab { padding: .7em 0; border-radius: 0; }
.lpm-tabs--line .lpm-tab.lpm-on { background: none; box-shadow: inset 0 -2px 0 #2053db; }
.lpm-tab small { font-size: 1em; font-weight: 700; margin-left: .3em; color: #64748b; }

/* cards and labels */
.lpm-card { background: #fff; border-radius: 1em; box-shadow: inset 0 0 0 1px #e6ebf3; min-width: 0; }
.lpm-pad { padding: 1.1em 1.2em 1.05em; }
.lpm-h { display: block; font-size: .96em; font-weight: 700; color: #292929; white-space: nowrap; }
.lpm-sub { display: block; font-size: .72em; color: #64748b; margin-top: .25em; }
.lpm-k { display: block; font-size: .62em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.lpm-legend { display: flex; gap: .9em; font-size: .64em; color: #64748b; white-space: nowrap; }
.lpm-legend i { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: .35em; vertical-align: -.05em; }
.lpm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .65em 1.1em; border-radius: .6em; font-size: .8em; font-weight: 700; color: #fff; background: #2053db; white-space: nowrap; }
.lpm-btn--ghost { background: #fff; color: #334155; box-shadow: inset 0 0 0 1px #e2e8f0; }
.lpm-line { display: block; height: .55em; border-radius: 999px; background: #e8edf4; }
.lpm-line + .lpm-line { margin-top: .6em; }

/* count tiles */
.lpm-tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: .9em; margin-top: 1.1em; }
.lpm-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.lpm-tile { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 1em; padding: 1.05em 1.1em .95em; text-align: left; }
.lpm-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5em; }
.lpm-tile-l { font-size: .8em; font-weight: 700; color: #292929; white-space: nowrap; }
.lpm-tile-ic { display: flex; align-items: center; justify-content: center; width: 2.1em; height: 2.1em; border-radius: .6em; background: rgba(255, 255, 255, 0.75); flex: none; }
.lpm-tile-ic svg { width: 1.1em; height: 1.1em; }
.lpm-tile-n { display: block; font-size: 2.9em; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: .18em; font-variant-numeric: tabular-nums; }
.lpm-tile-m { display: block; font-size: .7em; color: #475569; margin-top: .45em; white-space: nowrap; }
.lpm-tile-f { display: flex; align-items: center; justify-content: space-between; gap: .5em; margin-top: auto; padding-top: .65em; border-top: 1px solid rgba(41, 41, 41, 0.08); font-size: .68em; color: #475569; white-space: nowrap; }
.lpm-tile-f svg { width: 1.6em; height: 1.6em; padding: .35em; border-radius: 50%; background: #fff; color: #334155; }
.lpm-tile-gap { height: .9em; }
.lpm-tile--red { background: #fde5e5; } .lpm-tile--red .lpm-tile-n, .lpm-tile--red .lpm-tile-ic { color: #c81e1e; }
.lpm-tile--amb { background: #fdf3c4; } .lpm-tile--amb .lpm-tile-n, .lpm-tile--amb .lpm-tile-ic { color: #b45309; }
.lpm-tile--blu { background: #e3ebfd; } .lpm-tile--blu .lpm-tile-n, .lpm-tile--blu .lpm-tile-ic { color: #1d4ed8; }
.lpm-tile--grn { background: #dcf5e6; } .lpm-tile--grn .lpm-tile-n, .lpm-tile--grn .lpm-tile-ic { color: #15803d; }
.lpm-tile--dark { color: #fff; background: radial-gradient(120% 100% at 100% 0%, rgba(148, 148, 148, 0.18) 0%, rgba(148, 148, 148, 0) 58%), #212121; }
.lpm-tile--dark .lpm-tile-l { display: flex; align-items: center; gap: .4em; color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.lpm-tile--dark .lpm-tile-l svg { width: 1.1em; height: 1.1em; }
.lpm-tile-app { display: block; font-size: 1.4em; font-weight: 800; letter-spacing: -0.02em; margin-top: .45em; white-space: nowrap; }
.lpm-tile--dark .lpm-tile-m { color: rgba(255, 255, 255, 0.62); white-space: normal; }
.lpm-tile--dark .lpm-tile-f { border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.66); }
.lpm-open { font-size: 1.05em; font-weight: 700; color: #292929; background: #fff; border-radius: .6em; padding: .35em .9em; }

/* a part of a drawn screen the visitor can click */
button.lpm-hot { font: inherit; color: inherit; border: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.lpm-hot:not(.lpm-tile):not(.lpm-row) { background: none; padding: 0; text-align: inherit; }
.lpm-hot { transition: box-shadow .18s ease, transform .18s ease, background .18s ease; }
.lpm-tile.lpm-hot:hover { box-shadow: 0 0 0 .16em rgba(41, 41, 41, 0.55); transform: translateY(-.15em); }
.lpm-row.lpm-hot:hover { background: #f1f5f9; }
.lpm-hot:focus-visible { outline: .16em solid #2053db; outline-offset: .16em; }

/* table rows */
.lpm-rows { display: flex; flex-direction: column; }
.lpm-row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: center; gap: .85em; width: 100%; padding: .72em .5em; border-top: 1px solid #eef2f7; background: none; text-align: left; border-radius: .5em; }
.lpm-rows > .lpm-row:first-child { border-top: 0; }
button.lpm-row.lpm-hot { border-top: 1px solid #eef2f7; }
.lpm-rows > button.lpm-row.lpm-hot:first-child { border-top: 0; }
.lpm-ico { display: flex; align-items: center; justify-content: center; width: 2.2em; height: 2.2em; border-radius: .6em; background: rgba(100, 116, 139, 0.12); color: var(--t, #334155); }
.lpm-ico svg { width: 1.15em; height: 1.15em; }
.lpm-rx { display: block; min-width: 0; }
.lpm-rt { display: block; font-size: .9em; font-weight: 600; color: #292929; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpm-rm { display: block; font-size: .72em; color: #64748b; margin-top: .15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpm-rend { display: flex; align-items: center; gap: .8em; font-size: .76em; color: #64748b; white-space: nowrap; }
.lpm-rend .lpm-st { font-size: .94em; }

/* status pills: the only place red, amber and green appear */
.lpm-st { display: inline-flex; align-items: center; gap: .35em; padding: .32em .75em; border-radius: 999px; font-size: .7em; font-weight: 700; white-space: nowrap; background: #eef2f7; color: #475569; }
.lpm-st svg { width: 1.05em; height: 1.05em; }
.lpm-st--red { background: #fee2e2; color: #b91c1c; }
.lpm-st--amb { background: #fef3c7; color: #b45309; }
.lpm-st--grn { background: #dcfce7; color: #15803d; }
.lpm-st--blu { background: rgba(32, 83, 219, 0.10); color: #1b46c0; }
.lpm-word--red { color: #b91c1c; font-weight: 700; } .lpm-word--amb { color: #b45309; font-weight: 700; } .lpm-word--grn { color: #15803d; font-weight: 700; } .lpm-word--blu { color: #1b46c0; font-weight: 700; }

/* rings */
.lpm-ring { --p: 60; --c: #16a34a; display: grid; place-items: center; width: 5em; height: 5em; border-radius: 50%; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e8edf4 0); }
.lpm-ring::before { content: ""; grid-area: 1 / 1; width: 74%; height: 74%; border-radius: 50%; background: #fff; }
.lpm-ring b { grid-area: 1 / 1; position: relative; font-size: 1.1em; font-weight: 800; color: #292929; letter-spacing: -0.02em; }

/* bars: a column chart, and a horizontal bar in parts */
.lpm-cols { position: relative; display: flex; align-items: flex-end; gap: .5em; height: 8.6em; margin-top: 1.7em; border-bottom: 1px solid #e2e8f0; }
.lpm-cols > i { flex: 1; height: var(--h); min-height: .35em; border-radius: .35em .35em .12em .12em; background: var(--c); transform-origin: bottom; position: relative; }
.lpm-cols > i::before { content: attr(data-n); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: .35em; font-size: .6em; font-style: normal; font-weight: 700; color: #334155; }
.lpm-cols > b { flex: none; width: 0; align-self: stretch; border-left: 1px dashed #cbd5e1; margin: 0 .1em; }
.lpm-cols-x { display: flex; gap: .5em; margin-top: .55em; }
.lpm-cols-x span { font-size: .58em; font-weight: 600; color: #64748b; text-align: center; white-space: nowrap; }
.lpm-hbar { display: flex; height: .6em; border-radius: 999px; background: #eef2f7; overflow: hidden; min-width: 0; }
.lpm-hbar i { height: 100%; width: var(--w); background: var(--c, #94a3b8); transform-origin: left; }

/* the floating card and the chip */
.lpm-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 1em; padding: 1.05em 1.3em 1.05em 1.05em; border-radius: 1.1em; background: #fff; font-size: 1.1em;
  box-shadow: 0 0 0 1px rgba(41, 41, 41, 0.06), 0 2.2em 4.4em -1.4em rgba(0, 0, 0, 0.62), 0 .4em 1em -.3em rgba(0, 0, 0, 0.2); }
.lpm-ic { display: flex; align-items: center; justify-content: center; width: 3em; height: 3em; border-radius: .85em; flex: none; background: rgba(100, 116, 139, 0.12); color: #334155; }
.lpm-ic svg { width: 1.5em; height: 1.5em; }
.lpm-ic--red { background: #fee2e2; color: #dc2626; } .lpm-ic--grn { background: #dcfce7; color: #16a34a; } .lpm-ic--amb { background: #fef3c7; color: #d97706; }
.lpm-fx { display: block; min-width: 0; }
.lpm-fk { display: block; font-size: .62em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #2053db; }
.lpm-fk--red { color: #dc2626; } .lpm-fk--grn { color: #16a34a; } .lpm-fk--amb { color: #d97706; }
.lpm-ft { display: block; font-size: 1em; font-weight: 700; color: #292929; margin-top: .25em; line-height: 1.2; white-space: nowrap; }
.lpm-fm { display: block; font-size: .78em; color: #64748b; margin-top: .25em; white-space: nowrap; }
.lpm-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: .6em; padding: .6em 1.15em .6em .6em; border-radius: 999px; font-size: 1em; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(41, 41, 41, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 1.4em 2.8em -1em rgba(0, 0, 0, 0.6); }
.lpm-chip > span { display: flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: 50%; background: linear-gradient(135deg, #4a4a4a, #3a3a3a); color: #fff; }
.lpm-chip svg { width: 1.1em; height: 1.1em; }

/* a pop-up inside a window */
.lpm-scrim { position: absolute; inset: 0; z-index: 2; background: rgba(31, 31, 31, 0.42); }
.lpm-modal { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78%; background: #fff; border-radius: 1em; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(41, 41, 41, 0.08), 0 2.4em 5em -1.4em rgba(0, 0, 0, 0.55); }
.lpm-modal-h { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1em 1.3em; border-bottom: 1px solid #e6ebf3; }
.lpm-modal-b { padding: .5em .8em .7em; }
.lpm-modal-f { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .8em 1.3em; border-top: 1px solid #e6ebf3; background: #f8fafc; font-size: .74em; color: #64748b; }
.lpm-x { display: flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: .5em; background: #f1f5f9; color: #64748b; }
.lpm-x svg { width: 1em; height: 1em; }

/* the document sheet */
.lpm-sheet { position: relative; background: #fff; border-radius: .7em .7em 0 0; padding: 1.7em 1.8em 0; min-height: 26em;
  box-shadow: 0 0 0 1px rgba(41, 41, 41, 0.07), 0 1.6em 3.2em -1.4em rgba(41, 41, 41, 0.32); }
.lpm-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-bottom: 1em; border-bottom: 1px solid #e6ebf3; }
.lpm-sheet-t { display: block; font-size: 1.15em; font-weight: 800; color: #292929; letter-spacing: -0.015em; white-space: nowrap; }
.lpm-sheet-m { display: block; font-size: .72em; color: #64748b; margin-top: .2em; white-space: nowrap; }
.lpm-tag { display: inline-flex; align-items: center; gap: .4em; padding: .4em .8em; border-radius: .5em; font-size: .68em; font-weight: 700; letter-spacing: .04em; background: rgba(100, 116, 139, 0.12); color: #334155; white-space: nowrap; }
.lpm-tbl { display: grid; margin-top: .6em; font-size: .74em; }
.lpm-tr { display: grid; grid-template-columns: var(--lpm-cols, 2.4fr 1.3fr 1fr 1fr); gap: 1em; align-items: center; padding: .7em 0; border-bottom: 1px solid #eef2f7; color: #475569; white-space: nowrap; }
.lpm-tr > * { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lpm-tr--h { font-size: .86em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.lpm-tr b { font-weight: 600; color: #292929; }

/* a choice inside a drawn screen (session 3): a button marked data-lp-pick="2", inside a holder marked data-lp-picks,
   shows the part marked data-lp-picked="2" and hides its fellows. The part shown first carries lpm-sel in the page,
   so the screen is complete with no script. app-pages.js moves lpm-sel on a click. */
[data-lp-picks] [data-lp-picked]:not(.lpm-sel) { display: none; }

/* an exchange with Otto: the question on the right, Otto's mark, the answer as a short written piece */
.lpm-ask { display: block; justify-self: end; align-self: flex-end; max-width: 80%; padding: .7em 1.05em; border-radius: 1em 1em .25em 1em; background: #292929; color: #fff; font-size: .9em; font-weight: 500; line-height: 1.4; }
.lpm-ans { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: .8em; align-items: start; }
.lpm-otto { display: flex; align-items: center; justify-content: center; width: 2.4em; height: 2.4em; border-radius: 50%; flex: none; background: #2053db; color: #fff; }
.lpm-otto svg { width: 1.5em; height: 1.5em; stroke-width: 1.9; }
.lpm-say { display: block; min-width: 0; font-size: .86em; line-height: 1.55; color: #334155; }
.lpm-say b { color: #292929; }

/* written text (a commentary, an answer) comes in from the top down while its scene plays */
.lpm-quote { display: block; padding: .8em 1em; border-radius: 0 .6em .6em 0; background: rgba(32, 83, 219, 0.06); box-shadow: inset 2px 0 0 #2053db; font-size: .8em; line-height: 1.6; color: #334155; }

/* the cursor: decoration, hidden unless a scene is playing (.lp-run on the figure) */
.lpm-cursor { position: absolute; z-index: 6; left: var(--x, 50%); top: var(--y, 50%); width: 1.9em; height: 1.9em; pointer-events: none; opacity: 0; }
.lpm-cursor svg { width: 100%; height: 100%; fill: #292929; stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, 0.35)); }
.lpm-cursor::after { content: ""; position: absolute; left: -.9em; top: -.9em; width: 2.2em; height: 2.2em; border-radius: 50%; border: .18em solid #2053db; opacity: 0; }

/* narrow stage: bigger type, fewer pieces. .lpm-wide marks what a narrow screen drops. */
@container (max-width: 560px) {
  .lpm-canvas { font-size: calc(100cqw / 40); }
  .lpm-canvas--float { padding: 2.2em 0 3.6em; }
  .lpm-wide { display: none !important; }
  .lpm-body { padding: 1.2em 1.2em 1.4em; }
  .lpm-tiles, .lpm-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpm-fm { display: none; }
  .lpm-modal { width: 92%; }
  .lpm-bar { height: 2.5em; }
}

/* a small drawing (a Works with tile): the same kit at a size that suits a 250px stage */
.lpm-stage .lpm-canvas--mini { font-size: calc(100cqw / 23); }

/* motion: tablets and wider only, and never when the visitor has asked for less.
   .lp-rise is set on a first-screen figure; .lp-run is set by app-pages.js on the scene's active figure. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .lp-rise .lpm-win { animation: lpmRise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .lp-rise .lpm-float, .lp-rise .lpm-chip { animation: lpmPop .7s cubic-bezier(.2, .8, .2, 1) both, lpmBob 6.5s ease-in-out infinite alternate; }
  .lp-rise .lpm-float:nth-of-type(1) { animation-delay: .45s, 1.2s; }
  .lp-rise .lpm-float:nth-of-type(2) { animation-delay: .65s, 2.4s; }
  .lp-rise .lpm-float:nth-of-type(3) { animation-delay: .85s, .4s; }
  .lp-rise .lpm-chip { animation-delay: 1.05s, 1.8s; }
  .lp-rise .lpm-cols > i, .lp-run .lpm-cols > i { animation: lpmGrowY .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.3s + var(--i, 0) * 45ms); }
  .lp-rise .lpm-hbar i, .lp-run .lpm-hbar i { animation: lpmGrowX .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
  .lp-run .lpm-modal { animation: lpmModal .5s cubic-bezier(.2, .8, .2, 1) both; }
  .lp-run .lpm-scrim { animation: lpmFade .4s ease both; }
  .lp-run .lpm-enter { animation: lpmEnter .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .lp-run .lpm-write { animation: lpmWrite 1.1s ease-out both; animation-delay: calc(.5s + var(--i, 0) * .55s); }
  .lp-run .lpm-cursor { animation: lpmCursor var(--lpm-t, 2.6s) cubic-bezier(.4, 0, .2, 1) var(--lpm-d, .9s) both; }
  .lp-run .lpm-cursor::after { animation: lpmClick var(--lpm-t, 2.6s) ease-out var(--lpm-d, .9s) both; }
  .lp-run .lpm-target { animation: lpmPress var(--lpm-t, 2.6s) ease var(--lpm-d, .9s) both; }
  /* once a visitor has chosen something else, the pressed mark leaves the choice the cursor pressed */
  .lp-run [data-lp-pick].lpm-target:not(.lpm-sel) { animation: none; }
}
@keyframes lpmRise { from { opacity: 0; transform: translateY(1.6em); } to { opacity: 1; transform: none; } }
@keyframes lpmPop { from { opacity: 0; transform: translateY(1em) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lpmBob { from { translate: 0 0; } to { translate: 0 -.7em; } }
@keyframes lpmGrowY { from { transform: scaleY(0); } to { transform: none; } }
@keyframes lpmGrowX { from { transform: scaleX(0); } to { transform: none; } }
@keyframes lpmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpmModal { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes lpmEnter { from { opacity: 0; transform: translateY(.8em); } to { opacity: 1; transform: none; } }
@keyframes lpmWrite { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lpmCursor {
  0% { opacity: 0; transform: translate(var(--dx, 9em), var(--dy, 7em)); }
  14% { opacity: 1; }
  66% { transform: translate(0, 0); }
  72% { transform: translate(0, 0) scale(.84); }
  80%, 100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes lpmClick { 0%, 68% { opacity: 0; transform: scale(.4); } 74% { opacity: .7; } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes lpmPress { 0%, 68% { box-shadow: 0 0 0 0 rgba(32, 83, 219, 0); } 76% { box-shadow: 0 0 0 .22em rgba(32, 83, 219, 0.55); } 100% { box-shadow: 0 0 0 .22em rgba(32, 83, 219, 0.55); } }

/* ---------- 3. THE BOOKING CALENDAR AND THE MESSAGE US FORM (as on /principals) ----------
   The markup is written by app-pages.js into [data-lp-booking], so the 25 pages share one copy.
   Class names and ids are the site's own (demo-*, #contactModal), unchanged, so the behaviour and
   the shared bot check in partials/head-tags.html treat these exactly as they treat /principals. */
.demo-booking-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.15); }
.demo-booking-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.demo-booking-left { padding: 32px; border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.demo-booking-left-title, .demo-booking-right-title { font-size: 0.6875rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.demo-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.demo-cal-month { font-size: 1.0625rem; font-weight: 700; color: #292929; }
.demo-cal-arrow { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; color: #475569; }
.demo-cal-arrow:hover { background: #f8fafc; border-color: #2053db; color: #2053db; }
.demo-cal-arrow svg { width: 18px; height: 18px; }
.demo-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.demo-cal-weekday { text-align: center; font-size: 0.6875rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 0; }
.demo-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.demo-cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 500; color: #292929; border-radius: 8px; cursor: pointer; border: none; background: none; transition: all 0.15s ease; font-family: inherit; }
.demo-cal-day:hover:not(.demo-cal-disabled):not(.demo-cal-empty):not(.demo-cal-selected):not(.demo-cal-today) { background: #f1f5f9; }
.demo-cal-day.demo-cal-selected, .demo-cal-day.demo-cal-selected:hover { background: rgba(32, 83, 219, 0.10); color: #1f2937; font-weight: 700; }
.demo-cal-day.demo-cal-today:not(.demo-cal-selected) { border: 2px solid #94a3b8; font-weight: 700; color: #1f2937; }
.demo-cal-day.demo-cal-disabled { color: #e2e8f0; cursor: default; }
.demo-cal-day.demo-cal-empty { cursor: default; }
.demo-time-section { margin-top: 24px; flex: 1; }
.demo-time-label { font-size: 0.6875rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.demo-time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-time-slot { padding: 10px 8px; font-size: 0.875rem; font-weight: 600; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; transition: all 0.15s ease; font-family: inherit; text-align: center; }
.demo-time-slot:hover { border-color: rgba(100, 116, 139, 0.2); color: #292929; background: rgba(41, 41, 41, 0.06); }
.demo-time-slot.demo-time-selected { background: rgba(32, 83, 219, 0.10); color: #1f2937; border-color: transparent; font-weight: 700; }
.demo-time-slot.demo-time-booked { background: #f1f5f9; color: #cbd5e1; border-color: #e2e8f0; cursor: not-allowed; opacity: 0.6; text-decoration: line-through; font-size: 0.75rem; }
.demo-time-placeholder { font-size: 0.875rem; color: #94a3b8; font-style: italic; padding: 12px 0; }
.demo-booking-right { padding: 32px; display: flex; flex-direction: column; }
.demo-booking-form { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.demo-form-group { display: flex; flex-direction: column; gap: 6px; }
.demo-form-group label { font-size: 0.8125rem; font-weight: 600; color: #475569; }
.demo-form-group label .demo-required { color: #ef4444; margin-left: 2px; }
.demo-form-group input, .demo-form-group select, .demo-form-group textarea { padding: 12px 14px; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; color: #292929; font-size: 0.9375rem; font-family: inherit; transition: all 0.2s ease; outline: none; width: 100%; }
.demo-form-group input::placeholder, .demo-form-group textarea::placeholder { color: #94a3b8; }
.demo-form-group input:focus, .demo-form-group select:focus, .demo-form-group textarea:focus { border-color: #2053db; box-shadow: 0 0 0 3px rgba(32, 83, 219, 0.15); background: #fff; }
.demo-form-group textarea { resize: vertical; min-height: 60px; }
.demo-booking-form .demo-form-group:has(textarea) { flex: 1; display: flex; flex-direction: column; }
.demo-booking-form .demo-form-group:has(textarea) textarea { flex: 1; min-height: 120px; }
.demo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-selected-datetime { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(32, 83, 219, 0.06); border: 1px solid rgba(32, 83, 219, 0.2); border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: #1f2937; min-height: 42px; }
.demo-selected-datetime svg { width: 16px; height: 16px; flex-shrink: 0; }
.demo-selected-datetime.demo-placeholder { color: #94a3b8; border-color: #e2e8f0; background: #f8fafc; font-weight: 500; }
.demo-booking-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 20px; font-size: 1rem; font-weight: 700; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; border: none; font-family: inherit; background: linear-gradient(135deg, #2053db, #1b46c0); color: #fff; box-shadow: 0 4px 16px rgba(32, 83, 219, 0.3); }
.demo-booking-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32, 83, 219, 0.4); filter: brightness(1.05); }
.demo-booking-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.demo-booking-submit svg { width: 18px; height: 18px; }
.demo-booking-success { display: none; text-align: center; padding: 80px 40px; }
.demo-booking-success.demo-show { display: block; }
.demo-booking-success-icon { width: 72px; height: 72px; background: linear-gradient(135deg, #22c55e, #10b981); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3); }
.demo-booking-success-icon svg { width: 36px; height: 36px; color: #fff; }
.demo-booking-success h3 { font-size: 1.5rem; font-weight: 800; color: #292929; margin: 0 0 10px; }
.demo-booking-success p { font-size: 1rem; color: #475569; line-height: 1.7; max-width: 400px; margin: 0 auto; }
.demo-booking-footer { padding: 18px 24px; border-top: 1px solid #e2e8f0; background: #f8fafc; text-align: center; }
.demo-booking-footer p { margin: 0; font-size: 0.9375rem; color: #475569; }
.demo-booking-footer p + p { margin-top: 6px; }
.lp-page .demo-booking-footer a { color: #1b46c0; font-weight: 600; }
.demo-booking-footer .demo-booking-footer-note { color: #94a3b8; font-size: 0.8125rem; }
@media (max-width: 768px) {
  .demo-booking-grid { grid-template-columns: 1fr; }
  .demo-booking-left { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .demo-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .demo-booking-left, .demo-booking-right { padding: 24px 20px; }
  .demo-time-grid { grid-template-columns: repeat(2, 1fr); }
}

#contactModal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 10000; justify-content: center; align-items: flex-start; padding: 20px; overflow-y: auto; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#contactModal.active { display: flex; }
#contactModal, #contactModal * { box-sizing: border-box; }
#contactModal .contact-modal-content { background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 28px 32px; max-width: 560px; width: 92%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); max-height: calc(100vh - 40px); overflow-y: auto; margin: auto; flex-shrink: 0; }
#contactModal .contact-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
#contactModal .contact-modal-title { font-size: 22px; font-weight: 700; color: #292929; margin: 0; }
#contactModal .contact-modal-close { width: 36px; height: 36px; border: none; border-radius: 8px; background: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 18px; }
#contactModal .contact-modal-close:hover { background: rgba(239, 68, 68, 0.2); color: #f87171; }
#contactModal .contact-modal-form { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
#contactModal .contact-form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#contactModal .contact-form-group label { font-size: 0.8125rem; font-weight: 600; color: #334155; }
#contactModal .contact-form-group label .required { color: #f87171; margin-left: 2px; }
#contactModal .contact-form-group input, #contactModal .contact-form-group select, #contactModal .contact-form-group textarea { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.15); background: rgba(0, 0, 0, 0.03); color: #292929; font-size: 0.9375rem; font-family: inherit; transition: all 0.2s ease; outline: none; }
#contactModal .contact-form-group input::placeholder, #contactModal .contact-form-group textarea::placeholder { color: rgba(0, 0, 0, 0.35); }
#contactModal .contact-form-group input:focus, #contactModal .contact-form-group select:focus, #contactModal .contact-form-group textarea:focus { border-color: #2053db; box-shadow: 0 0 0 3px rgba(32, 83, 219, 0.2); }
#contactModal .contact-form-group select { cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
#contactModal .contact-form-group textarea { resize: vertical; min-height: 80px; }
#contactModal .contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#contactModal .contact-modal-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; font-size: 1rem; font-weight: 700; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; border: none; font-family: inherit; background: linear-gradient(135deg, #2053db, #1b46c0); color: #fff; box-shadow: 0 4px 16px rgba(32, 83, 219, 0.3); margin-top: 6px; }
#contactModal .contact-modal-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32, 83, 219, 0.4); }
#contactModal .contact-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
#contactModal .contact-form-success { display: none; text-align: center; padding: 24px 0; }
#contactModal .contact-form-success.show { display: block; }
#contactModal .contact-form-success .success-icon { width: 64px; height: 64px; background: linear-gradient(135deg, #4a4a4a, #3a3a3a); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
#contactModal .contact-form-success .success-icon svg { width: 32px; height: 32px; color: #fff; }
#contactModal .contact-form-success h3 { font-size: 1.25rem; font-weight: 700; color: #292929; margin: 0 0 8px; }
#contactModal .contact-form-success p { font-size: 0.9375rem; color: #64748b; margin: 0; }
@media (max-width: 600px) { #contactModal .contact-form-row { grid-template-columns: 1fr; } }
