/* Lysi Doc landing (index pages only, html.sx). Seven full-screen sections with live demos.
   Loaded after styles.css: header, buttons, footer, launch modal and the tokens come from there.
   Every class here carries the sx- prefix so nothing meets the older landing rules in styles.css. */
html.sx { scroll-behavior: auto; scroll-snap-type: none; scroll-padding-top: 0;
  --sx-hdr: 76px; --sx-gut: clamp(16px, 4vw, 40px); --sx-max: 1120px; --sx-ease: cubic-bezier(.2,.7,.2,1);
  --sx-deep: #073c3d; --sx-deep-ink: #eef4f1; --sx-deep-soft: #a9c6c2;
  --sx-edge: color-mix(in srgb, var(--accent) 45%, transparent); --sx-lift: rgba(0,0,0,.7); }
html.sx[data-theme="light"] { --sx-lift: rgba(40,38,30,.38); }
html.sx .hdr .nav { padding-top: 16px; padding-bottom: 16px; }
html.sx .hdr .nav .links a[aria-current] { color: var(--fg); box-shadow: 0 2px 0 var(--accent); }   /* the section we are in */
html.sx .hdr .nav .links > a { padding: 6px 0; }
/* header intro: the logo builds larger in the middle and shrinks to its normal size on its way to the left */
html.sx .hdr.hx.hi .nav .logo { transform: translate(-50%, -50%) scale(1.6); }
@media (max-width: 640px), ((pointer: coarse) and (max-width: 1024px)) { html.sx .hdr.hx.hi .nav .logo { transform: translate(-50%, -50%) scale(1.3); } }

main.sx { display: block; overflow-x: clip; font-size: 17px; line-height: 1.5; color: var(--text1); }
main.sx h1, main.sx h2 { color: var(--fg); font-weight: 700; letter-spacing: -.032em; line-height: 1.04; text-wrap: balance; }
main.sx h2 { font-size: clamp(30px, 4.4vw, 54px); }
main.sx h1 em { font-style: normal; color: var(--dim); }
main.sx [id] { scroll-margin-top: 0; }
main.sx :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main.sx .btn { transition: background-color .2s, transform .2s var(--sx-ease); }
main.sx .btn:active { transform: scale(.98); }
.sx-wrap { width: 100%; max-width: calc(var(--sx-max) + 2 * var(--sx-gut)); margin: 0 auto; padding: 0 var(--sx-gut); }
.sx-eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sx-lede { margin-top: 18px; max-width: 46ch; color: var(--text2); }
.sx-nb { white-space: nowrap; }

/* Sections. Without sx-js (phones, find-in-page, no script) they are plain blocks, one screen
   tall at least, and the page scrolls normally. With sx-js each one is a fixed full-screen panel
   and only one is shown: a scroll moves to the next one. */
.sx-act { position: relative; }
.sx-pin { background: var(--bg); }
.sx-inner { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--sx-hdr) + 28px) 0 36px; }
/* the section boxes only make the scroll track here; they must not lie over the panel in view and take its clicks */
.sx-js .sx-act { position: static; pointer-events: none; }
.sx-js .sx-pin { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100svh; overflow: hidden; visibility: hidden; pointer-events: auto; }
.sx-js .sx-pin.is-show { visibility: visible; }
.sx-js .sx-inner { min-height: 100%; will-change: transform; transition: transform .55s var(--sx-ease); }

