/*
 * RingMarco marketing site.
 *
 * The look is the app's: the product is a front desk, so the palette comes from one. Cool ledger paper,
 * blue-black ink, the green of an "answer call" button, and the cream note paper of a "While you were
 * out" slip, with the red of its "Urgent" tag. Everything else is paper, ink and ruled lines.
 *
 * The tokens below are copied from apps/web/src/styles.css. Keep the two in step.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f5f1;
  --surface: #ffffff;
  --surface-2: #e7ece6;
  --ink: #14213d;
  --ink-soft: #4a5670;
  --ink-faint: #626e82;
  --line: #d5dcd4;
  --line-strong: #b4bfb3;
  --answer: #0b7a53;
  --answer-strong: #086446;
  --answer-soft: #dbeee4;
  --on-answer: #ffffff;
  --slip: #fffdf8;
  --slip-edge: #ebe6da;
  --slip-ink: #14213d;
  --urgent: #b3261e;
  --on-urgent: #ffffff;
  --shadow-paper: 0 1px 0 rgb(20 33 61 / 0.06), 0 8px 18px -12px rgb(20 33 61 / 0.35);
  --shadow-pop: 0 12px 40px -12px rgb(20 33 61 / 0.35);
  --slip-shadow: drop-shadow(0 10px 14px rgb(20 33 61 / 0.22));

  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1.25rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a2e;
    --surface: #17243c;
    --surface-2: #1f2e4a;
    --ink: #eef2ee;
    --ink-soft: #b7c1d1;
    --ink-faint: #93a0b6;
    --line: #2a3a58;
    --line-strong: #3d5075;
    --answer: #36c58d;
    --answer-strong: #55d9a5;
    --answer-soft: #143b30;
    --on-answer: #06281b;
    --slip: #1d2a44;
    --slip-edge: #2f3f5e;
    --slip-ink: #eef2ee;
    --urgent: #ff8f85;
    --on-urgent: #2b0b08;
    --shadow-paper: 0 1px 0 rgb(0 0 0 / 0.3), 0 10px 22px -14px rgb(0 0 0 / 0.8);
    --shadow-pop: 0 16px 48px -12px rgb(0 0 0 / 0.7);
    --slip-shadow: drop-shadow(0 10px 16px rgb(0 0 0 / 0.55));
    color-scheme: dark;
  }
}

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2.5px solid var(--answer);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--answer-soft);
}

[id] {
  scroll-margin-top: 1.5rem;
}

.page {
  width: min(100% - 2 * var(--gutter), 74rem);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-weight: 650;
}
.skip:focus {
  top: 0.75rem;
}

.fine {
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 10px;
  background: var(--answer);
  color: var(--on-answer);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease-out;
}
.button:hover {
  background: var(--answer-strong);
}
.button.small {
  min-height: 2.625rem;
  padding: 0 1rem;
  font-size: 1rem;
}
.button.plain {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.button.plain:hover {
  background: var(--surface-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- header ---------- */

