/* Public site (site/, D-058): home pages, guides and their hub. Same tokens as app.css (colours and type of the
   original mock-up), light and dark through html[data-theme]. The design is the home page of D-057: editorial and
   quiet, type carries the page, hairlines instead of boxes, colour only where it means something and the brand accent
   for small signals; the main button is ink on paper in both themes. Classes are "s-" (site chrome, guides) and
   "lp-" (home page components); the app's stylesheet, loaded when the home page opens an app screen, uses neither. */
:root {
  --bg: #F4F7FB; --card: #FFFFFF; --elev: #EEF3F9; --border: #D9E2EF;
  --pri: #2563EB; --sec: #06B6D4; --profit: #10B981; --loss: #F43F5E; --warn: #F59E0B;
  --text: #111827; --muted: #5B6679; --grid: #E8EEF6;
  --font: 'Inter Tight', 'Public Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --lp-max: 1160px; --lp-pad: clamp(20px, 5vw, 56px); --lp-line: color-mix(in srgb, var(--border) 75%, transparent);
  --lp-ease: cubic-bezier(.2, .7, .2, 1);
  --lp-shadow: 0 1px 2px rgba(17,24,39,.05), 0 24px 60px -18px rgba(17,24,39,.18), 0 8px 20px -10px rgba(17,24,39,.08);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #080B14; --card: #121728; --elev: #181E32; --border: #252C45;
  --pri: #7C5CFF; --sec: #00D4FF; --profit: #20E3A2; --loss: #FF5574; --warn: #FBBF24;
  --text: #F4F7FF; --muted: #9AA1BD; --grid: #1B2138;
  --lp-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 80px -20px rgba(0,0,0,.7), 0 10px 24px -12px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.s-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.s-root { min-height: 100vh; overflow-x: clip;
  background: radial-gradient(1100px 560px at 78% -8%, color-mix(in srgb, var(--pri) 9%, transparent), transparent 62%), var(--bg); }
.s-root a { color: var(--pri); text-decoration: none; }
.s-root a:hover { color: var(--sec); }
.s-root h1, .s-root h2, .s-root h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
.s-root p { margin: 0 0 12px; }
.s-root :focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; border-radius: 4px; }
.s-root ::selection { background: color-mix(in srgb, var(--pri) 30%, transparent); }
.s-wrap, .lp-wrap { max-width: calc(var(--lp-max) + var(--lp-pad) * 2); margin: 0 auto; padding-inline: var(--lp-pad); }
.s-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* The home page is also the app's document: while it opens an app screen the landing waits behind a spinner. */
.s-boot { display: none; }
.spa-route .s-boot { display: grid; place-items: center; min-height: 100vh; }
.spa-route [data-ssr] { display: none; }
.s-spinner { width: 34px; height: 34px; border-radius: 999px; border: 3px solid var(--border); border-top-color: var(--pri); animation: s-spin .8s linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }

.s-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--bg) !important; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.s-skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.s-btn, .lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); letter-spacing: -.1px; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--lp-ease), box-shadow .2s var(--lp-ease), background .2s, border-color .2s; }
.s-btn { height: 38px; padding: 0 16px; color: var(--text) !important; background: transparent; }
.s-btn:hover { background: var(--elev); }
.s-btn-pri, .lp-btn-solid { background: var(--text); border-color: var(--text); color: var(--bg) !important; }
.s-btn-pri:hover, .lp-btn-solid:hover { background: var(--text); color: var(--bg) !important; transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--text) 55%, transparent); }
.s-btn-lg, .lp-btn { height: 48px; padding: 0 24px; font-size: 15px; }
.lp-btn-quiet, .s-btn-quiet { color: var(--text) !important; border-color: var(--border); background: color-mix(in srgb, var(--card) 60%, transparent); }
.lp-btn-quiet:hover, .s-btn-quiet:hover { background: var(--card); border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.lp-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--lp-ease); }
.lp-btn:hover .lp-arrow, .s-btn:hover .lp-arrow, .lp-link:hover .lp-arrow, .lp-guides a:hover .lp-arrow { transform: translateX(3px); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- header: full-width translucent bar, a hairline appears once the page scrolls ---------- */
.s-nav { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--lp-line); }
@supports (animation-timeline: scroll()) {
  .s-nav { border-bottom-color: transparent; animation: lp-navline linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
}
@keyframes lp-navline { to { border-bottom-color: var(--lp-line); } }
.s-nav-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 700; font-size: 17px; letter-spacing: -.3px; }
.s-logo { display: block; border-radius: 7px; flex: none; }
.s-links { display: flex; gap: 24px; margin-left: 16px; }
.s-links a { color: var(--muted) !important; font-weight: 500; font-size: 14.5px; }
.s-links a:hover, .s-links a[aria-current="page"] { color: var(--text) !important; }
.s-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.s-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; margin-right: 2px; }
.s-lang a { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted) !important; }
.s-lang a[aria-current] { background: var(--elev); color: var(--text) !important; }
.s-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.s-icon:hover { background: var(--elev); color: var(--text); }
.s-moon, html[data-theme="dark"] .s-sun { display: inline; }
.s-sun, html[data-theme="dark"] .s-moon { display: none; }
.s-menu { display: none; position: relative; }
.s-menu summary { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; font-size: 16px; }
.s-menu summary::-webkit-details-marker { display: none; }
.s-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--lp-shadow); padding: 6px; }
.s-menu-pop a { padding: 10px 12px; border-radius: 10px; color: var(--text) !important; font-weight: 500; }
.s-menu-pop a:hover { background: var(--elev); }

/* ---------- home page (D-057) ---------- */
.lp { font-size: 15px; }
.lp-soft { color: var(--muted); }
.lp .pos { color: var(--profit); }

.lp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(40px, 6vw, 88px); align-items: center;
  padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(64px, 10vw, 128px); }
.lp-hero::before { content: ''; position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top; opacity: .5;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 35%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 35%, #000, transparent 75%); }
.lp-hero-copy { display: grid; gap: 24px; justify-items: start; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; color: var(--muted); }
.lp-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--pri); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri) 18%, transparent); }
.lp-h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -.032em; font-weight: 600; text-wrap: balance; }
.lp-h1 > span { display: block; }
/* The eyebrow lives inside the h1 (the page's search term), looking exactly like the label above the title. */
.lp-h1 > .lp-eyebrow { display: flex; letter-spacing: .02em; margin-bottom: 24px; }
.lp-dim { color: color-mix(in srgb, var(--muted) 82%, var(--bg)); }
.lp-lede { margin: 0; max-width: 34em; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.lp-hero-copy .lp-actions { margin-top: 6px; }
.lp-meta { margin: 0 !important; font-size: 13px; color: var(--muted); }

.lp-hero-art { position: relative; margin: 0; padding-left: 32px; }
.lp-sheet { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--lp-shadow); overflow: hidden;
  font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lp-sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--lp-line); }