/* Token: the visible side sets the width, the hidden side is taken out of flow */
.sx-tk { position: relative; display: inline-block; white-space: nowrap; perspective: 500px; }
.sx-tk > span { display: inline-block; backface-visibility: hidden; transition: transform .7s var(--sx-ease), opacity .4s linear; }
.sx-tk .o { background: var(--yellowbg); color: var(--yellow); font-weight: 600; border-radius: 4px; padding: 0 .22em; }
.sx-tk .p { font: 500 .8em/1.5 var(--mono); color: var(--accent); background: var(--accentbg); border: 1px solid var(--sx-edge); border-radius: 5px; padding: 0 .4em; }
.sx-tk:not(.is-on) .p, .sx-tk.is-on .o { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.sx-tk:not(.is-on) .p { transform: rotateX(-90deg); }
.sx-tk.is-on .o { transform: rotateX(90deg); }
#hero .sx-tk, #hero .sx-map-r, #catDoc .sx-tk, #peakDoc, #closeCard { cursor: pointer; }

/* Document card */
.sx-doc { background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 18px 40px -18px var(--shadow), 0 2px 6px -2px var(--shadow); overflow: hidden; }
.sx-doc-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sx-pill { padding: 3px 8px; border-radius: 5px; background: var(--bg2); color: var(--text2); white-space: nowrap; transition: background-color .3s, color .3s; }
.sx-pill.is-done { background: var(--accent); color: var(--accent-ink); }
.sx-doc-b { padding: clamp(18px, 2.4vw, 30px); font-size: clamp(18px, 1.9vw, 25px); line-height: 1.62; color: var(--fg); }

/* 1 · Hero: the document redacts itself */
.sx-hero { --p: 0; }
.sx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sx-hero h1 { margin: 18px 0 30px; font-size: clamp(38px, 4.4vw, 56px); }
/* Trust line: where the originals do not go. A sentence whose three endings are pills. */
.sx-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 15px; line-height: 1.4; color: var(--text2); }
.sx-trust > span { padding: 4px 9px; border-radius: 5px; border: 1px solid var(--sx-edge); background: var(--accentbg); color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sx-stage { position: relative; padding: 0 0 64px; }
/* "Your desktop application": the demo runs inside a quiet line drawing of a notebook. With landing.js (sx-boot) the
   small laptop draws itself when the demo starts (is-draw), then the app window rises onto the screen (is-up).
   Without the script everything is simply there. */
html.sx { --sx-nbl: rgba(244,244,246,.2); --sx-screen: rgba(244,244,246,.035); }
html.sx[data-theme="light"] { --sx-nbl: rgba(22,21,20,.2); --sx-screen: rgba(22,21,20,.03); }
.sx-app-h { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
.sx-lic { width: 1.4em; height: 1.05em; flex: none; }
.sx-lic .sx-lic-l { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 150; stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1); }
.sx-lic .sx-lic-s { fill: var(--accent); opacity: .2; transition: opacity .5s ease; }
.sx-lic .sx-lic-c { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; transition: opacity .4s ease .3s; }
.sx-boot .sx-hero:not(.is-draw) .sx-lic .sx-lic-l { stroke-dashoffset: 150; }
.sx-boot .sx-hero:not(.is-up) .sx-lic .sx-lic-s, .sx-boot .sx-hero:not(.is-up) .sx-lic .sx-lic-c { opacity: 0; }
.sx-lid { border: 1.5px solid var(--sx-nbl); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 16px 16px 14px; }
.sx-screen { background: var(--sx-screen); border-radius: 6px; padding: 14px; }
.sx-app { background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -18px var(--shadow), 0 2px 6px -2px var(--shadow); transition: opacity .5s ease, transform .6s var(--sx-ease); }
.sx-boot .sx-hero:not(.is-up) .sx-app { opacity: 0; transform: translateY(10px) scale(.96); }
.sx-app .sx-doc { border: 0; border-radius: 0; box-shadow: none; }
.sx-app-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-bottom: 1px solid var(--line); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sx-app-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.sx-app-bar span { margin-left: 8px; }
.sx-deck { position: relative; height: 11px; margin: 0 -24px; border: 1.5px solid var(--sx-nbl); border-radius: 0 0 12px 12px; }
.sx-deck::before { content: ""; position: absolute; left: 50%; top: -1.5px; width: 22%; height: 4px; transform: translateX(-50%); border: 1.5px solid var(--sx-nbl); border-top: 0; border-radius: 0 0 6px 6px; }
.sx-bar { height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform .6s var(--sx-ease); }
.sx-map { position: absolute; right: -10px; bottom: 0; width: min(290px, 76%); background: var(--sx-deep); color: var(--sx-deep-ink); border-radius: 12px; padding: 14px 16px 12px; box-shadow: 0 22px 40px -16px rgba(7,60,61,.55); transform: translate3d(0, calc((1 - var(--p)) * 46px), 0); transition: transform .6s var(--sx-ease), opacity .5s ease .35s; }
.sx-boot .sx-hero:not(.is-up) .sx-map { opacity: 0; }
.sx-map-h { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sx-deep-soft); margin-bottom: 8px; }
.sx-map-r { display: flex; justify-content: space-between; gap: 12px; font: 400 13px/1.9 var(--mono); opacity: .22; transition: opacity .4s; }
.sx-map-r.is-on { opacity: 1; }
.sx-map-r span:last-child { font-family: var(--sans); font-weight: 600; }

