.ff-homepage {
  --ff-home-black: var(--ff-dark);
  --ff-home-white: var(--ff-white);
  --ff-home-amber: var(--ff-primary);
  --ff-home-amber-hover: var(--ff-primary-hover);
  --ff-home-amber-light: var(--ff-primary-light);
  --ff-home-amber-subtle: var(--ff-primary-subtle);
  /* Darkened amber for TEXT on light backgrounds — ≥4.86:1 on white/#FFFAED/
     #F2F5F7/#E8EFF6. Amber #E89F2B stays for fills only (2.0-2.2:1 as text). */
  --ff-home-amber-text: #8A5F0D;
  /* #5D6873: ≥5.19:1 on white/#FFFAED/#F2F5F7 (neutral-500 #6B7785 was 4.17-4.56). */
  --ff-home-muted: #5D6873;
  --ff-home-border: var(--ff-neutral-300);
  --ff-home-bg-subtle: var(--ff-neutral-100);
  --ff-home-success: #2d9d5b;
  --ff-home-danger: #c24646;
  --ff-home-px: clamp(20px, 5vw, 80px);
  color: var(--ff-home-black);
}

.ff-homepage *,
.ff-homepage *::before,
.ff-homepage *::after {
  box-sizing: border-box;
}

/* Focus ring: the global 3px #E89F2B outline is ~2.1:1 on white (fails the
   3:1 non-text floor). On light surfaces use the darkened amber #8A5F0D
   (5.4:1 on white, 5.2:1 on #FFFAED). Dark ink sections keep light amber
   #F8D48A (12.6:1 on #0F1820). Scoped to the homepage; theme.css untouched. */
.ff-homepage :focus-visible {
  outline-color: var(--ff-home-amber-text);
}

.ff-home-stats :focus-visible,
.ff-home-cta :focus-visible {
  outline-color: var(--ff-home-amber-light);
}

.ff-home-wrap,
.ff-home-hero,
.ff-home-stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--ff-home-px);
  padding-right: var(--ff-home-px);
}

.ff-home-hero-section {
  background: radial-gradient(ellipse at 50% -10%, var(--ff-home-amber-subtle) 0%, var(--ff-home-white) 65%);
}

.ff-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--ff-home-border);
}

.ff-home-hero-copy {
  min-width: 0;
}

.ff-home-hero-media {
  min-width: 0;
}

.ff-home-shot-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--ff-home-muted);
  text-align: right;
}

/* ── Hero product mock: HACCP Reports panel (hh- namespace) ── */
.hh-shot {
  max-width: 100%;
  border: 1px solid var(--ff-home-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ff-home-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hh-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--ff-home-bg-subtle);
  border-bottom: 1px solid var(--ff-home-border);
  padding: 10px 14px;
}

.hh-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ff-home-border);
}

.hh-dot:nth-child(1) { background: #e6a0a0; }
.hh-dot:nth-child(2) { background: #f2d08a; }
.hh-dot:nth-child(3) { background: #a9d5ba; }

.hh-body {
  background: var(--ff-home-bg-subtle);
  padding: 16px;
}

.hh-panel {
  background: var(--ff-home-white);
  border-radius: 8px;
  overflow: hidden;
}

.hh-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px 12px;
}

.hh-head-copy,
.hh-master-copy,
.hh-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hh-title {
  font-family: var(--ff-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ff-neutral-900);
  line-height: 1.15;
}

.hh-subtitle {
  font-size: 11.5px;
  color: var(--ff-home-muted);
}

.hh-chips {
  display: flex;
  gap: 7px;
  flex: none;
}

.hh-chip {
  font-size: 10.5px;
  font-weight: 600;
  border: 1.5px solid var(--ff-secondary);
  color: var(--ff-secondary);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}

.hh-chip-on {
  background: var(--ff-home-amber);
  border-color: var(--ff-home-amber);
  color: var(--ff-home-black); /* ink on amber ≈ 8.0:1 */
}

.hh-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--ff-secondary);
  border-radius: 8px;
  margin: 3px 14px 12px;
  padding: 12px 15px;
}

