/* ==========================================================================
   PropertyFlow — Financials page dark redesign (Figma file AfDgwLGK6PWvMXXcqqtZUb,
   frame 586:1294 "Financials")

   Loaded ONLY by platform/financials/index.html, after home-dark.css (nav,
   labels, headings, stats grid, CTA2, footer pattern are reused from there).
   Component classes below use the `fin-` prefix to avoid any collision with
   home-dark.css or the other redesigned pages' CSS files. Scoped under
   body.hd-page.
   ========================================================================== */

/* ---------- Hero ---------- */

body.hd-page .fin-hero { padding: 160px 0 100px; }
body.hd-page .fin-hero__copy { max-width: 800px; }

body.hd-page .fin-hero__heading {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5.6vw, 71.66px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--text-primary);
  margin: 28px 0 0;
}
body.hd-page .fin-hero__heading > span { display: block; }
body.hd-page .fin-hero__heading span.muted { color: #7c7c86; }

body.hd-page .fin-hero__desc {
  font-family: "Krub", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 24px 0 0;
}

body.hd-page .fin-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

body.hd-page .fin-hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  max-width: 529px;
}
body.hd-page .fin-hero__stat-divider { width: 1px; height: 32px; background: var(--border-subtle); flex-shrink: 0; }
body.hd-page .fin-hero__stat-value {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: block;
}
body.hd-page .fin-hero__stat-label { font-family: "Krub", sans-serif; font-size: 13px; line-height: 1.4; color: var(--text-secondary); margin: 4px 0 0; max-width: 186px; }

@media (max-width: 640px) {
  body.hd-page .fin-hero__stats { flex-wrap: wrap; align-items: flex-start; gap: 20px 24px; max-width: none; }
  body.hd-page .fin-hero__stats > div { flex: 1 1 140px; }
  body.hd-page .fin-hero__stat-divider { display: none; }
  body.hd-page .fin-hero__stat-value { font-size: 20px; }
  body.hd-page .fin-hero__stat-label { max-width: none; }
  body.hd-page .fin-hero__visual { margin-top: 56px; border-radius: 12px; }
}

body.hd-page .fin-hero__visual {
  margin-top: 80px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 50px 120px rgba(0, 0, 0, 0.85);
}
body.hd-page .fin-hero__visual img { display: block; width: 100%; }

/* ---------- Shared section header + 3-tile row ---------- */

body.hd-page .fin-section-head { max-width: 648px; }
body.hd-page .fin-section-head--center { max-width: 648px; margin: 0 auto; text-align: center; }
body.hd-page .fin-section-head--center .hd-label { justify-content: center; }
body.hd-page .fin-h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4.1vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 28px 0 0;
}
body.hd-page .fin-h2 span.muted { color: #7c7c86; }
body.hd-page .fin-lede { font-family: "Krub", sans-serif; font-size: 17px; line-height: 1.65; color: #a0a0aa; max-width: 648px; margin: 24px 0 0; }
body.hd-page .fin-section-head--center .fin-lede { margin-left: auto; margin-right: auto; }

body.hd-page .fin-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #0c0c0f;
  border: 0.8px solid var(--border-subtle);
  border-radius: 24px;
  margin-top: 56px;
  overflow: hidden;
}
body.hd-page .fin-tile { padding: 40px 32px; border-right: 0.8px solid var(--border-subtle); }
body.hd-page .fin-tile:last-child { border-right: none; }
body.hd-page .fin-tile__num { font-family: "Krub", sans-serif; font-size: 15px; color: var(--link-muted); margin: 0 0 24px; }
body.hd-page .fin-tile__title { font-family: "Krub", sans-serif; font-weight: 600; font-size: 20px; color: var(--text-primary); margin: 0 0 8px; }
body.hd-page .fin-tile__desc { font-family: "Krub", sans-serif; font-size: 14px; line-height: 1.5; color: var(--link-muted); margin: 0; }

@media (max-width: 900px) {
  body.hd-page .fin-tiles { grid-template-columns: 1fr; }
  body.hd-page .fin-tile { border-right: none; border-bottom: 0.8px solid var(--border-subtle); }
  body.hd-page .fin-tile:last-child { border-bottom: none; }
}

/* ---------- Section 03: integrations row ---------- */

body.hd-page .fin-integrations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #131316;
  border: 0.8px solid var(--border-subtle);
  border-radius: 24px;
  margin-top: 56px;
  overflow: hidden;
}
body.hd-page .fin-integration { padding: 32px 16px; border-right: 0.8px solid var(--border-subtle); display: flex; flex-direction: column; align-items: center; gap: 24px; }
body.hd-page .fin-integration:last-child { border-right: none; }
body.hd-page .fin-integration__icon { width: 64px; height: 64px; border-radius: 8px; background: #0c0c0f; border: 0.8px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; }
body.hd-page .fin-integration__icon img { width: 40px; height: 40px; }
body.hd-page .fin-integration__name { font-family: "Krub", sans-serif; font-weight: 600; font-size: 20px; color: var(--text-primary); margin: 0; text-align: center; }
body.hd-page .fin-integration__sub { font-family: "Krub", sans-serif; font-size: 15px; color: var(--link-muted); margin: 4px 0 0; text-align: center; }

@media (max-width: 900px) {
  body.hd-page .fin-integrations { grid-template-columns: repeat(2, 1fr); }
  body.hd-page .fin-integration { border-right: none; border-bottom: 0.8px solid var(--border-subtle); }
  body.hd-page .fin-integration:nth-child(odd) { border-right: 0.8px solid var(--border-subtle); }
  body.hd-page .fin-integration:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  body.hd-page .fin-integration { padding: 28px 12px; gap: 18px; }
  body.hd-page .fin-integration__name { font-size: 17px; }
  body.hd-page .fin-integration__sub { font-size: 14px; }
}

/* ---------- Section 04: month-end compare chart ---------- */

body.hd-page .fin-compare-chart { margin-top: 56px; border-radius: 16px; overflow: hidden; border: 0.8px solid var(--border-subtle); }
body.hd-page .fin-compare-chart img { display: block; width: 100%; }

@media (max-width: 640px) {
  /* Chart is wider than the viewport on phones: scroll it, starting at the
     month-end payoff (rtl scroll origin), and hide the scrollbar chrome. */
  body.hd-page .fin-compare-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 40px; direction: rtl; scrollbar-width: none; }
  body.hd-page .fin-compare-chart::-webkit-scrollbar { display: none; }
  body.hd-page .fin-compare-chart img { width: 640px; max-width: none; direction: ltr; }
}

