/* Document 76: homepage models, current rates and quick unit economics. */
.fm-home-section { background: #fff; }
.fm-home-section *, .fm-model-dialog * { min-width: 0; }
.fm-home-heading, .fm-added-heading { margin-bottom: 32px; }
.fm-home-heading { max-width: 850px; }
.fm-home-kicker { display: block; margin-bottom: 12px; color: #51564a; font-size: 13px; font-weight: 800; }
.fm-home-heading h2, .fm-added-heading h2 { margin: 0; font: 850 38px/1.15 "Onest", system-ui, sans-serif; color: #171814; }
#before-after > .fm-added-heading h2 { color: #171814 !important; }
.fm-home-heading h2 span { text-decoration: underline; text-decoration-color: #bcf51d; text-decoration-thickness: 5px; text-underline-offset: 6px; }
.fm-home-heading p { margin: 20px 0 0; color: #51564a; font-size: 17px; line-height: 1.6; }
.fm-model-grid, .fm-prices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fm-model-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 2px solid #d4d8cc; border-radius: 8px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.fm-model-card--fbo { background: #f5f8ee; }
.fm-model-card:hover, .fm-model-card:focus-within { border-color: #8aaf19; box-shadow: 0 8px 22px rgba(23,24,20,.07); }
.fm-model-top, .fm-model-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.fm-model-code { color: #171814; font: 900 44px/1 "Onest", system-ui, sans-serif; }
.fm-model-tag { padding: 7px 10px; border-radius: 4px; color: #171814; background: #e9f8c8; font-size: 12px; font-weight: 800; }
.fm-model-card h3 { margin: 22px 0 12px; color: #171814; font-size: 24px; line-height: 1.25; }
.fm-model-card p { margin: 0 0 24px; color: #51564a; font-size: 16px; line-height: 1.65; }
.fm-model-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: auto 0 24px; padding: 16px 0; list-style: none; border-block: 1px solid #d4d8cc; }
.fm-model-path li { position: relative; color: #41463a; font-size: 13px; font-weight: 750; line-height: 1.4; }
.fm-model-path li:not(:last-child)::after { content: "\2192"; position: absolute; right: -12px; color: #657640; }
.fm-model-bottom > span { font-size: 12px; color: #51564a; }
.fm-model-open { padding: 0; border: 0; color: #171814; background: transparent; font: 800 15px/1.4 "Manrope", system-ui, sans-serif; cursor: pointer; }
.fm-model-open::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.fm-model-open:focus-visible { outline: none; }
.fm-model-open:focus-visible::after { outline: 3px solid #171814; outline-offset: 4px; }
.fm-model-open > span { margin-left: 8px; font-size: 20px; }
.fm-section-actions, .fm-model-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fm-home-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; border: 1px solid #bcf51d; border-radius: 8px; color: #171814; background: #caff32; font: 800 15px/1.4 "Manrope", system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.fm-home-button:hover { background: #ddff79; }
.fm-home-button--outline { border-color: #aeb5a2; background: #fff; }
.fm-home-button--outline:hover { background: #f1f6e7; }
.fm-home-button:focus-visible, .fm-model-close:focus-visible { outline: 3px solid #171814; outline-offset: 3px; }
.fm-price-summary { padding: 24px; border: 1px solid #d4d8cc; border-radius: 8px; background: #fff; }
.fm-price-summary h3 { margin: 0 0 12px; padding-bottom: 14px; border-bottom: 3px solid #bcf51d; font-size: 22px; color: #171814; }
.fm-price-summary dl { margin: 0; }
.fm-price-summary dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #e4e7df; }
.fm-price-summary dl > div:last-child { border: 0; padding-bottom: 0; }
.fm-price-summary dt { color: #51564a; font-size: 15px; line-height: 1.5; }
.fm-price-summary dd { margin: 0; color: #171814; font-size: 17px; font-weight: 850; white-space: nowrap; }
.fm-mini-section { background: #fff; }
.fm-mini-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .8fr); gap: 36px; align-items: start; }
.fm-mini-form label { display: flex; flex-direction: column; gap: 9px; color: #41463a; font-size: 14px; font-weight: 750; }
.fm-mini-form input, .fm-mini-form select { width: 100%; min-height: 50px; padding: 12px; border: 1px solid #b4bba9; border-radius: 6px; background: #fff; color: #171814; font: 700 17px/1.4 "Manrope", system-ui, sans-serif; }
.fm-mini-form input:focus, .fm-mini-form select:focus { outline: 2px solid #719519; outline-offset: 2px; }
.fm-mini-form input[aria-invalid="true"] { border-color: #b42318; }
.fm-mini-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.fm-mini-fields input { margin-top: auto; }
.fm-mini-fields--rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-mini-note { font-size: 13px; line-height: 1.6; color: #62645d; margin: 20px 0 0; }
.fm-mini-error { min-height: 22px; margin: 6px 0 0; color: #b42318; font-size: 13px; line-height: 1.5; }
.fm-mini-result { padding: 28px; border-radius: 8px; background: #171814; color: #fff; }
.fm-mini-result > span { font-size: 14px; color: #e0e5d7; }
.fm-mini-result output { display: block; margin: 12px 0 24px; min-height: 60px; color: #caff32; font: 850 42px/1.3 "Onest", system-ui, sans-serif; overflow-wrap: anywhere; }
.fm-mini-result.is-negative output { color: #ffb4ab; }
.fm-mini-result dl { margin: 0 0 24px; }
.fm-mini-result dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; border-top: 1px solid #494e40; font-size: 14px; line-height: 1.5; }
.fm-mini-result dt { color: #e0e5d7; }
.fm-mini-result dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.fm-mini-result .fm-home-button { width: 100%; }
.fm-mini-result .fm-home-button:focus-visible { outline-color: #fff; }
.fm-mini-result p { margin: 16px 0 0; color: #c5ccba; font-size: 13px; line-height: 1.6; }
.fm-model-dialog { width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #b5beaa; border-radius: 8px; color: #171814; background: #fff; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.fm-model-dialog::backdrop { background: rgba(17,19,15,.68); backdrop-filter: blur(3px); }
.fm-model-dialog-inner { padding: 32px; position: relative; }
.fm-model-close { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border: 1px solid #c6ceba; border-radius: 6px; background: #f1f6e7; color: #171814; font-size: 28px; cursor: pointer; }
.fm-model-dialog .fm-home-kicker { padding-right: 50px; }
.fm-model-dialog h2 { margin: 16px 40px 16px 0; font: 850 30px/1.2 "Onest", system-ui, sans-serif; }
.fm-model-intro { color: #51564a; font-size: 16px; line-height: 1.65; }
.fm-model-details { counter-reset: model-step; list-style: none; padding: 0; margin: 26px 0; }
.fm-model-details li { position: relative; padding: 0 0 22px 46px; counter-increment: model-step; }
.fm-model-details li::before { content: counter(model-step, decimal-leading-zero); position: absolute; top: 0; left: 0; padding: 7px; border-radius: 4px; background: #efffc0; color: #171814; font-size: 13px; font-weight: 850; }
.fm-model-details h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.fm-model-details p { margin: 0; color: #51564a; font-size: 15px; line-height: 1.7; }
body.fm-model-dialog-open { overflow: hidden; }
.compare-copy .fm-legacy-heading { margin: 0 0 18px; font: 850 38px/1.08 "Onest", system-ui, sans-serif; color: #fff; }
@media (max-width: 900px) {
  .fm-mini-layout { grid-template-columns: 1fr; gap: 20px; }
  .fm-model-grid { gap: 14px; }
  .fm-model-card { padding: 20px; }
}
@media (max-width: 680px) {
  .fm-home-heading h2, .fm-added-heading h2 { font-size: 28px; }
  .fm-home-heading, .fm-added-heading { margin-bottom: 24px; }
  .fm-home-heading p { font-size: 15px; }
  .fm-model-grid, .fm-prices-grid { grid-template-columns: 1fr; }
  .fm-model-card h3 { font-size: 22px; }
  .fm-model-path { gap: 14px; }
  .fm-model-path li { font-size: 12px; }
  .fm-price-summary { padding: 20px; }
  .fm-price-summary h3 { font-size: 20px; }
  .fm-price-summary dt { font-size: 13px; }
  .fm-price-summary dd { font-size: 15px; }
  .fm-mini-fields { gap: 14px; }
  .fm-mini-fields--rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-mini-result { padding: 22px; }
  .fm-section-actions > a, .fm-model-dialog-actions > a { width: 100%; }
  .fm-model-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
  .fm-model-dialog-inner { padding: 24px 20px; }
  .fm-model-dialog h2 { font-size: 25px; }
  .fm-model-details li { padding-left: 40px; }
  .compare-copy .fm-legacy-heading { font-size: 30px !important; line-height: 1.12 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-model-card { transition: none; }
}

/* Keep section titles consistent despite the older page-specific overrides. */
body.fm-home-page :is(.fm-home-heading, .fm-added-heading, .section-head, .calc-head-v3, .security-head, .rating-card-v3, .faq-grid, .footer-cta) h2,
body.fm-home-page .compare-copy .fm-legacy-heading {
  font-family: "Onest", system-ui, sans-serif !important;
  font-size: 38px !important;
  font-weight: 850 !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  overflow-wrap: break-word;
}
.fm-lead-telegram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid #007db7;
  border-radius: 8px;
  background: #007db7;
  color: #fff !important;
  font: 800 16px/1.4 "Manrope", system-ui, sans-serif;
  text-align: center;
  text-decoration: none !important;
}
.fm-lead-telegram svg { flex: 0 0 24px; width: 24px; height: 24px; fill: currentColor; }
.fm-lead-telegram span { min-width: 0; }
.fm-lead-telegram:hover { background: #006697; border-color: #006697; }
.fm-lead-telegram:focus-visible { outline: 3px solid #171814; outline-offset: 3px; }
@media (max-width: 900px) {
  body.fm-home-page :is(.fm-home-heading, .fm-added-heading, .section-head, .calc-head-v3, .security-head, .rating-card-v3, .faq-grid, .footer-cta) h2,
  body.fm-home-page .compare-copy .fm-legacy-heading { font-size: 28px !important; }
}
@media (max-width: 390px) {
  body.fm-home-page :is(.fm-home-heading, .fm-added-heading, .section-head, .calc-head-v3, .security-head, .rating-card-v3, .faq-grid, .footer-cta) h2,
  body.fm-home-page .compare-copy .fm-legacy-heading { font-size: 24px !important; }
}
