/* ============================================================
 * Multifamily landing page — page-specific styles
 * Reuses .container-wide, .kicker, .section-head, .lead, buttons,
 * .inspect-modes block, footer + header.
 * ============================================================ */

/* ===== HERO ===== */
.mf-hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(63,174,82,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(54,62,72,0.05) 0%, transparent 55%),
    linear-gradient(180deg, #FAFBFD 0%, #F2F4F8 100%);
  overflow: hidden;
}
.mf-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(54,62,72,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,62,72,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.mf-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  z-index: 1;
}
.mf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(54,62,72,0.12);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--anthracite-100);
  margin-bottom: 20px;
}
.mf-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #61CE70;
  animation: mf-pulse 2.4s infinite;
}
@keyframes mf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(97,206,112,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(97,206,112,0); }
}
.mf-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--anthracite-100);
  margin: 0 0 20px;
}
.mf-h1 em {
  font-style: normal;
  background-image: linear-gradient(180deg, transparent 64%, rgba(97,206,112,0.4) 64%, rgba(97,206,112,0.4) 92%, transparent 92%);
  background-repeat: no-repeat;
}
.mf-hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--anthracite-80);
  margin: 0 0 16px;
  max-width: 560px;
}
.mf-hero-support {
  font-size: 15px;
  color: var(--anthracite-60);
  margin: 0 0 32px;
  max-width: 540px;
}
.mf-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
}
.mf-hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px;
  color: var(--anthracite-70);
}
.mf-hero-meta span {
  display: inline-flex; align-items: center; gap: 6px;
}
.mf-hero-meta svg {
  width: 14px; height: 14px;
  fill: none; stroke: var(--green-100);
  stroke-width: 2.5;
}
.mf-hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}

/* ===== Section base ===== */
.mf-section {
  padding: 96px 0;
  background: #fff;
}
.mf-section-alt {
  background: linear-gradient(180deg, #FAFBFD 0%, #F4F6F9 100%);
}
.mf-section-dark {
  background: linear-gradient(160deg, var(--anthracite-100) 0%, #1F2530 100%);
  color: rgba(255,255,255,0.85);
}
.mf-section-dark .section-head h2,
.mf-section-dark .mf-section-h { color: #fff; }
.mf-section-dark .section-head .lead,
.mf-section-dark .mf-section-lead { color: rgba(255,255,255,0.7); }
.mf-section-dark .kicker { color: #fff; }
.mf-section-dark .kicker .dot { background: var(--green-100); }

.mf-num-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-100);
  margin-bottom: 16px;
}
.mf-num-eyebrow .num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--green-100);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

/* ===== Section 1 — Problem ===== */
.mf-problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.mf-problem-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.mf-problem-item .x {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(209,72,72,0.1);
  color: #D14848;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.mf-problem-item p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--anthracite-100);
  font-weight: 500;
  margin: 0;
}

/* ===== Section 2 — Solution ===== */
.mf-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mf-solution-art {
  position: relative;
  /* Same fix as .mf-outputs-art — without `width: 100%`, the inner
   * `.hv-frame[data-aspect="square"]` (no explicit width) collapses and
   * the whole solution mock renders invisible inside the grid `1fr` cell. */
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Section 3 — Workflows grid ===== */
.mf-wf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.mf-wf-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), border-color 220ms var(--ease-standard);
}
.mf-wf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--anthracite-30);
}
.mf-wf-card .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(63,174,82,0.12), rgba(63,174,82,0.04));
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.mf-wf-card .ic svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--green-100);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.mf-wf-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--anthracite-100);
  margin: 0 0 8px;
}
.mf-wf-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--anthracite-70);
  margin: 0;
}
.mf-wf-card .num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--anthracite-30);
}

/* ===== Section 4 — Scale (split with art) ===== */
.mf-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mf-split.flip { grid-template-columns: 1fr 1.1fr; }
.mf-split.flip .mf-split-art { order: -1; }
.mf-bullet-list {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.mf-bullet-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--anthracite-90);
}
.mf-bullet-list li svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--green-100);
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}
.mf-section-dark .mf-bullet-list li { color: rgba(255,255,255,0.86); }

