/* Stop renting: page-only layout. Shared components come from site.css. Prefix: .stop- */

/* Hero: a way down to the rent sums. */
.stop-jump { margin-top: var(--space-m); }

/* Demo one (in the hero): what does your team actually use?
   A little wider than a single-moment panel, so the chips pack three to a row. */
.tool-hero .stage__panel { max-width: 640px; }
.stop-use__prog { font-size: var(--text-s); font-weight: var(--weight-medium); color: var(--ink-2); }
.stop-use__title { font-size: var(--text-l); letter-spacing: var(--track-heading); line-height: 1.2; margin-top: var(--space-3xs); }
.stop-use__set { margin-top: var(--space-2xs); }
.stop-use__hint { float: left; width: 100%; padding: 0; margin-bottom: var(--space-m); font-size: var(--text-s); color: var(--ink-2); }
.stop-chips { clear: both; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.stop-chip {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-s) 0 10px;
  border: var(--line-w) solid var(--line); border-radius: var(--radius-pill); background: var(--white);
  font-size: var(--text-s); font-weight: var(--weight-medium); line-height: 1.2; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.stop-chip:hover { border-color: var(--ink); }
.stop-chip .choice__input { width: 26px; height: 26px; }
.stop-chip:has(:checked) { background: var(--pale); border-color: var(--ink); }
/* The focus ring goes round the whole chip, not just its tick box. */
.stop-chip .choice__input:focus-visible { outline: none; }
.stop-chip:has(:focus-visible) { outline: var(--focus-w) solid var(--ink); outline-offset: 2px; }

.stop-use__result { margin-top: var(--space-l); padding-top: var(--space-m); border-top: var(--rule-w) solid var(--rule); }
.stop-use__count {
  font-family: var(--serif); font-weight: var(--weight-regular); font-variation-settings: "opsz" 72;
  font-size: clamp(40px, 3.6vw, 52px); line-height: 1.05; letter-spacing: var(--track-display);
  font-variant-numeric: lining-nums tabular-nums;
}
.stop-use__say { margin-top: var(--space-xs); font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; font-weight: var(--weight-medium); max-width: 40ch; }
.stop-use__result + .start-again { margin-top: var(--space-xs); }

/* Demo two: the rent calculator. */
.stop-rent__top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; margin-bottom: var(--space-3xl); }
.stop-rent__top .steppers { grid-template-columns: 1fr 1fr; }
.stop-rent__note { margin-top: var(--space-s); color: var(--ink-2); font-size: var(--text-xs); }
.stop-rent__line { padding-top: var(--space-s); font-variant-numeric: tabular-nums; }
.stop-rent__after { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); margin-top: var(--space-xl); }
.stop-rent__after > div { grid-column: 2; }
.stop-rent__lead { font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; font-weight: var(--weight-medium); }

/* Where this usually works: what you rent, then a picture of the tool I built that does
   the same kind of job. Each item spans three rows of the grid, so the pictures line up. */