/* 2 · Versions: one document, three recipients */
main.sx .sx-peak h2 { font-size: clamp(30px, 4.3vw, 58px); text-wrap: wrap; }
.sx-peak-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sx-peak .sx-lede { margin-top: 22px; max-width: 34ch; }
.sx-tabs { display: grid; gap: 4px; margin-top: 34px; }
.sx-tab { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-left: 2px solid var(--line2); background: none; color: var(--dim); font: 600 18px/1.3 var(--sans); text-align: left; cursor: pointer; transition: color .3s, border-color .3s, background-color .3s; }
.sx-tab small { font: 400 11px/1.4 var(--mono); letter-spacing: .06em; opacity: 0; transition: opacity .3s; }
.sx-tab[aria-selected="true"] { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.sx-tab[aria-selected="true"] small { opacity: .9; }
.sx-peak .sx-doc { box-shadow: 0 34px 70px -30px var(--sx-lift), 0 2px 6px -2px var(--shadow); }
.sx-peak .sx-doc-b { font-size: clamp(19px, 2.3vw, 30px); }
.sx-cap { margin-top: 20px; min-height: 2.9em; font-size: clamp(16px, 1.5vw, 20px); color: var(--fg); }

/* 3 · Categories: live switches */
.sx-cats-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(24px, 3.4vw, 44px); }
.sx-switches { display: grid; gap: 10px; }
.sx-sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 10px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--fg); font: 600 17px/1.2 var(--sans); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sx-sw small { display: block; margin-top: 3px; font: 400 12px/1.3 var(--mono); color: var(--dim); }
.sx-sw i { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--line2); transition: background-color .25s; }
.sx-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--sx-ease); }
.sx-sw[aria-checked="true"] { border-color: var(--sx-edge); background: var(--card2); }
.sx-sw[aria-checked="true"] i { background: var(--accent); }
.sx-sw[aria-checked="true"] i::after { transform: translateX(18px); }
.sx-all { margin-top: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); }
.sx-all > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font-weight: 600; color: var(--fg); }
.sx-all > summary::-webkit-details-marker, .sx-faq summary::-webkit-details-marker { display: none; }
.sx-all > summary::after, .sx-faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--accent); transition: transform .25s var(--sx-ease); }
main.sx details[open] > summary::after { transform: rotate(45deg); }
.sx-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; padding: 8px 0 20px; }
.sx-groups h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--fg); margin-bottom: 6px; }
.sx-groups p { font: 400 11.5px/1.75 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--text2); }
.sx-fine { margin-top: 28px; font: 400 12px/1.7 var(--mono); color: var(--dim); }
.sx-all .sx-fine { margin: 0 0 16px; }

