:root {
  --ink: #16201d;
  --ink-2: #1f2b26;
  --paper: #f4f6f4;
  --card: #ffffff;
  --line: #dfe4e0;
  --muted: #6b746f;
  --accent: #0b6b53;
  --accent-bright: #19a37f;
  --accent-soft: #e3efe9;
  --signal: #b45309;
  --signal-soft: #fbeedd;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, .dt:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.display { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 10.5px; font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------- sticky lifecycle strip ---------------- */
.strip-wrap { background: var(--ink); border-bottom: 1px solid #2c3a34; position: sticky; top: 0; z-index: 40; }
.strip-head { max-width: 1100px; margin: 0 auto; padding: 12px 32px 0; }
.strip-head .brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700;
  color: #fff; font-size: 14px; text-decoration: none;
}
.strip-head .brand > span:first-of-type { color: var(--accent-bright); }
.strip-head .brand-sub { color: #8fa39a; font-weight: 400; font-size: 12px; margin-left: 10px; font-family: "Inter", system-ui, sans-serif; }
.strip { max-width: 1100px; margin: 0 auto; padding: 8px 24px 12px; overflow-x: auto; }
.strip ol { list-style: none; display: flex; gap: 3px; min-width: max-content; }
.strip a {
  display: block; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: #9fb3aa; text-decoration: none; white-space: nowrap;
}
.strip a:hover { color: #fff; background: #2a362f; }
.strip a.current { background: var(--accent-bright); color: var(--ink); font-weight: 600; }
.strip::-webkit-scrollbar { height: 5px; }
.strip::-webkit-scrollbar-thumb { background: #33413a; border-radius: 6px; }

/* ---------------- chapter cover ---------------- */
.cover { background: var(--ink); color: #eef3f0; padding: 60px 32px 66px; position: relative; overflow: hidden; }
.cover-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.cover .big-num {
  position: absolute; right: -20px; top: -70px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(180px, 28vw, 320px); line-height: 1; color: #202e28;
  user-select: none; z-index: 0;
}
.cover .eyebrow { color: var(--accent-bright); position: relative; z-index: 1; }
.cover h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(36px, 5.5vw, 60px); letter-spacing: -0.025em; line-height: 1.04;
  margin: 14px 0 20px; position: relative; z-index: 1; max-width: 760px;
}
.cover .dek {
  font-family: "Newsreader", Georgia, serif; font-style: italic;
  font-size: clamp(17px, 2.1vw, 22px); color: #b9c9c1; max-width: 620px;
  position: relative; z-index: 1; line-height: 1.5;
}
.cover.hero { padding: 84px 32px 90px; }
.cover.hero h1 { font-size: clamp(42px, 6.5vw, 76px); }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta {
  display: inline-block; background: var(--accent-bright); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 22px; border-radius: 999px;
}
.cta:hover { background: #2fbd97; }
.cta.ghost { background: transparent; color: #d6e5de; border: 1px solid #43534b; }
.cta.ghost:hover { border-color: var(--accent-bright); color: #fff; background: transparent; }

/* ---------------- content ---------------- */
.content { max-width: 1100px; margin: 0 auto; padding: 52px 32px 88px; }
.prose { max-width: 680px; }
.prose p { margin-bottom: 17px; font-size: 16.5px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 10px; font-size: 16px; }
.prose blockquote {
  border-left: 3px solid var(--accent); background: var(--card);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 18px;
  font-size: 15px; color: #3c463f;
}
h2.section {
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700;
  font-size: 25px; letter-spacing: -0.015em; margin: 52px 0 16px;
}
.prose h2.section + p { margin-top: 0; }
.section-dek { color: var(--muted); margin-bottom: 24px; max-width: 640px; }
.note-line { font-size: 13.5px; color: var(--muted); font-style: italic; }

.tldr {
  border-left: 4px solid var(--signal); background: var(--signal-soft);
  border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 0 0 36px; max-width: 680px;
}
.tldr .eyebrow { color: var(--signal); margin-bottom: 8px; }
.tldr p { font-size: 15px; margin: 0; color: #45392a; }

/* tables */
.table-scroll { overflow-x: auto; margin: 24px 0; max-width: 860px; }
table { border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; min-width: 480px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: #fafbfa; }
tr:last-child td { border-bottom: none; }

/* ---------------- glossary tooltips ---------------- */
.dt {
  border-bottom: 1.5px dotted var(--accent);
  color: var(--accent); font-weight: 500;
  cursor: help; position: relative;
}
.dt::after {
  content: attr(data-def);
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  width: 290px; max-width: 78vw;
  background: var(--ink); color: #eef3f0;
  font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-style: normal;
  font-weight: 400; line-height: 1.5; letter-spacing: 0;
  padding: 11px 14px; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(20,30,25,0.25);
  opacity: 0; pointer-events: none; transition: opacity 0.12s;
  z-index: 50;
}
.dt::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
  opacity: 0; transition: opacity 0.12s; z-index: 50;
}
.dt:hover::after, .dt:focus::after, .dt:hover::before, .dt:focus::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dt::after, .dt::before { transition: none; } }

/* ---------------- journey map (index) ---------------- */
.ground-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 56px; }
.ground-rules .rule {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; font-size: 14.5px; color: #3c463f;
}
.map { margin-bottom: 72px; }
.stage { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-bottom: 8px; }
.stage-head { padding-top: 26px; }
.stage-name { color: var(--accent); margin-bottom: 8px; }
.stage-cap { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.stops { border-left: 2px solid var(--line); padding: 10px 0 26px 0; }
.stop {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 20px 16px 28px; margin-left: -2px;
  border-left: 2px solid transparent;
  text-decoration: none; color: inherit;
}
.stop:hover { background: var(--card); border-left-color: var(--accent); }
.stop:hover .stop-arrow { color: var(--accent); transform: translateX(4px); }
.stop-num {
  font-weight: 800; font-size: 28px; color: #c6d2cb; width: 52px; flex: none;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.stop:hover .stop-num { color: var(--accent); }
.stop-title { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; }
.stop-hook { font-family: "Newsreader", Georgia, serif; font-style: italic; color: var(--muted); font-size: 15px; margin-top: 2px; }
.stop-arrow { margin-left: auto; color: #c6d2cb; font-size: 18px; transition: transform 0.12s, color 0.12s; }
@media (prefers-reduced-motion: reduce) { .stop-arrow { transition: none; } }

.toolkit { margin-bottom: 24px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; text-decoration: none; color: inherit;
}
.tool:hover { border-color: var(--accent); }
.tool-letter { font-weight: 800; font-size: 24px; color: var(--accent); margin-bottom: 10px; }
.tool h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }
.tool p { font-size: 13.5px; color: var(--muted); }

/* ---------------- shared blocks (overrides may use these) ---------------- */
.margin-math { background: var(--ink); color: #eef3f0; border-radius: 16px; padding: 32px 36px; margin: 36px 0; max-width: 860px; }
.margin-math .eyebrow { color: var(--accent-bright); margin-bottom: 20px; }
.math-rows { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: flex-end; }
.math-item .label { font-size: 12px; color: #93a79e; margin-bottom: 4px; }
.math-item .value { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
.math-op { font-size: 28px; color: #5b6d65; padding-bottom: 6px; }
.math-item.result .value { color: var(--accent-bright); }
.math-alt { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #37453e; font-size: 15px; color: #b9c9c1; }
.math-alt strong { color: #fff; }
.math-alt .flip { color: var(--accent-bright); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 24px 0 10px; max-width: 960px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.card h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: #3c463f; margin: 0; }
.card .tag { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }

.progression { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px; margin: 32px 0; max-width: 860px; }
.progression .eyebrow { color: var(--muted); margin-bottom: 24px; }
.prog-track { position: relative; height: 6px; background: var(--line); border-radius: 3px; margin: 0 8px 26px; }
.prog-track .fill { position: absolute; inset: 0 40% 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--signal), var(--accent)); }
.prog-ends { display: flex; justify-content: space-between; gap: 24px; }
.prog-end { flex: 1; max-width: 320px; }
.prog-end .who { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.prog-end.late { text-align: right; }
.prog-end.early .who { color: var(--signal); }
.prog-end.late .who { color: var(--accent); }
.prog-end ul { list-style: none; font-size: 13.5px; color: #3c463f; margin: 0; }
.prog-end li { margin-bottom: 5px; }
.prog-end .num-big { font-weight: 700; font-variant-numeric: tabular-nums; }
.prog-caption { margin-top: 22px; font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 16px; }
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin: 16px 0 4px; }
.loop .step { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 6px 14px; }
.loop .arrow { color: var(--muted); }

.check-block { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 26px; margin: 24px 0; max-width: 760px; }
.check-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: none; }
.check-item .box { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--accent); border-radius: 6px; display: grid; place-items: center; color: var(--accent); font-size: 13px; font-weight: 700; }
.check-item h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.check-item p { font-size: 14px; color: #3c463f; margin: 0; }

.callout { border-left: 4px solid var(--signal); background: var(--signal-soft); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 28px 0; max-width: 680px; }
.callout .eyebrow { color: var(--signal); margin-bottom: 8px; }
.callout p { font-size: 15.5px; margin: 0; }

/* ---------------- footer / next ---------------- */
.next {
  margin-top: 60px; display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 26px; font-weight: 600; font-size: 15px;
  max-width: 860px;
}
.next a { text-decoration: none; }
.next a:hover { text-decoration: underline; }
.site-foot {
  max-width: 1100px; margin: 0 auto; padding: 0 32px 56px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.site-foot a { color: var(--muted); }
.site-foot .foot-plug { flex-basis: 100%; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; gap: 8px; }
  .stage-head { padding-top: 18px; }
  .stops { border-left: none; padding-left: 0; }
  .stop { padding-left: 12px; }
}
@media (max-width: 700px) {
  .cover, .cover.hero { padding: 44px 22px 52px; }
  .content { padding: 40px 22px 72px; }
  .strip-head { padding: 10px 22px 0; }
  .ground-rules { grid-template-columns: 1fr; }
  .math-item .value { font-size: 32px; }
  .prog-ends { flex-direction: column; }
  .prog-end.late { text-align: left; }
  .stop-num { width: 40px; font-size: 22px; }
  .stop { gap: 12px; }
}

/* ---------------- injected visual blocks ---------------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; max-width: 860px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.panel .eyebrow { color: var(--accent); margin-bottom: 10px; }
.panel.alt { border-color: var(--accent); }
.panel.warn { border-color: var(--signal); }
.panel.warn .eyebrow { color: var(--signal); }
.panel h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.panel ul { list-style: none; margin: 0; }
.panel li { font-size: 14px; color: #3c463f; margin-bottom: 8px; padding-left: 16px; position: relative; }
.panel li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.panel.warn li::before { color: var(--signal); }
.panel p { font-size: 14.5px; color: #3c463f; margin: 0; }
.panel-note { font-size: 13px !important; color: var(--muted) !important; margin-top: 14px !important; }

.step-sub { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.loop .step { line-height: 1.35; }
.loop .step.warn { background: var(--signal-soft); color: var(--signal); }
.loop .step.warn .step-sub { color: #97672a; }
.loop .step.danger { background: var(--signal); color: #fff; }
.loop .step.danger .step-sub { color: #f6dcc0; }
.loop.dark .step { background: #243129; color: #d6e5de; }
.loop.dark .step .step-sub { color: #8fa39a; }
.loop.dark .arrow { color: #7c8f86; }

.funnel { margin: 4px 0 6px; }
.f-row {
  width: var(--w); min-width: 240px; background: var(--accent-soft); color: var(--ink);
  border-radius: 8px; padding: 9px 14px; margin-bottom: 6px; font-size: 14px;
}
.f-row .f-n { font-weight: 700; color: var(--accent); margin-right: 6px; font-variant-numeric: tabular-nums; }
.f-row.last { background: var(--accent); color: #fff; }
.f-row.last .f-n { color: #fff; }

.ledger { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 26px 0; max-width: 680px; }
.ledger .eyebrow { color: var(--muted); margin-bottom: 14px; }
.l-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding: 7px 0; }
.l-row .val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-row.total { border-bottom: none; padding-top: 10px; font-weight: 600; }
.l-row.total .val { color: var(--accent); }
.l-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.tl { margin: 4px 0; }
.tl-row { display: grid; grid-template-columns: 88px 150px 1fr; gap: 14px; align-items: center; margin-bottom: 12px; }
.tl-when { font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-bar { position: relative; height: 8px; background: var(--line); border-radius: 4px; }
.tl-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); background: var(--accent); border-radius: 4px; }
.tl-bar.sig::after { background: var(--signal); }
.tl-what { font-size: 13.5px; color: #3c463f; }

.waterfall { margin: 4px 0; max-width: 560px; }
.wf-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--accent-soft); border-radius: 10px; padding: 11px 16px; margin-bottom: 6px;
  font-size: 14px; position: relative;
}
.wf-step .wf-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px;
}
.wf-step.you { background: var(--ink); color: #eef3f0; }
.wf-step.you .wf-n { background: var(--accent-bright); color: var(--ink); }
.wf-step em { color: inherit; opacity: 0.75; font-size: 13px; }

.spec-stops { display: flex; gap: 20px; margin-top: 4px; }
.spec-stop { flex: 1; font-size: 13.5px; }
.spec-stop strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.spec-stop span { color: var(--muted); line-height: 1.5; }
.spec-stop:first-child strong { color: var(--accent); }
.spec-stop.mid { text-align: center; }
.spec-stop.end { text-align: right; }
.spec-stop.end strong { color: var(--signal); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; }
.chips.muted .chip { background: #edf0ee; color: var(--muted); }

.cadence { margin: 24px 0; max-width: 760px; }
.cad-row { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; font-size: 14.5px; color: #3c463f; }
.cad-badge { flex: none; width: 84px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); padding-top: 3px; }

.bars { margin: 4px 0; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 130px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.bar-label { color: #3c463f; }
.bar { position: relative; height: 8px; background: var(--line); border-radius: 4px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--accent); border-radius: 4px; }
.bar-val { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

.pattern-map .card h3 { font-size: 15px; }
.pattern-map .card p { font-size: 13.5px; }

@media (max-width: 700px) {
  .duo { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 70px 1fr; }
  .tl-what { grid-column: 1 / -1; }
  .bar-row { grid-template-columns: 1fr 90px; }
  .bar { grid-column: 1 / -1; order: 3; }
  .spec-stops { flex-direction: column; }
  .spec-stop.mid, .spec-stop.end { text-align: left; }
}

/* ---------------- serpentine road map (index) ---------------- */
.road {
  position: relative; width: 860px; max-width: 100%;
  display: flex; flex-direction: column; gap: 56px;
  margin: 20px 0 130px;
}
.lane { position: relative; height: 118px; display: flex; gap: 32px; padding: 0 34px; }
.lane::before {
  content: ""; position: absolute; top: 51.5px; height: 3px;
  background: #c9d4cd; border-radius: 2px; left: 24px; right: 24px;
}
.lane.l1::before { left: 24px; right: 86px; }
.lane.l2::before { left: 86px; right: 86px; }
.lane.l3::before { left: 86px; right: 24px; background: linear-gradient(90deg, #c9d4cd 70%, rgba(201, 212, 205, 0)); }
.sw-stage { flex: 1; min-width: 0; }
.sw-label { color: var(--accent); height: 16px; line-height: 16px; margin-bottom: 14px; white-space: nowrap; }
.lane.rtl .sw-label { text-align: right; }
.sw-track { display: flex; justify-content: space-between; position: relative; }
.lane.rtl .sw-track { flex-direction: row-reverse; }
.curve { position: absolute; width: 87px; height: 177px; border: 3px solid #c9d4cd; }
.curve.right { right: 0; top: 51.5px; border-left: none; border-radius: 0 90px 90px 0; }
.curve.left { left: 0; top: 225.5px; border-right: none; border-radius: 90px 0 0 90px; }
.sw-stop {
  position: static; display: flex; flex-direction: column; align-items: center;
  width: 88px; text-decoration: none; z-index: 1;
}
.sw-name {
  font-size: 12.5px; font-weight: 600; color: #4a544e;
  text-align: center; margin-top: 10px; line-height: 1.3;
}
.sw-stop:hover .sw-name, .sw-stop:focus-visible .sw-name { color: var(--accent); }
.sw-dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px #c9d4cd;
  transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
}
.sw-stop:hover .sw-dot, .sw-stop:focus-visible .sw-dot {
  background: var(--accent); transform: scale(1.12);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
}
/* station display: one fixed caption slot below the road, never over the rails */
.sw-tip {
  position: absolute; top: calc(100% + 18px); left: 4px;
  max-width: 640px; background: var(--ink); color: #eef3f0;
  border-radius: 10px; padding: 14px 18px;
  font-size: 13.5px; line-height: 1.5; text-align: left;
  box-shadow: 0 8px 28px rgba(20,30,25,0.28);
  opacity: 0; pointer-events: none; transition: opacity 0.12s; z-index: 6;
}
.sw-tip b { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 15px; letter-spacing: -0.01em; margin-right: 10px; }
.sw-tip i { font-family: "Newsreader", Georgia, serif; color: #b9c9c1; }
.sw-stop:hover .sw-tip, .sw-stop:focus-visible .sw-tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sw-dot, .sw-tip { transition: none; } }
.sw-hint { font-size: 13px; color: var(--muted); margin-top: -104px; margin-bottom: 48px; }
@media (max-width: 719px) {
  /* vertical metro line: rail down the left, dots hanging off it */
  .road { width: 100%; gap: 36px; margin-bottom: 60px; }
  .curve { display: none; }
  .lane { height: auto; flex-direction: column; gap: 28px; padding: 0; margin-bottom: 0; }
  .lane::before { display: none; }
  .sw-label { padding-left: 60px; margin-bottom: 10px; }
  .lane.rtl .sw-label { text-align: left; }
  .sw-track { flex-direction: column; align-items: stretch; gap: 16px; }
  .lane.rtl .sw-track { flex-direction: column; }
  .sw-track::before {
    content: ""; position: absolute; left: 21.5px; top: 23px; bottom: 23px;
    width: 3px; background: #c9d4cd; border-radius: 2px;
  }
  .sw-stop { flex-direction: row; align-items: center; gap: 14px; width: auto; }
  .sw-name { margin-top: 0; text-align: left; }
  .sw-hint { margin-top: 0; }
}

.tools-slim { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-min {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px 8px 9px; text-decoration: none; color: inherit;
  font-size: 13.5px; font-weight: 600;
}
.tool-min:hover { border-color: var(--accent); }
.tool-min .tool-letter {
  font-size: 13px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0; font-weight: 800;
}
.rules-line { font-size: 13px; color: var(--muted); max-width: 720px; margin-top: 56px; line-height: 1.6; }
.rules-line strong { color: #4a544e; font-weight: 600; }

/* ---------------- mobile pass ---------------- */
@media (max-width: 719px) {
  .strip-head .brand-sub { display: none; }

  /* tooltips become a bottom sheet — edge-clipping impossible */
  .dt::after, .sw-tip {
    position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto;
    transform: none; width: auto; max-width: none; z-index: 90;
  }
  .dt::before, .sw-tip::before { display: none; }

  .cards { grid-template-columns: 1fr; }
  .margin-math { padding: 24px 22px; }
  .progression { padding: 22px 20px; }
  .ledger { padding: 18px; }
  .l-row .val { white-space: normal; text-align: right; }
  .check-block { padding: 4px 18px; }
  .tldr, .callout { padding: 16px 18px; }
  .panel { padding: 18px 20px; }
  .cad-row { gap: 12px; padding: 12px 14px; }
  .cad-badge { width: 68px; }
  .wf-step { font-size: 13.5px; padding: 10px 13px; }
  .f-row { min-width: 200px; font-size: 13px; }
  table { font-size: 13px; }
  th, td { padding: 8px 10px; }
  .next { flex-wrap: wrap; gap: 10px 24px; }
  .prose p { font-size: 16px; }
}

/* ---------------- simulator callouts ---------------- */
.sim-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px;
  padding: 18px 22px; margin: 28px 0; max-width: 680px;
}
.sim-callout .eyebrow { color: var(--accent); margin-bottom: 4px; }
.sim-callout p { font-size: 14.5px; margin: 0; color: #2c463c; }
.sim-btn {
  flex: none; background: var(--accent); color: #fff; border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.sim-btn:hover { background: #0a5f4a; }
.tool-min.sim { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool-min.sim .tool-letter { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tool-min.sim:hover { background: #0a5f4a; }
@media (max-width: 719px) {
  .sim-callout { flex-wrap: wrap; padding: 16px 18px; }
}