.lp-sheet-top strong { font-weight: 600; }
.lp-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lp-stages { list-style: none; margin: 0; padding: 14px 20px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-stage { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 10px; position: relative; }
.lp-stage-bar { position: absolute; inset: 0 0 auto; height: 3px; border-radius: 3px; background: var(--elev); overflow: hidden; }
.lp-stage-bar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--pri); transform-origin: left; }
.lp-stage.is-now .lp-stage-bar::after { transform: scaleX(.45); opacity: .55; }
.lp-stage.is-done, .lp-stage.is-now { color: var(--text); }
.lp-stage svg { width: 13px; height: 13px; fill: none; stroke: var(--pri); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-kpis { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); padding: 18px 0 16px; }
.lp-kpi { display: grid; align-content: start; gap: 4px; padding: 0 20px; min-width: 0; }
.lp-kpi + .lp-kpi { border-left: 1px solid var(--lp-line); }
.lp-kpi-l { font-size: 12px; color: var(--muted); font-weight: 500; }
.lp-kpi-v { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.lp-kpi-s { font-size: 11.5px; color: var(--muted); }
.lp-spark { width: 100%; height: 40px; margin-top: 4px; overflow: visible; }
.lp-spark-line { fill: none; stroke: var(--profit); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lp-spark-zero { stroke: var(--lp-line); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.lp-rules { border-top: 1px solid var(--lp-line); padding: 14px 20px 4px; }
.lp-rules-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.lp-rules ul { list-style: none; margin: 0; padding: 0; }
.lp-rules li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.lp-rules li + li { border-top: 1px solid var(--lp-line); }
.lp-rules li > div { display: grid; gap: 1px; min-width: 0; }
.lp-rule { font-weight: 500; }
.lp-rule-note { font-size: 11.5px; color: var(--muted); }
.lp-state { --c: var(--muted); display: inline-flex; align-items: center; gap: 7px; flex: none; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: color-mix(in srgb, var(--c) 80%, var(--text)); background: color-mix(in srgb, var(--c) 11%, transparent); }
.lp-state i { width: 6px; height: 6px; border-radius: 999px; background: var(--c); }
.st-yes { --c: var(--profit); } .st-no { --c: var(--loss); } .st-pending { --c: var(--warn); } .st-na { --c: var(--muted); }
.lp-sheet-foot { display: grid; gap: 9px; padding: 12px 20px 16px; border-top: 1px solid var(--lp-line); font-size: 11.5px; color: var(--muted); }
.lp-cov { display: flex; gap: 3px; height: 6px; }
.lp-cov i { flex: var(--w) 1 0; border-radius: 999px; background: var(--c); }
.lp-cov .st-na { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.lp-cov .st-pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
/* Sits just under the sheet, overlapping its bottom edge, so it never hides the sheet's own content. */
.lp-float { position: relative; z-index: 2; margin: -12px 0 0 -32px; width: min(290px, 72%); display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--lp-shadow); }
.lp-float p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; }
@property --lp-p { syntax: '<number>'; inherits: false; initial-value: 0; }
.lp-ring { width: 54px; height: 54px; flex: none; border-radius: 999px; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--pri) calc(var(--lp-p) * 1%), var(--elev) 0); }
.lp-ring::before { content: ''; position: absolute; inset: 5px; border-radius: inherit; background: var(--card); }
.lp-ring span { position: relative; font-size: 16px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Sections: a hairline between them, aligned with the content column rather than the padded box. */
.lp-sec { padding-block: clamp(64px, 9vw, 120px);
  background: linear-gradient(var(--lp-line), var(--lp-line)) top center / calc(100% - var(--lp-pad) * 2) 1px no-repeat; }
.lp-sec-tight { padding-block: 0 clamp(64px, 8vw, 104px); background: none; }
.lp-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.lp-label { display: flex; align-items: center; gap: 12px; margin: 0 !important; font-size: 13px; font-weight: 600; color: var(--muted); }
.lp-label span { font-variant-numeric: tabular-nums; color: var(--pri); }
.lp-h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08 !important; letter-spacing: -.028em !important; font-weight: 600; text-wrap: balance; }
.lp-body { margin: 0 !important; font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.65; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.lp-head .lp-body { margin-top: 4px !important; }

.lp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.lp-flow-step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 28px; border-top: 1px solid var(--border); }
.lp-flow-step::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 56px; background: var(--pri); }
.lp-flow-n { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-flow-step h3 { font-size: 24px; letter-spacing: -.02em; }
.lp-flow-step p { margin: 0; color: var(--muted); line-height: 1.62; text-wrap: pretty; }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.lp-split .lp-head { margin-bottom: 24px; }
.lp-flip > :first-child { order: 2; }
.lp-split-top { align-items: start; }
.lp-more { margin: 24px 0 0 !important; }
.lp-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text) !important; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.lp-link:hover { border-color: var(--text); }
.lp-panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--lp-shadow); padding: 22px; display: grid; gap: 18px;
  font-variant-numeric: tabular-nums; }