/* 4 · Steps: four cards, the highlight walks from card to card */
.sx-steps h2 { margin-top: 14px; }
.sx-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(24px, 3.4vw, 44px); will-change: transform; transition: transform .6s var(--sx-ease); }
.sx-step { position: relative; display: flex; flex-direction: column; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow: hidden; cursor: pointer; opacity: .42; transform: translate3d(0, 10px, 0); transition: opacity .35s linear, transform .5s var(--sx-ease), border-color .35s, box-shadow .35s; --q: 0; }
.sx-step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--q)); }
.sx-step.is-was, .sx-rail.is-idle .sx-step { opacity: .78; transform: none; }
.sx-step.is-lit { opacity: 1; transform: translate3d(0, -6px, 0); border-color: var(--sx-edge); box-shadow: 0 26px 50px -24px var(--sx-edge); }
.sx-viz { min-height: 150px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); padding: 14px; font-size: 13px; line-height: 1.7; color: var(--fg); }
.sx-viz .row { display: flex; align-items: center; justify-content: space-between; font: 400 11px/2.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.sx-viz .row b { font: 600 13px/1 var(--sans); text-transform: none; letter-spacing: 0; color: var(--fg); }
.sx-viz .dot { width: 26px; height: 15px; border-radius: 8px; background: var(--accent); position: relative; }
.sx-viz .dot::after { content: ""; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.sx-viz .dot.off { background: var(--line2); }
.sx-viz .dot.off::after { right: auto; left: 2px; }
.sx-viz .to { font: 400 11px/1.6 var(--mono); color: var(--dim); margin-top: 8px; }
.sx-step .n { margin-top: 18px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; color: var(--accent); }
.sx-step h3 { margin: 6px 0 10px; font-size: 20px; line-height: 1.2; letter-spacing: -.015em; color: var(--fg); }
.sx-step ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.45; color: var(--text2); }
.sx-step li { padding: 7px 0; border-top: 1px solid var(--line); }

/* 5 · Pricing */
.sx-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sx-price-card { background: var(--card2); border: 1px solid var(--sx-edge); border-radius: 16px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 18px 40px -22px var(--shadow); }
.sx-amount { font: 700 clamp(56px, 8vw, 92px)/1 var(--sans); letter-spacing: -.04em; color: var(--fg); }
.sx-unit { margin: 8px 0 24px; font: 400 13px/1.5 var(--mono); color: var(--dim); }
.sx-price-card .btn { width: 100%; }
.sx-plans { margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; }
.sx-plans li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text2); }
.sx-plans b { color: var(--fg); font-weight: 600; white-space: nowrap; }
.sx-plans a { color: inherit; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.sx-plans a:hover { color: var(--fg); text-decoration-color: var(--accent); }
.sx-price h2 + p { margin-top: 18px; max-width: 30ch; font-size: 19px; color: var(--text2); }
.sx-fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 6 · FAQ */
.sx-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(28px, 5vw, 72px); margin-top: clamp(12px, 2vw, 24px); }
.sx-faq h3 { margin: 22px 0 4px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sx-faq details { border-bottom: 1px solid var(--line2); }
.sx-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 6px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--fg); }
.sx-faq details p { padding: 0 28px 16px 0; font-size: 15.5px; color: var(--text2); }

/* 7 · Close: the names come back. The page footer sits at the bottom of this panel. */
.sx-close .sx-inner { padding-bottom: 0; text-align: center; }
.sx-body { margin: auto; padding-top: 12px; padding-bottom: 28px; }
.sx-close .sx-doc { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 52px); text-align: left; }
.sx-close .sx-doc-b { font-size: clamp(17px, 1.7vw, 22px); }
.sx-body > p { margin: 18px 0 30px; font-size: 19px; color: var(--text2); }
.sx-team { display: block; width: fit-content; margin: 18px auto 0; font-size: 14.5px; color: var(--text2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.sx-close footer { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); text-align: left; }

/* Tablet and phone: own composition */
@media (max-width: 900px) {
  main.sx { font-size: 16px; }
  .sx-inner { padding: calc(var(--sx-hdr) + 16px) 0 24px; }
  .sx-hero-grid, .sx-peak-grid, .sx-cats-grid, .sx-price { grid-template-columns: minmax(0, 1fr); }
  .sx-hero-grid { gap: 18px; }
  .sx-hero h1 { margin: 10px 0 0; font-size: clamp(34px, 9.6vw, 56px); }
  .sx-hero .btn { display: none; }               /* the header carries the one CTA of the first view */
  .sx-trust { margin-top: 14px; font-size: 14px; }
  .sx-stage { padding: 14px 0 72px; }
  .sx-app-h { margin-bottom: 14px; }
  .sx-lid { padding: 10px 10px 9px; border-radius: 12px 12px 0 0; } .sx-screen { padding: 8px; }
  .sx-deck { height: 9px; margin: 0 -12px; }
  .sx-map { right: 8px; width: min(250px, 72%); padding: 11px 13px 9px; }
  .sx-map-r { font-size: 12px; line-height: 1.75; }
  .sx-doc-b { font-size: clamp(17px, 4.7vw, 22px); line-height: 1.6; }
  .sx-peak-grid { gap: 14px; }
  main.sx .sx-peak h2 { font-size: clamp(27px, 7.6vw, 46px); }
  .sx-peak .sx-lede { display: none; }
  .sx-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
  .sx-tab { justify-content: center; min-height: 44px; padding: 6px 4px; border-left: 0; border-bottom: 2px solid var(--line2); font-size: 14.5px; text-align: center; }
  .sx-tab small { display: none; }
  .sx-peak .sx-doc-b { font-size: clamp(17px, 4.7vw, 24px); }
  .sx-cap { margin-top: 14px; font-size: 15.5px; }
  .sx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Steps: the four cards stay in one row. Stepped: the row slides to the lit card. */
  main.sx .sx-steps h2 { font-size: clamp(26px, 7.2vw, 44px); }
  .sx-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(76vw, 320px); gap: 12px; margin-top: 22px; padding: 10px 0; }
  .sx-price { gap: 22px; }
  .sx-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .sx-close footer { padding-top: 16px; }
}
/* Phones (same query as the script): the page stops on every section. One swipe, however hard,
   lands on the next one; a section taller than the screen scrolls freely inside first. */
