/* The call copilot: one page of figures, in the demo player's look. Navy ground, Geist, the sign yellow for the one
   thing to look at in each figure, grey for context. One look (dark), as before. */

:root {
  color-scheme: dark;
  --bg: #0A1230; --raise: #111B3F; --raise-2: #16214A; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --ink: #F2F4F8; --ink-2: #B5BBCA; --ink-3: #8F97AD;
  --yellow: #F0EB5E; --bar: #6B7699; --track: #1F2950; --tick: #F2F4F8;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --top-h: 52px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ the top line */
.top { position: sticky; z-index: 40; top: 0; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: rgba(10, 18, 48, .94); box-shadow: inset 0 -1px 0 var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-2 { color: var(--ink-3); font-weight: 400; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: none; }
.asof { font-size: 13px; color: var(--ink-3); text-align: right; }
@media (max-width: 480px) { .asof { max-width: 9.5em; line-height: 1.25; } }

/* ------------------------------------------------------------------ layout: contents on the left on wide screens */
.layout { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.toc { display: none; }
@media (min-width: 1180px) {
  .layout { display: grid; grid-template-columns: 188px minmax(0, 1fr); column-gap: 56px; }
  .toc { display: grid; align-content: start; gap: 2px; position: sticky; top: calc(var(--top-h) + 40px); align-self: start; padding-top: 72px; }
  .toc a { padding: 5px 0; font-size: 14px; line-height: 1.35; color: var(--ink-3); text-decoration: none; transition: color .15s ease; }
  .toc a:hover { color: var(--ink); }
  .toc a.on { color: var(--ink); font-weight: 500; }
}
main { min-width: 0; max-width: 1120px; }

/* ------------------------------------------------------------------ sections */
.sec { padding: 64px 0 60px; box-shadow: inset 0 1px 0 var(--line); }
.sec:first-child { box-shadow: none; }
.sec-hero { padding-top: 56px; }
h1 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; font-weight: 600; letter-spacing: -.028em; max-width: 20em; text-wrap: balance; }
.hl { color: var(--yellow); }
h2 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.022em; max-width: 26em; text-wrap: balance; }
.note { margin-top: 28px; max-width: 46em; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.note + .note { margin-top: 10px; }
.note b { color: var(--ink); font-weight: 600; }
.later { display: inline-block; margin-bottom: 16px; padding: 5px 10px 6px; font-size: 14px; font-weight: 500; color: var(--bg); background: var(--ink-2); }

.two { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
@media (min-width: 900px) { .two-qa { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.fig-narrow { margin-top: 36px; max-width: 760px; }

/* ------------------------------------------------------------------ figure titles and keys */
.fig-t { margin-bottom: 16px; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.fig-u { margin-left: 6px; font-weight: 400; color: var(--ink-3); }
.fig-n { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -6px 0 16px; font-size: 14px; color: var(--ink-2); }
.key li, .seg-key li { display: flex; align-items: center; gap: 8px; }
.key li > span, .seg-key li > span { display: inline; }
.sw { flex: none; width: 12px; height: 12px; border-radius: 2px; }
.sw-y { background: var(--yellow); } .sw-g { background: var(--bar); }

/* ------------------------------------------------------------------ the headline */
.hero { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: end; } }
.hero-n { font-size: clamp(88px, 11vw, 168px); line-height: .9; font-weight: 600; letter-spacing: -.055em; color: var(--yellow); }
.hero-cap { margin-top: 10px; font-size: 18px; color: var(--ink-2); }
.seg { margin-top: 28px; display: flex; gap: 2px; height: 28px; }
.seg i { display: block; min-width: 2px; border-radius: 4px; cursor: default; }
.seg-y { background: var(--yellow); } .seg-g { background: var(--bar); }
.seg i:hover, .seg i:focus-visible { filter: brightness(1.15); }
.seg-key { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.seg-key b { font-weight: 600; color: var(--ink); }

/* stat tiles */
.tiles { display: grid; gap: 22px; }
.tile { padding-top: 14px; box-shadow: inset 0 1px 0 var(--line-2); }
.tile dt { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.tile dt .of { font-size: .55em; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); }
.tile dd { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 22em; }
.tiles-row { margin-top: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 840px; }
@media (max-width: 640px) { .tiles-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles-row dt { font-size: clamp(44px, 5vw, 64px); color: var(--yellow); }

/* ------------------------------------------------------------------ bars (one series, value at the tip) */
.bars { display: grid; gap: 4px; }
.bar-row, .meter-row { display: grid; grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr); column-gap: 16px; align-items: center;
  min-height: 34px; padding: 2px 0; cursor: default; border-radius: 4px; }
.bars-wide .bar-row { grid-template-columns: minmax(0, 17em) minmax(0, 1fr); }
.bar-label { font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.hot > .bar-label { color: var(--ink); font-weight: 500; }
.bar-track { display: flex; align-items: center; gap: 10px; min-width: 0; height: 22px; padding-right: 3.2em; }
.bar-fill { flex: none; height: 20px; min-width: 2px; background: var(--bar); border-radius: 0 4px 4px 0; }
.hot .bar-fill { background: var(--yellow); }
.bar-val { flex: none; margin-right: -3.2em; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.hot .bar-val { color: var(--ink); font-weight: 600; }
.bar-row:hover .bar-fill, .bar-row:focus-visible .bar-fill, .meter-row:hover .meter i, .meter-row:focus-visible .meter i { filter: brightness(1.18); }
.bar-row:hover, .meter-row:hover { background: rgba(255, 255, 255, .03); }

/* meters: "x of y". The label and its figures on one line, the bar under them, full width. */
.meters { display: grid; gap: 10px; }
.meter-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 12px; align-items: baseline; padding: 4px 0; }
.meter { grid-column: 1 / -1; position: relative; display: block; height: 18px; background: var(--track); border-radius: 4px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar); border-radius: 4px 0 0 4px; }
.hot .meter i { background: var(--yellow); }
.meter-val { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-val b { font-size: 16px; font-weight: 600; color: var(--ink); }
.meter-val small { font-size: 13.5px; color: var(--ink-3); }
.meter-solo { margin-top: 26px; height: 28px; cursor: default; }
.meter-solo i { background: var(--yellow); }
.xofy-cap { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* the target mark on the test meters */
.target { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--tick); }
.target-key { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.target-key i { flex: none; width: 2px; height: 16px; background: var(--tick); }
.meters-test { gap: 18px; }
.meters-test .meter { height: 26px; }
.meters-test .meter i { background: var(--yellow); }

/* twenty calls */
.dots { display: grid; grid-template-columns: repeat(10, 22px); gap: 6px; margin-bottom: 18px; }
.dots i { display: block; width: 22px; height: 22px; border-radius: 4px; }
.dot-y { background: var(--yellow); } .dot-g { background: var(--bar); }

/* on a phone, the label goes above its bar */
@media (max-width: 600px) {
  .bar-row, .bars-wide .bar-row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 4px 0; }
  .bar-label { font-size: 14.5px; }
}

/* ------------------------------------------------------------------ what the copilot does */
.does { margin-top: 32px; display: grid; gap: 0; }
.do { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 10px; padding: 20px 0; box-shadow: inset 0 1px 0 var(--line); }
.do:first-child { box-shadow: none; }
@media (min-width: 900px) { .do { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 20em); column-gap: 24px; align-items: start; } }
.do-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--raise-2); color: var(--yellow); }
.do-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.do-body h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.do-body p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.do-fig { grid-column: 2; display: flex; align-items: baseline; gap: 12px; }
@media (min-width: 900px) { .do-fig { grid-column: 3; } }
.do-fig b { flex: none; font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--yellow); }
.do-fig span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ------------------------------------------------------------------ the reckoner */
.reck { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 28px; background: var(--raise); border-radius: 10px; }
@media (min-width: 900px) { .reck { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 32px 36px; } }
@media (max-width: 480px) { .reck { padding: 20px 16px; } }
.reck-in { display: grid; gap: 24px; align-content: start; }
.tag { display: inline-block; flex: none; padding: 2px 7px 3px; border-radius: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.tag-m { background: var(--yellow); color: var(--bg); }
.tag-a { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.given p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.given b { color: var(--ink); font-weight: 600; }
.given-2 { font-size: 14px; color: var(--ink-2); }
.given-2 .tag { margin-right: 8px; }
.slider { display: grid; gap: 10px; }
.slider-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.slider-top output { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--yellow); cursor: pointer; }
.reck-bar { position: relative; height: 28px; background: var(--bar); border-radius: 4px; overflow: hidden; }
.reck-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--yellow); border-right: 2px solid var(--raise); }
.reck-bar-cap { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.reck-bar-cap span { color: var(--ink); font-weight: 600; }
.tiles-reck { margin-top: 26px; gap: 18px; }
.tiles-reck dt { font-variant-numeric: normal; }

/* ------------------------------------------------------------------ what is needed next */
.needs { margin-top: 32px; display: grid; gap: 0; counter-reset: need; }
@media (min-width: 900px) { .needs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.needs li { padding: 18px 0; box-shadow: inset 0 1px 0 var(--line-2); display: grid; gap: 6px; }
.needs b { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.needs li > span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dates { margin-top: 32px; display: grid; gap: 10px; max-width: 760px; }
.dates li { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 4px 20px; padding: 14px 16px; background: var(--raise); border-radius: 8px; }
.dates b { font-weight: 600; font-size: 15.5px; }
.dates span { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 600px) { .dates li { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ method */
.sec-method { padding-bottom: 96px; }
.method { display: grid; gap: 14px; max-width: 34em; }
.method li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.method li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

/* ------------------------------------------------------------------ tooltip */
.tip { position: fixed; z-index: 60; max-width: 280px; padding: 9px 12px 10px; background: #fff; color: #0A1230; font-size: 13.5px; line-height: 1.4;
  pointer-events: none; border-radius: 6px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); }
.tip b { display: block; font-size: 16px; font-weight: 600; }
.tip span { color: #4B536E; }

@media print { .top, .toc { display: none; } }