.lp-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.lp-cov-lg { height: 12px; gap: 4px; }
.lp-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.lp-legend li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lp-legend b { font-size: 15px; font-weight: 600; }
.lp-panel-line { margin: 0 !important; font-size: 12.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--lp-line); }
.lp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-tile { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 14px; background: var(--elev); }
.lp-tile-note { font-size: 12px; line-height: 1.45; color: var(--muted); }
/* Prop firm panel: how much of each limit is used. */
.lp-meters { list-style: none; margin: 0; padding: 0; display: grid; }
.lp-meters li { display: grid; gap: 8px; padding: 12px 0; }
.lp-meters li + li { border-top: 1px solid var(--lp-line); }
.lp-meters li > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.lp-meters span { color: var(--muted); }
.lp-meters b { font-weight: 600; }
.lp-bar { display: block; height: 6px; border-radius: 999px; background: var(--elev); overflow: hidden; }
.lp-bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--pri); }

.lp-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.lp-group-t { font-size: 13px !important; font-weight: 600; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--border); letter-spacing: normal !important; }
.lp-group ul { list-style: none; margin: 0; padding: 0; }
.lp-group li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; }
.lp-group li + li { border-top: 1px solid var(--lp-line); }
.lp-group .ico { margin-top: 1px; color: var(--muted); transition: color .2s; }
.lp-group li:hover .ico { color: var(--pri); }
.lp-group li > div { display: grid; gap: 3px; }
.lp-group strong { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.lp-group span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Guides: one hairline row per guide. */
.lp-guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.lp-guides li { border-bottom: 1px solid var(--lp-line); }
.lp-guides a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px 32px; align-items: center; padding: 22px 0; color: var(--text) !important; }
.lp-guides h3 { font-size: 19px; letter-spacing: -.015em; }
.lp-guides span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.lp-guides .lp-arrow { color: var(--muted); }
.lp-guides a:hover h3 { color: var(--pri); }

/* FAQ: native details, hairlines between questions. */
.lp-faq { border-top: 1px solid var(--border); }
.lp-faq details { border-bottom: 1px solid var(--lp-line); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--lp-ease); }
.lp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lp-faq summary h3 { display: inline; font-size: 17px; letter-spacing: -.01em; }
.lp-faq-a { padding: 0 40px 20px 0; color: var(--muted); line-height: 1.65; }
.lp-faq-a p:last-child { margin: 0; }

.lp-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.lp-principles li { padding-top: 22px; border-top: 1px solid var(--lp-line); }
.lp-principles h3 { font-size: 17px; letter-spacing: -.012em; margin-bottom: 8px; }
.lp-principles p { margin: 0; color: var(--muted); line-height: 1.6; }

.lp-end { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 20px;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px); border: 1px solid var(--border); border-radius: 28px;
  background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--pri) 10%, transparent), transparent 70%), var(--card); }
.lp-end::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45; -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%); }
.lp-end > * { position: relative; }
.lp-end-mark svg { width: 44px; height: 44px; border-radius: 11px; display: block; box-shadow: 0 8px 24px -8px rgba(0,0,0,.45); }
.lp-end .lp-body { max-width: 30em; }
.lp-end .lp-actions { justify-content: center; margin-top: 4px; }

/* Motion: a single entrance on load, then sections settle in as they scroll into view. Nothing moves for people
   who ask for reduced motion, and browsers without scroll timelines simply show everything. */
