Add interest income benefit calculator widget to hero

- New "✦ Calculate Your Interest Income Potential" button between hero CTAs
  with gradient border styling distinct from primary/ghost buttons
- Modal overlay collects: homesites, property type, annual dues + frequency,
  reserve fund balance, and 2025 actual interest income
- Conservative calculation model: 4.0% HYSA for operating cash, 4.25% CD
  ladder for 65% of investable reserves; operating multiplier varies by
  payment frequency (monthly 10%, quarterly 20%, annual 35%)
- Results screen shows animated dollar counter, operating vs reserve
  breakdown, AI-style narrative recommendation, and direct CTA to signup
- Modal closes on backdrop click or Escape key; CTA closes modal and
  scrolls to early access signup form

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-11 09:49:18 -04:00
parent 1563a183fb
commit ba9ddee99d
3 changed files with 436 additions and 0 deletions

View File

@@ -623,6 +623,223 @@ body {
color: var(--gray-700);
}
/* ---- Calculator CTA button ---- */
.btn-calc {
background: linear-gradient(135deg, rgba(79,70,229,0.25), rgba(14,165,233,0.2));
border: 1.5px solid rgba(99,102,241,0.6);
color: #c7d2fe;
position: relative;
overflow: hidden;
}
.btn-calc::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(79,70,229,0.4), rgba(14,165,233,0.3));
opacity: 0;
transition: opacity 0.2s;
}
.btn-calc:hover { color: #fff; border-color: rgba(99,102,241,0.9); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(79,70,229,0.3); }
.btn-calc:hover::before { opacity: 1; }
.btn-calc span, .btn-calc { position: relative; z-index: 1; }
/* ---- Calculator Modal ---- */
.calc-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.75);
backdrop-filter: blur(6px);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
}
.calc-overlay.open {
opacity: 1;
pointer-events: all;
}
.calc-modal {
background: var(--gray-800);
border: 1px solid rgba(99,102,241,0.35);
border-radius: var(--radius-lg);
padding: 44px 48px;
max-width: 700px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
position: relative;
box-shadow: 0 0 80px rgba(79,70,229,0.25), var(--shadow-lg);
transform: translateY(16px);
transition: transform 0.25s ease;
}
.calc-overlay.open .calc-modal { transform: translateY(0); }
.calc-close {
position: absolute;
top: 16px; right: 20px;
background: none;
border: none;
color: var(--gray-500);
font-size: 26px;
cursor: pointer;
line-height: 1;
padding: 4px 8px;
border-radius: 6px;
transition: color 0.15s, background 0.15s;
}
.calc-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.calc-header { margin-bottom: 28px; }
.calc-header h2 { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 8px; }
.calc-header p { font-size: 15px; color: var(--gray-400); }
.calc-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 8px;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 13px; font-weight: 600; color: var(--gray-400); }
.calc-field input,
.calc-field select {
background: var(--gray-900);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px;
padding: 11px 14px;
color: var(--gray-100);
font-size: 15px;
font-family: inherit;
width: 100%;
outline: none;
transition: border-color 0.15s;
-webkit-appearance: none;
}
.calc-field input:focus,
.calc-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.calc-field input::placeholder { color: var(--gray-700); }
.calc-field select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 14px center;
padding-right: 36px;
}
.calc-field select option { background: var(--gray-800); color: var(--gray-100); }
.input-prefix-wrap { position: relative; }
.input-prefix {
position: absolute;
left: 13px;
top: 50%;
transform: translateY(-50%);
color: var(--gray-600);
font-size: 15px;
font-weight: 600;
pointer-events: none;
}
.input-prefix-wrap input { padding-left: 28px; }
.calc-error {
color: #f87171;
font-size: 13px;
margin: 8px 0;
font-weight: 500;
}
.calc-submit-btn { width: 100%; justify-content: center; margin-top: 16px; }
.calc-fine {
font-size: 11px;
color: var(--gray-700);
text-align: center;
margin-top: 10px;
line-height: 1.5;
}
/* ── Results ── */
.result-highlight {
background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(14,165,233,0.12));
border: 1px solid rgba(79,70,229,0.4);
border-radius: var(--radius);
padding: 28px;
text-align: center;
margin-bottom: 20px;
}
.result-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--gray-500);
font-weight: 700;
margin-bottom: 10px;
}
.result-amount {
font-size: 52px;
font-weight: 900;
letter-spacing: -0.03em;
color: var(--green);
line-height: 1.1;
margin-bottom: 12px;
}
.result-comparison {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
font-size: 14px;
color: var(--gray-400);
}
.result-badge {
background: rgba(34,197,94,0.15);
border: 1px solid rgba(34,197,94,0.35);
color: var(--green);
padding: 3px 12px;
border-radius: 99px;
font-size: 13px;
font-weight: 700;
white-space: nowrap;
}
.result-breakdown {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.07);
border-radius: var(--radius);
padding: 16px 20px;
margin-bottom: 20px;
display: flex;
flex-direction: column;
gap: 10px;
}
.result-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
color: var(--gray-400);
}
.result-row-val { font-weight: 700; color: var(--gray-200); }
.calc-ai-bubble {
background: rgba(79,70,229,0.12);
border: 1px solid rgba(79,70,229,0.3);
border-radius: var(--radius);
padding: 18px 20px;
margin-bottom: 24px;
font-size: 14px;
color: var(--gray-200);
line-height: 1.65;
}
.calc-ai-bubble .ai-label {
display: block;
font-size: 11px;
font-weight: 700;
color: #a5b4fc;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 8px;
}
.calc-cta { text-align: center; }
.calc-cta > p { color: var(--gray-400); font-size: 15px; margin-bottom: 16px; }
.calc-cta-btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.calc-recalc { font-size: 14px; color: var(--gray-500); }
.calc-recalc:hover { color: var(--gray-200); }
/* ---- Screenshot Carousel ---- */
.screenshot-carousel {
width: 100%;