/* The home page alone: the one page a person meets before knowing the service. Only the home page loads this file,
   and every rule starts from `.home`, the class of its body, or from a class only this page has, so no other page
   changes. It keeps the colours, the type, the buttons and the scale of distances of app.css, in the light and in the
   dark look alike: what it adds is the scene of its head, its sections and their decoration. */

.home {
  /* This page is wider than the others: the scene of its head needs the room. */
  --measure: 90rem;

  /* How much room the bar takes over the page: the head of the page starts under it. */
  --bar: calc(var(--s-8) + var(--s-4));

  /* The colours of the scene (home-scene.js reads them, and reads them again when the look changes): the ground and
     its contour lines, the wave that uncovers them, the radar, and the calls with their sheets and their dots. The
     light look's are below. */
  --scene-ground: #0f1115;
  --scene-line: #4a515d;
  --scene-wave: #c9ced8;
  --scene-paper: #e9ecf1;
  --scene-detail: #2a2f38;
  --scene-wrong: #08090b;
  --scene-mark: #9aa1ad;
  --scene-dish: #dfe3ea;
  --scene-base: #2a2f38;
  --scene-mast: #3a414c;
  /* How dark the darkest patches of the ground are and how light the lightest (1 is the ground's colour), and how much
     the ground under the words is darkened (a negative share lightens it). */
  --scene-patches: 0.45 1.9;
  --scene-shade: 0.45;
}

/* The light look: a pale ground with darker lines, softer patches, and the ground under the words lighter instead of
   darker. The same rule twice, for a light look chosen and for a system that asks for one. */
:root[data-theme="light"] .home {
  --scene-ground: #e3e7ec;
  --scene-line: #a7aeb9;
  --scene-wave: #4a515d;
  --scene-paper: #ffffff;
  --scene-detail: #c3c9d2;
  --scene-wrong: #3a414c;
  --scene-mark: #6b7380;
  --scene-dish: #f4f6f9;
  --scene-base: #3a414c;
  --scene-mast: #4a515d;
  --scene-patches: 0.96 1.04;
  --scene-shade: -0.04;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .home {
    --scene-ground: #e3e7ec;
    --scene-line: #a7aeb9;
    --scene-wave: #4a515d;
    --scene-paper: #ffffff;
    --scene-detail: #c3c9d2;
    --scene-wrong: #3a414c;
    --scene-mark: #6b7380;
    --scene-dish: #f4f6f9;
    --scene-base: #3a414c;
    --scene-mast: #4a515d;
    --scene-patches: 0.96 1.04;
    --scene-shade: -0.04;
  }
}

/* On this page every title and every paragraph breaks into lines of even length, so none ends on a word alone. */
.home :where(h1, h2, h3, p, figcaption, blockquote) {
  text-wrap: balance;
}

/* An anchor of the page lands under the bar, not behind it. */
html:has(.home) {
  scroll-padding-top: var(--bar);
}

/* A link to a section of this page glides there, unless the person asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.home) {
    scroll-behavior: smooth;
  }
}

/* ───────── The bar: fixed over the page, with nothing behind it ───────── */

.home > .band {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  background: transparent;
}

/* The links of the bar stand on one line with the button of the way in. */
.home .nav {
  align-items: center;
}

/* ───────── The hero: the head of this page alone, starting at the top of the window under the bar ───────── */

/* As tall as the window, and never shorter than 750px. The words sit at its bottom, 140px above its edge (the sum
   below), and the room the bar takes is kept free above them. */
.home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(46.875rem, 100vh);
  min-height: max(46.875rem, 100svh);
  padding-block: var(--bar) calc(var(--s-8) * 2 + var(--s-3));
}

/* The scene (home-scene.js draws it) fills the hero behind the words. It is dimmer towards the left, where the words are, but reaches the edge,
   and towards the top and the bottom, where the bar is and the page goes on. */
.home-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image:
    linear-gradient(to right, rgb(0 0 0 / 0.4), #000 46%),
    linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
  mask-composite: intersect;
}

.home-hero-text {
  position: relative;
}

/* On a narrow screen the words are at the bottom of the hero and the scene has the top to itself, fading at both ends. */
@media (width <= 52rem) {
  .home-scene {
    inset: 0 0 auto;
    height: 58%;
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 74%, transparent);
  }
}

.home-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
}

/* The words that carry the promise; the last two never part. */
.home-hero h1 em {
  color: var(--accent-ink);
  font-style: normal;
  white-space: nowrap;
}