/* ===== Section 5 — Speed (with KPI strip) ===== */
.mf-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}
.mf-section-dark .mf-kpi-strip {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.mf-kpi-strip .cell {
  padding: 28px 24px;
  border-right: 1px solid var(--color-border);
}
.mf-section-dark .mf-kpi-strip .cell { border-color: rgba(255,255,255,0.12); }
.mf-kpi-strip .cell:last-child { border-right: none; }
.mf-kpi-strip .l {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--anthracite-60);
  font-weight: 700;
  margin-bottom: 8px;
}
.mf-section-dark .mf-kpi-strip .l { color: rgba(255,255,255,0.55); }
.mf-kpi-strip .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--anthracite-100);
  line-height: 1.1;
}
.mf-section-dark .mf-kpi-strip .v { color: #fff; }
.mf-kpi-strip .v small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green-100);
  letter-spacing: 0;
  text-transform: none;
}
.mf-ai-callout {
  margin-top: 32px;
  padding: 18px 22px;
  background: rgba(97,206,112,0.08);
  border: 1px solid rgba(97,206,112,0.3);
  border-radius: 12px;
  display: flex; align-items: center; gap: 14px;
  font-size: 15px;
  color: var(--anthracite-100);
  font-weight: 500;
}
.mf-section-dark .mf-ai-callout {
  background: rgba(97,206,112,0.12);
  color: rgba(255,255,255,0.92);
}
.mf-ai-callout .ai-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mf-ai-callout .mf-ai-link {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-100);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 160ms ease, gap 160ms ease;
}
.mf-ai-callout .mf-ai-link:hover { color: var(--anthracite-100); gap: 10px; }
.mf-ai-callout .mf-ai-link svg { width: 14px; height: 14px; }
.mf-section-dark .mf-ai-callout .mf-ai-link { color: #fff; }
.mf-section-dark .mf-ai-callout .mf-ai-link:hover { color: var(--green-100); }
@media (max-width: 700px) {
  .mf-ai-callout { flex-wrap: wrap; }
  .mf-ai-callout .mf-ai-link { margin-left: 0; padding-top: 4px; }
}

/* ===== Section 7 — Outputs (with report visual) ===== */
.mf-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.mf-outputs-art {
  position: relative;
  /* `width: 100%` so the grid `1fr` column fills the element — without it the
   * inner .hv-frame (aspect-ratio: 1/1, no explicit width) collapses and the
   * whole report mock renders invisible. `max-width` keeps it capped on
   * wide viewports. */
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Section 8 — Differentiation (icon list) ===== */
.mf-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.mf-diff-card {
  display: flex; gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.mf-diff-card .ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(54,62,72,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mf-diff-card .ic svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--anthracite-100);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.mf-diff-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--anthracite-100);
  margin: 0 0 6px;
}
.mf-diff-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--anthracite-70);
  margin: 0;
}

