/* A chapter's words: which session it is and who it's for, a bold statement with its points, the control the
   scroll moves through, and how to get the app. Bold words carry the message; the rest is softer ink. */
/* the column sits between the nav and the rail; everything in it scales with the window */
.ch {
  position: absolute; top: clamp(76px, 9vh, 104px); bottom: clamp(108px, 12vh, 140px); left: clamp(28px, 6.4vw, 160px); width: clamp(360px, 36vw, 760px); z-index: 5;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.5vh, 26px); visibility: hidden;
}
.ch[data-side="right"] { left: auto; right: clamp(28px, 6.4vw, 160px); }

/* the session: its dot (a cup for breaks), its name and length, and who it is for */
.ch-head { display: flex; align-items: center; gap: 13px; }
.ch-dot { position: relative; flex: none; width: clamp(38px, 5.4vh, 46px); height: clamp(38px, 5.4vh, 46px); border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--acc); }
.ch-dot::before { content: ""; width: 44%; height: 44%; border-radius: 50%; background: var(--acc); }
.ch-dot.is-cup::before { display: none; }
.ch-dot svg { width: 54%; height: 54%; color: var(--acc-ink, var(--acc)); }
.ch-head p { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-head b { font-size: clamp(18px, 1.25vw, 26px); font-weight: 740; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ch-head span { font-size: clamp(14px, 0.95vw, 20px); font-weight: 560; color: var(--ink-3); text-wrap: pretty; }

.ch-stmts { position: relative; width: 100%; }
.stmt { position: absolute; inset: 0 0 auto; visibility: hidden; }
.stmt h2 {
  font-size: clamp(32px, min(3.9vw, 6.4vh), 100px); font-weight: 820; font-stretch: 125%; line-height: 0.98; letter-spacing: -0.035em;
  margin-bottom: clamp(12px, 2.4vh, 28px); text-wrap: balance;
}
.stmt h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.1em; margin: -0.04em 0 -0.1em; }
.stmt h2 .w > span { display: inline-block; will-change: transform, opacity; }
.stmt ul { list-style: none; display: grid; gap: clamp(9px, 1.6vh, 17px); }
.stmt li { --ic: clamp(32px, 4.8vh, 54px); 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-ink, var(--acc));
  background: color-mix(in oklab, var(--acc) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--acc) 24%, transparent);
}
.words[data-tone="light"] .pt-ic { background: rgba(21, 18, 10, 0.08); box-shadow: inset 0 0 0 1px rgba(21, 18, 10, 0.1); }
.pt-ic .i { width: 52%; height: 52%; }
.stmt li p {
  --fs: clamp(14px, min(1.15vw, 2.1vh), 25px); 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: 690; }

/* the segmented control: the thumb glides with the scroll; the label under it is a second, clipped layer */
.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 4px 14px rgba(0, 0, 0, 0.2); }
.seg { --sh: clamp(32px, 4.6vh, 52px); --sp: clamp(9px, 1.05vw, 22px); --segf: clamp(12.5px, 1.02vw, 20px); max-width: 100%; }
.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); }

/* how to get it: Apple's own badge, so it never looks like the control's thumb */
.ch-get { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge { display: inline-flex; border-radius: 10px; }
.badge img { height: clamp(42px, 5.8vh, 66px); width: auto; }
.badge:hover img { filter: brightness(1.25); }
.words[data-tone="light"] .badge img { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16); border-radius: 10px; }
.ch-get small { font-size: clamp(13px, 0.9vw, 18px); line-height: 1.38; color: var(--ink-3); max-width: 24ch; text-wrap: pretty; }
.soon { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; }
.soon::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px color-mix(in oklab, var(--acc) 24%, transparent); }
