/* The landing page (public/index.html; agent-fingerprint docs/landing-redesign.md), on
   top of /styles.css (the tokens, the header, the buttons, the agent tiles, the footer). Its own classes
   are hm-…; nothing here touches the agent test. Orange is an accent only: the two
   primary buttons, one headline word, the scan line and the big numbers. Every animation has a
   still final state, which is what shows without JavaScript and under prefers-reduced-motion
   (styles.css stops every animation there). Transform and opacity only: nothing moves the layout. */

.home .container {
  border-inline: 0;
}
.home h2 {
  max-width: 24ch;
}
.navlink {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  margin-right: 1.25rem;
}
.navlink:hover {
  text-decoration: underline;
}
@media (max-width: 40rem) {
  .hide-sm {
    display: none;
  }
}
.home .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgb(35 35 35 / 0.5);
}
.home .button--primary:hover {
  box-shadow: 0 12px 28px -12px rgb(255 69 0 / 0.6);
}
.hm-fine {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hm-link {
  font-weight: 500;
}

/* ---------- Hero ---------- */

.hm-hero {
  --grid-line: rgb(35 35 35 / 0.06);
  --glow: rgb(255 69 0 / 0.12);
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hm-hero::before,
.hm-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hm-hero::before {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 3rem 3rem,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 3rem 3rem;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000, transparent 75%);
}
.hm-hero::after {
  background: radial-gradient(40rem 28rem at 82% 35%, var(--glow), transparent 70%);
}
.hm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-block: 2.5rem 4rem;
}
.hm-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hm-word {
  display: inline-block;
}
.hm-hero__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}
.hm-prompt {
  margin-top: 1.75rem;
  max-width: 36rem;
}
.hm-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.hm-prompt__alt {
  font-size: 1rem;
  /* A comfortable target next to the button (WCAG 2.5.8). */
  padding-block: 0.625rem;
}
.hm-prompt__hint {
  margin-top: 0.875rem;
  min-height: 1.4em;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.hm-prompt__box {
  margin-top: 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--surface-sunken);
  padding: 1rem 1.25rem 1.125rem;
}
/* The box's own Copy button (the owner, 2026-11-30: "the prompt text box should have a copy
   button"): at its top right, beside its label. A full target (44px), and a fixed width so
   "Copied" moves nothing. */
.hm-prompt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* The button's height is more than the label's line: pulled up and right so the box's padding
     still reads as its edge. */
  margin: -0.375rem -0.5rem 0 0;
}
.hm-prompt__copy {
  flex: none;
  min-width: 5.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--stroke-strong);
  border-radius: 0.625rem;
  background: var(--surface-raised);
  padding: 0.5rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}
.hm-prompt__copy:hover {
  background: var(--surface-hover);
}
.hm-prompt__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  user-select: all;
}

/* The panel: dark in both themes. Every row has a fixed height and its value one line (two on a
   phone), so nothing moves when the last row resolves. */