.stop-intro { max-width: 40ch; }
.stop-swap { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
.tool-cards > li.stop-swap { display: grid; }
.stop-swap__kind { font-size: var(--text-l); letter-spacing: var(--track-heading); line-height: 1.2; }
.stop-swap__rent { margin-top: var(--space-2xs); padding-bottom: var(--space-m); color: var(--ink-2); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }

/* Where it doesn't make sense: the one dark band on the site, so the page visibly turns
   from "build it" to "keep renting it". */
.stop-not { background: var(--ink); color: var(--on-ink); padding: var(--space-4xl) 0; }
.stop-not__head { display: grid; gap: var(--space-l); margin-bottom: var(--space-3xl); }
.stop-not__statement {
  font-family: var(--serif); font-weight: var(--weight-regular); font-variation-settings: "opsz" 72;
  font-size: var(--text-title); line-height: var(--leading-tight); letter-spacing: var(--track-display);
  max-width: 18ch; margin-left: -0.03em; text-wrap: balance;
}
.stop-keep { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-xl) var(--space-l); }
.stop-keep__item { padding-top: var(--space-m); border-top: var(--rule-w) solid var(--on-ink); }
.stop-keep__title { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.stop-keep__text { margin-top: var(--space-xs); color: var(--on-ink-2); line-height: 1.5; }

/* The honest trade-off: the words on the left, a small "as your team grows" picture on the right. */
.stop-trade { display: grid; gap: var(--space-2xl); }
.stop-trade__lead {
  margin-top: var(--space-l);
  font-family: var(--serif); font-weight: var(--weight-regular); font-variation-settings: "opsz" 60;
  font-size: var(--text-statement); line-height: 1.12; letter-spacing: -0.025em;
}
.stop-trade__list { margin-top: var(--space-l); max-width: 30em; border-top: var(--rule-w) solid var(--rule); }
.stop-trade__list li { padding: var(--space-s) 0; border-bottom: var(--rule-w) solid var(--rule); font-size: 20px; line-height: 1.45; }
.stop-trade__but { margin-top: var(--space-l); font-size: var(--text-l); font-weight: var(--weight-medium); letter-spacing: -0.015em; line-height: 1.3; max-width: 22ch; }
.stop-trade__stage { min-width: 0; }
.stop-trade__stage .stage__field { min-height: 0; padding: var(--space-xl); }

.stop-grow__title { font-size: var(--text-l); letter-spacing: var(--track-heading); line-height: 1.2; }
.stop-grow__people { margin-top: var(--space-m); }
/* Each side spans the same four rows, so the two sides' lines stay level. */
.stop-grow__sides { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-l); margin-top: var(--space-l); padding-top: var(--space-m); border-top: var(--rule-w) solid var(--rule); }
.stop-grow__side { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.stop-grow__side + .stop-grow__side { padding-left: var(--space-l); border-left: var(--rule-w) solid var(--rule); }
.stop-grow__name { font-size: var(--text-s); font-weight: var(--weight-medium); color: var(--ink-2); }
.stop-grow__count { margin-top: var(--space-2xs); font-size: 20px; font-weight: var(--weight-medium); letter-spacing: -0.01em; line-height: 1.2; }
.stop-grow__count .figure-big { display: block; }
/* Room for 30 squares, so the panel never changes height. */
.stop-grow__dots { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: calc(4 * 18px + 3 * 6px); margin-top: var(--space-m); }
.stop-grow__dot { width: 18px; height: 18px; background: var(--ink); border-radius: 3px; }
.stop-grow__side--own .stop-grow__dot { background: var(--stage); box-shadow: inset 0 0 0 1.5px var(--ink); }
html.motion .stop-grow__dot { animation: stop-pop var(--dur) var(--ease-out) backwards; }
@keyframes stop-pop { from { opacity: 0; scale: 0.4; } }
.stop-grow__say { margin-top: var(--space-s); color: var(--ink-2); font-size: var(--text-s); line-height: 1.4; }

@media (min-width: 1100px) {
  .stop-trade { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-3xl); align-items: start; }
}

@media (max-width: 900px) {
  .stop-rent__top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stop-use__count { font-size: 40px; }
  .stop-use__say { font-size: 19px; }
  /* Two even columns read tidier than a ragged wrap on a phone. */
  .stop-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop-chip { gap: var(--space-2xs); padding: 6px var(--space-xs) 6px 8px; border-radius: var(--radius-s); }
  .stop-rent__top { margin-bottom: var(--space-2xl); }
  .stop-rent__top .steppers { grid-template-columns: 1fr; }
  .stop-rent__after { grid-template-columns: 1fr; }
  .stop-rent__after > div { grid-column: 1; }
  .stop-rent__lead { font-size: 21px; }
  .stop-swap__rent { padding-bottom: var(--space-s); }
  .stop-not { padding: var(--space-3xl) 0; }
  .stop-not__head { margin-bottom: var(--space-2xl); }
  .stop-trade__list li { font-size: 18px; }
  .stop-trade__stage .stage__field { padding: var(--space-xl) var(--space-s); margin-inline: calc(-1 * var(--gutter)); }
  .stop-grow__sides { grid-template-columns: 1fr; }
  .stop-grow__side + .stop-grow__side { padding-left: 0; border-left: 0; margin-top: var(--space-m); padding-top: var(--space-m); border-top: var(--rule-w) solid var(--rule); }
  .stop-grow__dots { min-height: calc(2 * 18px + 6px); }
}
