/* indar.app/coaches and /earn (scripts/site/pages/65-coaches.html, 66-earn.html): the deal for coaches and
   creators. Shared here: the offer in three lines, the money worked out, the app in its phone, the steps.
   No glow, no colour as decoration (docs/site-redesign.md): the macro colours stay with the macros. */

.doc.co {
  max-width: none;
  padding-top: var(--space-m);
}
.doc.co > p,
.doc.co > ul,
.doc.co > ol,
.doc.co > h2,
.doc.co > .faq-list {
  max-width: var(--measure);
}
.doc .co-kicker {
  margin: 0 0 var(--space-s);
  color: var(--ink-2);
  font: 600 16px/1.3 var(--text);
}
.doc.co h1 {
  font: 800 clamp(44px, 5vw + 24px, 84px) / 0.96 var(--display);
}
.doc.co-page h1 {
  font-size: clamp(40px, 3vw + 26px, 64px);
  max-width: 18ch;
}
.doc.co h1 {
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-m);
  max-width: 14ch;
  text-wrap: balance;
}
.doc .co-lede {
  margin: 0 0 var(--space-l);
  max-width: 44ch;
  color: var(--ink-body);
  font-size: var(--type-lede);
  line-height: 1.5;
}
/* The offer: three short lines, each under a rule. */
.doc .co-offer {
  display: grid;
  gap: var(--space-s);
  margin: 0 0 var(--space-m);
  padding: 0;
  list-style: none;
}
.doc .co-offer li {
  margin: 0;
  padding-top: var(--space-s);
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font: 700 21px/1.25 var(--title);
  letter-spacing: -0.01em;
}
.doc .co-fine {
  margin: 0;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.doc .contact {
  margin: var(--space-l) 0 0;
}
@media (min-width: 720px) {
  .doc .co-offer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-m);
  }
}
/* Beside the money or the shared week the pitch's column is too narrow for three side by side until 1280px. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .doc .co-offer {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The hero: the pitch, and beside it on a wide screen the money (/earn) or the shared week (/coaches). */
.co-hero,
.earn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  max-width: none;
}
.co-hero > *,
.earn-hero > * {
  max-width: none;
}
.co-shot {
  display: grid;
  justify-items: center;
  gap: var(--space-s);
}
.doc .co-shot p {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  text-align: center;
}
@media (min-width: 1024px) {
  .co-hero,
  .earn-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    column-gap: var(--space-3xl);
    align-items: center;
  }
  .co-hero {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}

/* Where a subscriber's money goes, worked out: what they pay, what Indar receives, your share. */
.money {
  margin: var(--section) 0 0;
  padding: var(--space-l) var(--pad-card);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--edge), 0 0 0 1px var(--line);
}
.earn-hero .money,
.co-hero + .money {
  margin-top: 0;
}
.co-hero + .money {
  margin-top: var(--section);
}
.money-h {
  text-wrap: balance;
  margin: 0 0 var(--space-l);
  color: var(--ink-2);
  font: 700 20px/1.2 var(--title);
  letter-spacing: -0.01em;
}
.money-flow {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc .money-flow,
.doc .money-flow li {
  margin: 0;
  padding: 0;
  color: var(--ink);
}
.money-flow li {
  display: grid;
  gap: 6px;
}
.m-num {
  font: 800 clamp(36px, 2vw + 26px, 52px) / 0.95 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.money-flow .you .m-num {
  font-size: clamp(56px, 3vw + 40px, 72px); /* "about US$18" on one line in the 440px card beside the pitch */
}
.m-lbl {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
  max-width: 30ch;
}
.money-bar {
  display: flex;
  gap: 3px;
  margin: var(--space-l) 0 var(--space-s);
  font-size: 13px;
  font-weight: 600;
}
.money-bar span {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* On a narrow phone the store's quarter of the bar is only just wider than its label. */
@media (max-width: 419px) {
  .money-bar span {
    padding: 0 7px;
  }
}
.money-bar .store {
  background: var(--raised);
  color: var(--ink-2);
}
.money-bar .indar {
  background: var(--track);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.money-bar .you {
  background: var(--ink);
  color: var(--bg);
}
.doc .money-note,
.money-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
/* On a wide page beside the pitch the three stay stacked; on its own row they sit side by side. */
@media (min-width: 720px) {
  .money {
    padding: var(--space-xl);
  }
  .co-hero + .money .money-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-xl);
    align-items: end;
  }
}

/* The app, as the parts of its screens that matter. */
.app-show {
  margin-top: var(--section);
}
.doc .app-show h2,
.app-show h2 {
  margin: 0 0 var(--space-xs);
  font: 700 var(--type-h2) / 1.1 var(--title);
  letter-spacing: -0.02em;
}
.doc .app-show > p,
.app-show > p {
  max-width: 56ch;
  margin: 0 0 var(--space-l);
  color: var(--ink-body);
}
.app-show-row {
  display: grid;
  gap: var(--space-l);
  max-width: none;
}
.app-show-row figure {
  margin: 0;
}
.app-show-row figcaption {
  margin-top: var(--space-s);
  color: var(--ink-2);
  font-size: 15px;
}
/* Three phones in a row once each stage is wide enough for one; stacked before that, so there's never two and a hole. */
@media (min-width: 840px) {
  .app-show-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Steps that are a sequence: numbered, on a line. */
.doc ol.flow,
ol.flow {
  position: relative;
  display: grid;
  gap: var(--space-m);
  margin: var(--space-m) 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
ol.flow::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--line-strong);
}
.doc ol.flow li,
ol.flow li {
  position: relative;
  margin: 0;
  padding: 6px 0 0 56px;
  min-height: 36px;
  counter-increment: flow;
}
ol.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font: 700 15px/1 var(--title);
}

/* The coaches page's shared week: the text, then what the coach sees. */
.co-split {
  display: grid;
  gap: var(--space-l);
  max-width: none;
  margin-top: var(--section);
}
.co-split > div:first-child {
  max-width: var(--measure);
}
.co-split-ui {
  display: grid;
  gap: var(--space-m);
  justify-items: center;
}
@media (min-width: 760px) {
  .co-split-ui {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (min-width: 1100px) {
  .co-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: var(--space-2xl);
    align-items: start;
  }
}
.doc .earn-big {
  margin: var(--space-xl) 0 var(--space-s);
  padding: var(--space-m) var(--pad-card);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
}

/* A stage takes its column's width (its phone is sized from it), up to the width of a phone's stage. */
.co-shot > .stage,
.co-split-ui > .stage {
  justify-self: stretch;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}
/* The hero's phone, the page's one picture: a size up. */
.co-shot > .stage {
  --phone: 330px;
  max-width: 390px;
}
