/* Signal pages, analytics group: /next/product (overview), dashboards, reports, forecasts, data health.
   Prefix sa-. Scenes are driven by signal-analytics.js (sa-seq sets .on and --q); without JS every piece shows its
   final state, because --q falls back to 1 and nothing is hidden until .sa-live is set. */

/* =============================================================== shared */
.sa-hero { position: relative; height: 300vh; background: var(--sg-ink); color: var(--sg-on-ink); margin-top: calc(-1 * var(--film-header-h, var(--w-header-h))); }
.sa-hero > .sg-pin { display: flex; align-items: center; padding-top: var(--w-header-h); }
.sa-hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4.5vw, 5rem); align-items: center; width: 100%; }
.sa-hero .sg-h1 { font-size: clamp(2.5rem, 4.8vw, 5rem); color: var(--sg-on-ink); }
.sa-hero .sg-kicker { color: var(--sg-on-ink-dim); }
.sa-hero .sg-lead { color: var(--sg-on-ink-dim); }
.sa-hero .sg-fig { color: var(--sg-on-ink-faint); }
.sa-hero .sg-fig b { color: var(--sg-on-ink-dim); }
.sa-hero .sg-lead { font-size: clamp(0.98rem, 1.12vw, 1.08rem); max-width: 31rem; }
.sa-hero .sg-actions { margin-top: 1.6rem; }
.sa-hero .sg-crumbs span:last-child { color: var(--sg-on-ink-dim); }
.sa-pinned { position: relative; }
.sa-pinned > .sg-pin { display: flex; align-items: center; padding-top: var(--w-header-h); }
.sa-two { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(2rem, 4.5vw, 5rem); align-items: center; width: 100%; }
.sa-copy .sg-h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
.sa-copy .sg-lead { font-size: clamp(0.98rem, 1.12vw, 1.08rem); }
.sa-draw { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--q, 1)); }
.sa-in { transition: opacity 0.55s var(--sg-out), transform 0.65s var(--sg-out); }
.sa-live .sa-in:not(.on) { opacity: 0; transform: translateY(10px); }
.sa-list { list-style: none; margin: 1.7rem 0 0; padding: 0; display: grid; gap: 0.2rem; max-width: 30rem; }
.sa-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.4rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid var(--sg-hair-paper); font-size: 0.95rem; line-height: 1.45; transition: opacity 0.5s var(--sg-out), color 0.4s; }
.sg-ink .sa-list li { border-top-color: var(--sg-hair-ink); color: var(--sg-on-ink); }
.sa-list li small { font: 600 0.64rem/1 var(--mono); letter-spacing: 0.1em; color: var(--sg-dim); }
.sg-ink .sa-list li small { color: var(--sg-on-ink-faint); }
.sa-live .sa-list li:not(.on) { opacity: 0.32; }
.sa-list li.on small { color: #5b3fd6; }
.sg-ink .sa-list li.on small { color: #b9a6ff; }
.sa-mark { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.55rem; border-radius: 7px; font: 600 0.66rem/1.2 var(--mono); white-space: nowrap; background: var(--sg-text); color: #fff; box-shadow: 0 10px 24px -14px rgba(0,0,0,0.5); }
.sa-made { font: 500 0.62rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a94; }

/* =============================================================== overview: the stack */
.sa-stk-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.4rem; align-items: center; }
.sa-stk { position: relative; height: min(68vh, 590px); perspective: 2000px; }
.sa-stk-3d { position: absolute; left: 50%; top: 77%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-38deg); }
.sa-ly { --gap: 106px; position: absolute; left: -150px; top: -104px; width: 300px; height: 208px; border-radius: 16px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * var(--gap) + (1 - var(--q, 1)) * 34px));
  background: linear-gradient(160deg, rgba(34, 34, 52, 0.92), rgba(16, 16, 26, 0.92)); border: 1px solid rgba(255, 255, 255, calc(0.08 + var(--q, 1) * 0.16));
  box-shadow: 0 0 0 1px rgba(139, 108, 255, calc(var(--q, 1) * 0.25)), 0 30px 50px -20px rgba(0, 0, 0, 0.7); }
