/* projections.css: the revenue and cash page only. Every value is a site.css token, rem or em; no new colour.
   On the site's theme, down to fonts, titles and line weights: the page loads v3.css and v4.css after this sheet, like every other
   page, and each part here is set to compute like its twin on another page. The twin, where two pages disagree, is the one whose value
   comes from the site's type scale (the typography section of v4.css), not from a page's own sheet. Parts with no twin (the sliders, the charts, the readouts) use the scale's tokens.
   Hatch (--hatch) marks what is projected, as the site's rule has it. */

/* the top: the title, lead and padding are the theme's own (the field page's .hero); the small line under the lead is the small print
   (.note), the field page's line under its intro */
.pg-projections .pj-top .lead{margin-bottom:0}
.pg-projections .pj-top .pj-mark{margin:.75rem 0 0;font:var(--w-ui) var(--t-cap)/1.25rem var(--font-sans);color:var(--ink-3)}
.pg-projections .pj-h2{margin:0 0 var(--sp-head)}

/* MRR and ARR at months 12, 24 and 36, under the title. The field page's table in
   small: heads in its mono label, the figures in the mono at the table's text size, the line names in ink with the small print under
   each. Open, not boxed: hairlines and space. It scrolls sideways inside its own box if a phone cannot hold four columns. */
.pj-run-wrap{max-width:56rem;margin:2rem 0 0;overflow-x:auto}
.pj-run{border-collapse:collapse;width:100%;font:var(--w-ui) var(--t-ui-sm)/1.375rem var(--font-sans);color:var(--ink-2)}
.pj-run caption{caption-side:top;padding:0 0 .625rem;text-align:left}
.pj-run caption .pj-k{display:inline;margin:0}
.pj-run-case{margin-left:.75rem;font:var(--w-ui) var(--t-cap)/1.25rem var(--font-sans);color:var(--ink-3)}
.is-adjusted .pj-run-case{color:var(--ink)}
.pj-run th,.pj-run td{padding:.5rem 0 .5rem 1rem;border-top:1px solid var(--line);text-align:right;vertical-align:top;white-space:nowrap}
.pj-run thead th,.pj-run thead td{border-top:0;font:var(--w-mono) .6875rem/1rem var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.pj-run tbody th{padding-left:0;text-align:left;white-space:normal;font:var(--w-ui) var(--t-ui-sm)/1.375rem var(--font-sans);color:var(--ink)}
.pj-run tbody th small{display:block;font:var(--w-ui) var(--t-cap)/1.25rem var(--font-sans);color:var(--ink-3)}
.pj-run tbody td{font:var(--w-mono) var(--t-ui-sm)/1.375rem var(--font-mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.pj-run tbody tr:last-child th,.pj-run tbody tr:last-child td{border-bottom:1px solid var(--line)}
.pg-projections .pj-top .pj-run-note{margin:.625rem 0 1.5rem}
/* phone: four columns do not fit, so each line's name sits on its own row with its three months under the month heads */
@media (max-width:37.5em){
  .pj-run,.pj-run caption,.pj-run thead,.pj-run tbody{display:block}
  .pj-run thead tr,.pj-run tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .pj-run thead td{display:none}
  .pj-run th,.pj-run td{padding-left:0;text-align:left}
  .pj-run tbody th{grid-column:1 / -1;padding-bottom:0}
  .pj-run tbody td{border-top:0;padding-top:.25rem}
  .pj-run tbody tr:last-child th{border-bottom:0}
}

/* the case switch: Base and Upside are tabs, the home page's screen tabs (a ruled index; the chosen one in ink over an accent rule).
   That rule is scoped to the home page (home.css and v3.css, .pg-home .sv-tablist), so it cannot be named here; each value below is
   the same one: the UI size (--t-ui), 48 px tall with no padding, 2.25rem between tabs, --ink-3 to --ink, a 2 px --accent rule, the
   focus ring inset by 2 px. Measured equal to the home page's tabs.
   "Back to the base case" IS the site's secondary button: the generator writes class="btn pj-reset", so its size, padding, corners,
   ring, type, hover and focus are the shared .btn rule (site.css, v3.css, v4.css). This sheet adds only its margin and the
   disabled state, which the shared rule does not have. */
.pj-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 2.25rem;padding:0;border-bottom:1px solid var(--line)}
.pj-case{display:inline-flex;flex-wrap:wrap;gap:0 2.25rem;align-self:flex-end;margin-bottom:-1px;border:0;border-radius:0}
.pj-case button{box-sizing:border-box;display:inline-flex;align-items:center;min-height:3rem;padding:0;margin:0;font:var(--w-ui) var(--t-ui)/1.4 var(--font-sans);
  color:var(--ink-3);background:none;border:0;border-bottom:2px solid transparent;border-radius:0;cursor:pointer;white-space:nowrap;
  transition:color var(--t-hover) var(--ease),border-color var(--t-hover) var(--ease)}
.pj-case button+button{border-left:0}
.pj-case button[aria-pressed="true"]{color:var(--ink);background:none;border-bottom-color:var(--accent);box-shadow:none}
.pj-case button:hover{color:var(--ink)}
.pj-state{margin:0;flex:1 1 13.75rem;font:var(--w-ui) var(--t-ui-sm)/1.375rem var(--font-sans);color:var(--ink-3)}
.is-adjusted .pj-state{color:var(--ink)}
.pj-reset{margin:.25rem 0}
.pj-reset:disabled{color:var(--ink-4);cursor:default}
/* v3.css loads after this sheet and lights a secondary button on hover; a disabled one stays at rest */
.pg-projections .pj-reset.btn:disabled:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--line-hover)}
.pj-case button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.pj-s input:focus-visible,.pj-all summary:focus-visible,.pj-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* the sliders: no other page has one, so they are drawn from the same tokens as the tabs and buttons, not left to the browser.
   Track: a 4 px line in --line-hover (the buttons' ring), filled in --accent up to the handle (the tabs' rule colour); --p is the
   handle's place, written by the generator and kept by the page script. Handle: a round knob in --ink-2 that turns --ink on hover
   and while held, as a tab's label does; its box is the full 44 px of the input, so a thumb on a phone lands on it. Focus: the
   buttons' ring, --accent, 2 px, 2 px out. */