/* ===== Section 9 — Proof ===== */
.mf-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.mf-proof-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}
.mf-proof-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--anthracite-100);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.mf-proof-logo .customer-logo { max-height: 32px; max-width: 160px; }
.mf-proof-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 12px;
}
.mf-proof-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--anthracite-80);
  margin: 0 0 20px;
}
.mf-proof-meta {
  font-size: 12px;
  color: var(--anthracite-60);
  letter-spacing: 0.02em;
}
.mf-proof-meta strong {
  display: block;
  color: var(--anthracite-100);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ===== Specialist hub ("Popular workflows" strip) =====
   Cloned from styles/use-case.css so multi-family.php (which doesn't load
   use-case.css) can render the same hub directly above the final CTA. */
.spec-hub { padding: 96px 0; background: #fff; border-top: 1px solid var(--color-border); }
.spec-hub h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; margin: 16px 0; max-width: 720px; }
.spec-hub .lead { font-size: 19px; color: var(--color-text-muted); line-height: 1.55; max-width: 720px; margin-bottom: 40px; }
.spec-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.spec-hub-grid-3 { grid-template-columns: repeat(3, 1fr); }
.spec-hub-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .spec-hub-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.spec-hub-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: border-color var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-standard);
}
.spec-hub-card:hover {
  border-color: var(--green-100);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  transform: translateY(-2px);
}
.spec-hub-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--green-100); color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.spec-hub-card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--off-white-100); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.spec-hub-card .ic svg { width: 22px; height: 22px; stroke: var(--anthracite-100); fill: none; stroke-width: 1.75; }
.spec-hub-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--anthracite-100); }
.spec-hub-card p { font-size: 16px; color: var(--color-text-muted); line-height: 1.55; margin: 0 0 20px; }
.spec-hub-cta {
  margin-top: auto;
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 600; font-size: 15px;
  color: var(--green-100);
}
.spec-hub-cta svg { width: 16px; height: 16px; transition: transform var(--motion-base) var(--ease-standard); }
.spec-hub-card:hover .spec-hub-cta svg { transform: translateX(4px); }
@media (max-width: 900px) { .spec-hub-grid, .spec-hub-grid-3, .spec-hub-grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .spec-hub { padding: 64px 0; }
  .spec-hub h2 { font-size: 28px; }
  .spec-hub .lead { font-size: 16px; }
  .spec-hub-card { padding: 24px; }
  .spec-hub-card h4 { font-size: 20px; }
}

/* ===== Final CTA (dark) ===== */
.mf-final-cta {
  background: linear-gradient(160deg, var(--anthracite-100) 0%, #1F2530 60%, #2C3441 100%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mf-final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(97,206,112,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(97,206,112,0.10) 0%, transparent 45%);
  pointer-events: none;
}
.mf-final-cta .container-wide { position: relative; z-index: 1; }
.mf-final-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 880px;
  margin: 12px auto 18px;
}
.mf-final-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 32px;
}
.mf-final-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.mf-final-trust {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ===== Inspection-modes section spacing override ===== */
.mf-modes-section { padding: 96px 0; background: linear-gradient(180deg, #F4F6F9 0%, #FAFBFD 100%); }
.mf-modes-section .section-head { margin: 0 auto 56px; text-align: center; max-width: 740px; }
.mf-modes-section .section-head .lead { margin-left: auto; margin-right: auto; }

/* ===== Section heading typography (used inline in design — extracted) ===== */
.mf-h2-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--anthracite-100);
  margin: 0 0 16px;
  line-height: 1.1;
}
.mf-section-dark .mf-h2-section { color: #fff; }
.mf-h2-section.lg { font-size: 44px; }
.mf-section-lead-inline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--anthracite-70);
  margin: 0 0 28px;
  max-width: 520px;
}
.mf-section-dark .mf-section-lead-inline { color: rgba(255,255,255,0.7); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .mf-hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .mf-hero-art { max-width: 540px; margin: 0 auto; }
  .mf-wf-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-problem-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-split, .mf-split.flip { grid-template-columns: 1fr; gap: 40px; }
  .mf-split.flip .mf-split-art { order: 0; }
  .mf-outputs, .mf-solution { grid-template-columns: 1fr; gap: 40px; }
  .mf-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .mf-kpi-strip .cell:nth-child(2) { border-right: none; }
  .mf-proof-grid { grid-template-columns: 1fr; }
  .mf-diff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .mf-hero { padding: 60px 0 72px; }
  .mf-section { padding: 72px 0; }
  .mf-wf-grid, .mf-problem-grid { grid-template-columns: 1fr; }
  .mf-kpi-strip { grid-template-columns: 1fr; }
  .mf-kpi-strip .cell { border-right: none; border-bottom: 1px solid var(--color-border); }
  .mf-kpi-strip .cell:last-child { border-bottom: none; }
}
