/* ==========================================================================
   PREVIEW v2 (2026-11-30) — product scroll story, trust rows, install card,
   closing line, blur header, generic reveal.
   Loaded after the page's own <style>, so an equal selector here wins.
   Every animation is transform / opacity / clip-path: nothing here moves the
   layout (CLS 0). Directional motion reads --dir (1 LTR, -1 RTL).
   ========================================================================== */
/* --conv = how far the scattered comment markers have converged onto the pin (0..1).
   Registered so it can also be transitioned (the phone snapshots play it once). */
@property --conv { syntax: "<number>"; inherits: true; initial-value: 1; }
:root { --expo: cubic-bezier(.16, 1, .3, 1); --dir: 1; }
[dir="rtl"] { --dir: -1; }

/* ======================= GENERIC REVEAL =======================
   Hidden only when the script has put .rv on <html> (it skips that under reduced
   motion), so without JS everything is simply there. */
.rv [data-reveal] { transition: opacity .9s var(--expo), transform .9s var(--expo); transition-delay: calc(var(--d, 0) * 90ms); }
.rv [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.5rem); }

/* ======================= HEADER: blur once scrolled =======================
   Same hero colour, only see-through, so the page under it reads as depth. */
.site-header { transition: background-color .35s ease-out; }
.site-header.is-scrolled { background-color: rgba(6, 23, 33, .88); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }

/* ======================= STORY: layout (desktop) =======================
   .story-stage is sticky and sits ABOVE the chapter sheets (z 3 over z 2); the sheets
   are pulled up under it by one stage height, so they scroll past behind the window. */
.story { position: relative; z-index: 1; margin-top: -44px; }
.story-stage { position: sticky; top: 88px; height: calc(100vh - 88px); height: calc(100svh - 88px); z-index: 3; pointer-events: none; display: flex; align-items: center; }
.story-stage-grid, .sc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.story-stage .sf { grid-column: 2; justify-self: center; width: min(100%, calc((100svh - 88px - 120px) * 1.4545)); }
.story-chapters { position: relative; z-index: 2; margin-top: calc(88px - 100vh); margin-top: calc(88px - 100svh); }
/* rounded-top sheets, each overlapping the one before */
.sc { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 120px; margin-top: -44px;
  border-radius: 44px 44px 0 0; background: var(--hero); color: var(--ivory); box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .45); }
.sc:first-child { margin-top: 0; }
.sc.light { background: var(--ivory); color: var(--ink); }
.sc > .container { width: min(var(--max), calc(100% - var(--gutter) * 2)); }
.sc-copy h2 { font-size: clamp(34px, 3.4vw, 54px); }
.sc-copy h2 .accent { display: block; }   /* two beats, two lines */
.sc-copy p:not(.eyebrow) { margin-top: 22px; max-width: 430px; font-size: 17px; color: var(--muted); }
.sc.light .sc-copy p:not(.eyebrow) { color: var(--muted-light); }
.sc-no { font-family: var(--mono); letter-spacing: .08em; color: var(--ivory); }
.sc.light .sc-no { color: var(--ink); }
.sc-shot { display: none; }

/* ======================= STORY: the browser window =======================
   Fonts in px, positions in % of the page area. The screenshot is cropped with
   object-position = the pin's own point (64% 10%), so the pin stays on the
   "Tisch reservieren" button at any aspect ratio (16:11 desktop, 4:5 phone). */
.sf { --conv: 1; --k: clamp(0, calc((var(--conv) - .78) * 4.6), 1); position: relative; aspect-ratio: 16 / 11; display: grid; grid-template-rows: 34px minmax(0, 1fr);
  border-radius: 14px; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.4;
  border: 1px solid rgba(16, 29, 40, .2); box-shadow: 0 46px 90px -36px rgba(0, 0, 0, .6), 0 0 0 1px rgba(244, 240, 231, .07); }