.top {
  padding-block: 1rem;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--answer);
}
.top-nav {
  display: none;
  gap: 1.75rem;
  margin-left: 1.5rem;
}
.top-nav a,
.foot-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}
.top-nav a:hover,
.foot-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.quiet-link {
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.quiet-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (min-width: 58rem) {
  .top-nav {
    display: flex;
  }
}
/* On a phone the header keeps the way in for people who have an account; the trial button is the first thing below it.
   For someone who is signed in the way in is "Open RingMarco". It stays, written as plainly as "Sign in" is:
   as a button it does not fit beside the name. */
@media (max-width: 30rem) {
  .top-actions .button.signed-out-only {
    display: none;
  }
  .top-actions .button.signed-in-only {
    min-height: 0;
    padding: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 650;
  }
  .top-actions .button.signed-in-only:hover {
    background: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}
/* The narrowest phones have room for one word beside the name: "Open". */
@media (max-width: 21rem) {
  .top-actions .when-room {
    display: none;
  }
}

/* ---------- signed in to the app ---------- */

/* The page asks the app whether this browser is signed in (signed-in.js). Someone who is gets the way back
   into the app in place of the ways to sign in or to start a trial. Until the answer comes, and for
   everyone else, the page is as it is written: these two rules only ever hide. */
html:not(.signed-in) .signed-in-only,
html.signed-in .signed-out-only {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 3rem;
  padding-block: 2.5rem 4rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 1.35rem + 6.4vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero-line {
  display: block;
}
.lead {
  margin-top: 1.5rem;
  max-width: 35rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
/* A campaign's landing page says more in its headline than the home page does, so it is set smaller. */
.landing h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.9vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
/* On a campaign's landing page, under the lead: who the page is for and where they work. */
.places {
  margin-top: 1rem;
  max-width: 35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-faint);
}
/* A campaign's own photo, when it has one, above the app's screenshots. */
.campaign-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 2.5rem;
  border-radius: 12px;
}
.hero .actions {
  margin-top: 2rem;
}
.hero .fine {
  margin-top: 1rem;
}
@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
    gap: 4rem;
    align-items: start;
    padding-block: 4rem 6rem;
  }
  .hero-words {
    padding-top: 1.5rem;
  }
}

/* The desk: a call as it was answered, and what it left behind. */

.desk {
  max-width: 40rem;
}

/* The demo line: the one real number on the page, for trying Marco before signing up. */
.demo-line {
  max-width: 35rem;
  padding: 1rem 1.25rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--answer-soft) 85%, var(--surface)), var(--surface) 75%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--answer) 35%, var(--line)),
    var(--shadow-paper);
}
.demo-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--answer);
  color: var(--on-answer);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-pill .dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--on-answer);
}
.demo-pill .dot::after {
  border-color: var(--on-answer);
  animation: ring 1.6s ease-out infinite;
}
.demo-title {
  margin-top: 0.6rem;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.375rem);
  text-wrap: pretty;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.demo-dial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.85rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.demo-phone {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: var(--answer-soft);
  fill: var(--answer);
}
.demo-number {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.demo-number:hover {
  color: var(--answer-strong);
}
/* A dial button only where a tap can place the call; on a computer the number is what people need. */
.demo-call {
  display: none;
  flex: 1 0 100%;
}
@media (hover: none) and (pointer: coarse) {
  .demo-call {
    display: inline-flex;
  }
}
.demo-hint {
  margin-top: 0.7rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-faint);
}
.demo-hint strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
}

/* Under the demo line, the example calls: their title, the trades and the note beside the call itself. */
.desk-title {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 64rem) {
  .hero .demo-line {
    align-self: center;
  }
  .desk {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
    grid-template-rows: auto auto 1fr;
    column-gap: 4rem;
    max-width: none;
    padding-top: 3.5rem;
    border-top: 1px solid var(--line);
  }
  .desk > :not(.calls) {
    grid-column: 1;
    max-width: 30rem;
  }
  .desk .calls {
    grid-column: 2;
    grid-row: 1 / -1;
    margin-top: 0;
  }
}

