/* Onramp v2: the argument sections. Loaded after site.css. */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec { border-top: 1px solid var(--rule); padding: clamp(4rem, 8vw, 7rem) 0; }
.sec h2 { font-size: var(--h2); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; margin-top: 1rem; max-width: 18ch; }
.lede { font-size: var(--lead); line-height: 1.34; letter-spacing: -0.01em; max-width: 40rem; margin-top: 1.25rem; }

/* in one minute */
.moves { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.moves li { padding: 1.25rem 1.25rem 1.5rem 0; border-right: 1px solid var(--hair); }
.moves li + li { padding-left: 1.25rem; }
.moves li:last-child { border-right: 0; }
.moves .n { font-size: var(--small); font-weight: 600; display: flex; gap: 0.5rem; align-items: center; }
.moves .n i { width: 0.7rem; height: 0.7rem; display: block; }
.moves h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; margin-top: 0.8rem; }
.moves p { margin-top: 0.6rem; color: var(--muted); }
@media (max-width: 960px) {
  .moves { grid-template-columns: 1fr 1fr; }
  .moves li:nth-child(2) { border-right: 0; }
  .moves li:nth-child(3) { padding-left: 0; }
  .moves li:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 560px) {
  .moves { grid-template-columns: 1fr; }
  .moves li, .moves li + li { border-right: 0; padding-left: 0; }
  .moves li + li { border-top: 1px solid var(--hair); }
}

/* input, throughput, output */
.ipo { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.ipo > div { padding: 1.4rem 1.4rem 1.6rem 0; }
.ipo > div + div { padding-left: 1.4rem; border-left: 1px solid var(--hair); }
.ipo h3 { font-size: var(--small); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ipo .big { display: block; font-size: clamp(3rem, 1.6rem + 4.4vw, 6rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; margin-top: 0.8rem; }
.ipo .out-col .big { color: var(--l2); }
.ipo p { margin-top: 0.7rem; color: var(--muted); max-width: 26rem; }
.ipo .fix { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--hair); color: var(--ink); font-weight: 500; }
.ipo .fix b { color: var(--accent); }
.ipo-note { margin-top: 1.75rem; font-size: var(--lead); line-height: 1.34; letter-spacing: -0.01em; max-width: 46rem; }
@media (max-width: 860px) {
  .ipo { grid-template-columns: 1fr; }
  .ipo > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
}

/* why it works */
.flow-grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.flow-svg { width: 100%; height: auto; background: var(--paper); }
.flow-svg text { font-family: var(--font); }
.f-tick { font-size: 15px; fill: var(--muted); }
.f-lab { font-size: 15px; fill: var(--ink); font-weight: 600; }
.f-tag { font-size: 17px; font-weight: 600; fill: var(--ink); }
.f-tag-on { fill: var(--accent); }
.ctl { display: grid; gap: 1.2rem; }
.ctl label { display: grid; gap: 0.4rem; font-weight: 600; }
.ctl label > span { display: flex; justify-content: space-between; gap: 1rem; }
.ctl output { font-variant-numeric: tabular-nums; }
.ctl input[type=range] { width: 100%; accent-color: var(--accent); height: 1.6rem; }
.ctl .check { display: flex; align-items: center; gap: 0.7rem; }
.ctl .check input { width: 1.3rem; height: 1.3rem; accent-color: var(--accent); }
.read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.read div { padding: 0.9rem 0.8rem 0.9rem 0; border-bottom: 1px solid var(--hair); }
.read dt { font-size: var(--small); color: var(--muted); }
.read dd { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.read .on dd { color: var(--accent); }
.formula { font-size: var(--small); color: var(--muted); line-height: 1.55; }
.formula code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.95em; color: var(--ink); background: var(--paper); padding: 0.1rem 0.35rem; }
@media (max-width: 960px) { .flow-grid { grid-template-columns: 1fr; } }

/* figures */
.fig { max-width: calc(var(--max) + 2 * var(--gut)); margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; padding: 0 var(--gut); }
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); }
.cross-svg, .cut-svg { width: 100%; min-width: 820px; height: auto; display: block; }
.cross-svg text, .cut-svg text { font-family: var(--font); }
.fig-cap { margin-top: 0.9rem; color: var(--muted); max-width: 54rem; }
.fig-cap b { color: var(--ink); }
.swipe { display: none; }
@media (max-width: 700px) { .cross-svg, .cut-svg { min-width: 1080px; } .swipe { display: block; margin-top: 0.5rem; } }