.home-hero-lead {
  max-width: 40rem;
  margin-top: var(--s-5);
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.45;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

/* ───────── The buttons of this page ───────── */

/* The buttons are the site's (app.css), a little lower. The first of the hero is filled with ink instead of the
   accent, so the accent is left to the way in of the bar; under the pointer it takes the accent. */
.home :is(.button, .nav a[href="/accedi"]) {
  height: 2.25rem;
  min-height: 0;
  padding: 0 var(--s-4);
  font-weight: 400;
}

.home .home-hero-actions .button:not(.button-quiet) {
  --rest: var(--ink);
  --on-rest: var(--mist);
  --fill: var(--accent);
  --on-fill: var(--on-accent);
}

/* ───────── The sections under the hero ───────── */

/* Each section is a new subject: a small line in the accent that names it, a large title and a sentence, all three
   in the middle of the page, and its own content under them. */
.home-section {
  padding-block: calc(var(--s-8) + var(--s-6));
}

/* The problem leads straight into the answer: the section after it has room of its own above. */
.home-problem {
  padding-bottom: 0;
}

.home-kicker {
  color: var(--accent-ink);
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-section h2 {
  max-width: 18ch;
  margin: var(--s-3) auto 0;
  text-align: center;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
}

.home-section-lead {
  max-width: 40rem;
  margin: var(--s-5) auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.45;
}

/* Three facts side by side, each under a line with its number: on a narrow screen one under the other. */
.home-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding: 0;
  list-style: none;
}

.home-facts li {
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.home-fact-number {
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-facts h3 {
  margin-top: var(--s-5);
  font-size: var(--step-2);
}

.home-facts p {
  margin-top: var(--s-3);
  color: var(--muted);
}

/* A section in two halves: its words on the left, aligned to the left, and its content on the right. On a narrow
   screen the content goes under the words. */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-8);
}

.home-split .home-kicker,
.home-split h2,
.home-split .home-section-lead {
  margin-inline: 0;
  text-align: left;
}

@media (width <= 52rem) {
  .home-split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7);
  }
}

/* A section on a light pattern of dots, as wide as the window whatever the width of the page, fading at its top and
   bottom into the sections beside it. It has more room above and below than the others, so the pattern is seen. */
.home-dotted {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--s-8) * 2 + var(--s-6));
}

.home-dotted::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: radial-gradient(circle, var(--dots) 1px, transparent 1.5px) center / 1.5rem 1.5rem;
  translate: -50%;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

/* The pattern is as wide as the window with its scrollbar: what would stick out is cut, so the page never scrolls
   sideways. The cut is on main, not on the body: a phone's browser does not honour it on the body, widens the page to
   what sticks out, and the fixed bar grows with it, its menu button out of sight. */
.home main {
  overflow-x: clip;
}

/* Three figures one under the other, a card each, with the corner at the bottom left cut as on the buttons: the
   figure large, in the accent, and beside it what it counts. */
.home-figures {
  display: grid;
  gap: var(--gap);
  padding: 0;
  list-style: none;
}

.home-figures li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--s-5) 100%, 0 calc(100% - var(--s-5)));
}

.home-figures strong {
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.8rem + 2.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-figures span {
  color: var(--ink-soft);
}

@media (width <= 36rem) {
  .home-figures li {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-2);
    padding: var(--s-5);
  }
}

/* A section on the terrain of the hero: its contour lines alone, drawn once by the scene and saved as a picture
   (home-terrain.webp). As wide as the window, fading on every side into the page. */
.home-terrain {
  position: relative;
  isolation: isolate;
}

.home-terrain::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: url("home-terrain.webp") center / cover no-repeat;
  opacity: var(--terrain-opacity);
  filter: var(--terrain-filter);
  translate: -50%;
  mask-image:
    linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent),
    linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}

/* How it works: four pieces in two columns, read as a zigzag: the first step at the top left, the second on the
   right half a piece lower, the third under the first, and under the second the radar. A piece is `--w` wide and `--h`
   tall, nearly a square; the columns are `--g` apart, the rows `--r`, and the right column is `--d` lower. */
.home-flow {
  position: relative;
  display: grid;
  grid-template-columns: var(--w) var(--w);
  justify-content: center;
  gap: var(--r) var(--g);
  margin-top: var(--s-8);
  padding-bottom: var(--d);

  --w: 25rem;
  --h: 20rem;
  --g: var(--s-8);
  --r: calc(var(--s-8) * 2 + var(--s-5));
  --d: calc(var(--h) / 2);
}