.trades {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.trades legend {
  padding: 0;
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trades label {
  position: relative;
  cursor: pointer;
}
.trades input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.375rem;
  padding: 0 0.8rem;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trades label:hover .chip {
  background: var(--surface-2);
  color: var(--ink);
}
.trades input:checked + .chip {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.trades input:focus-visible + .chip {
  outline: 2.5px solid var(--answer);
  outline-offset: 2px;
}

/*
 * All six calls sit in the same cell, so the block is as tall as the tallest of them and choosing another
 * trade never moves the page. Only the chosen call is visible, and only it is given its animations: being
 * handed them afresh is what makes a call play again each time it is chosen.
 */
.calls {
  display: grid;
  margin-top: 1.25rem;
}
.call {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  --play-line: none;
  --play-drop: none;
  --play-tick: none;
  --play-ring: none;
}
.desk:has(input[value="plumbing"]:checked) .call[data-trade="plumbing"],
.desk:has(input[value="hvac"]:checked) .call[data-trade="hvac"],
.desk:has(input[value="salon"]:checked) .call[data-trade="salon"],
.desk:has(input[value="auto"]:checked) .call[data-trade="auto"],
.desk:has(input[value="cleaning"]:checked) .call[data-trade="cleaning"],
.desk:has(input[value="contractor"]:checked) .call[data-trade="contractor"] {
  visibility: visible;
  --play-line: line-in;
  --play-drop: slip-in;
  --play-tick: tick;
  --play-ring: ring;
}
/* A campaign's landing page (/campaigns/…) has one call and nothing to choose, so its call is simply shown. */
.call.shown {
  visibility: visible;
  --play-line: line-in;
  --play-drop: slip-in;
  --play-tick: tick;
  --play-ring: ring;
}
/* A browser that cannot follow the choice shows the first call and no chooser. */
@supports not selector(:has(*)) {
  .trades {
    display: none;
  }
  .call[data-trade="plumbing"] {
    visibility: visible;
    --play-line: line-in;
    --play-drop: slip-in;
    --play-tick: tick;
    --play-ring: ring;
  }
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
}
.call-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.call-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.dot {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--answer);
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--answer);
  opacity: 0;
  animation: var(--play-ring) 1.1s ease-out 2;
}
.call-when {
  color: var(--ink-soft);
}
.talk {
  margin: 0;
  /* Room at the foot for what the call leaves behind, which is laid over the edge of the sheet. */
  padding: 0 0 1.5rem;
  list-style: none;
}
.line {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  animation: var(--play-line) 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.line + .line {
  border-top: 1px solid var(--line);
}
.who {
  padding-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-faint);
}
.line.marco .who {
  color: var(--answer);
}

/* What the call leaves behind, laid on the sheet at a slight angle: an entry in the appointment book, or a slip. */
.left-behind {
  position: relative;
  width: min(100%, 25.5rem);
  margin: -1.1rem 0 0 auto;
  rotate: -1.4deg;
  filter: var(--slip-shadow);
}

/* An appointment as the app lists it: the time in the margin, a coloured rule, then who and what. */
.entry {
  background: var(--surface);
  border-radius: 3px;
}
.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.entry-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 1.1rem 1.1rem;
}
.entry-time {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: nowrap;
}
.entry-what {
  padding-left: 1rem;
  border-left: 3px solid #1d4ed8;
  color: var(--ink-soft);
}
.entry-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}
.entry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.2rem 0.6rem 0.2rem 0.4rem;
  border-radius: 6px;
  background: var(--answer-soft);
  color: var(--answer);
  font-size: 0.875rem;
  font-weight: 700;
}
.entry-tag svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.entry-tag path {
  stroke-dasharray: 22;
}

/*
 * A "While you were out" slip, as the app shows a message that needs the owner: cream note paper with a
 * fine outline and ruled lines, the caller's number, a red tag when it is urgent, and what they asked for.
 */
.slip {
  padding: 1.35rem 1.15rem 1.15rem;
  background: var(--slip);
  color: var(--slip-ink);
  border-radius: 4px;
  /* Note paper is close to the colour of the page it lies on, so it is outlined, as in the app. */
  box-shadow: inset 0 0 0 1px var(--line);
  /* The perforated top edge of a sheet torn from a message pad. */
  -webkit-mask: radial-gradient(circle 4px at 9px 0, #0000 97%, #000) 0 0 / 18px 100% repeat-x;
  mask: radial-gradient(circle 4px at 9px 0, #0000 97%, #000) 0 0 / 18px 100% repeat-x;
}
.slip-label {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.slip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--slip-edge);
}
.slip-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.slip-time {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
/* The caller's number, whether it is urgent, and what they asked: one ruled line, as on the app's slip. */
.slip-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.25rem;
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--slip-edge);
  list-style: none;
  font-weight: 600;
}
.slip-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.slip-facts svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slip-urgent {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--urgent);
  color: var(--on-urgent);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