.sf p { max-width: none; }
.sf-bar { display: flex; align-items: center; gap: 12px; padding-inline: 14px; background: #e8e2d4; border-bottom: 1px solid rgba(16, 29, 40, .12); }
.sf-dots { display: flex; gap: 6px; flex: none; }
.sf-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(16, 29, 40, .2); }
.sf-url { position: relative; flex: 1; height: 22px; border-radius: 6px; background: var(--paper); overflow: hidden; direction: ltr; text-align: left; font: 11.5px/22px var(--mono); color: var(--muted-light); }
.sf-url > span { position: absolute; inset: 0; padding-inline: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .5s ease-out, transform .7s var(--expo); }
.sf-url-app { opacity: 0; transform: translateY(8px); }
.sf-view { position: relative; overflow: hidden; container-type: inline-size; }
.sf-layer { position: absolute; inset: 0; transition: opacity .9s var(--expo), transform .9s var(--expo); }

/* -- 1. the site, the scattered markers converging, the pin -- */
.sf-site img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 10%; }
.sf-m, .sf-pin { position: absolute; left: 64%; top: 10%; }
.sf-m { width: 42px; height: 28px; margin: -14px 0 0 -21px; border-radius: 7px 7px 7px 2px; background: var(--paper); border: 1px solid rgba(16, 29, 40, .18);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45);
  opacity: clamp(0, calc((1 - var(--conv)) * 5), 1);
  transform: translate(calc(var(--dx) * (1 - var(--conv)) * 1cqw), calc(var(--dy) * (1 - var(--conv)) * 1cqw)) rotate(calc(var(--r) * (1 - var(--conv)) * 1deg)) scale(calc(1 - var(--conv) * .5)); }
.sf-m::before, .sf-m::after { content: ""; position: absolute; left: 6px; height: 3px; border-radius: 2px; background: rgba(16, 29, 40, .3); }
.sf-m::before { top: 8px; width: 26px; }
.sf-m::after { top: 15px; width: 16px; background: var(--copper); }
.sf-pin { width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; background: var(--emerald); color: #fff;
  font: 700 13px/1 var(--body); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .4), 0 0 0 6px rgba(0, 127, 104, .25);
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * -34px)) scale(calc(.7 + var(--k) * .3)); }

/* -- 2. the widget's comment box (client.js .fxc-pop: white sheet, emerald buttons) -- */
.sf-widget { position: absolute; left: 30%; top: 17%; width: 46%; min-width: 250px; padding: 14px; border-radius: 14px; background: #fff; color: #17181b;
  font-size: 12px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(23, 24, 27, .08);
  opacity: 0; transform: translateY(12px) scale(.96); transform-origin: 70% 0; transition: opacity .6s var(--expo), transform .9s var(--expo); }