/* hard questions */
.hq { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.hq details { border-bottom: 1px solid var(--hair); }
.hq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 3rem 1fr 1.5rem; gap: 0.5rem; align-items: baseline;
  padding: 1.15rem 0; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25;
}
.hq summary::-webkit-details-marker { display: none; }
.hq .q-n { font-size: var(--small); color: var(--muted); font-weight: 600; }
.hq summary::after { content: "+"; font-weight: 500; font-size: 1.6rem; line-height: 1; justify-self: end; transition: transform 0.25s; }
.hq details[open] summary::after { transform: rotate(45deg); }
.hq summary:hover { color: var(--accent); }
.hq .a { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.5rem; padding: 0 0 1.6rem; }
.hq .a > div { grid-column: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 3vw, 3rem); }
.hq .ans { max-width: 42rem; }
.hq .ans p + p { margin-top: 0.7rem; }
.hq .ev { font-size: var(--small); color: var(--muted); border-left: 2px solid var(--hair); padding-left: 1rem; }
.hq .ev b { color: var(--ink); display: block; margin-bottom: 0.25rem; }
.hq .ev p + p { margin-top: 0.5rem; }
.hq .open { display: block; margin-top: 0.8rem; color: var(--ink); font-size: var(--small); }
.hq .open b { color: var(--l2); }
.hq-tools { margin-top: 1.2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hq-tools button { font: inherit; font-size: var(--small); font-weight: 600; background: none; border: 0; padding: 0.3rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; color: var(--ink); }
.hq-tools button:hover { color: var(--accent); }
@media (max-width: 760px) {
  .hq .a > div { grid-template-columns: 1fr; }
  .hq summary { grid-template-columns: 2.2rem 1fr 1.5rem; }
  .hq .a { grid-template-columns: 2.2rem minmax(0, 1fr); }
}

/* limits */
.limits { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.limits li { padding: 1.3rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--hair); }
.limits li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--hair); }
.limits h3 { font-size: clamp(1.3rem, 1rem + 0.9vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.limits p { margin-top: 0.5rem; color: var(--muted); }
.limits p b { color: var(--ink); }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } .limits li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* planning check */
.table-scroll { overflow-x: auto; margin-top: clamp(2rem, 4vw, 3rem); }
.check-table { width: 100%; border-collapse: collapse; font-size: var(--body); }
.check-table th, .check-table td { text-align: left; padding: 0.85rem 1.2rem 0.85rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.check-table thead th { font-size: var(--small); color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--rule); }
.check-table td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.check-table .v { font-size: var(--small); font-weight: 600; white-space: nowrap; }
.v-ok::before { content: "■ "; color: var(--l4); }
.v-lean::before { content: "▲ "; color: #b07f00; }
.check-table td.src { font-size: var(--small); color: var(--muted); }
@media (max-width: 760px) { .check-table { min-width: 720px; } }

/* lanes list v2 */
.lanes.v2 li { grid-template-columns: auto 1fr; row-gap: 0.1rem; align-items: start; padding-top: 1rem; padding-bottom: 1rem; }
.lanes.v2 i { grid-row: span 3; height: 100%; min-height: 4.2rem; }
.lanes.v2 small { font-size: 0.95rem; color: var(--muted); line-height: 1.35; }
.m-copper { color: var(--accent); }

/* triage rules box */
.rules-list { margin-top: 1.25rem; display: grid; gap: 0.5rem; }
.rules-list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; }
.rules-list li::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--ink); transform: rotate(45deg); margin-top: 0.55em; }
