/* the words layer re-reads its ink every frame (written as --ink-rgb on #words) */
.words { --ink: rgb(var(--ink-rgb)); --ink-2: rgba(var(--ink-rgb), 0.74); --ink-3: rgba(var(--ink-rgb), 0.6); --line: rgba(var(--ink-rgb), 0.13); --chip: rgba(var(--ink-rgb), 0.06); color: var(--ink); }
/* A chapter's words: its name, a bold statement with three points per segment, the control the scroll moves
   through, and (where it belongs) how to get the app. Bold carries the message; the rest is softer ink. */
.ch {
  --col: clamp(360px, 36vw, 540px);
  position: absolute; top: 76px; bottom: 64px; left: clamp(28px, 6.4vw, 120px); width: var(--col); z-index: 5;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.6vh, 26px); visibility: hidden;
  color: var(--ink);
}
.ch[data-col="narrow"] { --col: clamp(340px, 30.5vw, 470px); }
.ch[data-side="right"] { left: auto; right: clamp(28px, 6.4vw, 120px); }
.ch-head { display: flex; align-items: center; gap: 13px; }
.ch-glyph {
  flex: none; width: clamp(40px, 5.6vh, 48px); height: clamp(40px, 5.6vh, 48px); border-radius: 27%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 18px rgba(20, 50, 30, 0.12), inset 0 0 0 1px rgba(20, 50, 30, 0.08);
}
.ch-glyph > span { width: 100%; height: 100%; }
.ch-glyph svg { width: 58%; height: 58%; }
.ch-head p { display: flex; flex-direction: column; gap: 1px; }
.ch-head b { font-size: 18px; font-weight: 740; letter-spacing: -0.01em; }
.ch-head span { font-size: 14px; font-weight: 520; color: var(--ink-2); text-wrap: pretty; }

.ch-stmts { position: relative; width: 100%; }
.stmt { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; }
.stmt h2 {
  font-size: clamp(32px, min(3.8vw, 6.2vh), 66px); font-weight: 800; font-stretch: 112%; line-height: 0.99; letter-spacing: -0.035em;
  margin-bottom: clamp(14px, 2.6vh, 30px); text-wrap: balance;
}
.ch[data-col="narrow"] .stmt h2 { font-size: clamp(30px, min(3.3vw, 5.8vh), 58px); }
.stmt h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.05em 0 0.12em; margin: -0.05em 0 -0.12em; }
.stmt h2 .w > span { display: inline-block; will-change: transform, opacity; }
.stmt ul { list-style: none; display: grid; gap: clamp(9px, 1.7vh, 17px); }
.stmt li { --ic: clamp(32px, 4.6vh, 38px); display: grid; grid-template-columns: var(--ic) minmax(0, 1fr); gap: clamp(11px, 1.1vw, 15px); align-items: start; will-change: transform, opacity; }
.pt-ic {
  width: var(--ic); height: var(--ic); border-radius: 30%; display: grid; place-items: center; color: var(--acc, #1f7a3f);
  background: color-mix(in oklab, var(--acc, #4bbc6b) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--acc, #4bbc6b) 22%, transparent);
}
.pt-ic .i { width: 52%; height: 52%; }
.stmt li p { --fs: clamp(14.5px, min(1.13vw, 2.05vh), 17.5px); padding-top: calc((var(--ic) - var(--fs) * 1.42) / 2); font-size: var(--fs); line-height: 1.42; color: rgba(var(--ink-rgb), var(--soft)); font-weight: 430; text-wrap: pretty; }
.stmt li b { color: var(--ink); font-weight: 680; }

/* the segmented control: the scroll moves the thumb; a click scrolls to that segment */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
.seg-thumb { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: var(--thumb); box-shadow: 0 3px 10px rgba(10, 30, 18, 0.18); }
.seg { --sh: clamp(32px, 4.5vh, 38px); --sp: clamp(9px, 1.02vw, 15px); --segf: clamp(12.5px, 1vw, 14.5px); }
.seg button { position: relative; z-index: 1; height: var(--sh); padding: 0 var(--sp); border-radius: 999px; font-size: var(--segf); font-weight: 620; white-space: nowrap; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg-ink { position: absolute; inset: 0; z-index: 2; display: flex; padding: 4px; pointer-events: none; }
.seg-ink span { height: var(--sh); padding: 0 var(--sp); display: grid; place-items: center; font-size: var(--segf); font-weight: 620; white-space: nowrap; color: var(--thumb-ink); }

.ch-get { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: clamp(40px, 5.4vh, 48px); width: auto; }
.badge:hover img { filter: brightness(1.25); }
.ch-get small { font-size: 13.5px; color: var(--ink-2); max-width: 26ch; line-height: 1.38; text-wrap: pretty; }
/* not out yet: a status, not a button */
.soon { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 640; }
.soon::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