.hm-scan {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-stroke);
  border-radius: 1.25rem;
  background: var(--panel);
  color: var(--panel-text);
  padding: 1.25rem 1.25rem 1.375rem;
  box-shadow: 0 30px 60px -40px rgb(35 35 35 / 0.6);
}
.hm-scan a {
  color: var(--bk-accent-light);
}
.hm-ridges {
  position: absolute;
  top: -1.5rem;
  right: -2rem;
  width: 15rem;
  height: 13.5rem;
  color: rgb(255 255 255 / 0.07);
  pointer-events: none;
}
.hm-scan__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.75rem;
}
.hm-scan__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.hm-scan__pulse {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--bk-accent);
}
.hm-scan__badge {
  flex: none;
  border: 1px solid var(--bk-accent);
  border-radius: 999px;
  padding: 0.125rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--panel-text);
}
.hm-scan__badge--quiet {
  border-color: var(--panel-stroke);
  color: var(--panel-muted);
}
.hm-scan__rows {
  position: relative;
  margin-top: 1rem;
}
.hm-scan__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  height: 3rem;
  border-top: 1px dashed var(--panel-stroke);
}
.hm-scan__row dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--panel-muted);
}
.hm-scan__row dd {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.hm-scan__row dd.hm-scan__place {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hm-scan__row--verdict {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0.125rem;
  height: 4.5rem;
  border-top-style: solid;
  border-bottom: 1px solid var(--panel-stroke);
}
.hm-scan__row--verdict dd {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.hm-scan[data-state='person'] [data-verdict],
.hm-scan[data-state='agent'] [data-verdict] {
  color: var(--bk-accent-light);
}
.hm-scan__foot {
  margin-top: 1rem;
  min-height: 2.8em;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--panel-muted);
}

/* ---------- Bands ---------- */

.hm-band {
  border-top: 1px solid var(--stroke);
}
.hm-band > .container {
  padding-block: var(--section);
}
.hm-band--tint {
  background: var(--surface-sunken);
}
.hm-band .label-mono + h2 {
  margin-top: 0.75rem;
}
.hm-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  max-width: none;
}
.hm-cta .button--secondary {
  padding: 0.75rem 1.25rem;
}

/* The agents the last number counts, by name: a still row that wraps. */
/* The agent wall: three rows of agents (each row its own) drifting past each other, each row its own speed and
   the middle one the other way, fading at both edges. Each row is its list twice (the copy
   aria-hidden), moved by its own width, so it loops without a seam. It never stops (the owner,
   2026-11-30: "the animation should always be on, no need for pause or replay buttons"): not for a
   pointer over it, and there is no button. Transform only. Under reduced motion (styles.css stops every animation) it is
   one still, wrapped grid of every agent. */
.hm-agents {
  overflow-x: clip;
  padding-bottom: var(--section);
}
.hm-agents > .container {
  padding-bottom: 2.75rem;
}
.hm-agents__lead {
  margin-top: 1rem;
  max-width: 40rem;
}
.hm-wall {
  --gap: 1.5rem;
  display: grid;
  /* One column the width of the page: the rows are far wider, and must not stretch it. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.hm-wall__row {
  display: flex;
  min-width: 0;
  gap: var(--gap);
  /* The edge fade clips to the row's own box, and a pointed-at mark lifts and grows past its top
     (and its shadow past its foot): room for both inside the box, taken back by the margin so the
     rows sit where they did. */
  padding-block: 0.875rem;
  margin-block: -0.875rem;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.hm-wall__track {
  display: flex;
  flex: none;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  /* Each row holds its own agents (no agent is in two rows, so the same mark is
     never above or below itself, whatever the rows' speeds), four times over, and moves by one
     set's width. The times keep the pace the wall had with longer rows. */
  animation: hm-drift 53s linear infinite;
}
.hm-wall__row:nth-child(2) .hm-wall__track {
  animation-duration: 64s;
  animation-direction: reverse;
}
.hm-wall__row:nth-child(3) .hm-wall__track {
  animation-duration: 35s;
}
/* An agent on the wall: its mark on a tile, its name under it. Here, not in styles.css, so the
   wall is whole in this one file. */
.agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 5.5rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}
.agent__mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--stroke);
  border-radius: 1.125rem;
  background: var(--bk-white);
  object-fit: cover;
}
.agent__mark[src$='.svg'] {
  padding: 0.9rem;
  object-fit: contain;
}
.agent__mark--mono {
  font-weight: 500;
  color: var(--bk-text);
}
.agent__mark {
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
.agent:hover .agent__mark {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 28px -16px rgb(35 35 35 / 0.45);
}
@media (max-width: 30rem) {
  .agent {
    width: 4.5rem;
    font-size: 0.75rem;
  }
  .agent__mark {
    width: 3.25rem;
    height: 3.25rem;
  }
}
.hm-wall .agent {
  width: 6.5rem;
}
@keyframes hm-drift {
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}
@media (max-width: 30rem) {
  .hm-wall {
    --gap: 1rem;
    gap: 1rem;
  }
  .hm-wall .agent {
    width: 4.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm-wall__row {
    padding-block: 0;
    margin-block: 0;
    mask-image: none;
  }
  /* Still: one grid of every agent, each once, on the page's own edges. The three rows step aside
     (display: contents), so their agents fill the grid's rows in turn: each row wrapping by itself
     left a short row under every one of them (five, four, five, three… on a tablet). */
  .hm-wall__track[aria-hidden='true'] {
    display: none;
  }
  .hm-wall {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    justify-items: center;
    gap: 1.5rem var(--gap);
    max-width: 74rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .hm-wall__row,
  .hm-wall__track:not([aria-hidden='true']) {
    display: contents;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 30rem) {
  .hm-wall {
    grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  }
}

/* Why now: three cards. */
.hm-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.hm-why__item {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--surface-raised);
  padding: 1.5rem;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
.hm-why__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -24px rgb(35 35 35 / 0.45);
}
.hm-why__item h3 {
  margin-top: 0.875rem;
  font-size: 1.1875rem;
  font-weight: 500;
}
.hm-why__item p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}
.hm-why__icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hm-why__close {
  margin-top: 2.5rem;
  max-width: 40rem;
  color: var(--text);
}

/* Two columns: copy beside a picture (the sample card, the preview). */
.hm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
/* The heading and its line start level with the card's top (a tall card beside a short text). */
.hm-split--top {
  align-items: start;
}
.hm-split__lead {
  margin-top: 1rem;
  max-width: 34rem;
}

/* The sample report card: dark, as the real one. */
.hm-card {
  margin: 0;
  border: 1px solid var(--panel-stroke);
  border-radius: 1.25rem;
  background: var(--panel);
  color: var(--panel-text);
  padding: 1.5rem;
  box-shadow: 0 30px 60px -40px rgb(35 35 35 / 0.6);
  transition: transform 0.4s var(--ease-out);
}
.hm-card:hover {
  transform: rotate(-1deg) translateY(-4px);
}
.hm-card__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.hm-card__who {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hm-card__mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--bk-white);
  padding: 0.5rem;
}

/* For teams: the SDK and the dashboard, shown but not opened (the dashboard's window: teaser.css). */
.hm-ticks {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}
.hm-ticks li {
  border-top: 1px solid var(--stroke);
  padding-block: 0.875rem;
  color: var(--text-muted);
}
.hm-ticks b {
  font-weight: 500;
  color: var(--text);
}
.hm-fine--inline {
  max-width: none;
}
@media (prefers-color-scheme: dark) {
  .hm-hero {
    --grid-line: rgb(255 255 255 / 0.05);
    --glow: rgb(255 69 0 / 0.16);
  }
  .home .button:hover {
    box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.8);
  }
}