@media (max-width: 640px), ((pointer: coarse) and (max-width: 1024px)) {
  html.sx:not(.sx-js) { scroll-snap-type: y mandatory; }
  html.sx:not(.sx-js) .sx-act { scroll-snap-align: start; scroll-snap-stop: always; }
}
/* Normal scroll (no sx-js): the row of step cards is swiped sideways by hand */
@media (max-width: 900px) {
  html:not(.sx-js) .sx-rail { overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--sx-gut)); margin-right: calc(-1 * var(--sx-gut)); padding-left: var(--sx-gut); padding-right: var(--sx-gut); scroll-padding-left: var(--sx-gut); scrollbar-width: none; }
  html:not(.sx-js) .sx-rail::-webkit-scrollbar { display: none; }
  html:not(.sx-js) .sx-step { scroll-snap-align: start; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .sx-hero .sx-eyebrow { display: none; }
  .sx-js .sx-trust { display: none; }              /* pinned panel on a short screen: the demo card needs the room; phones scroll and keep it */
  .sx-stage { padding-top: 0; }
  .sx-cap { min-height: 0; }
}
@media (hover: none) { main.sx .btn.primary:hover { background: var(--accent); } }
/* The word of the lit step card keeps the ink, the other three step back (owner, 2026-10-19).
   The heading is only dimmed once a card is lit: at rest, and without JS, it reads as one line. */
.sx-howh.is-stepping .w { opacity: .5; }
.sx-howh .w { transition: opacity .5s var(--sx-ease); }
.sx-howh .w.is-lit { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  main.sx *, main.sx *::before, main.sx *::after { transition-duration: .01ms !important; transition-delay: 0s !important; } /* one switch for every demo transition */
  .sx-map, .sx-app { transform: none; }
}
html:not(.sx-js) .sx-rail.is-idle .sx-step { opacity: 1; }      /* normal scroll: no card is dimmed until one is tapped */

