/* The example figures (app-showcase.js) the landing and the "How it works" page share, in Joe's redesign (Nov 2026):
   the tabbed card, the ranked list, the tips, the forecast chart, the step cards' pictures and the founder's video.
   Its own tokens (--sc-*), dark first, then light under html[data-pf-theme="light"]. Yellow is the same bright
   #FFF55B in both themes, always with navy text on it; where yellow was text in dark, light uses the logo's blue. */

:root{
  --sc-bg:#0B1424;--sc-card:#111D33;--sc-card2:#13213A;--sc-inset:#0E1829;--sc-line:rgba(173,196,227,.12);
  --sc-fg:#F1F5FB;--sc-dim:#A9B6C9;--sc-dim2:#7F8DA3;--sc-accent:#FFF55B;
  --sc-yellow:#FFF55B;--sc-on-yellow:#0B1424;--sc-bar:#4F81BC;--sc-track:rgba(173,196,227,.08);
  --sc-num-bg:rgba(255,245,91,.12);--sc-num-fg:#FFF55B;--sc-chip-bg:#DCE7F5;--sc-chip-fg:#0B1424;
  --sc-col:#2E4A70;--sc-with:#FFF55B;--sc-shadow:0 30px 60px rgba(0,0,0,.35);
  --sc-head:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-pf-theme="light"]{
  --sc-bg:#F5F7FB;--sc-card:#FFFFFF;--sc-card2:#FBFCFE;--sc-inset:#EEF2F8;--sc-line:rgba(11,32,57,.10);
  --sc-fg:#0E1A2C;--sc-dim:#4A5A70;--sc-dim2:#5E6E85;--sc-accent:#2F588C;
  --sc-track:rgba(11,32,57,.07);--sc-num-bg:#E8EEF6;--sc-num-fg:#2F588C;--sc-chip-bg:#DCE7F5;
  --sc-col:#C9D8EE;--sc-with:#D4B300;--sc-shadow:0 24px 50px rgba(11,32,57,.10);
}

.sc-note{margin:14px 0 0;font-size:.78rem;color:var(--sc-dim2)}
.sc-kicker{margin:0 0 4px;font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sc-dim2)}
.sc-mark{display:block;flex:none;border-radius:10px}
/* A step's number: "01", "02", "03" (the landing's step cards, the "How it works" steps). */
.sc-num,.home-num{display:inline-grid;place-items:center;min-width:32px;height:30px;padding:0 6px;border-radius:8px;background:var(--sc-num-bg);color:var(--sc-num-fg);font-size:.85rem;font-weight:700}

/* Buttons: the yellow pill. */
.sc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 22px;border:0;border-radius:999px;
  background:var(--sc-yellow);color:var(--sc-on-yellow);font:inherit;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer}
.sc-btn:hover{filter:brightness(.96);box-shadow:0 8px 22px rgba(255,245,91,.18)}
.sc-btn:focus-visible{outline:3px solid var(--sc-fg);outline-offset:3px}

