/* Features page: full-width bands, a responsive card grid, consistent picture frames. */
.fhero { padding-block: var(--band) var(--space-6); }
.fhero .h1 { max-width: 22ch; margin-bottom: var(--space-3); }
.fhero .lede { max-width: 36rem; }
.fjump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.fjump a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-raised); color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.fjump a:hover { background: var(--accent-soft); border-color: var(--accent); }
.fjump a:focus-visible, .flink:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.fband { padding-block: var(--band); scroll-margin-top: calc(var(--header-h) + 1rem); }
.fband.alt { background: var(--bg-sunken); border-block: 1px solid var(--line); }
.fhead { margin-bottom: var(--space-6); max-width: 42rem; }
.fhead .h2 { margin-bottom: var(--space-2); }
.fhead p { font-size: 1.125rem; margin: 0; }

.fgrid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 66rem) { .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fcard { display: flex; flex-direction: column; min-width: 0; background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-1); overflow: hidden; }
.fmedia { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
.fband.alt .fmedia { background: color-mix(in srgb, var(--bg-sunken) 60%, var(--bg-raised)); }
.fmedia img { display: block; }
.fmedia-land img, .fmedia-wide img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.fmedia-phone img { position: absolute; top: 9%; left: 50%; margin-left: -23%; width: 46%; height: auto; aspect-ratio: 1 / 2;
  border: 1px solid var(--line); border-radius: 13% / 6.5%; box-shadow: var(--shadow-1); }
.fbody { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.fbody .h3 { margin-bottom: var(--space-2); }
.fbody p { margin: 0 0 var(--space-3); line-height: 1.55; color: var(--ink-soft); }
.fbody .fnote { font-size: .9375rem; color: var(--ink-faint); }
.ffoot { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.flink { font-weight: 650; color: var(--accent); text-decoration: none; }
.flink::after { content: " \2192"; }
.flink:hover { text-decoration: underline; }
.ftag { display: inline-block; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-sunken);
  font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }

/* The score card spans the row: the landscape picture beside its text. */
@media (min-width: 40rem) {
  .fcard-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .fcard-wide .fmedia { flex: 0 0 62%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .fcard-wide .fmedia img { object-fit: contain; }
  .fcard-wide .fbody { flex: 1 1 0; justify-content: center; }
  .fcard-wide .fbody .h3 { font-size: 1.5rem; }
}

.fclose { text-align: center; }
.fclose .lede { max-width: 38rem; margin-inline: auto; }
.fclose-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); }

/* Sections with two or four cards keep the three-column card width and sit two across, so no row is left ragged. */
@media (min-width: 66rem) {
  .fgrid-2, .fgrid-4 { max-width: calc((2 * 100% - var(--space-5)) / 3); }
  .fgrid-2, .fgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