.pj-s input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:2.75rem;margin:0;padding:0;cursor:pointer;
  background:transparent;border-radius:var(--r);--p:50%}
.pj-s input[type=range]::-webkit-slider-runnable-track{height:.25rem;border:0;border-radius:var(--r);
  background:linear-gradient(to right,var(--accent) 0 var(--p),var(--line-hover) var(--p) 100%)}
.pj-s input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;width:1.125rem;height:2.75rem;
  margin-top:-1.25rem;border:0;border-radius:0;background:radial-gradient(circle .5625rem,var(--ink-2) calc(100% - 1px),transparent 100%);
  transition:background var(--t-hover) var(--ease)}
.pj-s input[type=range]::-moz-range-track{height:.25rem;border:0;border-radius:var(--r);background:var(--line-hover)}
.pj-s input[type=range]::-moz-range-progress{height:.25rem;border-radius:var(--r);background:var(--accent)}
.pj-s input[type=range]::-moz-range-thumb{box-sizing:border-box;width:1.125rem;height:2.75rem;border:0;border-radius:0;
  background:radial-gradient(circle .5625rem,var(--ink-2) calc(100% - 1px),transparent 100%)}
.pj-s input[type=range]:hover::-webkit-slider-thumb,.pj-s input[type=range]:active::-webkit-slider-thumb,
.pj-s input[type=range]:focus-visible::-webkit-slider-thumb{background:radial-gradient(circle .5625rem,var(--ink) calc(100% - 1px),transparent 100%)}
.pj-s input[type=range]:hover::-moz-range-thumb,.pj-s input[type=range]:active::-moz-range-thumb,
.pj-s input[type=range]:focus-visible::-moz-range-thumb{background:radial-gradient(circle .5625rem,var(--ink) calc(100% - 1px),transparent 100%)}

/* the handles and the charts: no twin on another page, so the type scale's roles. Labels are the UI size, values and axis figures the
   mono, the notes under a handle the small print. */