.sa-ly-in { position: absolute; inset: 14px; opacity: calc(0.15 + var(--q, 1) * 0.85); transition: opacity 0.3s; }
.sa-l-connect { display: flex; align-items: center; justify-content: space-around; }
.sa-l-connect svg { width: 46px; height: 46px; fill: #ecebf2; }
.sa-l-cat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: center; }
.sa-l-cat span { font: 600 10px/1 var(--mono); letter-spacing: -0.03em; color: #c9c3ff; padding: 7px 1px; border-radius: 6px; background: rgba(139, 108, 255, 0.14); text-align: center; white-space: nowrap; overflow: hidden; }
.sa-l-eng { width: calc(100% - 28px); height: calc(100% - 28px); }
.sa-l-eng .bd { fill: rgba(224, 106, 215, 0.22); }
.sa-l-eng .hl { fill: none; stroke: #8b6cff; stroke-width: 5; stroke-linejoin: round; }
.sa-l-eng .fl { fill: none; stroke: #e06ad7; stroke-width: 4; stroke-dasharray: 9 8; }
.sa-l-eng .un { fill: #ff6b6b; }
.sa-l-eng .td { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; stroke-dasharray: 3 6; }
.sa-l-see { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 46px 1fr; gap: 8px; }
.sa-l-see i { border-radius: 7px; background: rgba(255, 255, 255, 0.1); }
.sa-l-see b { grid-column: 1 / 3; border-radius: 7px; background: linear-gradient(180deg, rgba(79, 107, 255, 0.4), rgba(79, 107, 255, 0.06)); }
.sa-l-see em { border-radius: 50%; border: 9px solid rgba(47, 207, 148, 0.75); border-right-color: rgba(255, 255, 255, 0.12); align-self: center; justify-self: center; width: 64px; height: 64px; }
.sa-l-ext { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 8px 12px; border-radius: 10px; background: #050508; font: 600 11px/1.2 var(--mono); color: #8a8a99; }
.sa-l-ext .o { color: #2fcf94; }
.sa-chip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateZ(3px); padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  font: 700 12px/1 var(--mono); color: #0b0b10; background: #fff; box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.45), 0 0 30px 6px rgba(139, 108, 255, 0.45);
  transition: opacity 0.4s var(--sg-out); }
.sa-live .sa-chip:not(.on) { opacity: 0; }
.sa-thread { position: absolute; left: -2px; top: 0; width: 4px; height: calc(4 * 106px); transform-origin: 50% 0; transform: rotateX(90deg); }
.sa-thread i { display: block; width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--q, 1)); background: linear-gradient(180deg, #4f6bff, #8b6cff, #e06ad7); box-shadow: 0 0 18px 2px rgba(139, 108, 255, 0.8); border-radius: 4px; }
.sa-stk-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.sa-k { padding: 0.7rem 0; border-top: 1px solid var(--sg-hair-ink); transition: opacity 0.5s var(--sg-out); }
.sa-live .sa-k:not(.on) { opacity: 0.22; }
.sa-k small { display: block; font: 600 0.62rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #b9a6ff; }
.sa-k b { display: block; margin-top: 0.35rem; font-size: 0.92rem; letter-spacing: -0.01em; color: #fff; }
.sa-k span { display: block; margin-top: 0.2rem; font-size: 0.78rem; line-height: 1.45; color: var(--sg-on-ink-dim); }
.sa-k .sg-pill { margin-top: 0.4rem; font-style: normal; }
.sa-stk-fig { grid-column: 1 / -1; margin: 0.4rem 0 0; }

/* overview: one number, five places */
.sa-same { height: 260vh; }
.sa-same-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2rem, 6vh, 3.6rem); }
.sa-same-head .sg-h2 { font-size: clamp(2rem, 3.8vw, 3.8rem); max-width: 14ch; }
.sa-same-head .sg-lead { margin: 0; max-width: 27rem; }
.sa-same-row { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.6rem); align-items: start; }
.sa-same-line { position: absolute; left: 0; right: 0; top: 102px; width: 100%; height: 20px; z-index: 0; pointer-events: none; }
.sa-same-line line { stroke: #8b6cff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sa-pl { margin: 0; position: relative; z-index: 1; transition: opacity 0.5s var(--sg-out), transform 0.6s var(--sg-out); }
.sa-live .sa-pl:not(.on) { opacity: 0.25; transform: translateY(12px); }
.sa-pl-box { height: 224px; border-radius: 14px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); box-shadow: 0 20px 40px -30px rgba(18, 18, 24, 0.5); padding: 0.85rem; position: relative; overflow: hidden; font-size: 0.86rem; color: #2b2a31; }
.sa-pl figcaption { margin-top: 0.8rem; font-size: 0.8rem; line-height: 1.45; color: var(--sg-dim); }
.sa-pl figcaption b { display: block; color: var(--sg-text); font-size: 0.9rem; margin-bottom: 0.15rem; }
.sa-pl figcaption .sg-pill { margin-top: 0.4rem; }
.sa-hit { transition: box-shadow 0.4s, background 0.4s; border-radius: 6px; }
.sa-pl.on .sa-hit { box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.35); background: rgba(139, 108, 255, 0.12); }
.sa-pl-dash small { display: block; font: 600 0.62rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #77767f; }
.sa-pl-dash .sa-hit { display: inline-block; margin-top: 0.8rem; font: 800 2.6rem/1 var(--sans); letter-spacing: -0.04em; color: #121218; padding: 0 0.15em; }
.sa-pl-dash em { display: block; margin-top: 0.4rem; font: 600 0.62rem/1 var(--mono); font-style: normal; color: #128a5f; }
.sa-pl-dash svg { position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.9rem; width: calc(100% - 1.7rem); height: 54px; }
.sa-pl-dash path { fill: none; stroke: #5b3fd6; stroke-width: 2; }
.sa-pl-rep { background: #fbfaf6; }
.sa-pl-rep small { font: 600 0.56rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; }
.sa-pl-rep h6 { margin: 0.7rem 0 0.4rem; font: 800 1.1rem/1 var(--sans); }
.sa-pl-rep p { margin: 0; font-size: 0.82rem; line-height: 1.5; }
.sa-pl-rep .sa-hit { padding: 0 0.15em; }
.sa-pl-rep i { display: block; height: 5px; border-radius: 3px; background: #e6e4dc; margin-top: 0.45rem; width: 80%; }
.sa-pl-rep i + i { width: 56%; }
.sa-pl-goal { display: flex; align-items: center; gap: 0.7rem; }
.sa-pl-goal svg { width: 84px; height: 84px; flex: none; transform: rotate(-90deg); }
.sa-pl-goal circle { fill: none; stroke: #ecebf0; stroke-width: 8; }
.sa-pl-goal circle.v { stroke: #2fcf94; stroke-dasharray: 100; stroke-dashoffset: 0; }
.sa-pl-goal small { display: block; font: 600 0.58rem/1.3 var(--mono); color: #77767f; text-transform: uppercase; letter-spacing: 0.05em; }
.sa-pl-goal .sa-hit { display: inline-block; margin-top: 0.4rem; font: 800 2rem/1 var(--sans); letter-spacing: -0.04em; padding: 0 0.12em; }
.sa-pl-goal em { display: block; margin-top: 0.35rem; font-style: normal; font: 600 0.58rem/1.3 var(--mono); color: #128a5f; }
.sa-pl-buddy .q { display: block; width: fit-content; margin-left: auto; max-width: 92%; padding: 0.45rem 0.65rem; border-radius: 10px 10px 3px 10px; background: #f1f0f5; font-size: 0.8rem; }
.sa-pl-buddy p { display: flex; gap: 0.55rem; margin: 0.8rem 0 0; font-size: 0.82rem; line-height: 1.5; }
.sa-pl-buddy p i { width: 18px; height: 18px; border-radius: 6px; flex: none; background: conic-gradient(from 200deg, #4f6bff, #8b6cff, #e06ad7, #4f6bff); }
.sa-pl-buddy .sa-hit { padding: 0 0.15em; }
.sa-pl-mcp { background: #0b0b10; color: #8a8a99; display: flex; flex-direction: column; gap: 0.7rem; justify-content: center; font: 600 0.76rem/1.35 var(--mono); }
.sa-pl-mcp .o { color: #2fcf94; }
.sa-pl-mcp .o .sa-hit { color: #fff; padding: 0 0.2em; }
.sa-pl-mcp .d { color: #55556a; }
.sa-same-fig { margin-top: clamp(1.6rem, 4vh, 2.6rem); }
.sa-rowhead { list-style: none; padding: 1.6rem 0 0.7rem; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sg-on-ink-faint); border-bottom: 1px solid var(--sg-hair-ink); }

/* =============================================================== dashboards: the board builds itself */
.sa-hero-db .sa-hero-grid { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
.sa-bd { position: relative; border-radius: 18px; padding: 14px; background: linear-gradient(180deg, #12121c, #0c0c14); border: 1px solid var(--sg-hair-ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 108, 255, 0.08); }
.sa-bd-top { display: flex; align-items: baseline; gap: 0.8rem; padding: 2px 4px 12px; font-size: 0.82rem; color: #fff; }
.sa-bd-top span { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-on-ink-faint); }
.sa-bd-save { margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; font: 600 0.62rem/1 var(--mono); font-style: normal; color: var(--sg-up); }
.sa-bd-save svg { width: 12px; height: 12px; }
.sa-bd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
.sa-w { position: relative; border-radius: 12px; padding: 11px 12px; background: #171722; border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: var(--q, 1); transform: translate(calc(var(--fx, 0px) * (1 - var(--q, 1))), calc(var(--fy, 0px) * (1 - var(--q, 1)))) scale(calc(0.94 + var(--q, 1) * 0.06)); }
.sa-w.w-k1, .sa-w.w-k2, .sa-w.w-k3, .sa-w.w-k4 { grid-column: span 3; }
.sa-w.w-line { grid-column: span 7; }
.sa-w.w-fun { grid-column: span 5; }
.sa-w.w-heat { grid-column: span 5; }
.sa-w.w-tab { grid-column: span 7; }
.sa-w small { display: block; font: 600 0.56rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-on-ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-w > b { display: block; margin-top: 0.45rem; font: 800 1.45rem/1 var(--sans); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.sa-w > em { display: block; margin-top: 0.35rem; font: 600 0.6rem/1 var(--mono); font-style: normal; color: var(--sg-up); }
.sa-w h6 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.5rem; font: 700 0.74rem/1.2 var(--sans); color: #fff; }
.sa-w h6 small { display: inline; font-size: 0.52rem; }
.sa-w.w-line svg { display: block; width: 100%; height: 132px; }
.sa-w.w-line .ax line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sa-w.w-line .l1 { fill: none; stroke: #8b6cff; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sa-w.w-line .l2 { fill: none; stroke: #e06ad7; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sa-axes { position: absolute; left: 12px; right: 12px; top: 34px; height: 132px; display: flex; justify-content: space-between; pointer-events: none; font: 500 0.5rem/1 var(--mono); color: rgba(255, 255, 255, 0.35); }
.sa-axes span { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 2px 0; }
.sa-axes i { font-style: normal; }
.sa-axes span:first-child { color: #b9a6ff; }
.sa-axes span:last-child { color: #f0a6ea; text-align: right; }
.sa-leg { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0.5rem 0 0; font: 500 0.58rem/1.2 var(--mono); color: var(--sg-on-ink-dim); }
.sa-leg i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 0.4rem; vertical-align: 2px; }
.sa-leg i.c1 { background: #8b6cff; } .sa-leg i.c2 { background: #e06ad7; } .sa-leg i.c3 { background: #9a99a6; } .sa-leg i.c4 { background: #ff6b6b; height: 8px; width: 8px; border-radius: 50%; vertical-align: 0; }
.sa-fun { display: grid; gap: 7px; }
.sa-fun span { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) 3.4rem; gap: 0.5rem; align-items: center; font-size: 0.66rem; color: var(--sg-on-ink-dim); }
.sa-fun b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-fun i { display: block; height: 10px; border-radius: 3px; min-width: 4px; width: calc(var(--w) * var(--q, 1)); background: linear-gradient(90deg, #4f6bff, #8b6cff); }
.sa-fun em { font: 600 0.62rem/1 var(--mono); font-style: normal; color: #fff; text-align: right; }
.sa-heat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sa-heat i { aspect-ratio: 1.5; border-radius: 3px; background: rgba(139, 108, 255, calc(0.08 + var(--v) * 0.82)); transition: opacity 0.4s, transform 0.4s var(--sg-out); }
.sa-live .sa-heat i:not(.on) { opacity: 0; transform: scale(0.6); }
.sa-tab { width: 100%; border-collapse: collapse; font-size: 0.66rem; color: var(--sg-on-ink-dim); }
.sa-tab th { text-align: left; font: 600 0.52rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-on-ink-faint); padding: 0 0 6px; }
.sa-tab td { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sa-tab td:first-child { color: #fff; }
.sa-tab th:not(:first-child), .sa-tab td:not(:first-child) { text-align: right; }
.sa-tab td i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 0.45rem; }
.sa-tab td i.mt { background: #4f6bff; } .sa-tab td i.tt { background: #e06ad7; }
.sa-tab td.up { color: var(--sg-up); } .sa-tab td.dn { color: var(--sg-down); }
.sa-bd-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 14px 4px 0; }
.sa-bd-foot .sg-fig { margin: 0; }
.sa-bd-grid { background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: calc((100% + 10px) / 12) 100%; background-position: -1px 0; min-height: 420px; align-content: start; }

/* dashboards: the worksheet */
.sa-ratio { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; overflow: hidden; }
.sa-ws { position: relative; border-radius: 16px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); box-shadow: 0 30px 60px -40px rgba(18, 18, 24, 0.45); padding: 1.1rem 1.2rem 1.3rem; }
.sa-ws-h, .sa-ws-r { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.8fr); gap: 0.8rem; align-items: center; }
.sa-ws-h { padding: 0 0 0.6rem; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; border-bottom: 1px solid rgba(18, 18, 24, 0.1); }
.sa-ws-r { position: relative; padding: 0.75rem 0; border-bottom: 1px solid rgba(18, 18, 24, 0.07); font-size: 0.9rem; font-variant-numeric: tabular-nums; color: #2b2a31; }
.sa-ws-h span:not(:first-child), .sa-ws-r span:not(:first-child) { text-align: right; }
.sa-ws-r.bad s { color: #c9473f; text-decoration-thickness: 2px; font-weight: 700; }
.sa-ws-r.good { border-bottom: 0; background: linear-gradient(90deg, rgba(91, 63, 214, 0.08), rgba(91, 63, 214, 0)); margin: 0 -0.6rem; padding: 0.85rem 0.6rem; border-radius: 10px; }
.sa-ws-r.good b { font: 800 1.2rem/1 var(--sans); color: #5b3fd6; letter-spacing: -0.02em; }
.sa-ws-r .sa-ws-m { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; white-space: normal; text-align: left !important; }
.sa-rules { margin-top: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--sg-hair-paper); }
.sa-rule { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--sg-hair-paper); font-size: 0.95rem; line-height: 1.45; color: #2b2a31; }
.sa-rule b { font-weight: 700; color: var(--sg-text); }
.sa-rule-h { font: 600 0.62rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a94; padding: 0.9rem 0; }

/* dashboards: specimen sheet */
.sa-sheet { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; overflow: hidden; }
.sa-sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.2rem, 6vh, 3.5rem); }
.sa-sheet-head .sg-h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.sa-sheet-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--sg-hair-ink); border-left: 1px solid var(--sg-hair-ink); }
.sa-gl { margin: 0; padding: 1rem 1rem 0.9rem; border-right: 1px solid var(--sg-hair-ink); border-bottom: 1px solid var(--sg-hair-ink); --c: #8b6cff; color: var(--c); transition: background 0.5s; }
.sa-gl.k1 { --c: #2fcf94; } .sa-gl.k2 { --c: #9d86ff; } .sa-gl.k3 { --c: #e06ad7; } .sa-gl.k4 { --c: #f2a93b; }
.sa-gl svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; overflow: visible; transition: opacity 0.5s var(--sg-out); }
.sa-gl .s { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sa-gl .t { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; }
.sa-gl .a { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.sa-gl .f { fill: currentColor; }
.sa-gl .f2 { fill: currentColor; opacity: 0.35; }
.sa-gl .dn { fill: #ff6b6b; }
.sa-gl .b { fill: currentColor; opacity: 0.3; } .sa-gl .b2 { fill: currentColor; opacity: 0.55; }
.sa-gl .hole { fill: #07070b; }
.sa-gl text { fill: #fff; font: 800 26px/1 var(--sans); letter-spacing: -0.03em; }
.sa-gl figcaption { display: flex; gap: 0.6rem; align-items: baseline; margin-top: 0.7rem; font-size: 0.8rem; color: #fff; transition: opacity 0.5s var(--sg-out); }
.sa-gl figcaption small { font: 600 0.58rem/1 var(--mono); letter-spacing: 0.08em; color: var(--sg-on-ink-faint); }
.sa-live .sa-gl:not(.on) svg { opacity: 0.12; }
.sa-live .sa-gl:not(.on) figcaption { opacity: 0.3; }
.sa-gl.on { background: rgba(255, 255, 255, 0.02); }
.sa-sheet-key { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: 1.2rem 1.4rem; border-right: 1px solid var(--sg-hair-ink); border-bottom: 1px solid var(--sg-hair-ink); font: 500 0.66rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-on-ink-dim); }
.sa-sheet-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.6rem; vertical-align: -1px; }
.sa-sheet-key i.k1 { background: #2fcf94; } .sa-sheet-key i.k2 { background: #9d86ff; } .sa-sheet-key i.k3 { background: #e06ad7; } .sa-sheet-key i.k4 { background: #f2a93b; }

/* dashboards: compare, forecast, read */
.sa-cmp { height: 300vh; }
.sa-cmp .sa-cmp-grid { grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr); }
.sa-fs { border-radius: 18px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); box-shadow: 0 40px 80px -50px rgba(18, 18, 24, 0.55); padding: 1.1rem 1.2rem 1.2rem; }
.sa-fs-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.86rem; }
.sa-fs-top b { margin-right: auto; color: var(--sg-text); }
.sa-tg { padding: 0.36rem 0.62rem; border-radius: 999px; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.04em; border: 1px solid rgba(18, 18, 24, 0.14); color: #6a6973; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.sa-tg.on { background: #121218; color: #fff; border-color: #121218; }
.sa-fs-kpi { display: flex; align-items: baseline; gap: 0.8rem; margin: 0.8rem 0 0.2rem; }
.sa-fs-kpi b { font: 800 2.1rem/1 var(--sans); letter-spacing: -0.04em; color: #121218; }
.sa-fs-kpi em { font: 600 0.7rem/1 var(--mono); font-style: normal; color: #128a5f; padding: 0.3rem 0.5rem; border-radius: 6px; background: rgba(47, 207, 148, 0.14); }
.sa-fs-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sa-fs-svg .ax line { stroke: rgba(18, 18, 24, 0.08); }
.sa-fs-svg .cur { fill: none; stroke: #5b3fd6; stroke-width: 2.6; stroke-linejoin: round; }
.sa-fs-svg .prev { fill: none; stroke: #a5a4ae; stroke-width: 2; stroke-linejoin: round; }
.sa-fs-svg .band { fill: rgba(224, 106, 215, 0.16); opacity: var(--q, 1); }
.sa-fs-svg .fc { fill: none; stroke: #c94fc0; stroke-width: 2.4; stroke-linejoin: round; }
.sa-fs-svg .today line { stroke: rgba(18, 18, 24, 0.35); stroke-dasharray: 3 5; }
.sa-fs-svg .today text, .sa-fs-svg .tick text { font: 600 10px/1 var(--mono); letter-spacing: 0.08em; fill: #8a8a94; }
.sa-fs-svg .un circle { fill: #e5484d; }
.sa-fs-svg .un .ring { fill: none; stroke: #e5484d; stroke-width: 1.5; opacity: 0.5; }
.sa-fs .sa-leg { color: #5d5c66; }
.sa-fs .sa-leg i.c1 { background: #5b3fd6; } .sa-fs .sa-leg i.c2 { background: #c94fc0; } .sa-fs .sa-leg i.c4 { background: #e5484d; }
.sa-qr { margin-top: 0.9rem; padding: 0.85rem 1rem; border-radius: 12px; background: #f4f3ee; }
.sa-qr small { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #5b3fd6; }
.sa-qr p { margin: 0.4rem 0 0; font-size: 0.86rem; line-height: 1.5; color: #2b2a31; }

/* dashboards: steps */
.sa-flow { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; }
.sa-flow .sg-h2 { max-width: 18ch; font-size: clamp(2rem, 3.6vw, 3.6rem); }
.sa-flow-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 6vh, 4rem); }
.sa-flow-line { position: absolute; left: 0; right: 0; top: 17px; width: 100%; height: 4px; }
.sa-flow-line line { stroke: #8b6cff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sa-step { position: relative; transition: opacity 0.5s var(--sg-out); }
.sa-live .sa-step:not(.on) { opacity: 0.3; }
.sa-step i { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sg-ink); border: 1px solid rgba(139, 108, 255, 0.6); font: 600 0.66rem/1 var(--mono); font-style: normal; color: #c9c3ff; }
.sa-step.on i { background: #8b6cff; color: #fff; border-color: #8b6cff; }
.sa-step h3 { margin: 1rem 0 0.4rem; font-size: 1.15rem; color: #fff; letter-spacing: -0.01em; }
.sa-step p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--sg-on-ink-dim); }
.sa-flow-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 8vh, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--sg-hair-ink); }
.sa-flow-alt p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--sg-on-ink-dim); }
.sa-flow-alt b { color: #fff; }
.sa-flow-alt a { color: #c9c3ff; text-decoration: underline; text-underline-offset: 3px; }
/* a way on from the dashboards page: the whole card is the link, with a small piece of the product inside */
.sa-flow-alt a.sa-go { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 0.9rem 1.2rem; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--sg-hair-ink); color: inherit; text-decoration: none;
  transition: transform 0.4s var(--sg-out), border-color 0.25s, background 0.25s; }
.sa-flow-alt a.sa-go:hover, .sa-flow-alt a.sa-go:focus-visible { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.sa-go-demo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 10rem; margin-bottom: 0.5rem;
  padding: 1.4rem 1rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(120% 90% at 50% 0%, rgba(139, 108, 255, 0.16), transparent 62%), #0c0c13; }
.sa-go-t { padding: 0 0.3rem; font: 700 1.15rem/1.2 var(--sans); letter-spacing: -0.02em; color: #fff; }
.sa-go-p { padding: 0 0.3rem; font-size: 0.95rem; line-height: 1.6; color: var(--sg-on-ink-dim); }
.sa-go-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; padding: 0.4rem 0.3rem 0; font-weight: 600; font-size: 0.92rem; color: #fff; }
.sa-go-cta svg { width: 16px; height: 16px; transition: transform 0.3s var(--sg-out); }
.sa-go:hover .sa-go-cta svg, .sa-go:focus-visible .sa-go-cta svg { transform: translateX(4px); }
.sa-go-st { position: absolute; top: 0.8rem; right: 0.9rem; font: 600 0.58rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sg-on-ink-faint); }
/* the CRM header's "Ask Buddy" button, dark skin, holding the question */
.sa-go-ask { display: flex; align-items: center; gap: 0.6rem; width: 100%; max-width: 30rem; height: 48px; padding: 0 6px 0 8px; border-radius: 24px;
  background: #1c2438; border: 1px solid rgba(125, 146, 232, 0.22); box-shadow: 0 18px 44px -20px rgba(79, 107, 255, 0.55); }
.sa-go-ask .pill { display: inline-flex; align-items: center; gap: 7px; flex: none; font: 600 12.5px/1 var(--sans); color: #fff; white-space: nowrap; }
.sa-go-ask .pill svg { width: 28px; height: 28px; padding: 7px; border-radius: 50%; background: rgba(125, 146, 232, 0.2); color: #c9d4ff; }
.sa-go-ask .q { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 0.86rem/1.2 var(--sans); color: #e8e8f0; }
.sa-go-ask .go { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sg-line); color: #fff; }
.sa-go-ask .go svg { width: 16px; height: 16px; }
.sa-go-out { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem; font: 500 0.66rem/1 var(--mono); color: var(--sg-on-ink-dim); }
.sa-go-out svg { width: 13px; height: 13px; }
/* one number with its Data Health mark */
.sa-go-num { width: 100%; max-width: 18rem; padding: 0.9rem 1rem 1rem; border-radius: 12px; background: #fffaf0; border: 1px solid rgba(242, 169, 59, 0.6);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.9); }
.sa-go-num small { display: block; font: 500 0.66rem/1.3 var(--mono); color: #77767f; }
.sa-flow-alt .sa-go-num b { display: block; margin-top: 0.4rem; font: 700 1.75rem/1.1 var(--sans); letter-spacing: -0.03em; color: #121218;
  text-decoration: underline wavy rgba(242, 169, 59, 0.95); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.sa-go-num em { display: inline-block; margin-top: 0.8rem; padding: 0.32rem 0.5rem; border-radius: 6px; background: rgba(242, 169, 59, 0.16);
  font: 600 0.62rem/1.2 var(--mono); font-style: normal; color: #9a5b00; }
@media (prefers-reduced-motion: reduce) { .sa-flow-alt a.sa-go, .sa-go-cta svg { transition: none; } .sa-flow-alt a.sa-go:hover { transform: none; } }

@media (max-width: 1080px) {
  .sa-sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sa-cmp .sa-cmp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sa-hero-db .sa-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sa-sheet-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sa-flow-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-flow-line { display: none; }
  .sa-flow-alt { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sa-bd { padding: 10px; }
  .sa-bd-top { flex-wrap: wrap; row-gap: 0.4rem; }
  .sa-bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sa-w.w-k1, .sa-w.w-k2, .sa-w.w-k3, .sa-w.w-k4 { grid-column: span 1; }
  .sa-w.w-line, .sa-w.w-fun, .sa-w.w-heat, .sa-w.w-tab { grid-column: 1 / -1; }
  .sa-w > b { font-size: 1.25rem; }
  .sa-bd-foot { flex-direction: column; align-items: flex-start; }
  .sa-bd-grid { min-height: 0; background-image: none; }
  .sa-tab td:nth-child(2), .sa-tab th:nth-child(2) { display: none; }
  .sa-ws { padding: 0.9rem; }
  .sa-ws-h, .sa-ws-r { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.8fr); gap: 0.4rem; font-size: 0.74rem; }
  .sa-ws-h { font-size: 0.5rem; }
  .sa-rule { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; font-size: 0.9rem; }
  .sa-rule-h { display: none; }
  .sa-sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-gl { padding: 0.8rem; }
  .sa-flow-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .sa-fs { padding: 0.9rem; }
  .sa-fs-top { font-size: 0.78rem; }
}

/* =============================================================== reports: the report turns its pages */
.sa-book { position: relative; height: min(56vh, 480px); perspective: 2600px; transform-style: preserve-3d; }
.sa-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d;
  transform: rotateY(calc(var(--q, 1) * -180deg)) translateZ(var(--z, 0px)); }
.sa-leaf.l-a { --z: 2px; } .sa-leaf.l-b { --z: 1px; }
.sa-leaf.l-c { transform: translateZ(0); }
.sa-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4px 10px 10px 4px; overflow: hidden;
  background: #fbfaf6; color: #2b2a31; padding: 20px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.sa-face::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 26px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)); pointer-events: none; }
.sa-face.back { transform: rotateY(180deg); border-radius: 10px 4px 4px 10px; }
.sa-face.back::before { left: auto; right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)); }
.sa-face::after { content: ""; position: absolute; inset: 0; background: #000; pointer-events: none; opacity: calc(0.9 * (0.5 - max(var(--q, 1) - 0.5, 0.5 - var(--q, 1)))); }
.sa-cover { background: linear-gradient(150deg, #2a2160 0%, #171236 55%, #0d0b1e 100%); color: #fff; display: flex; flex-direction: column; padding: 30px 28px; }
.sa-cover small { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #b9a6ff; }
.sa-cover h5 { margin: auto 0 0.3rem; font: 800 2.3rem/1 var(--sans); letter-spacing: -0.04em; }
.sa-cover p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: #e3dcff; }
.sa-cover svg { width: 100%; height: 60px; margin: 1.6rem 0 1.2rem; }
.sa-cover svg path { fill: none; stroke: url(#sg-end-grad); stroke: #e06ad7; stroke-width: 2.5; }
.sa-cover span { font: 500 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.sa-contents small, .sa-pg small { font: 600 0.56rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a94; }
.sa-contents ol { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.sa-contents li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.8rem 0; border-bottom: 1px solid rgba(18, 18, 24, 0.08); font: 700 1.05rem/1.2 var(--sans); color: #121218; }
.sa-contents li b { font: 600 0.7rem/1 var(--mono); color: #5b3fd6; }
.sa-contents p { position: absolute; left: 22px; right: 22px; bottom: 22px; margin: 0; font-size: 0.78rem; line-height: 1.5; color: #5d5c66; }
.sa-pg header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(18, 18, 24, 0.08); }
.sa-pg header i { font: 600 0.62rem/1 var(--mono); font-style: normal; color: #8a8a94; }
.sa-pg h6 { margin: 1rem 0 0.8rem; font: 800 1.35rem/1 var(--sans); letter-spacing: -0.03em; color: #121218; }
.sa-pg-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sa-pg-kpis span { padding: 9px 10px; border-radius: 8px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.07); }
.sa-pg-kpis b { display: block; margin-top: 0.4rem; font: 800 1.05rem/1 var(--sans); letter-spacing: -0.02em; color: #121218; }
.sa-pg-line { display: block; width: 100%; height: 64px; margin: 14px 0 8px; }
.sa-pg-line path { fill: none; stroke: #5b3fd6; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sa-pg-note { margin-top: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 8px; background: rgba(91, 63, 214, 0.05); }
.sa-pg-note small { display: block; margin-bottom: 0.4rem; color: #5b3fd6; }
.sa-pg-note .ln { display: block; white-space: nowrap; font-size: 0.74rem; line-height: 1.55; color: #2b2a31; clip-path: inset(0 calc((1 - var(--q, 1)) * 100%) 0 0); }
.sa-pg-bars { display: grid; gap: 14px; margin-top: 0.4rem; }
.sa-pg-bars p { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 2.4rem; gap: 0.6rem; align-items: center; margin: 0; }
.sa-pg-bars span { font-size: 0.66rem; color: #77767f; line-height: 1.3; }
.sa-pg-bars span b { display: block; font-size: 0.82rem; color: #121218; }
.sa-pg-bars i { display: block; height: 16px; border-radius: 4px; width: calc(var(--w) * var(--q, 1)); background: linear-gradient(90deg, #4f6bff, #8b6cff); }
.sa-pg-bars i.tt { background: linear-gradient(90deg, #c94fc0, #e06ad7); }
.sa-pg-bars em { font: 700 0.78rem/1 var(--sans); font-style: normal; color: #121218; }
.sa-pg-fc { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.07); }
.sa-pg-fc svg { display: block; width: 100%; height: 86px; margin-top: 8px; }
.sa-pg-fc .hb { fill: none; stroke: #5b3fd6; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sa-pg-fc .bd { fill: rgba(224, 106, 215, 0.16); }
.sa-pg-fc .fl { fill: none; stroke: #c94fc0; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sa-pg-fc .td { stroke: rgba(18, 18, 24, 0.3); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.sa-pg-next { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: nx; }
.sa-pg-next li { counter-increment: nx; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); padding: 0.5rem 0; border-top: 1px solid rgba(18, 18, 24, 0.07); font-size: 0.76rem; line-height: 1.45; }
.sa-pg-next li::before { content: "0" counter(nx); font: 600 0.6rem/1.9 var(--mono); color: #5b3fd6; }
.sa-book-rail { list-style: none; display: flex; gap: 1.4rem; margin: 1.3rem 0 0; padding: 0; font: 600 0.62rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sg-on-ink-faint); }
.sa-book-rail li { position: relative; padding-top: 0.7rem; transition: color 0.4s; }
.sa-book-rail li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.sa-book-rail li.on { color: #fff; }
.sa-book-rail li.on::before { background: linear-gradient(90deg, #4f6bff, #8b6cff); }
.sa-book-fig { margin: 0.9rem 0 0; }

/* reports: Buddy drafts the report */
.sa-draft { height: 320vh; }
.sa-more { margin: 1.4rem 0 0; }
.sa-more a { display: inline-flex; align-items: center; gap: 0.4rem; color: #c9c3ff; font-weight: 600; font-size: 0.92rem; }
.sa-more svg { width: 14px; height: 14px; }
.sa-dr { position: relative; border-radius: 18px; padding: 16px; background: linear-gradient(180deg, #13131d, #0c0c14); border: 1px solid var(--sg-hair-ink); }
.sa-dr-ask { display: flex; justify-content: flex-end; }
.sa-dr-ask span { max-width: 100%; padding: 0.6rem 0.85rem; border-radius: 14px 14px 4px 14px; background: #2a2160; color: #fff; font-size: 0.86rem; line-height: 1.4; }
.sa-typed { white-space: nowrap; clip-path: inset(0 calc((1 - var(--q, 1)) * 100%) 0 0); }
.sa-dr-read { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0.8rem 0; font: 500 0.66rem/1.2 var(--mono); color: var(--sg-on-ink-dim); }
.sa-dr-read i { width: 16px; height: 16px; border-radius: 5px; background: conic-gradient(from 200deg, #4f6bff, #8b6cff, #e06ad7, #4f6bff); }
.sa-dr-read b { padding: 0.22rem 0.45rem; border-radius: 5px; background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 600; }
.sa-dr-doc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 12px; background: #f4f3ee; }
.sa-dr-b { position: relative; padding: 11px 12px; border-radius: 9px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.07); color: #2b2a31; min-height: 104px; }
.sa-dr-b small { display: block; font: 600 0.56rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; }
.sa-dr-b p { margin: 0.45rem 0 0; font-size: 0.76rem; line-height: 1.5; }
.sa-dr-b.chart svg { display: block; width: 100%; height: 66px; margin-top: 10px; }
.sa-dr-b.chart path { fill: none; stroke: #c94fc0; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sa-dr-b.flag { border-color: rgba(242, 169, 59, 0.6); background: #fffaf0; }
.sa-dr-b.flag .sa-mark { margin-top: 0.55rem; }
.sa-ed { position: absolute; top: 9px; right: 9px; padding: 0.2rem 0.45rem; border-radius: 5px; background: #5b3fd6; color: #fff; font: 600 0.54rem/1 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; }
.sa-dr-ask.two { margin-top: 0.8rem; }
.sa-dr-out { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.8rem; padding: 0.45rem 0.7rem; border-radius: 8px; background: rgba(47, 207, 148, 0.12); color: #7fe6bd; font: 600 0.66rem/1 var(--mono); }
.sa-dr-out svg { width: 13px; height: 13px; }
.sa-dr-fig { margin: 0.9rem 0 0; }

/* reports: scheduled sends */
.sa-sched { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; overflow: hidden; }
.sa-sched-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.2rem, 6vh, 3.5rem); }
.sa-sched-head .sg-h2 { font-size: clamp(2.1rem, 3.8vw, 3.8rem); max-width: 15ch; }
.sa-sched-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.6fr); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.sa-cal { position: relative; padding: 1.2rem 1.3rem 1.3rem; border-radius: 16px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); box-shadow: 0 30px 60px -45px rgba(18, 18, 24, 0.5); }
.sa-cal-m { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.sa-cal-m b { font-size: 1rem; color: #121218; }
.sa-cal-m span { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; }
.sa-cal-d { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); border-top: 1px solid rgba(18, 18, 24, 0.1); }
.sa-cal-d .d { position: relative; height: 92px; border-left: 1px solid rgba(18, 18, 24, 0.07); font-style: normal; transition: background 0.3s; }
.sa-cal-d .d b { position: absolute; left: 4px; top: 6px; font: 600 0.56rem/1 var(--mono); color: #a5a4ae; }
.sa-cal-d .d.on { background: rgba(91, 63, 214, 0.05); }
.sa-cal-d .d.mon { border-left: 2px solid #5b3fd6; }
.sa-cal-d .d.mon b { color: #5b3fd6; }
.sa-cal-d .d.mon::after { content: ""; position: absolute; left: -6px; bottom: 8px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #5b3fd6; transition: background 0.3s; }
.sa-cal-d .d.mon.on::after { background: #5b3fd6; box-shadow: 0 0 0 5px rgba(91, 63, 214, 0.18); }
.sa-cal-s { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sa-send { padding: 0.7rem 0.75rem; border-radius: 10px; border: 1px solid rgba(18, 18, 24, 0.08); background: #faf9f5; transition: opacity 0.5s var(--sg-out), border-color 0.4s, transform 0.5s var(--sg-out); }
.sa-live .sa-send:not(.on) { opacity: 0.3; transform: translateY(6px); }
.sa-send.on { border-color: rgba(91, 63, 214, 0.45); }
.sa-send small { display: block; font: 600 0.56rem/1.2 var(--mono); letter-spacing: 0.04em; color: #5b3fd6; }
.sa-send b { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.4rem; font-size: 0.85rem; color: #121218; }
.sa-send b svg { width: 13px; height: 13px; color: #128a5f; }
.sa-send span { display: block; margin-top: 0.25rem; font-size: 0.7rem; color: #77767f; }
.sa-cal-play { position: absolute; left: 1.3rem; right: 1.3rem; top: 3.1rem; height: 94px; pointer-events: none; }
.sa-cal-play i { position: absolute; top: -4px; bottom: -4px; left: calc(var(--q, 1) * 100%); width: 2px; background: #e5484d; border-radius: 2px; }
.sa-cal-play i::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.sa-auto { display: flex; flex-direction: column; padding: 1.3rem; border-radius: 16px; background: #0b0b10; color: #fff; }
.sa-auto-k { display: flex; align-items: center; gap: 0.4rem; margin: 0; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #f2a93b; }
.sa-auto-k svg { width: 13px; height: 13px; }
.sa-auto h4 { margin: 0.6rem 0 1rem; font-size: 1.2rem; letter-spacing: -0.02em; color: #fff; }
.sa-auto dl { margin: 0; display: grid; gap: 0.7rem; }
.sa-auto dl div { padding-top: 0.7rem; border-top: 1px solid var(--sg-hair-ink); }
.sa-auto dt { font: 600 0.56rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sg-on-ink-faint); }
.sa-auto dd { margin: 0.35rem 0 0; font-size: 0.84rem; color: var(--sg-on-ink-dim); }
.sa-auto-sent { margin: auto 0 0; padding-top: 1.2rem; font-size: 0.8rem; color: var(--sg-on-ink-dim); }
.sa-auto-sent span { font: 800 1.6rem/1 var(--sans); color: #fff; margin-right: 0.3rem; }

@media (max-width: 1080px) {
  .sa-sched-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sa-sched-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 760px) {
  .sa-book { height: auto; perspective: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sa-leaf, .sa-leaf.l-c { display: contents; }
  .sa-face, .sa-face.back { position: relative; inset: auto; transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; min-height: 300px; border-radius: 10px; }
  .sa-face::after { display: none; }
  .sa-contents { display: none; }
  .sa-book-rail { display: none; }
  .sa-typed { white-space: normal; clip-path: none; opacity: calc(0.25 + var(--q, 1) * 0.75); }
  .sa-dr { padding: 12px; }
  .sa-dr-doc { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .sa-dr-b { min-height: 0; }
  .sa-cal { padding: 1rem 0.8rem; }
  .sa-cal-d .d { height: 40px; }
  .sa-cal-d .d b { display: none; }
  .sa-cal-d .d.mon b { display: block; left: 3px; }
  .sa-cal-play { left: 0.8rem; right: 0.8rem; top: 2.9rem; height: 42px; }
  .sa-cal-s { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .sa-book { height: auto; perspective: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sa-leaf, .sa-leaf.l-c { display: contents; }
  .sa-face, .sa-face.back { position: relative; inset: auto; transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; min-height: 380px; border-radius: 10px; }
  .sa-face::after { display: none; }
  .sa-contents { display: none; }
}

/* =============================================================== forecasts: take the series apart, then forecast it */
.sa-hero-fc { height: 360vh; }
.sa-hero-fc .sa-hero-grid { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); }
.sa-hero-fc .sg-h1 { font-size: clamp(2.1rem, 3.1vw, 3.3rem); }
.sa-stages { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.2rem 1.2rem; }
.sa-stages li { padding: 0.55rem 0; border-top: 1px solid var(--sg-hair-ink); font-size: 0.84rem; color: #fff; transition: opacity 0.4s; }
.sa-stages li small { display: block; margin-bottom: 0.25rem; font: 600 0.58rem/1 var(--mono); letter-spacing: 0.1em; color: #b9a6ff; }
.sa-live .sa-stages li:not(.on) { opacity: 0.3; }
.sa-dc-svg { display: block; width: 100%; height: auto; max-height: 64vh; overflow: visible; }
.sa-dc-svg .grid line { stroke: rgba(255, 255, 255, 0.05); }
.sa-dc-svg .mon line { stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 2 5; }
.sa-dc-svg .mon text, .sa-dc-svg .tags text, .sa-dc-svg .dc-today-t { font: 600 9px/1 var(--mono); letter-spacing: 0.1em; fill: rgba(255, 255, 255, 0.4); }
.sa-dc-svg .ln-t { font: 700 13px/1 var(--sans); fill: #fff; }
.sa-dc-svg .ln-t.main { font-size: 14px; }
.sa-dc-svg .ln-s { font: 500 9.5px/1 var(--mono); fill: rgba(255, 255, 255, 0.42); }
.sa-dc-svg .lane { transition: opacity 0.5s var(--sg-out); }
.sa-live .sa-dc-svg .lane:not(.on) { opacity: 0; }
.sa-dc-svg .lane .base { stroke: rgba(255, 255, 255, 0.08); }
.sa-dc-svg .dc-raw { fill: none; stroke: #ecebf2; stroke-width: 1.8; stroke-linejoin: round; }
.sa-dc-svg .dc-fc { fill: none; stroke: url(#sa-fcg); stroke: #e06ad7; stroke-width: 2.2; stroke-linejoin: round; }
.sa-dc-svg .dc-band { fill: rgba(224, 106, 215, 0.18); opacity: var(--q, 1); }
.sa-dc-svg .dc-trend, .sa-dc-svg .dc-week, .sa-dc-svg .dc-cal, .sa-dc-svg .dc-res { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.sa-dc-svg .dc-trend { stroke: #4f6bff; } .sa-dc-svg .dc-week { stroke: #8b6cff; } .sa-dc-svg .dc-cal { stroke: #f2a93b; } .sa-dc-svg .dc-res { stroke: #8a8a99; }
.sa-dc-svg .dc-trend-f, .sa-dc-svg .dc-week-f, .sa-dc-svg .dc-cal-f { fill: none; stroke-width: 1.6; stroke-linejoin: round; opacity: 0.9; }
.sa-dc-svg .dc-trend-f { stroke: #4f6bff; } .sa-dc-svg .dc-week-f { stroke: #8b6cff; } .sa-dc-svg .dc-cal-f { stroke: #f2a93b; }
.sa-dc-svg .dc-res-f { display: none; }
.sa-dc-svg .tags text { fill: #f2c37a; }
.sa-dc-svg .dc-today { stroke: rgba(255, 255, 255, 0.4); stroke-dasharray: 3 5; }
.sa-dc-svg .dc-today-t { fill: #fff; }
.sa-dc-svg .un circle.a, .sa-dc-svg .un circle.b { fill: #ff6b6b; }
.sa-dc-svg .un circle.b { stroke: rgba(255, 107, 107, 0.35); stroke-width: 8; }
.sa-dc-svg .un line { stroke: #ff6b6b; stroke-width: 1; stroke-dasharray: 2 4; }
.sa-dc-svg .chip rect { fill: #ff6b6b; }
.sa-dc-svg .chip text { font: 700 9.5px/1 var(--mono); letter-spacing: 0.06em; fill: #1a0707; }
.sa-dc-svg .sa-in { transition: opacity 0.5s var(--sg-out); }
.sa-live .sa-dc-svg .sa-in:not(.on) { opacity: 0; transform: none; }
.sa-dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 0.6rem; }
.sa-dc-foot .sg-fig { margin: 0; max-width: 34rem; }

/* forecasts: held-back days */
.sa-bt { height: 300vh; }
.sa-bt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: clamp(1.4rem, 4vh, 2.4rem); }
.sa-bt-head .sg-h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.sa-bt-head .sg-lead { margin: 0; font-size: clamp(0.95rem, 1.05vw, 1.04rem); }
.sa-bt-fig { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr); gap: clamp(1rem, 2.4vw, 2.4rem); align-items: center; padding: 1.2rem; border-radius: 18px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); box-shadow: 0 30px 60px -45px rgba(18, 18, 24, 0.5); }
.sa-bt-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sa-bt-svg .grid line { stroke: rgba(18, 18, 24, 0.07); }
.sa-bt-svg .bt-past, .sa-bt-svg .bt-real { fill: none; stroke: #121218; stroke-width: 2; stroke-linejoin: round; }
.sa-bt-svg .bt-real { stroke-width: 2.6; }
.sa-bt-svg .bt-a, .sa-bt-svg .bt-b, .sa-bt-svg .bt-c { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.sa-bt-svg .bt-a { stroke: #5b3fd6; } .sa-bt-svg .bt-b { stroke: #e06ad7; } .sa-bt-svg .bt-c { stroke: #f2a93b; }
.sa-bt-svg .bt-curtain { fill: #ecebe4; opacity: calc(0.94 * (1 - var(--q, 1))); }
.sa-bt-svg .bt-hold, .sa-bt-svg .bt-cut-t { font: 600 10px/1 var(--mono); letter-spacing: 0.1em; fill: #77767f; }
.sa-bt-svg .bt-cut { stroke: rgba(18, 18, 24, 0.4); stroke-dasharray: 3 5; }
.sa-bt-svg .sa-in { transition: opacity 0.5s; }
.sa-live .sa-bt-svg .sa-in:not(.on) { opacity: 0; transform: none; }
.sa-bt-score { display: grid; gap: 0; }
.sa-sc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid rgba(18, 18, 24, 0.08); font-size: 0.9rem; color: #2b2a31; transition: opacity 0.5s var(--sg-out), background 0.4s; }
.sa-sc span { display: flex; align-items: center; gap: 0.6rem; }
.sa-sc i { width: 16px; height: 3px; border-radius: 2px; }
.sa-sc.m-a i { background: #5b3fd6; } .sa-sc.m-b i { background: #e06ad7; } .sa-sc.m-c i { background: #f2a93b; }
.sa-sc b { font: 800 1.1rem/1 var(--sans); letter-spacing: -0.02em; color: #121218; font-variant-numeric: tabular-nums; }
.sa-sc-h { font: 600 0.58rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; border-top: 0; padding-top: 0; }
.sa-sc.kept { background: linear-gradient(90deg, rgba(91, 63, 214, 0.1), rgba(91, 63, 214, 0)); margin: 0 -0.6rem; padding-left: 0.6rem; padding-right: 0.6rem; border-radius: 8px; }
.sa-sc.kept b { color: #5b3fd6; }
.sa-kept { display: flex; align-items: center; gap: 0.45rem; margin: 0.8rem 0 0; font: 600 0.66rem/1.3 var(--mono); color: #128a5f; }
.sa-kept svg { width: 14px; height: 14px; flex: none; }

/* forecasts: holidays that move */
.sa-drift { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; overflow: hidden; }
.sa-yr-rows { position: relative; padding: 1.2rem 1.3rem 1.4rem; border-radius: 16px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); }
.sa-yr-m, .sa-yr { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; }
.sa-yr-m { grid-template-columns: 3.4rem repeat(12, minmax(0, 1fr)); font: 600 0.58rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; padding-bottom: 0.6rem; }
.sa-yr { padding: 1.5rem 0 1.1rem; border-top: 1px solid rgba(18, 18, 24, 0.07); opacity: calc(0.25 + var(--q, 1) * 0.75); }
.sa-yr b { font: 800 1rem/1 var(--sans); color: #121218; }
.sa-yr-t { position: relative; height: 22px; background: repeating-linear-gradient(90deg, rgba(18, 18, 24, 0.06) 0 1px, transparent 1px calc(100% / 12)); border-radius: 4px; }
.sa-yr-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(18, 18, 24, 0.12); }
.sa-yr-t i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.sa-yr-t i.isl { transform: translateX(calc((1 - var(--q, 1)) * 40px)); }
.sa-yr-t i.ram { height: 14px; margin: -7px 0 0 0; border-radius: 4px; background: rgba(91, 63, 214, 0.3); border: 1px solid #5b3fd6; }
.sa-yr-t i.eid { background: #5b3fd6; }
.sa-yr-t i.eas { background: #e06ad7; }
.sa-yr-t i.eas.both { box-shadow: 0 0 0 4px rgba(224, 106, 215, 0.25); }
.sa-yr-t i.nat { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; background: #128a5f; transform: rotate(45deg); }
.sa-yr-t i.xm { background: #f2a93b; }
.sa-yr-t em { position: absolute; top: -1.15rem; font: 600 0.58rem/1 var(--mono); font-style: normal; letter-spacing: 0.04em; color: #5b3fd6; white-space: nowrap; }
.sa-yr-t em.r { top: auto; bottom: -1.05rem; color: #b8399f; }
.sa-yr-key { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1rem; font: 500 0.66rem/1.2 var(--mono); color: #5d5c66; }
.sa-yr-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.45rem; vertical-align: -1px; }
.sa-yr-key .k-ram { border-radius: 3px; background: rgba(91, 63, 214, 0.3); border: 1px solid #5b3fd6; }
.sa-yr-key .k-eid { background: #5b3fd6; } .sa-yr-key .k-eas { background: #e06ad7; } .sa-yr-key .k-nat { background: #128a5f; border-radius: 2px; transform: rotate(45deg); } .sa-yr-key .k-xm { background: #f2a93b; }
.sa-wk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.sa-wk-r { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 1rem; border-radius: 14px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); }
.sa-wk-r b { grid-column: 1 / -1; margin-bottom: 0.5rem; font-size: 0.86rem; color: #121218; }
.sa-wk-r span { padding: 0.55rem 0; border-radius: 6px; text-align: center; font: 600 0.62rem/1 var(--mono); color: #77767f; background: #f4f3ee; }
.sa-wk-r span.we { background: #121218; color: #fff; }

/* forecasts: honest limits */
.sa-honest { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; overflow: hidden; }
.sa-hon-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sa-hon-grid .sg-h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); max-width: 16ch; }
.sa-prose { margin: 1.2rem 0 0; max-width: 36rem; font-size: 1rem; line-height: 1.65; color: var(--sg-on-ink-dim); }
.sa-refuse { margin: 0; padding: 1rem 1.1rem; border-radius: 16px; background: #13131d; border: 1px solid var(--sg-hair-ink); }
.sa-refuse-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; color: #fff; }
.sa-refuse .sa-tg { border-color: rgba(255, 255, 255, 0.2); color: #fff; background: rgba(255, 255, 255, 0.08); }
.sa-refuse svg { display: block; width: 100%; height: auto; margin: 0.8rem 0; }
.sa-refuse path { fill: none; stroke: #8b6cff; stroke-width: 2.4; stroke-linejoin: round; }
.sa-refuse line { stroke: rgba(255, 255, 255, 0.3); stroke-dasharray: 3 5; }
.sa-refuse p { margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--sg-on-ink-dim); }
.sa-refuse p .sa-mark { margin-right: 0.4rem; background: #fff; color: #121218; }
.sa-ratio-note { margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--sg-hair-ink); font-size: 0.92rem; line-height: 1.55; color: var(--sg-on-ink-dim); }
.sa-ratio-note b { color: #fff; }
.sa-where { margin-top: clamp(3.5rem, 9vh, 5.5rem); }
.sa-where-rows { border-top: 1px solid var(--sg-hair-ink); margin-top: 1rem; }
.sa-wr { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) 20px; gap: 1.5rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--sg-hair-ink); color: var(--sg-on-ink-dim); transition: background 0.3s, padding 0.3s; }
.sa-wr b { font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.sa-wr b .sg-pill { font-style: normal; }
.sa-wr span { font-size: 0.92rem; line-height: 1.5; }
.sa-wr svg { width: 18px; height: 18px; color: #b9a6ff; transition: transform 0.3s; }
.sa-wr:hover svg { transform: translateX(4px); }

@media (max-width: 1080px) {
  .sa-bt-fig { grid-template-columns: minmax(0, 1fr); }
  .sa-hero-fc .sa-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sa-bt-head, .sa-hon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .sa-dc-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .sa-dc-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .sa-dc-scroll::-webkit-scrollbar { display: none; }
  .sa-dc-svg { max-height: none; width: 680px; max-width: none; }
  .sa-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-bt-fig { padding: 0.8rem; }
  .sa-yr-rows { padding: 0.9rem 0.7rem 1rem; }
  .sa-yr-m, .sa-yr { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .sa-yr-m { grid-template-columns: 2.6rem repeat(12, minmax(0, 1fr)); font-size: 0.5rem; letter-spacing: 0; }
  .sa-yr-t em { font-size: 0.5rem; }
  .sa-yr-t i { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .sa-yr-t i.nat { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
  .sa-wk { grid-template-columns: minmax(0, 1fr); }
  .sa-wr { grid-template-columns: minmax(0, 1fr) 18px; gap: 0.4rem 1rem; }
  .sa-wr b { grid-column: 1; }
  .sa-wr span { grid-column: 1; grid-row: 2; }
  .sa-wr svg { grid-column: 2; grid-row: 1 / span 2; }
}

/* =============================================================== data health: a scan marks the numbers */
.sa-hero-dh .sa-hero-grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
.sa-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: #8a8a99; }
.sa-dot.ok { background: var(--sg-up); } .sa-dot.warn { background: var(--sg-warn); } .sa-dot.bad { background: var(--sg-down); }
.sa-dot.run { background: #8b6cff; box-shadow: 0 0 0 4px rgba(139, 108, 255, 0.25); }
.sa-hz-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr); gap: 14px; align-items: start; }
.sa-hz-board { position: relative; overflow: hidden; border-radius: 18px; padding: 14px; background: linear-gradient(180deg, #12121c, #0c0c14); border: 1px solid var(--sg-hair-ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.sa-hz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 2px 4px 12px; font-size: 0.84rem; color: #fff; }
.sa-st i { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.6rem; border-radius: 999px; font: 600 0.62rem/1 var(--mono); font-style: normal; letter-spacing: 0.04em; }
.sa-st .a { display: none; color: #c9c3ff; background: rgba(139, 108, 255, 0.14); }
.sa-st .b { color: #ffd7a0; background: rgba(242, 169, 59, 0.16); }
.sa-live .sa-st:not(.on) .a { display: inline-flex; }
.sa-live .sa-st:not(.on) .b { display: none; }
.sa-hz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sa-hz { position: relative; min-height: 118px; padding: 12px; border-radius: 12px; background: #171722; border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color 0.4s, background 0.4s; }
.sa-hz small { display: block; font: 600 0.56rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-on-ink-faint); }
.sa-hz b { display: block; margin-top: 0.5rem; font: 800 1.6rem/1 var(--sans); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.sa-hz b.held { font-size: 1.15rem; color: #ff9b9b; }
.sa-hz .sa-mark { margin-top: 0.7rem; white-space: normal; line-height: 1.3; font-size: 0.58rem; padding: 0.32rem 0.5rem; align-items: flex-start; }
.sa-hz.warn { border-color: rgba(242, 169, 59, 0.6); background: linear-gradient(180deg, rgba(242, 169, 59, 0.1), #171722 70%); }
.sa-hz.bad { border-color: rgba(255, 107, 107, 0.6); background: linear-gradient(180deg, rgba(255, 107, 107, 0.1), #171722 70%); }
.sa-live .sa-hz.warn:not(.on), .sa-live .sa-hz.bad:not(.on) { border-color: rgba(255, 255, 255, 0.07); background: #171722; }
.sa-ok { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; font: 600 0.58rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #7fe6bd; }
.sa-scan { position: absolute; left: 0; right: 0; top: 52px; bottom: 14px; pointer-events: none; }
.sa-scan i { position: absolute; left: 0; right: 0; top: calc(var(--q, 1) * 100%); height: 2px; background: linear-gradient(90deg, transparent, #8b6cff 20%, #e06ad7 80%, transparent);
  box-shadow: 0 0 24px 6px rgba(139, 108, 255, 0.45); opacity: clamp(0, calc((1 - var(--q, 1)) * 14), 1); }
.sa-scan i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 60px; background: linear-gradient(0deg, rgba(139, 108, 255, 0.12), transparent); }
.sa-sw { padding: 12px; border-radius: 14px; background: #fff; color: #2b2a31; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.sa-sw small { display: block; margin-bottom: 0.5rem; font: 600 0.56rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a94; }
.sa-sw p { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 0.15rem 0.55rem; align-items: center; margin: 0; padding: 0.55rem 0.5rem; border-radius: 8px; font-size: 0.8rem; }
.sa-sw p.cur { background: #f1f0f5; }
.sa-sw p b { color: #121218; }
.sa-sw p span { grid-column: 2; font: 500 0.6rem/1.2 var(--mono); color: #77767f; }
.sa-hz-fig { grid-column: 1 / -1; margin: 0.4rem 0 0; }

/* data health: four lab plates */
.sa-plates { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; overflow: hidden; }
.sa-pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--sg-hair-ink); border-left: 1px solid var(--sg-hair-ink); }
.sa-lab { margin: 0; display: flex; flex-direction: column; padding: 1.2rem 1.1rem 1.3rem; border-right: 1px solid var(--sg-hair-ink); border-bottom: 1px solid var(--sg-hair-ink); }
.sa-lab header { display: flex; align-items: baseline; gap: 0.6rem; }
.sa-lab header i { font: 600 0.6rem/1 var(--mono); font-style: normal; color: #b9a6ff; }
.sa-lab header b { font-size: 1rem; color: #fff; letter-spacing: -0.01em; }
.sa-lab svg { display: block; width: 100%; height: auto; margin: 1rem 0 0.8rem; overflow: visible; }
.sa-lab p { margin: 0 0 0.9rem; font-size: 0.86rem; line-height: 1.5; color: var(--sg-on-ink-dim); }
.sa-lab .sa-mark { margin-top: auto; align-self: flex-start; white-space: normal; }
.sa-lab .ax { stroke: rgba(255, 255, 255, 0.14); }
.sa-lab .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--q, 1)); }
.sa-lab .bar.o { fill: rgba(255, 255, 255, 0.14); } .sa-lab .bar.p, .sa-lab .key .p { fill: #8b6cff; } .sa-lab .bar.d, .sa-lab .key .d { fill: #f2a93b; }
.sa-lab .bar.bad { fill: rgba(255, 107, 107, 0.25); stroke: #ff6b6b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.sa-lab .key text { font: 600 7.5px/1 var(--mono); letter-spacing: 0.08em; fill: rgba(255, 255, 255, 0.5); }
.sa-lab .ln { fill: none; stroke: #8b6cff; stroke-width: 2.2; stroke-linejoin: round; }
.sa-lab .ln.zero { stroke: #f2a93b; }
.sa-lab .zone { fill: rgba(242, 169, 59, 0.08); opacity: var(--q, 1); }
.sa-lab .cut { stroke: #f2a93b; stroke-dasharray: 3 4; }
.sa-lab .ceil { stroke: #ff6b6b; stroke-dasharray: 4 4; }
.sa-lab .lab { font: 600 8px/1 var(--mono); letter-spacing: 0.08em; fill: #f2c37a; }
.sa-lab .ceil + .lab { fill: #ff9b9b; }

/* data health: finding to task */
.sa-ft { height: 300vh; }
.sa-ft-flow { display: grid; gap: 12px; }
.sa-fd { padding: 1rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid rgba(242, 169, 59, 0.55); box-shadow: 0 24px 50px -40px rgba(18, 18, 24, 0.5); }
.sa-fd-k { display: flex; align-items: center; gap: 0.5rem; margin: 0; font: 600 0.6rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a6a2e; }
.sa-fd h4 { margin: 0.6rem 0 0.35rem; font-size: 1.15rem; letter-spacing: -0.02em; color: #121218; }
.sa-fd > p:last-child { margin: 0; font-size: 0.88rem; line-height: 1.5; color: #4a4953; }
.sa-fd-where { padding: 0.9rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.08); }
.sa-fd-where small { display: block; margin-bottom: 0.3rem; font: 600 0.58rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a94; }
.sa-fd-where p { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.55rem 0; border-top: 1px solid rgba(18, 18, 24, 0.06); font-size: 0.86rem; }
.sa-fd-where p:first-of-type { border-top: 0; }
.sa-fd-where svg { width: 15px; height: 15px; color: #5b3fd6; flex: none; }
.sa-fd-where b { color: #121218; }
.sa-fd-where span { margin-left: auto; font: 500 0.66rem/1 var(--mono); color: #77767f; }
.sa-fd-where p::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sg-warn); flex: none; }
.sa-fd-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.sa-btn-mock { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.95rem; border-radius: 999px; background: #121218; color: #fff; font-size: 0.84rem; font-weight: 600; transition: transform 0.3s var(--sg-out), box-shadow 0.3s; }
.sa-btn-mock svg { width: 14px; height: 14px; }
.sa-btn-mock.on { box-shadow: 0 0 0 4px rgba(91, 63, 214, 0.25); }
.sa-live .sa-btn-mock:not(.on) { opacity: 0.4; }
.sa-fd-ro { font-size: 0.8rem; line-height: 1.45; color: #5d5c66; max-width: 22rem; }
.sa-kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px; border-radius: 14px; background: #e3e1d9; }
.sa-kb-col small { display: block; margin: 2px 2px 8px; font: 600 0.56rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #6a6973; }
.sa-tk { position: relative; margin-bottom: 8px; padding: 0.65rem 0.7rem; border-radius: 9px; background: #fff; border: 1px solid rgba(18, 18, 24, 0.07); }
.sa-tk b { display: block; padding-right: 1.8rem; font-size: 0.8rem; line-height: 1.3; color: #121218; }
.sa-tk p { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.5rem 0 0; }
.sa-tk p span { padding: 0.2rem 0.4rem; border-radius: 4px; font: 600 0.54rem/1 var(--mono); }
.sa-tk .t1 { background: rgba(79, 107, 255, 0.12); color: #3346b8; } .sa-tk .t2 { background: rgba(242, 169, 59, 0.16); color: #8a5a10; }
.sa-tk i { position: absolute; top: 0.6rem; right: 0.6rem; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #5b3fd6; color: #fff; font: 700 0.5rem/1 var(--sans); font-style: normal; }
.sa-tk.ghost { height: 44px; background: rgba(255, 255, 255, 0.45); border-style: dashed; }
.sa-live .sa-tk.sa-in:not(.on) { transform: translateY(-40px) scale(0.96); }

@media (max-width: 1080px) {
  .sa-pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sa-hero-dh .sa-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sa-hz-wrap { grid-template-columns: minmax(0, 1fr); }
  .sa-hz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sa-hz { min-height: 0; padding: 10px; }
  .sa-hz b { font-size: 1.3rem; }
  .sa-pl-grid { grid-template-columns: minmax(0, 1fr); }
  .sa-kb { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); }
  .sa-kb-col:last-child { display: none; }
  .sa-fd-where span { display: none; }
}

/* =============================================================== responsive (group) */
@media (max-width: 1080px) {
  .sa-stk-wrap { grid-template-columns: minmax(0, 1fr); }
  .sa-stk-key { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
  .sa-same-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
  .sa-same-line { display: none; }
}
@media (max-width: 860px) {
  .sa-hero-grid, .sa-two { grid-template-columns: minmax(0, 1fr); }
  .sa-hero, .sa-pinned { height: auto !important; }
  .sa-hero > .sg-pin, .sa-pinned > .sg-pin { position: relative; height: auto; overflow: visible; padding: calc(var(--w-header-h) + 2rem) 0 4.5rem; }
  .sa-pinned > .sg-pin { padding-top: 4.5rem; }
  .sa-same-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 760px) {
  .sa-stk { height: 340px; }
  .sa-stk-3d { transform: rotateX(57deg) rotateZ(-38deg) scale3d(0.62, 0.62, 0.62); top: 80%; }
  .sa-stk-key { grid-template-columns: minmax(0, 1fr); }
  .sa-k span { display: none; }
  .sa-k .sg-pill { display: none; }
  .sa-same-row { grid-template-columns: minmax(0, 1fr); }
  .sa-pl-box { height: auto; min-height: 120px; }
  .sa-pl-dash svg { position: static; width: 100%; margin-top: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-hero, .sa-pinned { height: auto !important; }
  .sa-hero > .sg-pin, .sa-pinned > .sg-pin { position: relative; height: auto; overflow: visible; padding-bottom: 5rem; }
  .sa-hero > .sg-pin { padding-top: calc(var(--w-header-h) + 3rem); }
  .sa-pinned > .sg-pin { padding-top: 5rem; }
}

/* ---------- no badges: states are plain words ---------- */
.sa-st i, .sa-st .a, .sa-st .b { padding: 0; border-radius: 0; background: none; }