.hh-master-t {
  font-family: var(--ff-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ff-home-white); /* white on #1E3A5F ≈ 11.5:1 */
}

.hh-master-s {
  font-size: 11px;
  color: #c3d2e2; /* 7.5:1 on #1E3A5F */
  margin-top: 2px;
  max-width: 46ch;
  line-height: 1.4;
}

.hh-master-btn {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--ff-home-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 7px 12px;
  white-space: nowrap;
}

.hh-rows {
  border-top: 1px solid var(--ff-home-bg-subtle);
}

.hh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ff-home-bg-subtle);
}

.hh-row:last-child {
  border-bottom: none;
}

.hh-row-n {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ff-neutral-900);
}

.hh-row-m {
  font-size: 11px;
  color: var(--ff-home-muted);
}

.hh-row-t {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.hh-lc {
  font-size: 11px;
  color: var(--ff-home-muted);
  white-space: nowrap;
}

.hh-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1.1;
  border-radius: 999px;
  padding: 4px 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hh-pill-ok {
  background: #e8f7ef;
  color: #1a6e3f; /* 5.7:1 on #e8f7ef */
  border-color: #b5dfc7;
}

.hh-pill-warn {
  background: var(--ff-home-amber-subtle);
  color: #8a5a09; /* 5.7:1 on #FFFAED */
  border-color: var(--ff-home-amber-light);
}

.hh-ol {
  font-size: 11px;
  font-weight: 600;
  color: var(--ff-secondary);
  border: 1.5px solid var(--ff-secondary);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Callout attached under the overdue pH row: reframes the slipped check as a
   surfaced catch. Amber #E89F2B accent, scoped to the facsimile. */
.hh-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
  padding: 9px 12px;
  background: var(--ff-home-amber-subtle);
  border-left: 2px solid #e89f2b;
  border-radius: 0 6px 6px 0;
}

.hh-note-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e89f2b;
}

.hh-note-t {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ff-home-amber-text); /* #8A5F0D, 5.4:1 on the amber-subtle wash */
}

.ff-home-hero-eyebrow,
.ff-home-s-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ff-home-amber-text);
  margin-bottom: 32px;
}

.ff-home-hero-eyebrow::before,
.ff-home-s-label::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ff-home-amber);
}

.ff-homepage h1,
.ff-homepage h2,
.ff-homepage h3,
.ff-homepage h4 {
  color: var(--ff-home-black);
}

/* Split hero: the copy column is ~45% wide, so the display scale steps down
   from the full-bleed clamp(2.8rem, 5.5vw, 5.5rem). Clamp handles every
   viewport — no mobile override, so the ramp is monotonic. */
.ff-home-hero h1 {
  font-size: clamp(2.5rem, 3.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14em;
  margin-bottom: 28px;
}

.ff-homepage em {
  font-style: italic;
  color: var(--ff-home-amber-text);
}

.ff-home-hero-sub,
.ff-home-s-sub,
.ff-home-cta-sub {
  font-size: 1.05rem;
  color: var(--ff-home-muted);
  max-width: 520px;
  line-height: 1.75;
}

.ff-home-hero-sub {
  margin-bottom: 48px;
}

.ff-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.ff-home-hero-meta {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ff-home-muted);
}

