.ecm-fv-app {
  --ecm-bg: #f8fafc;
  --ecm-ink: #0f172a;
  --ecm-muted: #64748b;
  --ecm-border: rgba(15, 23, 42, 0.08);
  --ecm-card: rgba(255, 255, 255, 0.92);
  --ecm-radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ecm-ink);
  background: linear-gradient(135deg, #f8fafc 0%, #eef7ff 45%, #f1fdf4 100%);
  border: 1px solid var(--ecm-border);
  border-radius: 34px;
  padding: clamp(20px, 4vw, 42px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.ecm-fv-app *,
.ecm-fv-app *::before,
.ecm-fv-app *::after {
  box-sizing: border-box;
  min-width: 0;
}

.ecm-fv-app,
.ecm-fv-app * {
  overflow-wrap: anywhere;
  word-break: normal;
}

.ecm-fv-app canvas {
  max-width: 100%;
}

.ecm-fv-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.ecm-fv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  background: #dcfce7;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ecm-fv-hero h2 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: .98;
  letter-spacing: -0.05em;
}

.ecm-fv-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--ecm-muted);
  font-size: 17px;
  line-height: 1.55;
}

.ecm-fv-hero-icon {
  min-width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(135deg, #facc15, #fb923c);
  font-size: 48px;
  box-shadow: 0 20px 42px rgba(251, 146, 60, .28);
}

.ecm-fv-grid {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ecm-fv-panel,
.ecm-fv-card {
  background: var(--ecm-card);
  border: 1px solid rgba(255,255,255,.70);
  border-radius: var(--ecm-radius);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.ecm-fv-panel { padding: 22px; }

.ecm-fv-left-column {
  display: grid;
  gap: 22px;
  align-content: start;
}

.ecm-fv-left-box {
  width: 100%;
}

.ecm-fv-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ecm-fv-panel-title span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  border-radius: 15px;
  font-size: 21px;
}

.ecm-fv-panel-title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}

.ecm-fv-form label { display: block; margin: 0 0 14px; }
.ecm-fv-form label span { display: block; color: #475569; font-size: 13px; font-weight: 700; margin-bottom: 7px; }

.ecm-fv-form input {
  width: 100%;
  appearance: textfield;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 17px;
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 750;
  color: var(--ecm-ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ecm-fv-form input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .13);
}

.ecm-fv-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ecm-fv-reset {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
  padding: 14px 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ecm-fv-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .20);
}

.ecm-fv-results { display: grid; gap: 22px; }
.ecm-fv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.ecm-fv-card {
  min-height: 162px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ecm-fv-card::after {
  content: "";
  position: absolute;
  inset: auto -26px -34px auto;
  width: 110px;
  height: 110px;
  border-radius: 30px;
  background: rgba(255,255,255,.30);
  transform: rotate(16deg);
}

.ecm-fv-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.45);
  font-size: 27px;
}

.ecm-fv-card small {
  color: rgba(15, 23, 42, .68);
  font-weight: 800;
  line-height: 1.25;
}

.ecm-fv-card strong {
  display: block;
  max-width: 100%;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -.05em;
}