/* The list of the steps lends its items to the grid, so the radar can be the fourth of them. */
.home-steps {
  display: contents;
  list-style: none;
}

.home-steps li,
.home-flow-radar {
  height: var(--h);
}

.home-steps li:nth-child(2),
.home-flow-radar {
  translate: 0 var(--d);
}

/* The dashed line, in the accent, from each step to the next piece: it leaves the side of a card, runs across to the
   middle of the other column and turns down, at a right angle, onto the top of the piece there. Each is the top edge
   and one side edge of a box placed on the grid: the first and the third turn on the right, the second on the left. */
.home-steps li::after {
  content: "";
  position: absolute;
  width: calc(var(--g) + var(--w) / 2);
  height: calc(var(--r) / 2);
  border: 0 dashed var(--accent-line);
  border-top-width: 2px;
}

.home-steps li:nth-child(1)::after {
  top: calc(var(--d) - var(--r) / 2);
  left: calc(50% - var(--g) / 2);
  border-right-width: 2px;
}

/* The second card is moved down, so what is placed in it is measured from the card itself: the line leaves its left
   side just under the first card and reaches back to the middle of the first column. */
.home-steps li:nth-child(2)::after {
  top: calc(var(--h) - var(--d) + var(--r) / 2);
  right: 100%;
  border-left-width: 2px;
}

/* The last one goes on down behind the radar, to where the dish is. */
.home-steps li:nth-child(3)::after {
  top: calc(var(--h) + var(--d) + var(--r) / 2);
  left: calc(50% - var(--g) / 2);
  height: calc(var(--r) / 2 + var(--h) / 4);
  border-right-width: 2px;
}

/* A card, with the corner at the top right cut: its number and its dial at the top, then what the step is. */
.home-step {
  height: 100%;
  padding: var(--s-6);
  background: var(--paper);
  clip-path: polygon(0 0, calc(100% - var(--s-5)) 0, 100% var(--s-5), 100% 100%, 0 100%);
}

/* The third card is cut at the bottom left instead. */
.home-steps li:nth-child(3) .home-step {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--s-5) 100%, 0 calc(100% - var(--s-5)));
}

.home-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: var(--s-4);
}

.home-step h3 {
  margin-top: var(--s-5);
  font-size: var(--step-2);
}

.home-step p {
  margin-top: var(--s-3);
  color: var(--muted);
}

/* The radar is the model of the scene, the fourth piece: it fills its place and is drawn over the end of the line. */
.home-flow-radar {
  position: relative;
  display: block;
  width: 100%;
  object-fit: contain;
}

/* On a narrower screen there is one column: the pieces go one under the other, as tall as their words, and the line
   runs straight down the middle from each to the next. */
@media (width <= 64rem) {
  .home-flow {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;

    --r: var(--s-7);
  }

  .home-steps li {
    position: relative;
    height: auto;
  }

  .home-steps li:nth-child(n),
  .home-flow-radar {
    translate: none;
  }

  .home-steps li:nth-child(n)::after {
    inset: 100% auto auto 50%;
    width: 0;
    height: var(--r);
    border-width: 0 0 0 2px;
  }

  .home-flow-radar {
    width: min(100%, 20rem);
    margin: 0 auto;
  }
}

/* The anatomy of a card: the example in the middle and the three questions around it, the first and the third on
   its left, the second on its right. `--g` is the room between the card and a question, which its line crosses. */
.home-anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem) minmax(0, 1fr);
  column-gap: var(--g);
  margin-top: calc(var(--s-8) + var(--s-7));

  --g: var(--s-8);
  /* Where the pieces of the card are: the level and the days from its top, what is in the way and the two buttons
     from its foot; and how far inside the card, from its side, a line reaches each. `--turn` is how far a line climbs
     or descends between the card and its question. */
  --level-y: 4rem;
  --days-y: 3.4rem;
  --obstacle-y: 9.8rem;
  --actions-y: 3.2rem;
  --near: 1.2rem;
  --actions-x: 18.9rem;
  --turn: 3rem;
  /* How far under the top of a question its line leaves: the middle of its title. */
  --at: calc(var(--s-6) + var(--s-3));
}

/* The list lends its items to the grid, so each question stands beside the piece of the card it is about. */
.home-points {
  display: contents;
  list-style: none;
}