/* ---------- Motion ---------- */

/* The entrance, once, CSS only: the headline's words rise in turn; the panel lands, its ridges
   draw, one scan line passes and the rows appear under it. Everything starts at opacity 0.01, not
   0, so it is painted (and counted for LCP) at once. */
.hm-word {
  animation: hm-rise 0.6s var(--ease-out) both;
}
.hm-word:nth-child(2) {
  animation-delay: 0.05s;
}
.hm-word:nth-child(3) {
  animation-delay: 0.1s;
}
.hm-word:nth-child(4) {
  animation-delay: 0.15s;
}
.hm-word:nth-child(5) {
  animation-delay: 0.2s;
}
.hm-word:nth-child(6) {
  animation-delay: 0.25s;
}
.hm-word:nth-child(7) {
  animation-delay: 0.3s;
}
.hm-word:nth-child(8) {
  animation-delay: 0.35s;
}
.hm-hero__lead {
  animation: hm-rise 0.6s var(--ease-out) 0.3s both;
}
.hm-prompt__actions,
.hm-prompt__hint,
.hm-prompt__box {
  animation: hm-rise 0.6s var(--ease-out) 0.4s both;
}
.hm-scan {
  animation: hm-land 0.8s var(--ease-out) 0.3s both;
}
.hm-ridges path {
  stroke-dasharray: 1;
  animation: hm-draw 1.4s var(--ease-out) 0.6s both;
}
.hm-ridges path:nth-child(even) {
  animation-delay: 0.8s;
}
.hm-scan__row {
  animation: hm-rise 0.45s var(--ease-out) both;
}
.hm-scan__row:nth-child(1) {
  animation-delay: 0.8s;
}
.hm-scan__row:nth-child(2) {
  animation-delay: 1.05s;
}
.hm-scan__row:nth-child(3) {
  animation-delay: 1.3s;
}
.hm-scan__row:nth-child(4) {
  animation-delay: 1.55s;
}
.hm-scan__row:nth-child(5) {
  animation-delay: 1.9s;
}
.hm-scan__rows::after {
  content: '';
  position: absolute;
  inset-inline: -1.25rem;
  top: 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgb(255 69 0 / 0.12) 85%, var(--bk-accent) 100%);
  opacity: 0;
  pointer-events: none;
  animation: hm-scan 1.5s ease-in-out 0.7s 1;
}
.hm-scan__pulse {
  animation: hm-pulse 1.8s ease-in-out infinite;
}
/* While the last row is being checked (landing.js, where the demo is configured). */
.hm-scan[data-state='checking'] [data-verdict] {
  animation: hm-pulse 1.2s ease-in-out infinite;
}

