/* The home page's own CSS (templates/index.html), beside the design kit in static/kit.
   Only what sits inside a visual, the app-frame recipe, the statement and the language picker:
   the grid, type, buttons, cards and sections are the kit's. The puzzles are drawn by
   app/aptitude.py render_cell, as on the test itself. */

/* the logo and the language picker in the bar */
.nav__logo svg { width: 28px; height: 28px; color: var(--p-accent); flex: none; }
.nav__logo { gap: 10px; }
.lang-pick { position: relative; }
.lang-pick > summary { list-style: none; cursor: pointer; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; min-width: 200px; padding: 8px;
  background: var(--p-bg); border: 1px solid var(--line); border-radius: var(--r-md, 12px); }
.lang-pick__menu a { padding: 10px 12px; border-radius: 8px; color: var(--p-ink); text-decoration: none; font-size: 15px; }
.lang-pick__menu a:hover, .lang-pick__menu a[aria-current] { background: var(--p-surface); }
@media (max-width: 1023px) { .nav__actions .lang-pick { display: none; } }

/* the test tiles' colours and glyphs (templates/macros.html glyph), as on the rest of the site */
.art-iq { background: #e3ecff; } .art-eq { background: #fde4ec; } .art-procrastination { background: #fdecd8; }
.art-temperament { background: #e2f4ec; } .art-types { background: #ece6ff; }
.g-line { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.g-faint { stroke: currentColor; stroke-opacity: .25; stroke-width: 1.6; fill: none; }
.g-fill { fill: #0e8a5f; } .g-band { fill: #0e8a5f; opacity: .25; } .g-dot { fill: currentColor; }
svg.cell { display: block; width: 100%; height: 100%; color: #1a1f3c; }

/* ---------------------------------------------------------------- the test window (hero and app-frame) */
.iq-win, .rp { background: #fff; color: #1a1f3c; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(26 31 60 / .08), 0 30px 70px -30px rgb(26 31 60 / .45); }
.iq-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(26 31 60 / .07);
  font-size: 13px; color: #595f7a; background: #fff; }
.iq-win__dots { display: flex; gap: 6px; } .iq-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe6; }
.iq-win__body { padding: 20px 24px 28px; padding-right: calc(24px + var(--ly-cut-room, 0px)); }
.iq-test__bar { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: #595f7a; }
.iq-time { font-family: var(--font-mono); font-size: 13px; }
.iq-track { height: 6px; border-radius: 4px; background: #eceef4; margin-top: 8px; overflow: hidden; }
.iq-track > i { display: block; height: 100%; background: #0e8a5f; border-radius: 4px; }
.iq-prompt { margin-top: 18px; font-size: 15px; font-weight: 600; color: #1a1f3c; }
.iq-choose { margin-top: 16px; font-size: 13px; color: #595f7a; }
.iq-mx { display: grid; grid-template-columns: repeat(3, 92px); gap: 8px; margin-top: 12px; }
.iq-mx > span { width: 92px; height: 92px; border-radius: 12px; border: 1.5px solid #dfe2ea; display: grid; place-items: center; padding: 10px; box-sizing: border-box; }
.iq-mx > .iq-mx__q { background: #0e8a5f; border-color: #0e8a5f; color: #fff; font-size: 34px; font-weight: 700; }
.iq-opts { display: grid; grid-template-columns: repeat(6, 64px); gap: 8px; margin-top: 10px; }
.iq-opts > span { position: relative; width: 64px; height: 64px; border-radius: 12px; border: 1.5px solid #e3e6ee; background: #f5f6fa;
  display: grid; place-items: center; padding: 12px 8px 6px; box-sizing: border-box; }
.iq-opts > span.is-on { border-color: #0e8a5f; background: #e2f4ec; box-shadow: 0 0 0 2px #0e8a5f inset; }
.iq-opts b, .iq-nums b { position: absolute; left: 7px; top: 4px; font-size: 13px; font-weight: 600; color: #8b91a7; }

/* the small result card over the window (layout.js steps through it) */
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.iq-note { background: #fff; color: #1a1f3c; border-radius: 12px; padding: 14px 16px 16px; font: 400 13px/1.35 var(--font-text);
  box-shadow: 0 0 0 1px rgb(26 31 60 / .08), 0 24px 50px -20px rgb(26 31 60 / .5); }
.iq-note__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.iq-note__row h5 { margin: 0; font-size: 14px; font-weight: 600; }
.iq-chip, .iq-st { font-size: 13px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: #eef0f5; color: #595f7a; white-space: nowrap; }
.iq-chip { background: #e2f4ec; color: #0b6e4b; }
.iq-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgb(26 31 60 / .06); font-size: 13px; color: #3d4258; }
.iq-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e2f4ec; color: #0b6e4b; }
.iq-note__line i svg { width: 12px; height: 12px; }
.iq-note__score { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid rgb(26 31 60 / .06); }
.iq-note__score b { font-size: 40px; font-weight: 700; letter-spacing: -.03em; color: #0e8a5f; line-height: 1; }
.iq-note__score span { font-size: 13px; color: #595f7a; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
@media (max-width: 639px) {
  .iq-win__body { padding: 16px; }
  .iq-mx { grid-template-columns: repeat(3, 64px); gap: 6px; } .iq-mx > span { width: 64px; height: 64px; padding: 6px; }
  .iq-opts { grid-template-columns: repeat(3, 56px); } .iq-opts > span { width: 56px; height: 56px; }
}

/* ---------------------------------------------------------------- app-frame (sections-library.md, the whole recipe) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.iq-list { font: 400 14px/1.4 var(--font-text); color: #1a1f3c; }
.iq-list__head { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--u-line); font-weight: 600; }
.iq-count { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: #595f7a; }
.iq-list__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--u-line); }
.iq-list__row.is-now { background: #f2faf6; box-shadow: inset 3px 0 0 #0e8a5f; }
.iq-list__n { font-family: var(--font-mono); font-size: 13px; color: #595f7a; }
.iq-list__kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-st--done { background: #eef0f5; color: #3d4258; }
.iq-st--now { background: #0e8a5f; color: #fff; }
.iq-open { padding: 20px 32px 32px; }
.iq-open__card { margin-top: 20px; padding: 24px; border: 1px solid var(--u-line); border-radius: 14px; }
.iq-ser { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.iq-ser > span { min-width: 64px; height: 64px; padding: 0 12px; box-sizing: border-box; border-radius: 14px; border: 2px solid #d9dce6; background: #f5f6fa;
  display: grid; place-items: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.iq-ser > .iq-ser__q { background: #0e8a5f; border-color: #0e8a5f; color: #fff; }
.iq-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 96px)); gap: 8px; margin-top: 10px; }
.iq-nums > span { position: relative; height: 60px; border-radius: 14px; border: 1.5px solid #e3e6ee; background: #f5f6fa; display: grid; place-items: center;
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.iq-nums > span.is-on { border-color: #0e8a5f; background: #e2f4ec; box-shadow: 0 0 0 2px #0e8a5f inset; }
.iq-open__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 14px; color: #595f7a; }
.iq-open__nav .is-go { padding: 10px 16px; border-radius: 12px; background: #0e8a5f; color: #fff; font-weight: 600; }
.iq-pager { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.iq-pager > span { height: 40px; border-radius: 10px; border: 1px solid #e3e6ee; display: grid; place-items: center; font-size: 14px; color: #595f7a; font-variant-numeric: tabular-nums; }
.iq-pager > .is-done { background: #f5f6fa; color: #3d4258; }
.iq-pager > .is-now { background: #1a1f3c; border-color: #1a1f3c; color: #fff; }
@media (max-width: 639px) { .iq-open { padding: 16px; } .iq-open__card { padding: 16px; } .iq-ser > span { min-width: 48px; height: 52px; font-size: 20px; } }

/* ---------------------------------------------------------------- pinned-chapters: the three pictures */
.pc-vis { height: 100%; display: grid; place-items: center; padding: 32px; box-sizing: border-box; }
.pc-board, .pc-score, .pc-story { background: #fff; color: #1a1f3c; border-radius: 16px; box-shadow: 0 0 0 1px rgb(26 31 60 / .08), 0 24px 60px -28px rgb(26 31 60 / .45); }
.pc-board { display: grid; grid-template-columns: repeat(6, 52px); gap: 8px; padding: 24px; }
.pc-board__cell { height: 52px; border-radius: 12px; display: grid; place-items: center; background: #e2f4ec; color: #0b6e4b; font-weight: 600; }
.pc-board__cell svg { width: 20px; height: 20px; }
.pc-board__cell.is-skip { background: #f5f6fa; color: #8b91a7; }
.pc-board__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; color: #595f7a; }
.pc-board__foot b { font-size: 22px; font-weight: 700; color: #1a1f3c; }
.pc-score { width: min(420px, 100%); padding: 28px 28px 24px; }
.pc-score__k { font-size: 14px; font-weight: 600; color: #595f7a; }
.pc-score__v { font-size: 96px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #0e8a5f; margin-top: 8px; }
.pc-score__label { margin-top: 20px; font-size: 14px; color: #595f7a; }
.pc-scale { position: relative; height: 12px; margin-top: 10px; border-radius: 6px; background: linear-gradient(90deg, #eef0f5, #cdeee0 50%, #eef0f5); }
.pc-scale__avg { position: absolute; left: 50%; top: -4px; width: 2px; height: 20px; background: #8b91a7; }
.pc-scale__me { position: absolute; top: -6px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #0e8a5f; border: 4px solid #fff; box-sizing: border-box; box-shadow: 0 2px 8px rgb(14 138 95 / .45); }
.pc-scale__ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #8b91a7; font-variant-numeric: tabular-nums; }
.pc-story { width: 260px; aspect-ratio: 9 / 16; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 24px; box-sizing: border-box; text-align: center;
  background: radial-gradient(120% 70% at 50% 42%, #1f4a49 0%, #161a33 62%); color: #fff; }
.pc-story__logo svg { width: 36px; height: 36px; color: #0e8a5f; }
.pc-story__name { font-size: 17px; font-weight: 700; }
.pc-story__k { margin-top: 14px; font-size: 13px; font-weight: 700; color: #2fcf8a; }
.pc-story__line { font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.pc-story__line em { font-style: normal; color: #2fcf8a; }
.pc-story__big { margin-top: 12px; font-size: 84px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #8ff5c8; }
.pc-story__cap { font-size: 13px; color: rgb(255 255 255 / .75); }
.pc-story__pill { margin-top: 18px; padding: 7px 13px; border-radius: 999px; background: #0e8a5f; font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------------- the four tests (dark band) */
#tests .panel { --p-h: 300px; }
@media (max-width: 639px) { #tests .panel { --p-h: 200px; } }
.tf { width: 300px; background: #fff; color: #1a1f3c; border-radius: 12px; padding: 16px 18px 18px; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(26 31 60 / .08), 0 18px 40px -20px rgb(26 31 60 / .45); }
.tf--types { width: 340px; }
.tf__head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tf__head b { font-weight: 600; }
.tf__tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.tf__tile svg { width: 22px; height: 22px; color: #1a1f3c; }
.tf-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 84px 84px; gap: 2px; margin-top: 14px; border-radius: 10px; overflow: hidden; }
.tf-map > span { background: #f3f8f6; display: grid; place-items: start center; padding-top: 8px; font-size: 13px; font-weight: 600; color: #8b91a7; }
.tf-map > span.is-on { background: #d5efe3; color: #0b6e4b; }
.tf-map__dot { position: absolute; left: 72%; top: 30%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: #0e8a5f; border: 3px solid #fff; box-shadow: 0 2px 8px rgb(14 138 95 / .45); }
.tf__verdict { margin-top: 12px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tf__verdict em { font-style: normal; color: #0e8a5f; }
.tf__big { margin-top: 14px; font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #0e8a5f; font-variant-numeric: tabular-nums; }
.tf__sub { margin-top: 6px; font-size: 13px; color: #595f7a; }
.tf-bar { position: relative; height: 12px; margin-top: 16px; border-radius: 6px; background: #eef0f5; }
.tf-bar > i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: rgb(14 138 95 / .35); }
.tf-bar > b { position: absolute; top: -5px; width: 5px; height: 22px; margin-left: -2.5px; border-radius: 3px; background: #0e8a5f; }
.tf-bar__ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: #8b91a7; }
.tf-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.tf-tiles > span { height: 60px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.tf-tiles .t1 { background: #e3ecff; } .tf-tiles .t2 { background: #fdecd8; } .tf-tiles .t3 { background: #fde4ec; } .tf-tiles .t4 { background: #e2f4ec; }
.tf-axes { display: grid; gap: 8px; margin-top: 12px; }
.tf-axes > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 13px; color: #3d4258; }
.tf-axes i { height: 6px; border-radius: 3px; background: #eef0f5; overflow: hidden; }
.tf-axes i b { display: block; height: 100%; background: #0e8a5f; border-radius: 3px; }
.tf-axes > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- report and daily frames */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { padding-left: 28px; position: relative; font-size: var(--t-body); }
.facts li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #e2f4ec; box-shadow: inset 0 0 0 5px #e2f4ec, inset 0 0 0 16px #0e8a5f; }
.rp { width: 560px; }
.rp__body { padding: 20px 24px 28px; }
.rp__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.rp__prog { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #e2f4ec; color: #0b6e4b; font-size: 13px; font-weight: 600; }
.rp__h { margin-top: 20px; font-size: 16px; font-weight: 700; }
.rp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.rp__tile { display: grid; gap: 6px; padding: 12px; border: 1px solid #e6e8ef; border-radius: 14px; }
.rp__tile > span:not(.tf__tile) { font-size: 13px; color: #595f7a; }
.rp__tile b { font-size: 18px; font-weight: 700; }
.rp__tile.is-wide { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; }
.rp__row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #f5f6fa; }
.rp__row i { width: 24px; height: 24px; border-radius: 50%; background: #0e8a5f; color: #fff; display: grid; place-items: center; flex: none; }
.rp__row i svg { width: 14px; height: 14px; }
.rp__row .skel { display: block; height: 10px; width: 80%; border-radius: 6px; background: #dfe2ea; }
.rp__row .skel.short { width: 56%; }
.dl { width: 420px; display: grid; gap: 12px; }
.dl__streak { border-radius: 16px; background: #1a1f3c; color: #fff; padding: 18px; text-align: center; }
.dl__streak p { font-size: 20px; font-weight: 700; }
.dl__week { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.dl__week span { display: grid; justify-items: center; gap: 5px; font-size: 13px; color: rgb(255 255 255 / .7); }
.dl__week i { width: 32px; height: 32px; border-radius: 50%; background: #2fcf8a; color: #fff; display: grid; place-items: center; }
.dl__week i svg { width: 16px; height: 16px; }
.dl__card { background: #fff; color: #1a1f3c; border-radius: 16px; padding: 18px; box-shadow: 0 0 0 1px rgb(26 31 60 / .08), 0 24px 50px -24px rgb(26 31 60 / .45); }
.dl__card .iq-prompt { margin-top: 0; }
.dl__card .iq-ser__q.is-done { background: #0e8a5f; }
.dl__card .iq-nums { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 639px) { .rp { width: 480px; } .dl { width: 100%; } .dl__week { gap: 6px; } .dl__week i { width: 28px; height: 28px; } }

/* ---------------------------------------------------------------- the statement (liquid-type) */
.statement { font-size: clamp(40px, 4.2vw + 12px, 88px); line-height: 1.04; letter-spacing: var(--display-tracking-xl); max-width: 16ch; }
.statement__line { max-width: 52ch; color: var(--muted); }

/* the kit's credits toggle says "Credits"/"Hide" in English: the site's own words instead */
.credits > summary::after { content: var(--l-more, "Credits"); }
.credits[open] > summary::after { content: var(--l-less, "Hide"); }

/* ---------------------------------------------------------------- compact (the owner's call)
   The kit makes every section exactly one screen tall; the owner asked for a compact page, so
   below the hero each section is as tall as its content, parted by space. */
html[data-type] main > :is(section, .section):not(.hero), html[data-type] footer.closing {
  height: auto; min-height: 0; padding-top: var(--s-9); padding-bottom: var(--s-9);
}
html[data-type] main > :is(section, .section):not(.hero) > .wrap, html[data-type] footer.closing > .wrap { height: auto; }
@media (max-width: 639px) {
  html[data-type] main > :is(section, .section):not(.hero), html[data-type] footer.closing { padding-top: var(--s-8); padding-bottom: var(--s-8); }
}
#tests .grid { row-gap: var(--s-5); }
#tests .panel { --p-h: 240px; }
#how .panel { --p-h: 300px; background: var(--p-surface); }
#how .pc-vis { padding: 24px; }
.pc-board { grid-template-columns: repeat(6, 36px); gap: 6px; padding: 16px; }
.pc-board__cell { height: 36px; border-radius: 9px; }
.pc-board__cell svg { width: 16px; height: 16px; }
.pc-score { padding: 24px; }
.pc-score__v { font-size: 72px; }
footer.closing .closing__cta { margin-bottom: var(--s-8); }

/* the share card: the kit's paragraph colour would win over the card's white, so every line names its own */
.pc-story { width: 168px; gap: 4px; padding: 18px; }
.pc-story p.pc-story__line { color: #fff; font-size: 15px; }
.pc-story p.pc-story__line em { color: #2fcf8a; }
.pc-story p.pc-story__big { color: #8ff5c8; font-size: 56px; margin-top: 8px; }
.pc-story p.pc-story__cap { color: rgb(255 255 255 / .8); font-size: 13px; }
.pc-story p.pc-story__pill { color: #fff; background: #0e8a5f; margin-top: 12px; font-size: 13px; }
.pc-story__logo svg { width: 30px; height: 30px; }
/* the mini result cards take the width their slot gives (300px at most), so a phone never cuts them */
.tf, .tf--types { width: 100%; max-width: 300px; box-sizing: border-box; }
@media (max-width: 639px) {
  /* the hero's window on a phone: no clock, a smaller grid, so nothing is cut but the window's own foot */
  .iq-win .iq-time { display: none; }
  .iq-mx { grid-template-columns: repeat(3, 52px); } .iq-mx > span { width: 52px; height: 52px; padding: 5px; }
  .iq-mx > .iq-mx__q { font-size: 24px; }
  /* the temperament card keeps its verdict inside the phone's shorter panel */
  .tf-map { grid-template-rows: 52px 52px; }
}
/* under 420px the bar holds the logo and the menu only: the hero's button is right below */
@media (max-width: 419px) { .nav .nav__actions .btn--primary { display: none; } }

/* the share card's highlight and caption at 4.5:1 or more over its gradient */
.pc-story p.pc-story__line em { color: #8ff5c8; }
.pc-story p.pc-story__cap { color: #ffffff; }

/* the four test cards: the one under the pointer stays in colour and lifts, the other three go grey.
   Only with a real pointer (a phone has no hover, so every card keeps its colour there). */
@media (hover: hover) and (pointer: fine) {
  #tests .grid > .card { transition: filter .4s ease, opacity .4s ease, transform .3s ease, box-shadow .3s ease; }
  #tests .grid > .card .stage > * { transition: translate .4s cubic-bezier(.2, .8, .2, 1), scale .4s cubic-bezier(.2, .8, .2, 1); }
  #tests .grid:has(> .card:is(:hover, :focus-visible)) > .card:not(:hover, :focus-visible) { filter: grayscale(1); opacity: .45; }
  #tests .grid > .card:is(:hover, :focus-visible) { transform: translateY(-4px); box-shadow: 0 0 0 1px #0e8a5f, 0 24px 48px -16px rgb(0 0 0 / .55); }
  #tests .grid > .card:is(:hover, :focus-visible) .stage > * { translate: 0 -8px; scale: 1.03; }
}
@media (prefers-reduced-motion: reduce) {
  #tests .grid > .card:is(:hover, :focus-visible), #tests .grid > .card:is(:hover, :focus-visible) .stage > * { transform: none; translate: none; scale: none; }
}