.ff-home-btn-dark,
.ff-home-btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.ff-home-btn-dark {
  background: var(--ff-home-black);
  color: var(--ff-home-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ff-home-btn-dark:hover,
.ff-home-btn-dark:focus {
  background: var(--ff-home-amber);
  color: var(--ff-home-black); /* ink on amber ≈ 8.0:1 — white was 2.2:1 */
  gap: 12px;
}

.ff-home-btn-amber {
  background: var(--ff-home-amber);
  color: var(--ff-home-black); /* ink on amber ≈ 8.0:1 — white was 2.2:1 */
  box-shadow: 0 2px 8px rgba(232, 159, 43, 0.3);
}

.ff-home-btn-amber:hover,
.ff-home-btn-amber:focus {
  background: var(--ff-home-amber-hover);
  color: var(--ff-home-black); /* ink on #CC8A1E ≈ 6.2:1 */
  gap: 12px;
}

.ff-home-btn-dark svg,
.ff-home-btn-amber svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ff-home-btn-dark:hover svg,
.ff-home-btn-amber:hover svg,
.ff-home-btn-amber:focus svg {
  transform: translateX(2px);
}

.ff-home-link-cta,
.ff-home-link-cta-light {
  /* 48px touch floor on text links; negative vertical margin cancels the
     extra box height so the optics stay those of a plain text link. */
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: -15px;
  margin-bottom: -15px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ff-home-link-cta {
  color: var(--ff-secondary);
}

.ff-home-link-cta:hover,
.ff-home-link-cta:focus {
  color: var(--ff-home-black);
}

.ff-home-link-cta-light {
  color: rgba(255, 255, 255, 0.75);
}

.ff-home-link-cta-light:hover,
.ff-home-link-cta-light:focus {
  color: var(--ff-home-white);
}

.ff-home-stats {
  background: var(--ff-home-black);
}

.ff-home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

/* Single horizontal evidence strip: capability phrase at title scale with
   its description directly below, cells split by hairlines, equal heights,
   shallow enough that the band reads as one continuous row rather than a
   three-up metric card template. */
.ff-home-stat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 36px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.ff-home-stat:first-child {
  padding-left: 0;
}

.ff-home-stat:last-child {
  padding-right: 0;
  border-right: none;
}

.ff-home-stat-n {
  display: block;
  font-family: var(--ff-font-display);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: normal;
  color: var(--ff-home-amber-light); /* 12.6:1 on #0F1820 */
  line-height: 1.3;
}

.ff-home-stat-l {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55); /* 6.1:1 on #0F1820 — 0.45 was 4.49:1 */
  line-height: 1.55;
  margin: 0;
  max-width: 34ch;
}

.ff-home-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ff-home-amber-subtle);
  border: 1px solid var(--ff-home-amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ff-home-amber);
}

.ff-home-feat-icon svg {
  width: 18px;
  height: 18px;
}

.ff-home-feat h3 {
  font-family: var(--ff-font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ff-home-feat p {
  font-size: 0.95rem;
  color: var(--ff-home-muted);
  line-height: 1.7;
  margin: 0;
}

/* Visible affordance on linked cards: arrow rests muted, leans in on hover */
.ff-home-feat-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: -1px;
  color: var(--ff-home-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.ff-home-feat:has(h3 a):hover .ff-home-feat-arrow,
.ff-home-feat:has(h3 a:focus-visible) .ff-home-feat-arrow {
  color: var(--ff-home-black);
  transform: translateX(3px);
}

.ff-home-cta {
  background: var(--ff-home-black);
  padding: 120px 0;
}

.ff-home-cta h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--ff-home-white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  /* Font-relative cap: "Your next audit is coming." (~12.5em) always fits on
     one line, so the break lands after "coming." at every viewport. */
  max-width: 14em;
  margin-bottom: 20px;
}

.ff-home-cta h2 em {
  color: var(--ff-home-amber-light);
}

.ff-home-cta-sub {
  color: rgba(255, 255, 255, 0.55); /* 6.1:1 on #0F1820 — 0.45 was 4.49:1 */
  margin-bottom: 48px;
}

.ff-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.ff-home-cta-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 981px) {
  .ff-home-cta-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 80px;
  }
}

.ff-home-cta-terms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7); /* 8.4:1 on #0F1820 */
  font-size: 0.95rem;
}

.ff-home-cta-terms li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ff-home-cta-terms li::before {
  content: "\2713";
  color: var(--ff-home-amber-light);
  font-weight: 600;
}

.ff-home-js .ff-home-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ff-home-js .ff-home-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ff-home-js .ff-home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.ff-home-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ff-home-proof-card {
  min-width: 0;
  padding: 30px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--ff-home-border);
  border-radius: 12px;
  background: var(--ff-home-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ff-home-proof-kicker,
.ff-home-proof-output-label,
.ff-home-case-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ff-home-proof-kicker,
.ff-home-case-kicker {
  color: var(--ff-home-amber-text);
}

.ff-home-proof-card h3 {
  font-family: var(--ff-font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Card-level :has() ring is the focus indicator; suppress the inner
   anchor's own outline so keyboard users see one ring, not two. */
.ff-home-feat h3 a:focus-visible {
  outline: none;
}

/* Concrete artifact strip: a single mock record row per workflow card */
.ff-home-proof-artifact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--ff-home-border);
  border-radius: 8px;
  background: var(--ff-home-bg-subtle);
}

.ff-home-pa-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ff-home-black);
  white-space: nowrap;
}