/* ---------- The sample card ("What comes back") ----------
   A real report card's markup (src/worker/landing.ts), styled by the agent test's stylesheet
   (test.css, linked after the base stylesheet and before this one, as the agent test loads them).
   Here: only where it sits. */
.hm-sample {
  min-width: 0;
}
/* The card's name is an h2: the page's own measure for headings is not its. */
.home .hm-sample h2 {
  max-width: none;
}
/* The card's own wordmark is light on its dark panel (the page's is the text's colour). */
.hm-sample .rc__brand .wordmark {
  height: 0.8rem;
  color: var(--panel-text);
}
/* ---------- Motion down the page ----------
   The hero's scan continues through every band. Everything below is VISIBLE BY DEFAULT: a band that
   has not been scrolled to is in its final state (a full-page capture, a reader that never scrolls
   and a page without JavaScript all see every band). landing.js adds .is-in to a band as it enters
   the view, and only then do its parts play their entrance, once: a scan passes down the band, an
   orange hairline draws along its top edge, and its parts rise in turn. Transform and opacity only.
   The teams band (.hm-teams) has its own motion and is left out of this. */
.hm-band {
  position: relative;
  overflow: clip;
}
.hm-band::before,
.hm-band::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
}
/* The hairline along the band's top edge. */
.hm-band::before {
  height: 2px;
  background: var(--bk-accent);
  transform-origin: left;
}
.hm-band:not(.hm-teams).is-in::before {
  animation: hm-edge 1.4s var(--ease-out) both;
}
/* The scan: a soft orange trail with a bright edge, once, top to bottom. */
.hm-band::after {
  height: 7rem;
  background: linear-gradient(to bottom, transparent, rgb(255 69 0 / 0.07) 85%, rgb(255 69 0 / 0.55) 100%);
}
.hm-band:not(.hm-teams).is-in::after {
  animation: hm-sweep 1.5s ease-in-out both;
}
/* The band's parts rise in turn, then the items inside its lists. */
.hm-band:not(.hm-teams).is-in > .container > * {
  animation: hm-rise 0.7s var(--ease-out) both;
}
.hm-band:not(.hm-teams).is-in > .container > :nth-child(2) {
  animation-delay: 0.08s;
}
.hm-band:not(.hm-teams).is-in > .container > :nth-child(3) {
  animation-delay: 0.16s;
}
.hm-band:not(.hm-teams).is-in > .container > :nth-child(n + 4) {
  animation-delay: 0.24s;
}
.hm-band:not(.hm-teams).is-in .hm-why__item {
  animation: hm-rise 0.6s var(--ease-out) both;
  animation-delay: calc(0.2s + var(--i, 0) * 0.09s);
}
.hm-band:not(.hm-teams).is-in .hm-why__item:nth-child(2) {
  --i: 1;
}
.hm-band:not(.hm-teams).is-in .hm-why__item:nth-child(3) {
  --i: 2;
}
/* The wall's rows arrive in turn (the row fades up while its track drifts inside it). */
.hm-band:not(.hm-teams).is-in .hm-wall__row {
  animation: hm-rise 0.8s var(--ease-out) both;
}
.hm-band:not(.hm-teams).is-in .hm-wall__row:nth-child(2) {
  animation-delay: 0.12s;
}
.hm-band:not(.hm-teams).is-in .hm-wall__row:nth-child(3) {
  animation-delay: 0.24s;
}
/* The sample card lands like the hero's panel. */
.hm-band:not(.hm-teams).is-in .hm-card {
  animation: hm-land 0.8s var(--ease-out) 0.15s both;
}