/* The ranked list */
.sc-rank{list-style:none;margin:0;padding:0}
.sc-rank-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:12px;padding:5px 0;color:var(--sc-fg);font-size:.95rem}
.sc-rank--bars .sc-rank-row{grid-template-columns:24px minmax(0,1fr) minmax(60px,120px) 56px}
.sc-rank-n{color:var(--sc-dim2)}
.sc-rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-rank-v{text-align:right;font-variant-numeric:tabular-nums}
.sc-rank-bar{display:block;height:5px;border-radius:999px;background:transparent}
.sc-rank-fill{display:block;height:100%;width:calc(var(--sc-share,0) * 100%);border-radius:inherit;background:var(--sc-bar)}
.sc-rank-row.is-you{margin:6px -12px;padding:9px 12px;border-radius:10px;background:var(--sc-yellow);color:var(--sc-on-yellow);font-weight:700}
.sc-rank-row.is-you .sc-rank-n{color:var(--sc-on-yellow)}
.sc-rank-row.is-you .sc-rank-fill{background:var(--sc-on-yellow)}
/* The landing card's animation (app-showcase-motion.js): your row slides over the one it overtakes, with its gain. */
.sc-rank-row.is-you{position:relative;z-index:1}
/* The places you climbed, beside the rank in the card's head. */
.sc-up{flex:none;align-self:center;margin-left:auto;padding:0 9px;border-radius:999px;background:var(--sc-yellow);color:var(--sc-on-yellow);font-size:.78rem;font-weight:700;line-height:22px;white-space:nowrap}
.sc-tip.is-best{border-color:var(--sc-yellow);box-shadow:0 0 0 1px var(--sc-yellow) inset}
html[data-pf-theme="light"] .sc-tip.is-best{border-color:#D4B300;box-shadow:0 0 0 1px #D4B300 inset}
.sc-tip,.sc-tip-v{transition:border-color .3s,box-shadow .3s}
.sc-demo-note{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sc-replay{display:inline-flex;align-items:center;gap:6px;min-height:32px;margin:14px 0 0;padding:0 2px;border:0;background:none;color:var(--sc-dim2);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer}
.sc-replay::before{content:"↻";font-size:.95rem;line-height:1}
.sc-replay:hover{color:var(--sc-fg)}
.sc-replay:focus-visible{outline:2px solid var(--sc-fg);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){.sc-replay{display:none}}
html.pf-reduce-motion .sc-replay{display:none}

/* The tips */
.sc-tip-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sc-tip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border:1px solid var(--sc-line);border-radius:14px;background:var(--sc-card)}
.sc-tip-words{display:flex;flex-direction:column;min-width:0}
.sc-tip-t{font-weight:600;color:var(--sc-fg)}
.sc-tip-s{font-size:.85rem;color:var(--sc-dim2)}
.sc-tip-v{flex:none;font-size:1.35rem;font-weight:800;letter-spacing:-.02em;color:var(--sc-accent);font-variant-numeric:tabular-nums}
.sc-marcus{display:flex;align-items:flex-start;gap:14px;margin:16px 0 0;color:var(--sc-fg);font-size:.92rem;line-height:1.5}
.sc-marcus b{font-weight:700}
.sc-tips--compact .sc-tip-list{gap:8px}
.sc-tips--compact .sc-tip{padding:10px 14px;background:var(--sc-inset)}
.sc-tips--compact .sc-tip-t{font-size:.92rem}
.sc-tips--compact .sc-tip-s{font-size:.8rem}
.sc-tips--compact .sc-tip-v{font-size:1.1rem}
.sc-tips--compact .sc-marcus{font-size:.86rem;margin-top:12px}

/* The forecast chart (SVG) and its key */
.sc-chart{display:block;width:100%;height:auto;overflow:visible}
.sc-chart-bar{fill:var(--sc-col)}
.sc-chart-axis{stroke:var(--sc-line);stroke-width:1.5}
.sc-chart-split{stroke:var(--sc-dim2);stroke-width:1;stroke-dasharray:4 5;opacity:.6}
.sc-chart-now{fill:none;stroke:#6E9AD3;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sc-chart-with{fill:none;stroke:var(--sc-with);stroke-width:3.5;stroke-dasharray:12 8;stroke-linecap:round}
.sc-chart-dot{fill:var(--sc-with)}
.sc-chart-label{fill:var(--sc-dim);font-size:14px;font-family:inherit}
/* The competitors' levels, named, and your name at the end of the path with the changes. A level lights up once the
   path has passed it (app-showcase-motion.js playForecast). */
.sc-chart-rival line{stroke:var(--sc-dim2);stroke-width:1;stroke-dasharray:2 5;opacity:.55}
.sc-chart-rival text{fill:var(--sc-dim);font-size:13px;font-weight:600;font-family:inherit}
.sc-chart-rival.is-passed line{stroke:var(--sc-with);opacity:.6}
.sc-chart-rival.is-passed text{fill:var(--sc-fg)}
.sc-chart-tick{fill:var(--sc-with)}
.sc-chart-you{fill:var(--sc-accent);font-size:13px;font-weight:700;font-family:inherit}
.sc-chart-you.is-waiting{opacity:0}
.sc-key{display:flex;flex-wrap:wrap;gap:6px 22px;list-style:none;margin:14px 0 0;padding:0;font-size:.88rem;color:var(--sc-fg)}
.sc-key li{display:inline-flex;align-items:center;gap:8px}
.sc-key li::before{content:"";width:18px;height:3px;border-radius:2px;background:#6E9AD3}
.sc-key .sc-key-with::before{background:var(--sc-with)}

/* A panel: a card on the page */
.sc-card{border:1px solid var(--sc-line);border-radius:24px;background:linear-gradient(180deg,var(--sc-card),var(--sc-card2));color:var(--sc-fg)}

/* The landing's tabbed card */
.sc-demo{padding:22px 28px 26px;border:1px solid var(--sc-line);border-radius:24px;background:var(--sc-card);box-shadow:var(--sc-shadow);color:var(--sc-fg)}
.sc-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 26px;border:1px solid var(--sc-line);border-radius:14px;background:var(--sc-bg)}
html[data-pf-theme="light"] .sc-tabs{background:var(--sc-inset)}
.sc-tab{min-height:44px;padding:8px 10px;border:0;border-radius:10px;background:none;color:var(--sc-fg);font:inherit;font-size:.92rem;font-weight:600;cursor:pointer}
.sc-tab:hover{background:var(--sc-track)}
.sc-tab[aria-selected="true"]{background:var(--sc-yellow);color:var(--sc-on-yellow)}
.sc-tab:focus-visible{outline:3px solid var(--sc-fg);outline-offset:1px}
/* The panels share one grid cell, so the card is as tall as the tallest and doesn't jump between tabs. A hidden panel
   keeps its room but is invisible, which also takes it out of the tab order and the accessibility tree. */
.sc-panels{display:grid}
.sc-panel{grid-area:1/1;min-width:0;display:flex;flex-direction:column}
.sc-demo .sc-panel[hidden]{display:flex!important;visibility:hidden}
/* The shorter panels' spare room goes above their foot, so the button row lines up on every tab. */
.sc-panel .sc-demo-foot{margin-top:auto}
.sc-panel>:nth-last-child(3){margin-bottom:18px}
.sc-panel:focus-visible{outline:3px solid var(--sc-fg);outline-offset:6px;border-radius:8px}
.sc-demo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 18px}
.sc-demo-t{margin:0;font-size:1.12rem;font-weight:700;line-height:1.3}
.sc-demo-side{flex:none;margin:0;font-size:1.6rem;font-weight:800;letter-spacing:-.02em;line-height:1;color:var(--sc-accent)}
.sc-demo .sc-demo-head .sc-demo-side{font-size:1.6rem}
.sc-demo-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin:18px 0 0;padding:18px 0 0;border-top:1px solid var(--sc-line)}
.sc-demo-line{margin:0;color:var(--sc-fg);font-size:.95rem}
.sc-demo-chart{padding:4px 0 0}
.sc-demo-chart .sc-chart{max-height:210px}

