/* Landing pages — only the blocks the home page does not already provide.
   Everything else (.band, .card, .features-grid, .faq-*, .cta-panel) comes
   from home.css, which lander.njk loads. Adding to this file should be rare;
   if a lander needs a new component, check the home page first. */

/* Spec table: a definition list of platform requirements. Two columns on
   desktop, stacked on phones, because a key/value pair that wraps mid-value is
   harder to scan than one that stacks. */
.spec-table {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }
.spec-key { font-weight: 600; color: var(--text); }
.spec-val { color: var(--muted); }
.spec-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.925rem;
  max-width: 60ch;
}

@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* A card that is itself a link — used for the pillar's platform grid. Inherits
   .card, so this only adds the affordance. */
.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.card-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-link .card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text);
}

/* Sits under the hero buttons: the honest one-line caveat about length or
   resolution, deliberately quiet rather than a badge. */
.hero-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Intro prose. NOT .section-lead — that is styled for a single short line
   (max-width 560px, no margin-bottom), so two consecutive paragraphs ran
   together as one block and left a wide gap on the right next to a full-width
   heading. This is a reading measure with real paragraph spacing. */
.lander-prose {
  max-width: 68ch;
}
.lander-prose p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0 0 1.15rem;
}
.lander-prose p:last-child { margin-bottom: 0; }

/* Intro band: two columns when the page supplies `media`, one when it does not.
   Without media the prose keeps its reading measure and nothing reserves an
   empty column — the dead space to the right of the intro was exactly that. */
.lander-intro.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.lander-media { margin: 0; }
.lander-media img,
.lander-media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--preview-bg);
}
.lander-media figcaption,
.lander-showcase-item figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Showcase: a row of vertical clips. auto-fit means one, two or three items
   all lay out sensibly without the page declaring a column count. */
.lander-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.lander-showcase-item { margin: 0; }
.lander-showcase-item img,
.lander-showcase-item video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--preview-bg);
}

@media (max-width: 760px) {
  .lander-intro.has-media { grid-template-columns: 1fr; gap: 28px; }
}

/* A phone-sized clip does not need to fill half a desktop screen. */
@media (min-width: 1100px) {
  .lander-media video { max-width: 340px; margin-inline: auto; }
}

/* An open FAQ keeps the card background. home.css darkens it to --hover-bg,
   which reads as a disabled or selected state rather than an expanded one —
   the border and the +/− already show which is open. Scoped to landers so the
   homepage keeps the look it shipped with; move this into home.css if the
   whole site should match. */
.faq-details[open] { background: var(--surface); }