@keyframes lp-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes lp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lp-fill { from { --lp-p: 0; } }
@keyframes lp-fade { from { opacity: 0; } }
@keyframes lp-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) {
  .lp-intro .lp-hero-copy > * { animation: lp-in .9s var(--lp-ease) both; }
  .lp-intro .lp-hero-copy > :nth-child(2) { animation-delay: .1s; }
  .lp-intro .lp-hero-copy > :nth-child(3) { animation-delay: .18s; }
  .lp-intro .lp-hero-copy > :nth-child(4) { animation-delay: .26s; }
  .lp-intro .lp-sheet { animation: lp-in 1.1s .2s var(--lp-ease) both; }
  .lp-intro .lp-float { animation: lp-in 1s .55s var(--lp-ease) both; }
  .lp-intro .lp-spark-line { stroke-dasharray: 1; animation: lp-draw 1.6s .7s var(--lp-ease) both; }
  .lp-intro .lp-spark-area { animation: lp-fade 1s 1.3s both; }
  .lp-intro .lp-ring { animation: lp-fill 1.4s .8s var(--lp-ease) both; }
  .lp-intro .lp-stage.is-done .lp-stage-bar::after { animation: lp-grow .8s .5s var(--lp-ease) both; }
  .lp-intro .lp-stage.is-done + .lp-stage.is-done .lp-stage-bar::after { animation-delay: .75s; }
  @supports (animation-timeline: view()) {
    .lp-reveal { animation: lp-rise linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
    .lp-flow-step:nth-child(2), .lp-group:nth-child(2), .lp-principles li:nth-child(2) { animation-range: entry 10% entry 62%; }
    .lp-flow-step:nth-child(3), .lp-group:nth-child(3), .lp-principles li:nth-child(3) { animation-range: entry 15% entry 68%; }
    .lp-group:nth-child(4) { animation-range: entry 20% entry 74%; }
    .lp-flow-step::before { animation: lp-grow linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; transform-origin: left; }
  }
}

/* ---------- guides, hub and 404 ---------- */
.s-main { display: block; }
.s-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .02em; margin-bottom: 18px !important; }
.s-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--pri); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri) 18%, transparent); }
.s-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.62; max-width: 38em; text-wrap: pretty; }
.s-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.s-card { display: grid; align-content: start; gap: 10px; padding: 24px 0 28px; border-top: 1px solid var(--border); color: var(--text) !important; }
.s-card-kicker { color: var(--muted); font-size: 13px; font-weight: 500; }
.s-card-title { font-size: 21px !important; letter-spacing: -.02em !important; line-height: 1.2 !important; }
.s-card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.55; }
.s-card-more { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14.5px; margin-top: 4px; }
a.s-card:hover .s-card-title { color: var(--pri); }

.s-crumbs { padding-top: 28px; font-size: 13.5px; }
.s-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.s-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.s-crumbs a { color: var(--muted) !important; }
.s-crumbs a:hover { color: var(--text) !important; }
.s-crumbs [aria-current] { color: var(--text); display: inline-block; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.s-article-head { max-width: 860px; padding: clamp(36px, 6vw, 64px) 0 16px; }
.s-article-head h1, .s-hub-head h1, .s-404 h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -.032em; text-wrap: balance; margin-bottom: 20px; }
.s-meta { color: var(--muted); font-size: 14px; }
.s-article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: 28px; border-top: 1px solid var(--lp-line); margin-top: 20px; }
.s-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.s-toc-h { font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 12px !important; }
.s-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.s-toc li { counter-increment: toc; }
.s-toc a { display: grid; grid-template-columns: 24px 1fr; padding: 5px 0; color: var(--muted) !important; line-height: 1.4; }
.s-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--pri); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 1px; }
.s-toc a:hover { color: var(--text) !important; }

.s-prose { max-width: 720px; font-size: 17.5px; line-height: 1.75; }
.s-prose > :first-child { margin-top: 0; }
.s-prose h2 { font-size: clamp(25px, 2.8vw, 32px); letter-spacing: -.025em; line-height: 1.15; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--lp-line); }
.s-prose h3 { font-size: 20px; margin: 34px 0 10px; }
.s-prose p, .s-prose ul, .s-prose ol { margin: 0 0 20px; }
.s-prose ul, .s-prose ol { padding-left: 22px; }
.s-prose li { margin-bottom: 8px; }
.s-prose li::marker { color: var(--muted); }
.s-prose strong { font-weight: 650; }
.s-prose a { color: var(--text) !important; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--pri) 60%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.s-prose a:hover { text-decoration-color: var(--pri); }
.s-prose .s-intro { font-size: 20px; color: var(--muted); line-height: 1.6; }
.s-prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; display: block; overflow-x: auto; font-variant-numeric: tabular-nums; }
.s-prose th, .s-prose td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--lp-line); vertical-align: top; }
.s-prose th { font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom-color: var(--border); }
.s-prose code, .s-formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.s-formula { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin: 0 0 22px; overflow-x: auto; white-space: nowrap; }
.s-note { border-left: 2px solid var(--pri); background: color-mix(in srgb, var(--pri) 6%, transparent); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 0 0 24px; }
.s-note p:last-child, .s-note ul:last-child { margin-bottom: 0; }
.s-note.s-warn-note { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.s-keys { display: grid; margin: 0 0 24px; padding: 0 !important; list-style: none; border-top: 1px solid var(--border); }
.s-keys li { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--lp-line); }