/* Trust card + dock (trust.js). Dark is the default theme of styles.css; light under [data-theme="light"]. */
html.sx { --sx-glass: rgba(27,27,38,.42); --sx-glass-edge: rgba(255,255,255,.14); --sx-glass-hi: rgba(255,255,255,.22); --sx-glass-dock: rgba(27,27,38,.6); --sx-veil: rgba(10,10,15,.82); --sx-glow: rgba(20,184,184,.6); }
html.sx[data-theme="light"] { --sx-glass: rgba(255,255,255,.38); --sx-glass-edge: rgba(255,255,255,.75); --sx-glass-hi: rgba(255,255,255,.9); --sx-glass-dock: rgba(255,255,255,.55); --sx-veil: rgba(246,245,242,.84); --sx-glow: rgba(15,143,143,.55); }
.sx-veil { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--sx-hdr) + 16px) 16px 16px; background: var(--sx-veil); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; }
.sx-veil[hidden], .sx-dock[hidden] { display: none; }
.sx-veil.is-on { animation: sxVeilIn .5s ease-out .4s forwards; }
.sx-veil.is-out { opacity: 1; animation: sxVeilOut .7s ease-in forwards; }      /* the card fades as a whole; its icons are already on their way to the dock */
.sx-veil.is-out .sx-panel, .sx-veil.is-out .sx-row, .sx-veil.is-out .sx-actions { opacity: 1; visibility: visible; transform: none; animation: none; }
.sx-veil.is-out .sx-row .sx-no { stroke-dashoffset: 0; }
.sx-veil.is-out .sx-row svg { opacity: 0; }
.sx-panel { position: relative; margin: auto; width: min(760px, 100%); padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px) clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--card2); border: 1px solid var(--line2); box-shadow: 0 50px 100px -40px var(--shadow); transform: translateY(14px) scale(.98); opacity: 0; overflow: hidden; }   /* solid: no page text shows through */
.sx-panel > * { position: relative; }
.is-on .sx-panel { animation: sxPanelIn .6s var(--sx-ease) .6s forwards; }
.sx-panel h2 { margin: 12px 0 10px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.03em; }
.sx-panel .sx-sub { margin: 0 0 22px; max-width: 58ch; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.5; color: var(--text2); }
.sx-rows { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sx-row { display: flex; align-items: flex-start; gap: 16px; opacity: 0; }
.is-on .sx-row { animation: sxRowIn .5s var(--sx-ease) forwards; }
.is-on .sx-row:nth-child(1) { animation-delay: 1.3s; } .is-on .sx-row:nth-child(2) { animation-delay: 1.9s; } .is-on .sx-row:nth-child(3) { animation-delay: 2.5s; }
.sx-row svg { width: 42px; height: 42px; flex: none; margin-top: 1px; }
.sx-ic { stroke: var(--text2); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sx-no { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.is-on .sx-row .sx-no { animation: sxSlash .4s var(--sx-ease) forwards; }
.is-on .sx-row:nth-child(1) .sx-no { animation-delay: 1.7s; } .is-on .sx-row:nth-child(2) .sx-no { animation-delay: 2.3s; } .is-on .sx-row:nth-child(3) .sx-no { animation-delay: 2.9s; }
.sx-row h3 { margin: 0 0 3px; font-size: 21px; font-weight: 600; color: var(--fg); line-height: 1.2; }
.sx-row p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text2); max-width: 60ch; min-width: 0; }
.sx-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 0; opacity: 0; visibility: hidden; }   /* not reachable before it is seen */
.is-on .sx-actions { animation: sxActionsIn .5s ease-out 3.4s forwards; }
.sx-never { padding: 8px 0; border: 0; background: none; color: var(--dim); font: 400 13px/1.5 var(--mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sx-never:hover { color: var(--fg); }
/* Continue: the solid primary button, so the way out is obvious. font-family is set because a <button> does not inherit it. */
.btn.sx-go { font-family: var(--sans); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); min-height: 44px; }
.btn.sx-go:hover, .btn.sx-go:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); }
/* Dock: inside the nav, under the header line, at the nav's own side padding */
.sx-dock { position: absolute; top: calc(100% + 16px); right: var(--navpad, 32px); display: flex; gap: 6px; }
.nav.open .sx-dock { display: none; }
.sx-dk { position: relative; width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid var(--sx-edge); background: var(--sx-glass-dock); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: default; display: flex; align-items: center; justify-content: center; transform-origin: 50% 50%; box-shadow: 0 0 0 0 var(--sx-glow); transition: box-shadow .5s ease, border-color .3s; }
.sx-dk svg { width: 22px; height: 22px; } .sx-dk .sx-ic { stroke-width: 2.2; } .sx-dk .sx-no { stroke-dashoffset: 0; stroke-width: 3.4; }
.sx-dk:hover, .sx-dk:focus-visible, .sx-dk.is-open { border-color: var(--accent); background: var(--card2); }
.sx-dk.is-fly { border-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sx-dk.is-land { transition: transform 1.5s cubic-bezier(.22,.61,.2,1), border-color .5s ease 1.3s, background-color .5s ease 1.3s; }
.sx-dock.is-glow .sx-dk { box-shadow: 0 0 0 3px var(--accentbg), 0 0 22px var(--sx-glow); border-color: var(--accent); transition: box-shadow .25s ease, border-color .2s; }
/* solid, not glass: the header and the .sx-dk button each blur their backdrop, so a blur on the tip never reaches the page and the text behind shows through */
.sx-tip { display: none; position: absolute; top: calc(100% + 10px); right: 0; width: min(340px, calc(100vw - 32px)); padding: 16px 18px; border-radius: 14px; text-align: left; background: var(--card2); border: 1px solid var(--sx-edge); box-shadow: 0 24px 50px -22px var(--shadow), inset 0 1px 0 var(--sx-glass-hi); font: 400 14px/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text2); }
/* the button's backdrop blur makes it the containing block, so each card is pushed right to end at the dock's edge */
.sx-dk:nth-child(1) .sx-tip { right: calc(-2 * (36px + 6px)); } .sx-dk:nth-child(2) .sx-tip { right: calc(-1 * (36px + 6px)); }
.sx-dk:focus-visible .sx-tip, .sx-dk.is-open .sx-tip { display: block; }
@media (hover: hover) { .sx-dk:hover .sx-tip { display: block; } }
.sx-tip h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--fg); }
.sx-tip p { margin: 0; }
/* a small arrow points at the icon the card belongs to (centre of that icon, measured from the dock's right edge) */
.sx-tip::before { content: ""; position: absolute; top: -7px; right: var(--sx-ar, 12px); width: 12px; height: 12px; background: var(--card2); border-left: 1px solid var(--sx-edge); border-top: 1px solid var(--sx-edge); transform: rotate(45deg); }
.sx-dock { --sx-dk: 36px; --sx-gap: 6px; }
.sx-dk:nth-child(1) .sx-tip { --sx-ar: calc(2 * (var(--sx-dk) + var(--sx-gap)) + var(--sx-dk) / 2 - 6px); }
.sx-dk:nth-child(2) .sx-tip { --sx-ar: calc(var(--sx-dk) + var(--sx-gap) + var(--sx-dk) / 2 - 6px); }
.sx-dk:nth-child(3) .sx-tip { --sx-ar: calc(var(--sx-dk) / 2 - 6px); }
.sx-tip-x { display: none; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font: 400 11px/1.4 var(--mono); color: var(--text2); }
@media (hover: none) { .sx-tip-x { display: block; } }
@keyframes sxVeilIn { to { opacity: 1; } }
@keyframes sxVeilOut { to { opacity: 0; } }
@keyframes sxPanelIn { to { opacity: 1; transform: none; } }
@keyframes sxRowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sxSlash { to { stroke-dashoffset: 0; } }
@keyframes sxActionsIn { from { opacity: 0; visibility: hidden; transform: translateY(8px); } to { opacity: 1; visibility: visible; transform: none; } }
@media (max-width: 640px), ((pointer: coarse) and (max-width: 1024px)) {
  .sx-dock { gap: 8px; } .sx-dk { width: 44px; height: 44px; border-radius: 10px; } .sx-dk svg { width: 26px; height: 26px; }
  .sx-dock { --sx-dk: 44px; --sx-gap: 8px; }
  .sx-dk:nth-child(1) .sx-tip { right: calc(-2 * (44px + 8px)); } .sx-dk:nth-child(2) .sx-tip { right: calc(-1 * (44px + 8px)); }
  .sx-panel h2 { font-size: 26px; } .sx-row h3 { font-size: 19px; } .sx-row p { font-size: 14px; } .sx-rows { gap: 12px; }
  .sx-never { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-veil.is-on, .is-on .sx-panel, .is-on .sx-row, .is-on .sx-row .sx-no, .is-on .sx-actions { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .sx-dk.is-land { transition: none; }
  .sx-howh.is-stepping .w { opacity: 1; }        /* no motion, no dimming: the whole line stays readable */
}
