/* Sell or Scale. /working-with-us: the page's own stylesheet, loaded after site.css.
   Four paper sections, each set its own way so that no two read as one block: a ledger of three rows (names and
   lengths of time first), the terms as large statements with no rules, who it is for as two plain lists side by
   side, and the questions (site.css's own). Nothing here needs a script and nothing moves. */

/* ---------- what it costs, and how long it takes ----------
   A ledger on hairline rows, as the home page's list and its steps: what it is on the left, how long it takes at the
   row's right end, in the home page's light numerals. Under a row's name, what it is and how it is paid. The first
   conversation is a name and a price and nothing else. (.step is the site's numbered row: its numeral, its small
   heading and its words are in site.css; the grid here is this page's own.) */

.costs { border-top: 1px solid var(--rule-2); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.step h3 { grid-area: 1 / 1; }
.step__say { grid-area: 2 / 1; }
.step__pay { grid-area: 3 / 1; margin-top: 12px; font-weight: 500; letter-spacing: -0.006em; }
.step h3 + .step__pay { margin-top: 6px; }
/* The length of time: one line, its figure in the light numerals. It shares a row of the grid with the row's words
   and stands on the baseline of their first line. The grid lines the two up exactly; the negative margin lets the
   figure reach up beside the name without pushing the words down, and is itself that same place to within a pixel
   (the words' first baseline is 12px and 19px under the row's top; the figure's is 0.753 to 0.76 of its size under its own). */
.step__n {
  grid-area: 2 / 2; align-self: baseline; min-width: 10.25rem; margin-top: calc(12px + 1.1875rem - var(--num) * 0.77);
  text-align: right; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap;
}
.step__n + .step__say { align-self: baseline; }
/* (the light numeral is site.css's: .step__n b. Here it stands in a line of words.) */
.step__n b { margin: 0 0.1em 0 0.06em; }

/* ---------- the terms: statements ----------
   Each term and its sentence run on as one statement, the term in ink and its sentence in grey. No rows, no rules.
   21px on a phone and 28px from 1210 wide: between a small heading and a section's. */

.terms li { max-width: 21em; font-weight: 540; font-size: clamp(1.3125rem, 0.9rem + 1.1vw, 1.75rem); line-height: 1.22; letter-spacing: -0.022em; text-wrap: pretty; }
.terms li + li { margin-top: 30px; }
.terms h3, .terms p { display: inline; font: inherit; letter-spacing: inherit; }
.terms p { color: var(--text-2); }

/* ---------- who it is for: two plain lists, the second quieter ---------- */

.fit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.fit__list ul { margin-top: 18px; }
.fit__list li { position: relative; padding-left: 24px; text-wrap: pretty; }
.fit__list li + li { margin-top: 12px; }
/* a drawn tick, or a dash: 16px, its middle on the middle of the first line's small letters, its ink on the column's edge */
.fit__list svg { position: absolute; left: -2px; top: calc(0.847em - 8px); width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fit__list--not { color: var(--text-2); }
/* the line under both lists, on a hairline across the two */
.fit__note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- beside the heading (two columns) ----------
   What stands first in the right column hangs from the line of the heading's capitals: the ledger's rule as
   site.css's own lists do, and the first line of the terms and of the two lists by their own capitals (a heading's
   capitals are 0.219 of its size under the top of its line; the terms' 0.286 of theirs, a small heading's 0.274). */

@media (min-width: 900px) {
  /* (site.css gives this margin to its own lists, .ledger--ruled and .faq; this page's list opens on a rule too) */
  .split__show > .costs:first-child { margin-top: calc(clamp(1.75rem, 1.2rem + 1.45vw, 2.5rem) * 0.175); }
  .terms { padding-top: calc(clamp(1.75rem, 1.2rem + 1.45vw, 2.5rem) * 0.219 - clamp(1.3125rem, 0.9rem + 1.1vw, 1.75rem) * 0.286); }
  .fit__list h3 { margin-top: calc(clamp(1.75rem, 1.2rem + 1.45vw, 2.5rem) * 0.219 - 0.274em); }
}

/* where the lists' column is 520px wide or more (in em: a reader's larger type gets two columns later): side by side */
@media (min-width: 37.5em) and (max-width: 899px), (min-width: 68.75em) {
  .fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* where the ledger is narrower than 540px: the length of time stands beside the row's name alone, the capitals' tops
   and the figure's top on one line, and the row's words run under both, across the row */
@media (max-width: 41.1875em), (min-width: 900px) and (max-width: 68.6875em) {
  .step h3 { margin-top: calc(var(--num) * 0.096 - 0.262em); }
  .step__n { grid-area: 1 / 2; align-self: start; min-width: 0; margin-top: 0; }
  .step__say, .step__pay { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  .step { column-gap: 12px; }
}

/* the narrowest phones (under 359 wide), and a reader's larger type: the length of time goes under the name, and its
   figure hangs 0.04em outside the column, as the home page's numerals do */
@media (max-width: 22.4375em) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step h3 { margin-top: 0; }
  .step__n { grid-area: 2 / 1; margin-top: 12px; text-align: left; }
  .step__say { grid-row: 3; }
  .step__pay { grid-row: 4; }
  .step__n b:first-child { margin-left: -0.04em; }
}