.s-cta-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin: 64px 0 0; padding: clamp(28px, 4vw, 44px); border-radius: 24px; border: 1px solid var(--border);
  background: radial-gradient(520px 240px at 0% 0%, color-mix(in srgb, var(--pri) 10%, transparent), transparent 70%), var(--card); }
.s-cta-box > div { max-width: 600px; }
.s-cta-box-h { font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 8px !important; }
.s-cta-box p:last-child { color: var(--muted); margin: 0; }
.s-related { padding: clamp(56px, 8vw, 96px) 0 0; }
.s-h2-sm { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.025em; margin-bottom: 24px !important; }
.s-hub-head { max-width: 780px; padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 5vw, 56px); }
.s-404 { padding: clamp(48px, 8vw, 96px) 0 0; }
.s-404 .s-row { margin: 12px 0 64px; }

/* ---------- footer ---------- */
.s-foot { margin-top: clamp(64px, 9vw, 120px); padding: clamp(48px, 6vw, 72px) 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14.5px;
  background: linear-gradient(var(--lp-line), var(--lp-line)) top center / calc(100% - var(--lp-pad) * 2) 1px no-repeat; }
.s-foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.s-foot-about p { color: var(--muted); margin-top: 14px; max-width: 32ch; line-height: 1.55; }
.s-foot-h { font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 14px !important; }
.s-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s-foot ul a { color: var(--text) !important; }
.s-foot ul a:hover { color: var(--pri) !important; }
.s-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--lp-line); max-width: 72em; }
.s-copy { color: var(--muted); font-size: 12.5px; }

/* ---------- narrow screens ---------- */
@media (max-width: 1040px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-copy { max-width: 680px; }
  .lp-h1 { font-size: clamp(38px, 7vw, 64px); }
  .lp-hero-art { width: min(100%, 620px); }
  .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-flip > :first-child { order: 0; }
  .lp-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-guides a { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-guides span { grid-column: 1; grid-row: 2; }
  .lp-guides .lp-arrow { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 980px) {
  .s-links, .s-login { display: none; }
  .s-menu { display: block; }
  .s-article-grid { grid-template-columns: minmax(0, 1fr); }
  .s-toc { position: static; max-height: none; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
  .s-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-foot-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .lp-flow, .lp-principles { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-art { padding: 0; }
  .lp-float { margin: -12px 12px 0 auto; width: min(290px, 88%); }
}
@media (max-width: 560px) {
  .s-nav-in { gap: 8px; min-height: 58px; }
  .s-brand { font-size: 16px; }
  .s-acts { gap: 4px; }
  .s-acts .s-btn-pri { padding: 0 14px; height: 36px; font-size: 13.5px; }
  .s-lang a { padding: 3px 8px; }
  .s-icon { width: 32px; }
  .lp-index { grid-template-columns: minmax(0, 1fr); }
  .lp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; padding-top: 16px; }
  .lp-kpi-pl { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--lp-line); }
  .lp-kpi-pl + .lp-kpi { border-left: 0; }
  .lp-sheet-top, .lp-rules, .lp-sheet-foot, .lp-stages, .lp-kpi { padding-inline: 16px; }
  .lp-panel { padding: 18px; }
  .s-crumbs li:last-child { display: none; }
  .s-prose { font-size: 17px; }
  .s-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-cta-box .s-btn { width: 100%; }
}
@media (max-width: 480px) {
  .lp-hero { padding-top: 36px; gap: 48px; }
  .lp-hero-copy { gap: 20px; }
  .lp-h1 { letter-spacing: -.04em; }
  .lp-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .lp-tiles { grid-template-columns: minmax(0, 1fr); }
  .lp-end { border-radius: 22px; }
}
@media (max-width: 380px) {
  .s-brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .s-spinner { animation-duration: 2s; }
}