.pj-grid{display:grid;grid-template-columns:1fr;gap:2rem;padding-top:1.5rem}
@media (min-width:64em){.pj-grid{grid-template-columns:minmax(18.75rem,22.5rem) minmax(0,1fr);gap:3rem}}
.pj-k,.pj-ro dt{margin:0 0 .625rem;font:var(--w-mono) var(--t-mono)/1rem var(--font-mono);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--ink-3)}
.pj-legend{margin:0 0 .875rem;font:var(--w-ui) var(--t-cap)/1.25rem var(--font-sans);color:var(--ink-3)}
.pj-s{padding:.75rem 0 .375rem;border-top:1px solid var(--line)}
.pj-s-h{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem}
.pj-s label{font:var(--w-ui) var(--t-ui-sm)/1.375rem var(--font-sans);color:var(--ink-2)}
.pj-s output{font:var(--w-mono) var(--t-ui-sm)/1 var(--font-mono);color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.pj-s.is-moved output{color:var(--accent)}
.pj-note{margin:0 0 .25rem;font:var(--w-ui) var(--t-cap)/1.25rem var(--font-sans);color:var(--ink-3)}
@media (min-width:64em){.pj-out{position:sticky;top:4.5rem;align-self:start}}
/* stacked (phone and tablet): the charts and readouts come first, the handles under them */
@media (max-width:63.99em){.pj-out{order:-1}}
/* phone: the site's phone rules (site.css) set the sentences under pictures and sections at 14 px and keep small
   upper-case labels as labels; their caption rule is forced, so the chart's upper-case labels (figcaptions) are named back to the label.
   The intro under the title takes the inner pages' phone size (v4.css, at 600 and below). */
@media (max-width:47.9375em){
  .pg-projections figcaption.pj-k{font-size:var(--t-mono)!important;line-height:1rem!important}
  .pj-note,.pj-legend,.pj-key,.pg-projections .pj-top .pj-mark{font-size:.875rem;line-height:1.45}
}
@media (max-width:37.5em){.pg-projections .pj-top .lead{font-size:1.125rem;line-height:var(--lh-prose);text-wrap:pretty}}

.pj-out{min-width:0}
.pj-fig{margin:0 0 1.75rem}
.pj-key{display:flex;flex-wrap:wrap;gap:.375rem 1.125rem;list-style:none;margin:0 0 .625rem;padding:0;font:var(--w-ui) var(--t-cap)/1.25rem var(--font-sans);color:var(--ink-2)}
.pj-key li{display:inline-flex;align-items:center;gap:.5rem}
.pj-key-ghost{display:none !important}
.is-adjusted .pj-key-ghost{display:inline-flex !important}
.pj-sw{display:inline-block;width:1.25rem;height:0;border-top:2px solid var(--ink)}
.pj-sw.pj-l-svc{border-top-color:var(--accent)}
.pj-sw.pj-l-lend{border-top:2px dashed var(--ink-3)}
.pj-sw.pj-l-inv{border-top:2px dotted var(--ink-2)}
.pj-sw.pj-ghost{border-top:1px dashed var(--ink-4)}
.pj-svg{width:100%;background:var(--hatch);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.pj-svg svg{display:block}
.pj-plot{fill:none}
line.pj-gl{stroke:var(--line);stroke-width:1}
.pj-zero{stroke:var(--ink-4);stroke-width:1}
.pj-ax{fill:var(--ink-3);font:var(--w-mono) .6875rem var(--font-mono)}
.pj-ax-y{text-anchor:end}
.pj-ax-x{text-anchor:middle}
.pj-line{fill:none;stroke-linejoin:round}
.pj-line.pj-l-tot{stroke:var(--ink);stroke-width:2}
.pj-line.pj-l-svc{stroke:var(--accent);stroke-width:1.75}
.pj-line.pj-l-lend{stroke:var(--ink-3);stroke-width:1.5;stroke-dasharray:6 4}
.pj-line.pj-l-inv{stroke:var(--ink-2);stroke-width:1.75;stroke-dasharray:2 3}
.pj-line.pj-l-cash{stroke:var(--accent);stroke-width:2}
path.pj-ghost{fill:none;stroke:var(--ink-4);stroke-width:1.25;stroke-dasharray:2 4}

/* the readouts: open, not boxed (hairlines and space). The home page's figures (.facts b) are 40 px in cards; four across in the tool's
   column that size runs out of room, so the figures take the figure role's face, weight and tracking at the subhead's small size, and
   the line under a figure is the facts' caption. */
.pj-ro{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border-top:1px solid var(--line)}
@media (min-width:48em){.pj-ro{grid-template-columns:repeat(4,minmax(0,1fr))}}
.pj-ro div{padding:.875rem .75rem .875rem 0;border-bottom:1px solid var(--line)}
/* a label that wraps to two lines no longer drops its figure below its neighbours: every label keeps two lines of room */
.pj-ro dt{margin:0;min-height:2rem}
/* the Why $2.5M readouts: "Revenue covers spending and cost to serve" can take three lines below 1280, so there every label keeps three */
@media (max-width:79.99em){.pj-why .pj-ro dt{min-height:3rem}}
.pj-ro dd{margin:.5rem 0 0;font:var(--w-sub) var(--t-h3-sm)/1.2 var(--v3-head);letter-spacing:var(--ls-fig);color:var(--ink);font-variant-numeric:tabular-nums}
.pj-ro small{display:block;margin-top:.125rem;font:var(--w-ui) var(--t-ui-sm)/1.375rem var(--font-sans);letter-spacing:0;color:var(--ink-3)}

/* the 36-month table: the field page's table. Heads in its mono label, the month column like its row heads, the figures in the mono
   at the table's text size; ten columns, scrolled sideways on a narrow screen */
.pj-all{margin-top:2rem;border-top:1px solid var(--line)}
.pj-all summary{min-height:2.75rem;display:list-item;padding:.75rem 0;cursor:pointer;font:var(--w-ui) var(--t-ui)/1.4 var(--font-sans);color:var(--ink-2)}
.pj-scroll{overflow-x:auto;max-width:100%}
.pj-scroll table{border-collapse:collapse;width:100%;min-width:60rem;font:var(--w-ui) var(--t-cap)/1.375rem var(--font-mono);font-variant-numeric:tabular-nums}
.pj-scroll th,.pj-scroll td{padding:.4375rem .625rem;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.pj-scroll thead th{font:var(--w-mono) .6875rem/1rem var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);vertical-align:bottom;white-space:normal}
.pj-scroll tbody th{position:sticky;left:0;background:var(--bg);font:var(--w-bold) var(--t-cap)/1.375rem var(--font-sans);color:var(--ink);text-align:left}
.pj-scroll td{color:var(--ink-2)}

/* the ruled lists: each item the body text (the type scale's prose role, as the field page's intro and the home page's answers), its
   run-in label in the bold weight and ink. "Questions on the raise" is the home page's questions: the question on its own line in their
   size and weight, the answer the body text under it. */
.pj-rules{list-style:none;margin:0;padding:0;max-width:72ch;font:var(--w-ui) var(--t-body)/var(--lh-prose) var(--font-sans);color:var(--ink-2)}
.pj-rules li{padding:.875rem 0;border-top:1px solid var(--line)}
.pj-rules b{font-weight:var(--w-bold);color:var(--ink)}
#pj-asked .pj-rules li{padding:.75rem 0 1.25rem}
#pj-asked .pj-rules li>b:first-child{display:block;margin-bottom:.625rem;font:var(--w-bold) var(--t-h3)/1.3 var(--v3-head);letter-spacing:-.02em;color:var(--ink)}

/* "Why $2.5M": the three chapters under the tool. The tables are the field page's table: the cells in its text size
   and colour, the heads in its mono label; the figures in the mono, right-aligned, in ink. */
.pj-why .ch-head+*{margin-top:var(--sp-head)}
.pj-why .tbl{max-width:56rem;margin-top:0;font:var(--w-ui) var(--t-cap)/1.375rem var(--font-sans);color:var(--ink-2)}
.pj-why .tbl thead th{font:var(--w-mono) .6875rem/1rem var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.pj-why .tbl td{font:var(--w-ui) var(--t-cap)/1.375rem var(--font-sans);color:var(--ink-2)}
.pj-why .tbl th.pj-n,.pj-why .tbl td.pj-n{text-align:right;padding-inline:1rem 0;white-space:nowrap}
.pj-why .tbl td.pj-n{font-family:var(--font-mono);font-weight:var(--w-mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.pj-why .tbl.pj-figs td:first-child{color:var(--ink-2)}
.pj-why .tbl.pj-figs tr.pj-end td:not(.pj-n){color:var(--ink)}
.pj-why .tbl .note{margin:.25rem 0 0}
/* the field page's table reads its cells one step larger below 1200 wide (competitors.css and v3.css): the same here */
@media (max-width:74.99em){.pj-why .tbl,.pj-why .tbl td,.pj-scroll table,.pj-scroll tbody th{font-size:var(--t-ui-sm)}}
/* phone: the four-column rounds table ran past its box on a phone; tighter gaps between text columns keep it inside */
@media (max-width:47.99em){.pj-why .tbl th:not(.pj-n),.pj-why .tbl td:not(.pj-n){padding-right:.625rem}}

/* the hairlines, one rule, so no line runs to the screen's edge while another stops short. From
   1024 up, where the two edge lines stand: a section's dividing hairline runs from the left line to the right line and stops there, the
   top section's sunk ground fills the same span, rows inside a section stay in the text column, and nothing is drawn in the margins
   outside the lines but the header's own bottom line. Below 1024 the page's lines are the other pages' lines. */
@media (min-width:64em){
  .pg-projections .chapter::before{left:max(0rem,(100% - var(--maxw)) / 2);right:max(0rem,(100% - var(--maxw)) / 2)}
  .pg-projections .hero.top{background:linear-gradient(var(--sunk),var(--sunk)) 50% 0 / min(100% - 2 * var(--gutter),var(--maxw)) 100% no-repeat}
  /* the footer's top line, which started one page margin in from the screen's edges, runs between the two lines like a section's */
  footer.foot{border-top:0;background:linear-gradient(var(--line),var(--line)) 50% 0 / min(100%,var(--maxw)) 1px no-repeat}
}
