/* Les jeux de Sunny: Sunny's colours (mint cactus, coral pot, sun yellow), phone first, large targets, light and dark,
   and no motion for whoever asks their device for less. */
:root {
  --bg: #fff8ec;
  --bg-blob-1: #dff5ea;
  --bg-blob-2: #ffe6d8;
  --surface: #ffffff;
  --surface-2: #fbf6ee;
  --text: #24312c;
  --muted: #61706a;
  --line: #eadfce;
  --mint: #8fddbd;
  --mint-soft: #e3f7ee;
  --mint-strong: #23735a;
  --coral: #f5a385;
  --coral-soft: #ffe9df;
  --primary: #c24d2c;
  --primary-hover: #a63f22;
  --on-primary: #ffffff;
  --sun: #ffd54a;
  --sun-soft: #fff4c4;
  --good: #1f7a5c;
  --good-soft: #dcf5ea;
  --bad: #b4233c;
  --bad-soft: #fde3e8;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(60 40 20 / 6%), 0 6px 18px rgb(60 40 20 / 7%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --bg-blob-1: #10251d;
    --bg-blob-2: #2a1a12;
    --surface: #1f1d18;
    --surface-2: #26231d;
    --text: #f1efe9;
    --muted: #b3ab9f;
    --line: #3b352b;
    --mint-soft: #15342a;
    --mint-strong: #8fddbd;
    --coral-soft: #3a2219;
    --primary: #f08a63;
    --primary-hover: #f6a383;
    --on-primary: #1b120d;
    --sun-soft: #3a3012;
    --good: #7fe0b9;
    --good-soft: #143528;
    --bad: #ff8fa3;
    --bad-soft: #3d1820;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, var(--bg-blob-1) 0 28%, transparent 29%),
    radial-gradient(circle at 105% 30%, var(--bg-blob-2) 0 22%, transparent 23%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.5 ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

a {
  color: var(--primary);
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px 4px;
}

header.top a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

header.top img {
  width: 34px;
  height: 41px;
}

h1 {
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.spaced {
  margin-top: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 16px 0;
}

/* The home page: Sunny says hello, then one card per game. */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
}

.hero img {
  width: clamp(96px, 26vw, 150px);
  height: auto;
}

.games {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

@media (min-width: 640px) {
  .games {
    grid-template-columns: 1fr 1fr;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgb(60 40 20 / 14%);
}

.game-card .art {
  display: grid;
  place-items: center;
  height: 150px;
  background: var(--mint-soft);
}

.game-card.calcul .art {
  background: var(--sun-soft);
}

.game-card .art img {
  max-height: 130px;
  max-width: 80%;
}

.game-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

.game-card .go {
  margin-top: auto;
  color: var(--primary);
  font-weight: 800;
}

.badge {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

button,
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.08s ease, background 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

button:active:not(:disabled) {
  transform: scale(0.97);
}

button.quiet,
.button.quiet {
  background: transparent;
  color: var(--primary);
}

button.quiet:hover:not(:disabled) {
  background: var(--coral-soft);
  color: var(--primary-hover);
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--mint-strong);
}

textarea {
  min-height: 230px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Example lists, as chips. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  min-height: 40px;
  padding: 6px 14px;
  border-width: 1px;
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.chips button:hover:not(:disabled) {
  background: var(--mint-soft);
  border-color: var(--mint-strong);
  color: var(--text);
}

/* The list, ready: one large button per game. */
.modes {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .modes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modes button {
  flex-direction: column;
  gap: 2px;
  min-height: 84px;
  background: var(--mint-soft);
  border-color: var(--mint);
  color: var(--text);
}

.modes button:hover:not(:disabled) {
  background: var(--mint);
  border-color: var(--mint-strong);
  color: #10251d;
}

.modes .mode-name {
  font-size: 1.1rem;
  font-weight: 800;
}

.modes .mode-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.modes button:hover .mode-hint {
  color: #24312c;
}

/* A game in play. */
.status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.list-status { align-items: center; }
.list-status .status-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.list-status .status-details > span { min-width: 0; overflow-wrap: anywhere; }

.streak {
  color: var(--primary);
}

.bar {
  height: 10px;
  margin: 8px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--mint-strong));
  transition: width 0.3s ease;
}

.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.stage img {
  width: clamp(64px, 18vw, 96px);
  height: auto;
}

.question {
  font-size: clamp(1.6rem, 6.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.choices {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .choices {
    grid-template-columns: 1fr 1fr;
  }
}

.choices button {
  justify-content: flex-start;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}

.choices button::before {
  content: attr(data-key);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
}

.choices button:hover:not(:disabled) {
  background: var(--mint-soft);
  border-color: var(--mint-strong);
  color: var(--text);
}

.choices button.right {
  background: var(--good-soft);
  border-color: var(--good);
  color: var(--good);
  font-weight: 800;
  opacity: 1;
}

.choices button.wrong {
  background: var(--bad-soft);
  border-color: var(--bad);
  color: var(--bad);
  opacity: 1;
}

.feedback {
  min-height: 1.6em;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 14px 0;
}

.feedback.good {
  color: var(--good);
}

.feedback.bad {
  color: var(--bad);
}

.pairs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pairs button {
  min-height: 88px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pairs button:hover:not(:disabled) {
  background: var(--mint-soft);
  border-color: var(--mint-strong);
  color: var(--text);
}

.pairs button[aria-pressed='true'] {
  border-color: var(--sun);
  background: var(--sun-soft);
  transform: translateY(-2px);
}

.pairs button.done {
  background: var(--good-soft);
  border-color: var(--good);
  color: var(--good);
  opacity: 1;
}

.pairs button.miss {
  background: var(--bad-soft);
  border-color: var(--bad);
}

/* Calcul éclair: the minute as a ring around the seconds. */
.clock {
  --left: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--mint-strong) calc(var(--left) * 360deg), var(--surface-2) 0);
  color: var(--text);
  font-weight: 800;
}

.clock span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
}

.clock.hurry {
  background: conic-gradient(var(--primary) calc(var(--left) * 360deg), var(--surface-2) 0);
}

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

/* Filters remain ordinary buttons and selects: usable by touch, keyboard and a shared URL. */
.catalogue-filters {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.catalogue-filters fieldset {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.catalogue-filters fieldset:last-child { margin-bottom: 0; }
.catalogue-filters legend { margin-bottom: 8px; font-weight: 800; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { min-height: 44px; padding: 8px 12px; border-radius: 999px; font-size: .9rem; }
.filter-chips button[aria-pressed='false'] { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.filter-chips button[aria-pressed='true'] { background: var(--mint-soft); color: var(--mint-strong); border-color: var(--mint-strong); }
.example-filters > div { flex: 1 1 180px; }
.example-filters { margin-bottom: 14px; }
.modes button.suggested { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.truth-buttons { display: grid; grid-template-columns: 1fr 1fr; }
.truth-buttons button { min-height: 76px; font-size: 1.3rem; }
.truth-buttons button.right,
.truth-buttons button.right:hover { background: var(--good-soft); border-color: var(--good); color: var(--good); font-weight: 800; opacity: 1; transition: none; }
.truth-buttons button.wrong,
.truth-buttons button.wrong:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); opacity: 1; transition: none; }
.explanation { padding: 12px; background: var(--sun-soft); border-radius: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.blank-sentence input { display: inline-block; width: min(100%, 180px); font-size: 1rem; vertical-align: middle; }
.blank-mirror { border-bottom: 2px solid var(--mint-strong); }
.frise-pool { display: grid; gap: 10px; margin: 12px 0; }
.frise-pool button { justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }
.frise-order { padding-left: 24px; }
.frise-order li { padding: 12px; margin: 10px 0; border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; }
.frise-order li > span { display: block; }
.frise-controls { margin-top: 10px; gap: 6px; }
.frise-controls button { min-width: 44px; min-height: 44px; padding: 6px 10px; }
.frise-order .frise-right { border-color: var(--good); }
.frise-order .frise-wrong { border-color: var(--bad); }
.frise-review { padding-left: 24px; overflow-wrap: anywhere; }
.frise-review li { padding: 8px 0; }
.frise-review { padding-left: 0; list-style: none; }
.frise-review li { display: grid; grid-template-columns: 1.3em 1fr auto; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--line); line-height: 1.35; }
.order-mark { font-weight: 800; }
.summary-right .order-mark { color: var(--good); }
.summary-wrong .order-mark { color: var(--bad); }
.order-value { font-variant-numeric: tabular-nums; font-weight: 700; }
#frise-details { margin-top: 16px; }
#frise-details summary, #examples-panel summary { cursor: pointer; font-weight: 700; }
#examples-panel summary { margin-bottom: 10px; }
#mode-info:empty { display: none; }
.entry-options { gap: 8px; }
.entry-options button { font-size: .9rem; padding: 8px 12px; }
#entry-play { min-width: 130px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#vf-clock { margin: 0; flex: none; }
#play .question { font-size: clamp(1.3rem, 5.3vw, 2rem); }

.levels button {
  min-height: 72px;
  font-size: 1.3rem;
  font-weight: 800;
}

/* The end of a game. */
.end-art {
  display: block;
  width: 130px;
  height: auto;
  margin: 0 auto;
}

.stars {
  margin: 4px 0;
  color: var(--line);
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  text-align: center;
}

.stars .on {
  color: var(--sun);
  text-shadow: 0 1px 0 #e9b200;
}

.big-score {
  font-size: 2.8rem;
  font-weight: 900;
  text-align: center;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}

#end-title,
#end-best {
  text-align: center;
}

.mistakes {
  padding-left: 1.2em;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sun-soft);
}

.error {
  color: var(--bad);
}

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 32px;
  color: var(--muted);
  font-size: 0.8rem;
}

[hidden] {
  display: none !important;
}

/* Motion, only for whoever has not asked for less. */
@media (prefers-reduced-motion: no-preference) {
  .pop {
    animation: pop 0.35s ease;
  }

  .shake {
    animation: shake 0.4s ease;
  }

  .bounce {
    animation: bounce 0.6s ease;
  }

  .confetti {
    position: fixed;
    top: -14px;
    z-index: 10;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    pointer-events: none;
    animation: fall var(--fall, 2.4s) linear forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .game-card:hover, .game-card:focus-visible, button:active:not(:disabled) { transform: none; }
  .confetti {
    display: none;
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }
}

@keyframes fall {
  to {
    transform: translate(var(--drift, 0), 105vh) rotate(var(--spin, 540deg));
  }
}

/* 0.4: the teacher's path has one next action; the pupil sees only the exercise. */
.home-intro { text-align: center; padding: 24px 4px 16px; }
.home-intro > img { display: block; margin: 0 auto 12px; }
.home-intro h1 { max-width: 580px; margin: 0 auto 12px; }
.home-intro .button { display: flex; max-width: 360px; margin: 24px auto 16px; }
.demo-link { display: inline-block; padding: 10px 0; }
.how-it-works { padding: 24px 0 32px; }
.how-it-works h2 { text-align: center; }
.how-it-works ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; gap: 14px; margin: 20px 0 0; }
.how-it-works li { display: flex; flex-direction: column; text-align: center; font-size: .85rem; gap: 6px; }
.how-it-works li > span:first-child { font-size: 1.7rem; color: var(--mint-strong); }
#home-examples { padding-top: 28px; }
.home-examples { list-style: none; padding: 0; }
.home-examples h3 { font-size: 1rem; margin: 0 0 8px; }
.home-examples .card { margin: 12px 0; }
.text-link, .text-button { padding: 10px 4px; background: transparent; border: 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; }
.text-button:hover:not(:disabled) { background: transparent; }
.home-calcul { display: flex; align-items: center; gap: 18px; }
.home-calcul img { max-width: 30%; height: auto; }
.steps { display: flex; justify-content: space-between; gap: 8px; margin: 22px 0; color: var(--muted); font-size: .85rem; }
.steps [aria-current="step"] { color: var(--mint-strong); font-weight: 800; }
.intent-cards { display: grid; gap: 12px; margin-top: 24px; }
.intent-card { flex-direction: column; align-items: flex-start; text-align: left; background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.intent-card .intent-example { font-weight: 400; font-size: .9rem; color: var(--muted); }
.intent-card:hover:not(:disabled) { background: var(--mint-soft); border-color: var(--mint-strong); }
.exercise-row { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; background: var(--surface); }
.exercise-row legend { font-weight: 800; padding: 0 6px; }
.row-fields { display: grid; gap: 0 16px; }
.row-fields > div { min-width: 0; }
.exercise-row .answer-line { display: flex; gap: 6px; align-items: center; }
.exercise-row .answer-line input { min-width: 0; }
.exercise-row .answer-line label { flex: 1; min-width: 0; }
.exercise-row .answer-line button { padding: 8px; min-width: 44px; }
.exercise-row .row { gap: 4px; }
.exercise-row label { margin-top: 8px; }
.exercise-row input, .exercise-row select, .exercise-row textarea { font-weight: 400; }
.exercise-row textarea { min-height: 88px; font-family: inherit; }
.row-tools { display: flex; align-items: flex-start; gap: 8px; }
.row-explanation { flex: 1; min-width: 0; }
.exercise-row button, .exercise-row summary { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--primary); font-size: .85rem; font-weight: 400; text-align: left; }
.exercise-row button:hover:not(:disabled) { background: transparent; border-color: transparent; text-decoration: underline; }
.exercise-row summary { cursor: pointer; }
.exercise-row [data-remove-row] { margin-left: auto; color: var(--muted); font-size: .75rem; }
.exercise-row input, .exercise-row select { min-height: 44px; padding: 8px 12px; }
.preview-toolbar { margin: 16px 0; }
body.teacher-preview #ready { border-style: dashed; }
body.teacher-preview #ready [data-mode], body.teacher-preview #play button, body.teacher-preview #end button { background: var(--surface); color: var(--primary); }
body.teacher-preview #play .right { background: var(--good-soft); color: var(--good); }
body.teacher-preview #play .wrong { background: var(--bad-soft); color: var(--bad); }
#score-message { min-height: 130px; font-family: inherit; }
#score-share { border-color: var(--mint-strong); }
.teacher-link { text-align: center; font-size: .85rem; margin-top: 32px; }
#import-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .85rem; }
#editor-errors { padding: 12px 12px 12px 32px; }
#ready .modes button { background: var(--surface); color: var(--text); border-color: var(--line); }
#ready .modes button:hover { background: var(--mint-soft); border-color: var(--mint-strong); }
@media (min-width: 640px) { .intent-cards { grid-template-columns: 1fr 1fr; } }
#discover-games { padding: 28px 0 8px; }
.discovery-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.discovery-card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; gap: 8px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.discovery-card img { object-fit: contain; align-self: center; }
.discovery-card span { font-size: .85rem; color: var(--muted); }
.discovery-card:hover { border-color: var(--mint-strong); background: var(--mint-soft); }
@media (max-width: 639px) {
  .how-it-works ol { grid-template-columns: 1fr; gap: 12px; }
  .how-it-works li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; min-height: 86px; align-content: center; text-align: left; gap: 0 10px; }
  .how-it-works li > span:first-child { grid-row: 1 / 3; align-self: center; text-align: center; }
  .how-it-works li > strong, .how-it-works li > span:last-child { grid-column: 2; }
}
@media (min-width: 760px) { .row-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 640px) { .discovery-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