/* The tick in "Please call back" is drawn in when the call above it plays. */
.slip-box path {
  stroke-width: 2.4;
  stroke-dasharray: 22;
}
.slip-note {
  margin-top: 0.7rem;
}

.desk-note {
  margin-top: 1.4rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/*
 * The one piece of motion on the page: the call is spoken line by line, then what it leaves behind lands
 * on the desk and is ticked. It runs when the page opens and again when another trade is chosen, and not
 * at all for anyone who has asked for less motion.
 */
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes slip-in {
  from {
    opacity: 0;
    transform: translateY(-20px) rotate(-4deg);
  }
}
@keyframes tick {
  from {
    stroke-dashoffset: 22;
  }
}
@keyframes ring {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}
.line:nth-child(1) {
  animation-delay: 150ms;
}
.line:nth-child(2) {
  animation-delay: 950ms;
}
.line:nth-child(3) {
  animation-delay: 1850ms;
}
.line:nth-child(4) {
  animation-delay: 2700ms;
}
.left-behind {
  animation: var(--play-drop) 560ms cubic-bezier(0.2, 0.8, 0.2, 1) 3300ms both;
}
.slip-box path,
.entry-tag path {
  animation: var(--play-tick) 340ms ease-out 3950ms both;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- bands: a heading in the margin, the matter beside it, as in an appointment book ---------- */

.band {
  padding-block: 4rem;
  border-top: 1px solid var(--line);
}
.book {
  display: grid;
  gap: 2rem;
}
.margin {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.05;
}
@media (min-width: 62rem) {
  .band {
    padding-block: 5.5rem;
  }
  .book {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 4rem;
  }
  .margin {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

/* steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.steps li:first-child {
  padding-top: 0;
  border-top: 0;
}
.steps li:last-child {
  padding-bottom: 0;
}
.step-number {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--answer);
}
.steps h3 {
  font-size: 1.4375rem;
  line-height: 1.2;
}
.steps p {
  margin-top: 0.5rem;
  max-width: 40rem;
  color: var(--ink-soft);
}
.steps .forward {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.forward-end {
  padding: 0.3rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.forward svg {
  width: 2.5rem;
  height: 0.75rem;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* what it handles */

.ledgers {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 46rem) {
  .ledgers {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.ledger h3 {
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.25rem;
}
.ledger dl {
  margin: 0;
}
.ledger dl div {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.ledger dt {
  font-weight: 700;
}
.ledger dd {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
}

.shots {
  position: relative;
  margin-top: 3.5rem;
  margin-bottom: 0;
}
.shot-wide {
  display: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
}
.shot-phone {
  width: min(70%, 17rem);
  margin-inline: auto;
  border: 7px solid #14213d;
  border-radius: 28px;
  box-shadow: var(--shadow-pop);
}
.shots figcaption {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}
@media (min-width: 46rem) {
  .shots {
    padding-right: 7%;
    padding-bottom: 3rem;
  }
  .shot-wide {
    display: block;
  }
  .shot-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 21%;
    margin: 0;
    border-width: 6px;
    border-radius: 22px;
  }
  .shots figcaption {
    margin-top: 1rem;
    max-width: 70%;
  }
}

/* pricing: a ledger, one line per plan */

.plans {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.plans thead th {
  padding: 0 1rem 0.7rem 0;
  border-bottom: 2px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-faint);
  vertical-align: bottom;
}
.plans tbody th,
.plans tbody td {
  padding: 1.35rem 1rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.plans tbody th {
  font-weight: 400;
}
.plan-name {
  display: block;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.plan-for {
  display: block;
  margin-top: 0.15rem;
  max-width: 17rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plans tbody td {
  white-space: nowrap;
}
@media (max-width: 47.99rem) {
  .plans thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .plans,
  .plans tbody,
  .plans tr,
  .plans th,
  .plans tbody td {
    display: block;
  }
  .plans tbody tr {
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .plans tbody tr:first-child {
    padding-top: 0;
  }
  .plans tbody th,
  .plans tbody td {
    padding: 0;
    border: 0;
  }
  .plans tbody th {
    margin-bottom: 0.8rem;
  }
  .plans tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.3rem;
  }
  .plans tbody td::before {
    content: attr(data-label);
    color: var(--ink-soft);
  }
  .price {
    font-size: 1.5rem;
  }
}
.plan-notes {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
  color: var(--ink-soft);
}
.plan-notes li {
  position: relative;
  padding-left: 1.35rem;
}
.plan-notes li + li {
  margin-top: 0.7rem;
}
.plan-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--answer);
}
#pricing .actions {
  margin-top: 2rem;
}

/* questions */

.faq {
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 1.1rem 2.75rem 1.1rem 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* A plus that becomes a minus when the answer is open. */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.95rem;
  height: 2px;
  margin-top: -1px;
  background: var(--ink-faint);
  transition: rotate 160ms ease-out;
}
.faq summary::after {
  rotate: 90deg;
}
.faq details[open] summary::after {
  rotate: 0deg;
}
.faq summary:hover {
  color: var(--answer);
}
.faq details p {
  max-width: 44rem;
  padding-bottom: 1.35rem;
  color: var(--ink-soft);
}

/* closing band */

.close {
  background: var(--ink);
  color: var(--paper);
  padding-block: 4.5rem;
}
.close-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.close h2 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.close .fine {
  margin-top: 0.9rem;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}
/* On the ink band the button is paper-coloured: the green would sit too close to the blue-black. */
.close .button {
  background: var(--paper);
  color: var(--ink);
}
.close .button:hover {
  background: var(--surface);
}
.close :focus-visible {
  outline-color: var(--paper);
}

/* footer */

.foot {
  padding-block: 2.5rem 3rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.foot .fine {
  flex-basis: 100%;
}

/* the page that is not there */

.lost {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  min-height: 70vh;
  padding-block: 4rem;
}
.lost h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 1.4rem + 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.lost-text {
  max-width: 32rem;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

/* ---------- the legal pages: privacy, terms, texting ---------- */

.legal {
  padding-block: 2.5rem 5rem;
}
.legal-head {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.legal-head .lead {
  max-width: 40rem;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}
.legal-body {
  display: grid;
  gap: 2.5rem;
  padding-top: 2.5rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}
.legal-toc li + li {
  margin-top: 0.35rem;
}
.legal-toc a {
  text-decoration: none;
}
.legal-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.legal-toc-title {
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.prose {
  max-width: 44rem;
}
.prose section + section {
  margin-top: 2.75rem;
}
.prose h2 {
  font-size: 1.625rem;
  line-height: 1.15;
}
.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
}
.prose p,
.prose ul,
.prose dl,
.prose ol {
  margin: 0.85rem 0 0;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 0.4rem;
}
.prose a {
  color: var(--answer-strong);
  text-underline-offset: 0.2em;
}
.prose strong {
  font-weight: 700;
}
.facts {
  display: grid;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-weight: 700;
}
.facts dd {
  margin: 0;
  color: var(--ink-soft);
}
@media (min-width: 40rem) {
  .facts > div {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}
.samples {
  list-style: none;
  padding-left: 0 !important;
}
.samples li {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.96875rem;
}
.samples li + li {
  margin-top: 0.6rem;
}
.samples .sample-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.callout {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--answer);
  background: var(--answer-soft);
  border-radius: 0 10px 10px 0;
}
@media (min-width: 62rem) {
  .legal-body {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 4rem;
  }
  .legal-toc {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

/* the operator line and legal links in every footer */

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  flex-basis: 100%;
}
.foot-legal a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}
.foot-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.foot .operator-line {
  color: var(--ink-soft);
}
.foot .fine a {
  color: inherit;
}
