/* Landing page additions to site.css. */

/* Chart neutral: a grey far enough from the accent in lightness to stay distinct under red-green colour blindness. */
:root { --fc-rest: var(--seg-idle); }
:root[data-theme="light"] { --fc-rest: var(--seg-breakdown); }

/* "SAP Business One" and "Salesforce" make the headline longer than the size in site.css allows. */
.hero .display { font-size: clamp(2.4rem, min(9.6vw, 10.5vh), 6.25rem); max-width: 18ch; }

/* Dollar figures are wider than the hour figures the three-column grid was sized for. */
@media (min-width: 900px) {
  .finding .spec-num { font-size: clamp(3rem, 6vw, 6.5rem); }
}

/* Finding chart: two bars per account on one dollar axis. */
.s-rest { background: var(--fc-rest); --sw: var(--fc-rest); }
.lc-break li.s-rest { background: none; }
.fc-row, .fc-axis { grid-template-columns: minmax(0, 1fr); }
.fc-name { color: var(--text); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.02em; }
.fc-track { position: relative; display: grid; gap: 2px; }
.fc-track .g { position: absolute; top: -6px; bottom: -6px; width: 1px; background: var(--grid); }
.fc-bar { position: relative; display: block; height: 12px; border-radius: 0 4px 4px 0; transition: filter 160ms ease; }
.fc-bar:hover { filter: brightness(1.15); }
@media (min-width: 760px) {
  .fc-row, .fc-axis { grid-template-columns: 17rem minmax(0, 1fr); column-gap: 24px; }
  .fc-name { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .fc-track { grid-column: 2; grid-row: 1; }
}

/* Contact band heading sits above the form, as on the contact page. */
.contact-grid .lede { margin-top: 20px; }
.confirm h3 { color: var(--text); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.copy-status { font: 400 12px/1.5 var(--font-mono); color: var(--muted); }

/* Four items do not fit one line under 520 px; drop the slashes so a wrapped row does not start with one. */
@media (max-width: 520px) {
  .hero-strip { gap: 6px 22px; }
  .hero-strip li + li::before { content: none; }
}