.w-grab { display: none; }
.w-target { display: flex; gap: 6px; align-items: center; width: fit-content; max-width: 100%; margin-bottom: 10px; padding: 4px 11px; border-radius: 999px;
  background: #f4f3f0; border: 1px solid rgba(23, 24, 27, .13); color: #4e5157; font-weight: 600; font-size: 11px; white-space: nowrap; }
.w-target b { color: #17181b; }
.w-ta { position: relative; min-height: 52px; padding: 9px 44px 9px 11px; border: 1.5px solid var(--emerald); border-radius: 10px; box-shadow: 0 0 0 3px rgba(0, 127, 104, .15); }
[dir="rtl"] .w-ta { padding: 9px 11px 9px 44px; }
.w-type { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); }
[dir="rtl"] .w-type { clip-path: inset(0 0 0 100%); }
.w-mic { position: absolute; inset-inline-end: 6px; bottom: 7px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f4f3f0; color: #4e5157; }
.w-cats { display: flex; gap: 6px; margin-top: 9px; }
.w-cat { flex: 1; padding: 6px 2px; text-align: center; border-radius: 10px; border: 1.5px solid rgba(23, 24, 27, .26); color: #4e5157; font-weight: 600; font-size: 11px; white-space: nowrap;
  transition: background-color .3s ease-out 2.3s, color .3s ease-out 2.3s, border-color .3s ease-out 2.3s; }
.w-draw { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #4e5157; font-size: 11.5px; font-weight: 600; }
.w-btns { display: flex; gap: 8px; margin-top: 12px; }
.w-btns span { padding: 8px 14px; border-radius: 999px; font-weight: 600; text-align: center; }
.w-cancel { background: #f4f3f0; border: 1px solid rgba(23, 24, 27, .26); }
.w-send { flex: 1; background: var(--emerald); color: #fff; }

/* -- 3. the board -- */
.sf-board { padding: 4.5% 5%; background: #f5f3ee; opacity: 0; transform: translateY(18px); }
.b-proj { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.b-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-bottom: 1px solid rgba(16, 29, 40, .14); font-size: 12px; font-weight: 600; color: var(--muted-light); }
.b-tabs > span { padding: 8px 4px 9px; text-align: center; }
.b-ind { position: absolute; inset-inline-start: 0; bottom: -1px; width: 33.333%; height: 2px; background: var(--emerald); transition: transform .9s var(--expo) 2.2s; }
.b-card { position: relative; display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: 14px; margin-top: 14px; padding: 12px; overflow: hidden;
  border-radius: 12px; background: #fff; border: 1px solid rgba(16, 29, 40, .12); box-shadow: 0 10px 24px -14px rgba(16, 29, 40, .4);
  opacity: 0; transform: translateY(-22px) scale(.97); transition: opacity .7s var(--expo) .25s, transform .9s var(--expo) .25s; }
.b-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 64% 10%; border-radius: 7px; }
.b-body { min-width: 0; padding-inline-end: 64px; }
.b-note { font-weight: 650; font-size: 13px; line-height: 1.35; }
.b-meta { margin-top: 5px; font-size: 11px; color: var(--muted-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-url { font-family: var(--mono); direction: ltr; text-align: start; }
[dir="rtl"] .b-url { text-align: right; }
.b-err { color: #b3261e; }
.b-chip { position: absolute; inset-inline-end: 12px; top: 12px; display: grid; font-size: 10.5px; font-weight: 700; }
.b-chip > span { grid-area: 1 / 1; padding: 3px 9px; border-radius: 999px; text-align: center; transition: opacity .4s ease-out 2.3s, transform .6s var(--expo) 2.3s; }
.b-chip-new { background: #e7eef8; color: #2b4c7e; }
.b-chip-done { background: #dff3ec; color: var(--emerald); opacity: 0; transform: scale(.7); }
.b-scan { position: absolute; inset: 0; pointer-events: none; transform: translateY(-101%);
  background: linear-gradient(to bottom, transparent 0, transparent calc(100% - 26px), rgba(0, 127, 104, .14) calc(100% - 26px), rgba(0, 127, 104, .14) calc(100% - 2px), var(--emerald) calc(100% - 2px)); }
.b-ghost { display: block; height: 58px; opacity: 0; box-shadow: none; }
.b-ghost i { display: block; height: 7px; margin-bottom: 7px; border-radius: 4px; background: rgba(16, 29, 40, .08); }
.b-ghost i:nth-child(1) { width: 46%; } .b-ghost i:nth-child(2) { width: 70%; } .b-ghost i:nth-child(3) { width: 30%; }

/* -- 4. the ticket (what pm-lib.php sends: name + note, Page, Screenshot, Type, link back) -- */
.sf-ticket { inset: 9% 4% auto auto; inset-inline-start: auto; inset-inline-end: 4%; width: 60%; padding: 14px 16px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(16, 29, 40, .14); box-shadow: 0 30px 60px -20px rgba(16, 29, 40, .55);
  opacity: 0; transform: translateX(calc(var(--dir) * 28px)); transition: opacity .6s var(--expo), transform .9s var(--expo); }
.t-head { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-dark); }
.t-title { margin-top: 7px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.t-rows { margin: 10px 0 0; font: 10.5px/1.5 var(--mono); direction: ltr; text-align: left; }
.t-rows > div { display: flex; gap: 6px; padding-block: 4px; border-top: 1px solid rgba(16, 29, 40, .08); opacity: 0; transform: translateY(6px); transition: opacity .5s ease-out, transform .6s var(--expo); }
.t-rows dt { flex: none; font-weight: 700; }
.t-rows dd { margin: 0; min-width: 0; color: var(--muted-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -- 5. the agent's terminal (tool names + arguments from mcp/server.mjs) -- */
.sf-term { inset: auto auto 4% 3%; width: 66%; padding: 12px 14px; border-radius: 10px; background: #0b1820; color: #dfe7e4; border: 1px solid rgba(244, 240, 231, .14);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); font: 10.5px/1.55 var(--mono); text-align: left;
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--expo), transform .9s var(--expo); }
[dir="rtl"] .sf-term { left: auto; right: 3%; }
.t-bar { margin-bottom: 6px; color: var(--muted); letter-spacing: .06em; }
.tl { white-space: pre-wrap; overflow-wrap: anywhere; opacity: 0; transition: opacity .35s ease-out; }
.tl b { color: var(--jade); }
.tl-r { color: #8fa3a6; padding-left: 12px; }

/* ======================= STORY: the five states =======================
   Same window, one data-state. Delays inside a state make the beat (type, then pick,
   then scan, then the ticket; the agent's calls, then the status flips). */
.sf:is([data-state="3"], [data-state="4"], [data-state="5"]) .sf-site { opacity: 0; transform: scale(.97); }
.sf:is([data-state="3"], [data-state="4"], [data-state="5"]) .sf-url-site { opacity: 0; transform: translateY(-8px); }
.sf:is([data-state="3"], [data-state="4"], [data-state="5"]) .sf-url-app { opacity: 1; transform: none; }
.sf:is([data-state="3"], [data-state="4"], [data-state="5"]) .sf-board { opacity: 1; transform: none; }
.sf:is([data-state="3"], [data-state="4"], [data-state="5"]) .b-card { opacity: 1; transform: none; }
.sf:is([data-state="3"], [data-state="4"], [data-state="5"]) .b-ghost { opacity: .7; }
/* 2: the box opens, the note types itself, "Verbesserung" gets picked */
.sf[data-state="2"] .sf-widget { opacity: 1; transform: none; transition-delay: .15s; }
.sf[data-state="2"] .w-type { clip-path: inset(0 0 0 0); transition: clip-path 1.5s steps(32, end) .75s; }
.sf[data-state="2"] .w-cat-sel { background: var(--emerald); border-color: var(--emerald); color: #fff; }
/* 4: the scan line runs over the card, then it comes back as a task */
.sf[data-state="4"] .b-scan { animation: sf-scan 1.1s cubic-bezier(.45, 0, .55, 1) .2s both; }
.sf[data-state="4"] .b-card { filter: saturate(.6); transition: filter .4s ease-out 1.2s; }
.sf[data-state="4"] .sf-ticket { opacity: 1; transform: none; transition-delay: 1.15s; }
.sf[data-state="4"] .t-rows > div { opacity: 1; transform: none; }
.sf[data-state="4"] .t-rows > div:nth-child(1) { transition-delay: 1.45s; }
.sf[data-state="4"] .t-rows > div:nth-child(2) { transition-delay: 1.57s; }
.sf[data-state="4"] .t-rows > div:nth-child(3) { transition-delay: 1.69s; }
.sf[data-state="4"] .t-rows > div:nth-child(4) { transition-delay: 1.81s; }
@keyframes sf-scan { from { transform: translateY(-101%); } to { transform: translateY(101%); } }
/* 5: the calls appear one by one, then the card is done */
.sf[data-state="5"] .sf-term { opacity: 1; transform: none; transition-delay: .2s; }
.sf[data-state="5"] .tl { opacity: 1; }
.sf[data-state="5"] .tl:nth-of-type(2) { transition-delay: .5s; }
.sf[data-state="5"] .tl:nth-of-type(3) { transition-delay: .75s; }
.sf[data-state="5"] .tl:nth-of-type(4) { transition-delay: 1s; }
.sf[data-state="5"] .tl:nth-of-type(5) { transition-delay: 1.25s; }
.sf[data-state="5"] .tl:nth-of-type(6) { transition-delay: 1.5s; }
.sf[data-state="5"] .tl:nth-of-type(7) { transition-delay: 1.75s; }
.sf[data-state="5"] .tl:nth-of-type(8) { transition-delay: 2s; }
.sf[data-state="5"] .b-ind { transform: translateX(calc(var(--dir) * 200%)); }
.sf[data-state="5"] .b-chip-new { opacity: 0; transform: scale(.7); }
.sf[data-state="5"] .b-chip-done { opacity: 1; transform: none; }
/* the indicator / chip only wait for the agent on the way in, not when scrolling back */
.sf:not([data-state="5"]) .b-ind, .sf:not([data-state="5"]) .b-chip > span { transition-delay: 0s; }
.sf:not([data-state="2"]) .w-cat { transition-delay: 0s; }

/* ======================= STORY: phones (no pin, one snapshot per chapter) ======================= */
@media (max-width: 860px) {
  .story-stage { position: relative; top: auto; height: auto; display: block; padding-block: 72px 76px; background: var(--hero); }   /* no-JS fallback: one static window */
  .sj .story-stage { display: none; }
  .story-stage-grid, .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .story-stage .sf { width: min(100%, 440px); }
  .story-chapters { margin-top: 0; }
  .story-stage + .story-chapters .sc:first-child { margin-top: -32px; }
  .sc { display: block; min-height: 0; padding-block: 72px 64px; margin-top: -32px; border-radius: 32px 32px 0 0; }
  .sj .sc-shot { display: block; width: min(100%, 440px); aspect-ratio: 4 / 5; margin-inline: auto; }
  .sf { aspect-ratio: 4 / 5; }
  .sc-shot .sf { width: 100%; height: 100%; }
  /* the phone widget is a bottom sheet, as in client.js on small screens */
  .sf-widget { left: 0; right: 0; top: auto; bottom: 0; width: auto; min-width: 0; border-radius: 16px 16px 0 0; transform: translateY(100%); transform-origin: 50% 100%; }
  .w-grab { display: block; width: 36px; height: 4px; margin: -4px auto 10px; border-radius: 2px; background: rgba(23, 24, 27, .2); }
  .b-card { grid-template-columns: 1fr; }
  .b-thumb { aspect-ratio: 16 / 7; }
  .b-body { padding-inline-end: 0; }
  .b-chip { top: 18px; inset-inline-end: 18px; }
  .sf-ticket { inset: auto 4% 5% 4%; width: auto; }
  .sf-term { left: 3%; right: 3%; bottom: 3%; width: auto; font-size: 9.5px; padding: 10px 11px; }
  [dir="rtl"] .sf-term { left: 3%; right: 3%; }
  .sc-copy h2 { font-size: clamp(32px, 8.4vw, 42px); }
}
/* phone snapshots play their state once when they come into view (the script sets it) */
.sf.is-clone { transition: --conv 1.6s var(--expo); }

/* ======================= TRUST: four numbered rows on a light sheet ======================= */
.trust-sheet { position: relative; z-index: 2; margin-top: -44px; border-radius: 44px 44px 0 0; padding-block: 112px 96px; }
.tz-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.tz-head { position: sticky; top: 130px; }
.tz-list { list-style: none; margin: 0; padding: 0; }
.tz-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding-block: 28px; border-top: 1px solid var(--line-light); }
.tz-list li:last-child { border-bottom: 1px solid var(--line-light); }
.tz-no { grid-row: span 2; font: 15px var(--mono); color: var(--copper-dark); padding-top: 6px; }
.tz-head h2 .accent { display: block; }
.tz-list h3 { font-size: clamp(22px, 2vw, 28px); }
.tz-list p { margin-top: 10px; font-size: 16px; color: var(--muted-light); }
.tz-list code, .install-card code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 5px; background: rgba(16, 29, 40, .07); color: var(--ink); }

/* ======================= INSTALL CARD (beside the FAQ) ======================= */
.install-card { position: sticky; top: 110px; margin-top: 44px; padding: 26px 26px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-light);
  box-shadow: 0 18px 40px -26px rgba(16, 29, 40, .35); font-size: 15px; color: var(--muted-light); }
.install-card h3 { font-size: 21px; color: var(--ink); margin-bottom: 14px; }
.install-card p { margin-top: 12px; max-width: none; }
.install-card strong { color: var(--ink); }
.install-card a { color: var(--emerald); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* wraps instead of scrolling: a nowrap line would widen the FAQ grid column on phones */
.install-card .ic-code { display: block; margin-top: 8px; padding: 10px 12px; overflow-wrap: anywhere; font-size: 12.5px; text-align: left; background: var(--ink); color: var(--ivory); }
.install-card .ic-hub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-light); }

/* ======================= CLOSING LINE ======================= */
.final-cta { position: relative; z-index: 2; margin-top: -44px; border-radius: 44px 44px 0 0; background: var(--night); padding-block: 120px 96px; }
.final-cta .container { display: block; }
.final-cta .closing-line { max-width: none; text-wrap: balance; font-size: clamp(48px, 7.6vw, 124px); font-weight: 650; line-height: .98; letter-spacing: -.05em; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.closing-sub { font-size: 19px; color: var(--muted); }
@media (max-width: 860px) {
  .tz-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tz-head { position: static; }
  .trust-sheet, .final-cta { margin-top: -32px; border-radius: 32px 32px 0 0; padding-block: 80px 72px; }
  .tz-list li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  .install-card { position: static; margin-top: 36px; }
  .closing-row { display: block; }
  .closing-row .final-actions { margin-top: 24px; text-align: start; }
}

/* ======================= REDUCED MOTION =======================
   The page-wide rule already drops every transition; here the markers are simply
   gone and the pin is in place, so nothing is left mid-way. */
@media (prefers-reduced-motion: reduce) {
  .sf { --conv: 1 !important; }
  .sf[data-state="4"] .b-scan { animation: none; }
}

/* ======================= v3: JUMP BAR + FLOATING TRIAL (below 960px) =======================
   Beri on v2: the page is long, nobody can jump, no trial button follows you.
   Both are fixed overlays (nothing in the flow moves, CLS 0) and start hidden; the script
   in home-story.js adds .is-on once the hero has left the screen. visibility
   keeps the hidden ones out of the tab order. --hdr = the sticky header's height. */
:root { --hdr: 88px; --jump: 48px; }
.jump-bar { position: fixed; inset-inline: 0; top: var(--hdr); z-index: 19; display: flex; gap: 6px; align-items: center;
  height: var(--jump); padding-inline: var(--gutter, 20px); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  background: rgba(6, 23, 33, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .3s var(--expo), opacity .2s ease-out, visibility 0s linear .3s; }
.jump-bar::-webkit-scrollbar { display: none; }
.jump-bar.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.jump-bar a { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ivory); white-space: nowrap; }
.jump-bar a[aria-current="true"] { border-color: var(--jade); background: rgba(89, 195, 160, .16); color: var(--jade-bright); }
.jump-bar a:focus-visible { outline: 2px solid var(--jade-bright); outline-offset: -2px; }

/* Brand primary button, as a pill in the bottom corner at the page's inline START:
   Skippy (fx-ask.js, 60px) owns the inline-END corner. */
.trial-fab { position: fixed; z-index: 50; inset-inline-start: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 1px 0 #7ce8c14d;
  transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden;
  transition: transform .35s var(--expo), opacity .2s ease-out, visibility 0s linear .35s; }
.trial-fab.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
/* The one-time language toast shares that corner: lifted above the button while it shows. */
@media (max-width: 959px) {
  /* translate, not bottom: moving a fixed box by layout counts as a layout shift; the toast's
     entry animation owns `transform`, so the separate `translate` property carries the lift */
  .lang-toast { transition: translate .3s var(--expo); }
  html.fab-on .lang-toast { translate: 0 -64px; }
  /* anchors land below header + bar (the bar is there by the time the jump ends) */
  html { scroll-padding-top: calc(var(--hdr) + var(--jump) + 16px); }
}
@media (max-width: 639px) { :root { --hdr: 72px; } }
@media (min-width: 960px) { .jump-bar, .trial-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .jump-bar, .trial-fab, .lang-toast { transition: none; } }

/* Header links (960px and up): the same targets, the one in view marked like a hover. */
.desktop-nav a[aria-current="true"] { color: var(--jade); text-decoration: underline 2px; text-underline-offset: 8px; }
/* six links now (was five): one line each, a little tighter until 1280px so the trial button keeps its shape */
.desktop-nav a, .header-actions > .button { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1279px) { .desktop-nav { gap: 14px; font-size: 13px; } .header-actions { gap: 8px; } }