.home-points li {
  position: relative;
  grid-row: 1;
  max-width: 19rem;
}

.home-points h3 {
  margin-top: var(--s-2);
  font-size: var(--step-1);
}

.home-points p {
  margin-top: var(--s-2);
  color: var(--muted);
}

/* The first and the third on the left, ending towards the card; the second and the fourth on the right. Each stands
   where its line arrives (`--at` under its own top): the first two a little under the piece of the card they are
   about, measured from the top of the card; the other two a little above theirs, measured from its foot. The numbers
   are the same the lines use, further down. */
.home-points li:nth-child(odd) {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.home-points li:nth-child(even) {
  grid-column: 3;
}

.home-points li:nth-child(-n + 2) {
  align-self: start;
}

.home-points li:nth-child(1) {
  margin-top: calc(var(--level-y) + var(--turn) - var(--at));
}

.home-points li:nth-child(2) {
  margin-top: calc(var(--days-y) + var(--turn) - var(--at));
}

/* Measured from the foot: the item is as tall as the way from its line to the foot of the card, whatever its words. */
.home-points li:nth-child(n + 3) {
  align-self: end;
}

.home-points li:nth-child(3) {
  height: calc(var(--obstacle-y) + var(--turn) + var(--at));
}

.home-points li:nth-child(4) {
  height: calc(var(--actions-y) + var(--turn) + var(--at));
}

/* What an association can do with a card, under everything, in the middle. */
.home-points-more {
  grid-column: 1 / -1;
  max-width: 40rem;
  margin: var(--s-8) auto 0;
  color: var(--ink-soft);
  text-align: center;
}

/* The card of the example: both its corners cut, an edge in the accent on its left, and the pieces of a real card
   inside. The small line above it says it is an example. */
.home-example {
  position: relative;
  isolation: isolate;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

/* Around the card, the pattern of dots of the page: it reaches past the card on every side and fades at its edges. */
.home-example::before {
  content: "";
  position: absolute;
  inset: calc(var(--s-8) * -4) calc(var(--s-8) * -9);
  z-index: -1;
  background: radial-gradient(circle, var(--dots-strong) 1px, transparent 1.5px) center / 1.5rem 1.5rem;
  mask-image: radial-gradient(ellipse closest-side, #000 60%, transparent);
  pointer-events: none;
}

/* The small line above the card, on the left as the card is: it takes no room, so the card starts where the grid
   does. */
.home-example .home-kicker {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: var(--s-3);
}

/* The two buttons of a card, under a line: the first filled in the accent, the second an outline. They are drawn, not
   pressed. */
.home-example-actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.home-example-actions span {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 var(--s-4);
  border: 1px solid var(--ink-soft);
  color: var(--ink);
}

.home-example-actions .home-example-save {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* The lines, in the accent. Each starts with a dot beside a piece of the card, runs level out of the card to the
   middle of the room beside it, turns with a round corner, climbs or descends `--turn`, turns again and runs level to
   its question. It is drawn in two halves: the element itself is the half on the side of the card, its ::after the
   half on the side of the question, its ::before the dot. */
.home-wire,
.home-wire::after {
  position: absolute;
  width: calc(var(--g) / 2 + var(--reach));
  height: calc(var(--turn) / 2);
  border: 0 solid var(--accent-line);
  pointer-events: none;

  --reach: var(--near);
  --round: var(--s-3);
}

.home-wire::after {
  content: "";
  width: calc(var(--g) / 2 - var(--s-3));
}

.home-wire::before {
  content: "";
  position: absolute;
  width: var(--s-2);
  height: var(--s-2);
  border-radius: 50%;
  background: var(--accent-line);
}

/* From the left of the card, going down to the question: the first. */
.home-wire-level {
  top: var(--level-y);
  left: calc(var(--g) / -2);
  border-top-width: 1px;
  border-left-width: 1px;
  border-top-left-radius: var(--round);
}

.home-wire-level::after {
  top: 100%;
  right: 100%;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-bottom-right-radius: var(--round);
}

.home-wire-level::before {
  top: 0;
  right: 0;
  translate: 50% -50%;
}

/* From the right of the card, going down: the second. */
.home-wire-days {
  top: var(--days-y);
  right: calc(var(--g) / -2);
  border-top-width: 1px;
  border-right-width: 1px;
  border-top-right-radius: var(--round);
}

.home-wire-days::after {
  top: 100%;
  left: 100%;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-bottom-left-radius: var(--round);
}

.home-wire-days::before {
  top: 0;
  left: 0;
  translate: -50% -50%;
}

/* From the left of the card, going up: the third. */
.home-wire-obstacle {
  bottom: var(--obstacle-y);
  left: calc(var(--g) / -2);
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-bottom-left-radius: var(--round);
}

.home-wire-obstacle::after {
  right: 100%;
  bottom: 100%;
  border-top-width: 1px;
  border-right-width: 1px;
  border-top-right-radius: var(--round);
}

.home-wire-obstacle::before {
  right: 0;
  bottom: 0;
  translate: 50% 50%;
}

/* From the right of the card, going up, and starting far inside it, beside the two buttons: the fourth. */
.home-wire-actions {
  right: calc(var(--g) / -2);
  bottom: var(--actions-y);
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-bottom-right-radius: var(--round);

  --reach: var(--actions-x);
}

.home-wire-actions::after {
  bottom: 100%;
  left: 100%;
  border-top-width: 1px;
  border-left-width: 1px;
  border-top-left-radius: var(--round);
}

.home-wire-actions::before {
  bottom: 0;
  left: 0;
  translate: -50% 50%;
}

/* On a narrower screen there is no room beside the card: the questions are a list, without lines, and the card comes
   after them. */
@media (width <= 72rem) {
  .home-anatomy {
    grid-template-columns: minmax(0, 34rem);
    justify-content: center;
    row-gap: var(--s-6);
  }

  .home-example,
  .home-points li:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .home-points li {
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
  }

  .home-points li:nth-child(n) {
    height: auto;
  }

  .home-wire {
    display: none;
  }

  .home-example {
    order: 1;
    margin-top: var(--s-7);
  }

  .home-points-more {
    order: 2;
    margin-top: var(--s-4);
    text-align: left;
  }
}

.home-example-card {
  padding: var(--s-6);
  border-left: 3px solid var(--accent-line);
  background: var(--paper);
  clip-path: polygon(
    0 0,
    calc(100% - var(--s-5)) 0,
    100% var(--s-5),
    100% 100%,
    var(--s-5) 100%,
    0 calc(100% - var(--s-5))
  );
}

.home-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.home-example-level {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--accent-ink);
  font-weight: 700;
}

.home-example-days {
  color: var(--muted);
  font-size: var(--step--1);
  text-align: right;
}

.home-example-days strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
}

.home-example h3 {
  margin-top: var(--s-6);
  font-size: var(--step-2);
}

.home-example-meta {
  margin-top: var(--s-2);
  color: var(--muted);
  font-size: var(--step--1);
}

.home-example-amount {
  margin-top: var(--s-3);
  font-weight: 700;
}

/* The reason and the obstacle: each a small label and, beside it, its sentence. */
.home-example dl {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.home-example dl dt {
  margin: 0;
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-example dl dt.home-example-obstacle {
  color: var(--mark-ink);
}

.home-example dl dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Who the service is not for: one quiet line under the words. */
.home-audience-not {
  margin-top: var(--s-5);
  color: var(--muted);
}

/* The kinds of body the service is for: two columns of tiles, each with a dot in the accent and the corner at the
   top right cut. */
.home-kinds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  padding: 0;
  list-style: none;
}

.home-kinds li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 4rem;
  padding: var(--s-3) var(--s-5);
  background: var(--paper);
  line-height: 1.3;
  clip-path: polygon(0 0, calc(100% - var(--s-4)) 0, 100% var(--s-4), 100% 100%, 0 100%);
}

.home-kinds li::before {
  content: "";
  flex: none;
  width: var(--s-2);
  height: var(--s-2);
  border-radius: 50%;
  background: var(--accent-line);
}

@media (width <= 36rem) {
  .home-kinds {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────── The foot of this page: the last invitation, then whose service this is and where to go ───────── */

/* The last invitation, on the terrain: a large title, a sentence and one button, in the middle. */
.home-closing {
  color: var(--ink);
  font-size: var(--step-0);
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  padding-block: calc(var(--s-8) * 2);
  text-align: center;
}

.home-closing h2 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
}

.home-closing p {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.home-closing .button {
  margin-top: var(--s-3);
}

/* On a narrow screen the bar is two lines tall: the brand, then the navigation. */
@media (width <= 52rem) {
  .home {
    --bar: calc(var(--s-8) + var(--s-7));
  }

  .home:has(.has-menu) {
    --bar: calc(var(--s-8) + var(--s-4));
  }
}