.ff-home-pa-sub {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--ff-home-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-home-pa-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.1;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ff-home-pa-badge-ok {
  background: #e8f7ef;
  color: #1a6e3f; /* 5.7:1 on #e8f7ef */
  border-color: #b5dfc7;
}

.ff-home-pa-chip {
  flex: none;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ff-secondary);
  border: 1.5px solid var(--ff-secondary);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}

.ff-home-proof-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ff-home-proof-list li {
  position: relative;
  padding-left: 18px;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ff-home-black);
}

.ff-home-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ff-home-amber);
}

.ff-home-proof-output {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--ff-home-border);
  border-radius: 10px;
  background: var(--ff-home-bg-subtle);
}

.ff-home-proof-output-label {
  color: var(--ff-home-muted);
}

.ff-home-proof-output strong {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ff-home-black);
}

/* Case-study teaser: a quiet single-row band on the hairline system,
   not a card. Kicker, one evidence sentence, one real link. */
.ff-home-case {
  display: flex;
  align-items: baseline;
  gap: 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--ff-home-border);
}

.ff-home-case-kicker {
  flex: none;
  margin: 0;
}

.ff-home-case-copy {
  flex: 1;
  min-width: 0;
  max-width: 62ch;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ff-home-muted);
}

.ff-home-case-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: -15px;
  margin-bottom: -15px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ff-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ff-home-case-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ff-home-case-link:hover,
.ff-home-case-link:focus-visible {
  color: var(--ff-home-black);
}

.ff-home-case-link:hover svg,
.ff-home-case-link:focus-visible svg {
  transform: translateX(2px);
}


/* ── "Where FourFoxes fits" boundary block ──────────────────── */
.ff-home-fit {
  padding: 112px 0;
  background: var(--ff-home-bg-subtle);
  border-top: 1px solid var(--ff-home-border);
}

.ff-home-fit .ff-home-s-heading {
  margin-bottom: 24px;
}

.ff-home-fit-lead {
  max-width: 64ch;
  margin: 0 0 48px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ff-home-muted);
}

.ff-home-fit-spectrum {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 56px;
}

.ff-home-fit-node {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ff-home-muted);
  border: 1px solid var(--ff-home-border);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--ff-home-white);
  white-space: nowrap;
}

.ff-home-fit-node-here {
  color: var(--ff-home-black);
  border-color: #e89f2b;
  background: var(--ff-home-amber-subtle);
  box-shadow: inset 0 0 0 1px #e89f2b;
}

.ff-home-fit-arrow {
  color: var(--ff-home-muted);
  font-size: 1rem;
}

.ff-home-fit-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.ff-home-fit-col {
  padding: 28px 30px;
  background: var(--ff-home-white);
  border: 1px solid var(--ff-home-border);
  border-radius: 12px;
}

.ff-home-fit-col-h {
  margin: 0 0 16px;
  font-family: var(--ff-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ff-home-amber-text); /* #8A5F0D, 5.4:1 on white */
}

.ff-home-fit-out .ff-home-fit-col-h {
  color: var(--ff-home-muted);
}

.ff-home-fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ff-home-fit-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ff-home-black);
}

.ff-home-fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e89f2b;
}

.ff-home-fit-list-out li {
  color: var(--ff-home-muted);
}

.ff-home-fit-list-out li::before {
  top: 11px;
  width: 12px;
  height: 2px;
  border-radius: 0;
  background: var(--ff-home-border);
}

.ff-home-fit-plans {
  margin: 40px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ff-home-muted);
}