/* The step cards' small pictures */
.sc-mini{min-height:146px;padding:18px 20px;border:1px solid var(--sc-line);border-radius:14px;background:var(--sc-inset)}
.sc-mini-rank{display:grid;gap:9px;align-content:center}
.sc-mini-row{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;font-size:.8rem;color:var(--sc-dim)}
.sc-mini-row .sc-rank-bar{height:7px;background:var(--sc-track)}
.sc-mini-row.is-you .sc-mini-label{color:var(--sc-accent);font-weight:700}
.sc-mini-row.is-you .sc-rank-fill{background:var(--sc-yellow)}
html[data-pf-theme="light"] .sc-mini-row.is-you .sc-rank-fill{background:#F2DF3A}
.sc-mini.sc-mini-improve p{margin:0}
.sc-mini .sc-mini-k{font-size:.8rem;color:var(--sc-dim)}
.sc-mini .sc-mini-big{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:2px 0;font-size:2.1rem;font-weight:800;letter-spacing:-.03em;line-height:1.15;color:var(--sc-accent)}
.sc-mini .sc-mini-s{font-size:.8rem;color:var(--sc-dim)}
.sc-chip{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--sc-chip-bg);color:var(--sc-chip-fg);font-size:.78rem;font-weight:700;letter-spacing:0}
html[data-pf-theme="light"] .sc-chip{background:#D5E3F5}
.sc-mini-forecast,.sc-mini-improve{display:flex;flex-direction:column;justify-content:center}
/* Achieve (Powdr's step): it sits on Powdr blue in both themes, so its colours are fixed. */
.sc-mini-achieve{display:flex;flex-direction:column;justify-content:space-between;gap:12px;border-color:rgba(255,255,255,.14);background:#2A4E7F}
.sc-mini .sc-mini-head{display:flex;justify-content:space-between;gap:8px;margin:0;font-size:.78rem;color:#DCE7F5}
.sc-mini-head span:first-child{font-weight:700;color:#FFFFFF}
.sc-ach-budget{fill:rgba(220,231,245,.42)}
.sc-ach-actual{fill:#FFFFFF}

/* The founder's video: in a window over the landing, and inline on "How it works" */
.sc-video{display:block;width:100%;height:auto;background:#000;border-radius:inherit}
.sc-video-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:14px;border:1px solid var(--sc-line);border-radius:20px;background:var(--sc-card);color:var(--sc-fg)}
.sc-video-dialog::backdrop{background:rgba(3,10,20,.75)}
.sc-video-dialog .sc-video{max-height:calc(100dvh - 120px);border-radius:12px;object-fit:contain}
.sc-video-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.sc-video-title{margin:0;font-family:var(--sc-head);font-size:1.05rem;font-weight:700;letter-spacing:-.01em}
.sc-video-close{min-height:44px;padding:8px 18px;border:1px solid var(--sc-line);border-radius:999px;background:none;color:var(--sc-fg);font:inherit;font-weight:600;cursor:pointer}
.sc-video-close:focus-visible{outline:3px solid var(--sc-fg);outline-offset:2px}

@media (max-width:640px){
  .sc-demo{padding:16px 16px 20px;border-radius:20px}
  .sc-rank--bars .sc-rank-row{grid-template-columns:20px minmax(0,1fr) 48px 52px;gap:8px;font-size:.9rem}
  .sc-tip{padding:14px 16px}
  .sc-demo-foot .sc-btn{flex:1 1 100%}
  /* The landing card on a phone: Improve, the tallest panel, sets the card's height and left a gap under the
     Benchmark list. Its tips keep their title and value, and the line repeating Marcus's advice goes. */
  .sc-demo .sc-tip-s{display:none}
  .sc-demo .sc-tips--compact+.sc-demo-foot .sc-demo-line{display:none}
}
@media (forced-colors:active){
  .sc-rank-row.is-you,.sc-tab[aria-selected="true"]{border:2px solid CanvasText}
  .sc-rank-fill{background:CanvasText}
}