/* How far down the page: a hairline under the header that fills as the page scrolls, driven by the
   scroll itself where the browser can (no script); not shown elsewhere, or under reduced motion. */
.hm-progress {
  display: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hm-progress {
      display: block;
      position: fixed;
      inset-inline: 0;
      top: 0;
      z-index: 60;
      height: 2px;
      background: var(--bk-accent);
      transform-origin: left;
      transform: scaleX(0);
      pointer-events: none;
      animation: hm-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes hm-rise {
  from {
    opacity: 0.01;
    transform: translateY(0.625rem);
  }
}
@keyframes hm-land {
  from {
    opacity: 0.01;
    transform: translateY(1.5rem) scale(0.97);
  }
}
@keyframes hm-draw {
  from {
    stroke-dashoffset: 1;
    color: var(--bk-accent);
  }
  60% {
    color: var(--bk-accent);
  }
}
@keyframes hm-scan {
  0% {
    opacity: 0;
    transform: translateY(-3rem);
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(16.5rem);
  }
}
@keyframes hm-edge {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  60% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}
@keyframes hm-sweep {
  0% {
    opacity: 0;
    transform: translateY(-7rem);
  }
  20%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(34rem);
  }
}
@keyframes hm-progress {
  to {
    transform: scaleX(1);
  }
}
@keyframes hm-pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---------- Layout by width ---------- */

@media (min-width: 40rem) {
  .hm-scan {
    padding: 1.5rem 1.5rem 1.625rem;
  }
  .hm-scan__rows::after {
    inset-inline: -1.5rem;
  }
}
@media (min-width: 48rem) {
  .hm-hero__grid {
    padding-block: 4.5rem 5.5rem;
  }
}
@media (min-width: 64rem) {
  /* Three cards side by side need the room: on a tablet each was 14rem wide, four words a line. */
  .hm-why {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hm-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    gap: 4rem;
  }
  .hm-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    gap: 5rem;
  }
  .hm-split--teams {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  }
  /* "What comes back": the card needs its two columns' width (test.css, 42rem), which a 28rem
     column never gave it: it stood 1200px tall beside three lines of text. Here the text goes above
     and the card takes the row; from 80rem (below) the two sit side by side again. */
  .hm-split--top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}
@media (min-width: 80rem) {
  .hm-split--top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44rem);
    gap: 2.5rem;
  }
}
/* One column (phones and tablets): the hook first. The headline, the line and the button, then the
   visit panel, then the prompt's text, so the panel starts in the first screen and the prompt is
   still on the page, one swipe down. The wrappers step aside (display: contents) so their parts
   can be ordered; nothing focusable changes order but the panel's one link. */
@media (max-width: 63.99rem) {
  .hm-hero__grid {
    row-gap: 0;
  }
  .hm-hero__copy,
  .hm-prompt {
    display: contents;
  }
  .hm-prompt__actions {
    margin-top: 1.5rem;
  }
  .hm-scan {
    order: 1;
    margin-top: 2rem;
  }
  .hm-prompt__box {
    order: 2;
    margin-top: 1.5rem;
  }
}
@media (max-width: 26rem) {
  .hm-scan__row {
    grid-template-columns: 5.25rem minmax(0, 1fr);
  }
  .hm-scan__row dd {
    font-size: 0.9375rem;
  }
  .hm-scan__row--verdict {
    grid-template-columns: minmax(0, 1fr);
  }
  .hm-scan__row--verdict dd {
    font-size: 1.125rem;
  }
  .hm-scan__title {
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
  }
}