.ff-home-fit-plans-link {
  font-weight: 700;
  color: var(--ff-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.ff-home-fit-plans-link:hover,
.ff-home-fit-plans-link:focus-visible {
  color: var(--ff-home-black);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .ff-home-fit-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Section spacing ────────────────────────────────────────── */
.ff-home-features,
.ff-home-screenshots {
  padding: 112px 0;
}

.ff-home-s-heading {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-top: 0;
  margin-bottom: 64px;
}

.ff-home-s-sub {
  margin-bottom: 56px;
}

/* Heading + sub-lead read as one unit in the proof section; the 64px gap
   belongs between the intro and the grid, not inside the intro. */
.ff-home-screenshots .ff-home-s-heading {
  margin-bottom: 20px;
}

.ff-home-features-grid {
  display: grid;
  /* Five cards laid 3 + 2: a six-track grid keeps each row's cards equal
     width within the row (row one spans 2 tracks each, row two spans 3). */
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 56px;
}

.ff-home-feat {
  grid-column: span 2;
  padding: 40px 36px;
  border-right: 1px solid var(--ff-home-border);
  border-bottom: 1px solid var(--ff-home-border);
}

.ff-home-feat:nth-child(n + 4) {
  grid-column: span 3;
  border-bottom: none;
}

.ff-home-feat:nth-child(3),
.ff-home-feat:nth-child(5) {
  border-right: none;
}

/* Narrow-desktop band: the hero media column bottoms out near 476px, so the
   tertiary "Last checked" column yields to keep every row single-line. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hh-lc {
    display: none;
  }
}

@media (max-width: 1023px) {
  .ff-home-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
  }

  .ff-home-hero-media {
    max-width: 640px;
  }

  /* Five cards collapse 3 + 2 → 2 + 2 + 1; the lone last card spans the
     full row so no orphan gap appears. */
  .ff-home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ff-home-feat:nth-child(n + 1) {
    grid-column: auto;
    border-right: 1px solid var(--ff-home-border);
    border-bottom: 1px solid var(--ff-home-border);
  }

  .ff-home-feat:nth-child(2n) {
    border-right: none;
  }

  .ff-home-feat:nth-child(5) {
    grid-column: span 2;
    border-right: none;
    border-bottom: none;
  }

  .ff-home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ff-home-stat {
    padding: 28px 32px;
  }

  .ff-home-stat:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  .ff-home-stat:nth-child(3) {
    grid-column: span 2;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-left: 0;
    padding-right: 0;
  }

}

@media (max-width: 767px) {
  .ff-homepage {
    --ff-home-px: 20px;
  }

  .ff-home-hero {
    padding-top: 64px;
    padding-bottom: 64px;
    gap: 40px;
  }

  /* Mock stays inside the viewport on phones: hide the tertiary
     "Last checked" column and tighten row padding. */
  .hh-lc {
    display: none;
  }

  .hh-row,
  .hh-head {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hh-body {
    padding: 12px;
  }

  .hh-chips {
    display: none;
  }

  .ff-home-features,
  .ff-home-screenshots {
    padding: 72px 0;
  }

  .ff-home-features-grid,
  .ff-home-stats-grid {
    grid-template-columns: 1fr;
  }

  .ff-home-feat:nth-child(n + 1) {
    grid-column: auto;
    border-right: none;
    border-bottom: 1px solid var(--ff-home-border);
  }

  .ff-home-feat:last-child {
    border-bottom: none;
  }

  .ff-home-stat:nth-child(n + 1) {
    grid-column: auto;
    padding: 24px 0;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .ff-home-stat:last-child {
    border-bottom: none;
  }

  .ff-home-s-sub {
    font-size: 0.9rem;
    margin-bottom: 36px;
  }

  .ff-home-case {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 40px;
  }
}

/* Feature grid cards: stretched-link to feature pages (cards 01-05) */
.ff-home-feat { position: relative; }
.ff-home-feat h3 a { color: inherit; text-decoration: none; }
.ff-home-feat h3 a::after { content: ""; position: absolute; inset: 0; }
.ff-home-feat:has(h3 a):hover { background: #FFFAED; }
/* #8A5F0D ring: 5.4:1 on white, 5.2:1 on the #FFFAED hover tint (3:1 floor) */
.ff-home-feat:has(h3 a:focus-visible) { outline: 3px solid var(--ff-home-amber-text); outline-offset: -3px; }
