/* Homepage-only hero. Namespaced to protect the rest of FinMathly. */
.fmh-hero{position:relative;isolation:isolate;overflow:hidden;color:#f6fbfc;background:#092a37;background-image:radial-gradient(ellipse at 85% 25%,#15544f 0,transparent 48%),linear-gradient(115deg,#092a37 25%,#103d46 100%);border-bottom:1px solid #1d4953;padding:62px 0 42px}
.fmh-hero::before{content:"";position:absolute;z-index:-1;inset:0 0 0 43%;pointer-events:none;opacity:.22;background-image:linear-gradient(#7ccec01f 1px,transparent 1px),linear-gradient(90deg,#7ccec01f 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(90deg,transparent,#000)}
.fmh-hero::after{content:"";position:absolute;z-index:-1;width:650px;height:650px;border:1px solid #90dacf16;border-radius:50%;right:-330px;top:180px;box-shadow:0 0 0 65px #90dacf08,0 0 0 130px #90dacf05;pointer-events:none}
.fmh-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);align-items:center;gap:64px}
.fmh-copy,.fmh-demo{min-width:0}
.fmh-hero .fmh-eyebrow{display:flex;align-items:center;gap:10px;color:#a9d8d1;font:650 11px/1.6 Inter,'Segoe UI',sans-serif;letter-spacing:.13em;margin:0 0 24px}
.fmh-status-dot{width:7px;height:7px;border-radius:50%;background:#65dfc8;box-shadow:0 0 0 5px #65dfc812;flex:0 0 7px}
.fmh-hero h1{font-family:var(--heading,Manrope,'Segoe UI',sans-serif);font-size:clamp(44px,4.8vw,68px);line-height:1.09;letter-spacing:-.055em;font-weight:650;margin:0 0 26px;color:#f8fcfd}
.fmh-hero h1 span{color:#80e7d2}
.fmh-description{max-width:455px;color:#c1d4d9;font-size:16px;line-height:1.8;margin:0 0 28px}
.fmh-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px}
.fmh-hero .fmh-cta{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:52px;padding:13px 20px;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:650;line-height:1.5;text-decoration:none;white-space:nowrap}
.fmh-cta svg{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fmh-hero .fmh-cta-primary{background:#1dc2a8;border-color:#1dc2a8;color:#062c30;box-shadow:0 4px 14px #00000012}
.fmh-hero .fmh-cta-secondary{background:#ffffff04;border-color:#5b7e87;color:#f4fafb}
.fmh-hero a:focus-visible,.fmh-hero #fmh-calculator:focus-visible{outline:3px solid #a5f5e5;outline-offset:5px}
.fmh-trust{display:flex;flex-wrap:wrap;gap:9px 20px;list-style:none;padding:0;margin:0;color:#c1d4d9;font-size:11px;line-height:1.6}
.fmh-trust li{display:flex;align-items:center;gap:6px}
.fmh-trust svg{width:15px;height:15px;stroke:#80e7d2;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fmh-shortcuts{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;border-top:1px solid #47727b6b;margin-top:34px;padding-top:20px;max-width:460px}
.fmh-shortcuts>span{color:#abc4ca;font-size:9px;font-weight:650;letter-spacing:.12em}
.fmh-shortcuts a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:#d3e3e6;text-decoration:underline;text-decoration-color:#648d93;text-underline-offset:5px}
.fmh-demo{position:relative}
.fmh-demo-heading{display:flex;align-items:center;gap:13px;margin:0 0 16px}
.fmh-demo-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;color:#80e7d2;border:1px solid #648d9366;border-radius:10px;background:#ffffff06}
.fmh-demo-icon svg{width:21px;height:21px}
.fmh-demo-heading p{font-size:9px;letter-spacing:.12em;font-weight:600;color:#a9d8d1;line-height:1.5;margin:0 0 3px}
.fmh-demo-heading h2{font-size:16px;line-height:1.45;letter-spacing:-.02em;font-weight:600;color:#eff8f9;margin:0}
.fmh-demo-card{background:#fff;border:1px solid #d2e5e1;border-radius:16px;box-shadow:0 24px 64px #001b2c4d;overflow:hidden;scroll-margin-top:105px}
.fmh-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 20px;background:#edf7f4;border-bottom:1px solid #dce9e5;color:#204a50;font-size:12px;font-weight:650}
.fmh-live{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:500;color:#28675b;white-space:nowrap}
.fmh-live i{width:6px;height:6px;background:#087f77;border-radius:50%}
.fmh-hero .fm-calculator{display:block;border:0;border-radius:0;font-family:Inter,'Segoe UI',Arial,sans-serif;animation:none!important}
.fmh-hero .fm-input-panel{padding:16px 20px 14px}
.fmh-hero .panel-heading{margin-bottom:10px}
.fmh-hero .panel-heading .eyebrow,.fmh-hero .currency-label{font-size:9px}
.fmh-hero .fm-fields{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 12px}
.fmh-hero .fm-field{grid-column:span 2}
.fmh-hero .fm-field:nth-child(-n+2){grid-column:span 3}
.fmh-hero .fm-field label{font-size:10px;line-height:1.5;margin-bottom:5px;color:#3f5966}
.fmh-hero .fm-input-wrap input,.fmh-hero .fm-input-wrap select{min-height:44px;padding-top:9px;padding-bottom:9px;border-color:#b1c4c9;border-radius:6px;background:#fcfefe;font-size:14px}
.fmh-hero .fm-input-wrap select{font-size:12px}
.fmh-hero .fm-form-actions{margin-top:12px;gap:16px}
.fmh-hero .fm-form-actions .button{min-height:44px;background:#103e4c;border-color:#103e4c;border-radius:6px}
.fmh-hero .fm-form-actions .text-button{min-height:44px;min-width:44px}
.fmh-hero .fm-input-panel>.fine-print{display:none}
.fmh-hero .fm-output-panel{background:#f4faf7;border-left:0;border-top:1px solid #deebe5;padding:18px 20px 14px}
.fmh-hero .fm-results{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);gap:12px}
.fmh-hero .primary-result{grid-column:auto;padding:0;border:0}
.fmh-hero .primary-result .result-value{font-size:28px;line-height:1.2;color:#0e534c;letter-spacing:-1px}
.fmh-hero .result-value{font-size:14px}
.fmh-hero .result-label,.fmh-hero .primary-result .result-label{font-size:9px;line-height:1.4;margin-bottom:6px;color:#4b655f}
.fmh-hero .fm-chart{margin-top:12px}
.fmh-hero .fm-chart svg{max-height:105px}
.fmh-hero .chart-title,.fmh-hero .chart-legend{font-size:9px;line-height:1.5;color:#4b655f}
.fmh-hero .fm-output-panel>.fine-print{font-size:9px;line-height:1.6;margin-top:9px;color:#4b655f}
.fmh-hero .fm-details{padding:0 20px;border-color:#deebe5}
.fmh-hero .fm-details summary{padding:12px 0;min-height:44px;font-size:11px;color:#314f58}
.fmh-hero .fm-details[open]{padding-bottom:16px}
.fmh-hero .fm-table{margin-top:0}
.fmh-demo-note{display:flex;justify-content:center;align-items:center;gap:7px;color:#b7d1d5;font-size:10px;line-height:1.6;margin:14px 0 0}
.fmh-demo-note svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@keyframes fmh-enter{from{opacity:.2;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 .fmh-reveal{animation:fmh-enter 500ms cubic-bezier(.2,.7,.2,1) both}
 .fmh-copy h1{animation-delay:50ms}.fmh-description{animation-delay:100ms}.fmh-actions{animation-delay:150ms}.fmh-trust{animation-delay:190ms}.fmh-shortcuts{animation-delay:230ms}.fmh-demo{animation-delay:120ms}
 .fmh-hero .fmh-cta,.fmh-hero .fm-form-actions .button{transition:transform 180ms ease,box-shadow 180ms ease,background-color 180ms ease,border-color 180ms ease}
 .fmh-cta svg{transition:transform 180ms ease}
}
@media(hover:hover){
 .fmh-hero .fmh-cta-primary:hover{background:#39d6bd;border-color:#39d6bd;box-shadow:0 6px 24px #1dc2a82b}
 .fmh-hero .fmh-cta-secondary:hover{background:#ffffff0d;border-color:#9fc3ca}
 .fmh-shortcuts a:hover{color:#96f1de;text-decoration-color:currentColor}
 .fmh-hero .fm-form-actions .button:hover{background:#1c5968;border-color:#1c5968}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.fmh-cta:hover{transform:translateY(-2px)}.fmh-cta:hover svg{transform:translateX(2px)}.fmh-cta:active{transform:translateY(0)}}
@media(min-width:1500px){.fmh-hero{padding-top:80px;padding-bottom:60px}}
@media(max-width:1150px) and (min-width:901px){.fmh-grid{gap:32px;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}.fmh-hero h1{font-size:54px}.fmh-description{font-size:15px}.fmh-hero .fmh-cta{font-size:12px;padding:12px 16px;gap:12px}.fmh-hero .fm-results{grid-template-columns:1fr 1fr}.fmh-hero .primary-result{grid-column:1/-1}.fmh-hero .fm-field label{font-size:9px}.fmh-demo-heading h2{font-size:14px}}
@media(max-width:900px){.fmh-hero{padding:52px 0 36px}.fmh-grid{grid-template-columns:minmax(0,1fr);gap:38px;max-width:680px}.fmh-hero h1{font-size:clamp(42px,7.5vw,62px);max-width:630px}.fmh-desktop-break{display:none}.fmh-description{max-width:540px}.fmh-shortcuts{max-width:none;margin-top:26px;padding-top:14px}.fmh-demo-heading{margin-bottom:14px}.fmh-demo{width:100%}.fmh-hero .fm-chart svg{max-height:135px}}
@media(max-width:560px){.fmh-hero{padding:38px 0 28px}.fmh-grid{gap:30px}.fmh-hero .fmh-eyebrow{font-size:9px;letter-spacing:.09em;margin-bottom:21px}.fmh-hero h1{font-size:clamp(39px,10vw,54px);line-height:1.12;letter-spacing:-.05em;margin-bottom:20px}.fmh-description{font-size:14px;line-height:1.8;margin-bottom:24px}.fmh-actions{gap:10px;margin-bottom:19px}.fmh-hero .fmh-cta{padding:13px 14px;gap:10px;font-size:12px;flex:1 1 auto;min-height:50px}.fmh-trust{gap:8px 14px;font-size:10px}.fmh-shortcuts{gap:3px 18px;margin-top:24px;padding-top:13px}.fmh-shortcuts>span{font-size:8px}.fmh-shortcuts a{font-size:11px}.fmh-demo-heading h2{font-size:14px}.fmh-demo-heading p{font-size:8px}.fmh-demo-card{border-radius:12px}.fmh-card-heading{padding:13px 16px}.fmh-hero .fm-input-panel,.fmh-hero .fm-output-panel{padding:16px}.fmh-hero .fm-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fmh-hero .fm-field,.fmh-hero .fm-field:nth-child(-n+2){grid-column:auto}.fmh-hero .fm-field:last-child{grid-column:1/-1}.fmh-hero .fm-field label{font-size:10px}.fmh-hero .fm-input-wrap input,.fmh-hero .fm-input-wrap select{font-size:16px}.fmh-hero .fm-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.fmh-hero .primary-result{grid-column:1/-1}.fmh-hero .primary-result .result-value{font-size:32px}.fmh-hero .result-label,.fmh-hero .primary-result .result-label{font-size:10px}.fmh-hero .fm-chart svg{max-height:none}.fmh-hero .fm-details{padding-left:16px;padding-right:16px}.fmh-demo-note{font-size:9px}}
@media(max-width:359px){.fmh-hero h1{font-size:37px}.fmh-hero .fmh-cta{width:100%;justify-content:space-between}.fmh-shortcuts{gap:2px 16px}.fmh-shortcuts>span{width:100%}.fmh-trust{gap:7px 12px}.fmh-hero .fm-fields{grid-template-columns:minmax(0,1fr)}.fmh-demo-heading p{letter-spacing:.08em}}
@media(prefers-reduced-motion:reduce){.fmh-hero *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.fmh-hero{background:#fff;color:#14283e;padding:20px 0}.fmh-hero::before,.fmh-hero::after,.fmh-copy,.fmh-demo-heading,.fmh-demo-note{display:none}.fmh-grid{display:block}.fmh-demo-card{border:0;box-shadow:none}.fmh-hero .fm-calculator{break-inside:auto}}
