/* home page (2026-09-17) -- the search instrument and the manufacturer rows.
   Product register, restrained: tokens from pilot.css, one accent, brand colour only
   as the manufacturer's own mark. Every figure is tabular; every row has a real
   hover/focus state; nothing decorates. */

.home-wrap { display: flex; flex-direction: column; gap: 36px; }

/* ---- the instrument -------------------------------------------------------- */
.home-hero { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.home-hero h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
.home-hero .home-lede { font-size: 1rem; line-height: 1.5; color: var(--fn-muted); max-width: 62ch; margin: 0; }
.home-search { display: flex; align-items: stretch; background: var(--fn-surface); border: 1px solid var(--fn-control-line);
  border-radius: 10px; padding: 4px; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.home-search:focus-within { border-color: var(--fn-accent); box-shadow: 0 0 0 3px var(--fn-accent-soft); }
.home-search input { flex: 1 1 auto; min-width: 0; min-height: 52px; border: 0; background: transparent; font-size: 1.125rem;
  padding: 0 12px; color: var(--fn-text); }
.home-search input::placeholder { color: #5b6b80; }
.home-search input:focus { outline: none; }
.home-search button { flex: 0 0 auto; min-height: 52px; padding: 0 22px; border: 0; border-radius: 7px; background: var(--fn-accent);
  color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .15s; }
.home-search button:hover { background: #0f479f; }
.home-search button:active { background: #0c3b85; }
.home-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--fn-muted); margin: 0; padding: 0; list-style: none; }
.home-facts b { color: var(--fn-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- section heads ---------------------------------------------------------- */
.home-section { display: flex; flex-direction: column; gap: 12px; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-section-head h2 { font-size: 1.25rem; line-height: 1.25; font-weight: 650; margin: 0; }
.home-section-head .home-section-note { font-size: .875rem; color: var(--fn-muted); margin: 0; }
.home-group { display: flex; flex-direction: column; gap: 8px; }
.home-group-head { display: flex; align-items: baseline; gap: 10px; }
.home-group-head h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.home-group-head span { font-size: .875rem; color: var(--fn-muted); font-variant-numeric: tabular-nums; }

/* ---- manufacturer rows ------------------------------------------------------ */
.home-brands { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .home-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-brand { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "mark name figures" "mark line figures" "mark meter meter";
  column-gap: 12px; row-gap: 2px; align-items: center; min-height: 64px; padding: 12px 14px;
  background: var(--fn-surface); border: 1px solid var(--fn-line); border-radius: var(--fn-radius);
  text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.home-brand:hover { border-color: var(--fn-control-line); background: #fbfcfd; }
.home-brand:focus-visible { outline: 3px solid var(--fn-accent); outline-offset: 2px; }
.home-brand .home-mark { grid-area: mark; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8125rem; letter-spacing: -.01em; align-self: start; background: #e6eaf0; color: var(--fn-text); }
.home-brand .home-name { grid-area: name; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--fn-text); }
.home-brand .home-line { grid-area: line; font-size: .875rem; line-height: 1.4; color: var(--fn-muted); }
.home-brand .home-figures { grid-area: figures; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; align-self: start; padding-top: 2px; white-space: nowrap; }
.home-brand .home-figures b { display: block; font-size: 1.0625rem; font-weight: 700; color: var(--fn-text); }
.home-brand .home-figures span { display: block; font-size: .8125rem; color: var(--fn-muted); }
.home-brand .home-meter { grid-area: meter; height: 5px; border-radius: 3px; background: #e6eaf0; margin-top: 8px; overflow: hidden; }
.home-brand .home-meter i { display: block; height: 100%; background: var(--fn-accent); border-radius: 3px; }
.home-brand.is-plain { grid-template-areas: "mark name figures" "mark line figures"; }
.home-brand.is-plain .home-figures b { font-size: 1rem; }

/* ---- other ways in ---------------------------------------------------------- */
.home-ways { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .home-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-way { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--fn-surface); border: 1px solid var(--fn-line);
  border-radius: var(--fn-radius); text-decoration: none; color: inherit; min-height: 84px; transition: border-color .15s, background .15s; }
.home-way:hover { border-color: var(--fn-control-line); background: #fbfcfd; }
.home-way:focus-visible { outline: 3px solid var(--fn-accent); outline-offset: 2px; }
.home-way .home-way-title { font-size: 1rem; font-weight: 600; color: var(--fn-accent); }
.home-way .home-way-sub { font-size: .875rem; line-height: 1.4; color: var(--fn-muted); }

@media (prefers-reduced-motion: reduce) {
  .home-search, .home-search button, .home-brand, .home-way { transition: none; }
}