.ecm-fv-card-sun { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.ecm-fv-card-green { background: linear-gradient(135deg, #bbf7d0, #22c55e); }
.ecm-fv-card-blue { background: linear-gradient(135deg, #bfdbfe, #60a5fa); }
.ecm-fv-card-violet { background: linear-gradient(135deg, #ddd6fe, #a78bfa); }

.ecm-fv-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.ecm-fv-feature {
  position: relative;
  overflow: hidden;
}

.ecm-fv-feature-center {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(237, 249, 255, .92) 100%);
}

.ecm-fv-feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ecm-fv-feature-icon {
  margin: 14px auto 10px;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fef3c7, #bae6fd);
  font-size: 38px;
}

.ecm-fv-feature h3 {
  margin: 14px 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.ecm-fv-feature-amount {
  margin: 6px 0 18px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.06em;
}

.ecm-fv-equation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.ecm-fv-equation > div,
.ecm-fv-flow-item {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 22px;
  padding: 16px;
}

.ecm-fv-equation span,
.ecm-fv-flow-item span,
.ecm-fv-flow-total span,
.ecm-fv-breakdown-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ecm-fv-equation strong,
.ecm-fv-flow-item strong,
.ecm-fv-flow-total strong,
.ecm-fv-breakdown-grid strong {
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -.03em;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ecm-fv-operator {
  font-size: 24px;
  font-weight: 900;
  color: #94a3b8;
  margin-bottom: 0 !important;
  text-align: center;
  line-height: 1;
}

.ecm-fv-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 14px;
}

.ecm-fv-flow-item.plus {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.ecm-fv-flow-item.minus {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.ecm-fv-flow-total {
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  padding: 18px;
}

.ecm-fv-flow-total strong {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1;
  display: block;
}

.ecm-fv-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ecm-fv-breakdown-grid div {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  padding: 15px;
}

.ecm-fv-note {
  color: #64748b;
  margin: 15px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.ecm-fv-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.ecm-fv-chart-panel { min-height: 360px; }
.ecm-fv-payback-section {
  margin-top: 26px;
}
.ecm-fv-payback-panel-full {
  width: 100%;
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(241, 248, 255, .98) 100%);
}
.ecm-fv-payback-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.ecm-fv-payback-summary div {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5edf5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.ecm-fv-payback-summary span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ecm-fv-payback-summary strong {
  display: block;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1;
  letter-spacing: -.05em;
  color: #0f172a;
}
.ecm-fv-payback-wide-wrap {
  width: 100%;
  min-height: 720px;
  height: clamp(700px, 56vw, 860px);
  overflow: visible;
}
.ecm-fv-payback-wide-wrap-full {
  min-height: 760px;
  height: clamp(760px, 60vw, 920px);
  padding: 20px 18px 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e6edf5;
}
.ecm-fv-chart-payback {
  width: 100% !important;
  height: 100% !important;
  max-height: none;
}
.ecm-fv-chart { width: 100% !important; max-height: 420px; }
.ecm-fv-payback-total-box {
  margin-top: 22px;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 32px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0 45%, #fef3c7 100%);
  border: 2px solid rgba(22, 163, 74, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 18px 38px rgba(22, 163, 74, .12);
}
.ecm-fv-payback-total-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.ecm-fv-payback-total-box span {
  display: block;
  color: #166534;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ecm-fv-payback-total-box strong {
  display: block;
  color: #0f172a;
  font-size: clamp(46px, 7vw, 94px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 950;
}
.ecm-fv-payback-total-box small {
  display: block;
  max-width: 860px;
  color: #166534;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.ecm-fv-chart-caption {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.ecm-fv-card strong,
.ecm-fv-feature-amount,
.ecm-fv-flow-total strong,
.ecm-fv-equation strong,
.ecm-fv-flow-item strong,
.ecm-fv-breakdown-grid strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ecm-fv-feature,
.ecm-fv-card,
.ecm-fv-panel,
.ecm-fv-flow-item,
.ecm-fv-equation > div,
.ecm-fv-breakdown-grid div {
  overflow: hidden;
}

.ecm-fv-feature h3,
.ecm-fv-chart-caption,
.ecm-fv-note,
.ecm-fv-card small,
.ecm-fv-panel-title h3 {
  max-width: 100%;
}

@media (max-width: 980px) {
  .ecm-fv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ecm-fv-highlight-grid,
  .ecm-fv-breakdown-grid,
  .ecm-fv-flow-grid,
  .ecm-fv-equation,
  .ecm-fv-chart-grid,
  .ecm-fv-payback-summary {
    grid-template-columns: 1fr;
  }

  .ecm-fv-operator { text-align: center; }
}

@media (max-width: 680px) {
  .ecm-fv-app { border-radius: 24px; padding: 18px; }
  .ecm-fv-hero { align-items: flex-start; }
  .ecm-fv-hero-icon { display: none; }
  .ecm-fv-cards,
  .ecm-fv-two-cols,
  .ecm-fv-breakdown-grid,
  .ecm-fv-flow-grid,
  .ecm-fv-highlight-grid,
  .ecm-fv-payback-summary { grid-template-columns: 1fr; }
}


.ecm-fv-chart-panel,
.ecm-fv-chart-panel .ecm-fv-payback-wide-wrap {
  overflow: visible;
}

@media (max-width: 680px) {
  .ecm-fv-payback-wide-wrap,
  .ecm-fv-payback-wide-wrap-full {
    min-height: 780px;
    height: 780px;
    padding: 14px 6px 10px;
  }
  .ecm-fv-payback-total-box strong {
    font-size: clamp(38px, 13vw, 62px);
  }
  .ecm-fv-payback-total-box small {
    font-size: 14px;
  }
}
