@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #172e4a;
  --blue-deep: #10243a;
  --orange: #ef8237;
  --orange-soft: #fff0e7;
  --cream: #fffdeb;
  --green: #c0e29a;
  --ink: #1e1e1e;
  --muted: #667386;
  --line: #e5e7e5;
  --white: #ffffff;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell { overflow: hidden; }
.site-header, main, .site-footer { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 24px; }
.brand img { display: block; width: 188px; height: auto; }
.header-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(239,130,55,.13); }

.hero { position: relative; display: flex; justify-content: space-between; min-height: 314px; padding: 57px 72px 49px; border-radius: 28px; color: var(--cream); background: var(--blue); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -88px; top: -190px; border-radius: 50%; border: 1px solid rgba(255,253,235,.12); box-shadow: 0 0 0 44px rgba(255,253,235,.025), 0 0 0 88px rgba(255,253,235,.02); }
.hero::after { content: ""; position: absolute; z-index: -1; right: 310px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: rgba(192,226,154,.06); }
.hero-copy { max-width: 640px; }
.eyebrow, .section-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--green); }
.eyebrow-line { width: 31px; height: 2px; background: var(--orange); }
h1 { margin: 18px 0 15px; font-size: clamp(40px, 5vw, 66px); line-height: .99; letter-spacing: -.065em; font-weight: 700; }
h1 em { color: var(--green); font-style: normal; }
.hero-description { max-width: 505px; margin: 0; color: rgba(255,253,235,.75); font-size: 15px; line-height: 1.65; }
.trust-row { display: flex; gap: 25px; margin-top: 28px; color: rgba(255,253,235,.9); font-size: 12px; font-weight: 700; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-icon { justify-content: center; width: 17px; height: 17px; border-radius: 50%; color: var(--blue); background: var(--green); font-size: 11px; }
.hero-mark { display: flex; align-items: center; justify-content: center; width: 166px; height: 166px; align-self: center; border-radius: 50%; background: rgba(255,253,235,.08); }
.hero-mark img { width: 112px; opacity: .93; }

.simulator-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; margin-top: 22px; }
.card { border-radius: 22px; }
.input-card { padding: 34px 37px 27px; background: var(--white); border: 1px solid rgba(23,46,74,.07); box-shadow: 0 13px 35px rgba(23,46,74,.06); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 31px; }
.section-kicker { color: var(--orange); }
.section-kicker.light { color: var(--green); }
h2 { margin: 7px 0 0; color: var(--blue); font-size: 25px; letter-spacing: -.045em; font-weight: 750; }
.step-badge { padding: 7px 11px; border-radius: 999px; color: var(--blue); background: var(--orange-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.field-group { margin-bottom: 26px; }
label { display: block; margin-bottom: 10px; color: var(--blue); font-size: 12px; font-weight: 800; }
.money-input { display: flex; align-items: center; gap: 7px; height: 57px; padding: 0 16px; border: 1.5px solid #d8dedb; border-radius: 12px; transition: border .2s, box-shadow .2s; }
.money-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(239,130,55,.12); }
.money-input.invalid { border-color: #c1542c; box-shadow: 0 0 0 4px rgba(193,84,44,.1); }
.money-input > span { color: var(--orange); font-size: 16px; font-weight: 800; }
.money-input input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--blue); background: transparent; font-size: 21px; font-weight: 750; letter-spacing: -.03em; }
.field-help, .field-error { min-height: 17px; margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.field-error { color: #c1542c; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row label { margin-bottom: 10px; }
.label-row output { color: var(--orange); font-size: 13px; font-weight: 800; }
.term-options { display: flex; gap: 8px; margin-top: 18px; }
.term-options button { flex: 1; height: 39px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--white); font-size: 12px; font-weight: 750; transition: .2s; }
.term-options button:hover, .term-options button.selected { color: var(--blue); border-color: var(--blue); background: #f2f7f1; }
.term-options button.selected { box-shadow: inset 0 -3px 0 var(--green); }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; border-radius: 11px; font-size: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { height: 53px; margin-top: 4px; color: var(--white); background: var(--orange); box-shadow: 0 10px 18px rgba(239,130,55,.2); }
.primary-button:hover { background: #db702b; transform: translateY(-2px); box-shadow: 0 13px 22px rgba(239,130,55,.27); }
.primary-button:disabled { cursor: not-allowed; color: rgba(255,255,255,.62); background: #c7c9c4; box-shadow: none; transform: none; }
.primary-button span { font-size: 19px; line-height: 0; }
.secure-note { display: flex; justify-content: center; gap: 7px; margin: 14px 0 0; color: #9ca4ad; font-size: 10px; }

.result-card { position: relative; min-height: 402px; padding: 34px 38px 27px; color: var(--cream); background: var(--blue); box-shadow: 0 13px 35px rgba(23,46,74,.15); overflow: hidden; }
.result-card::after { content: ""; position: absolute; right: -85px; bottom: -110px; width: 270px; height: 270px; border-radius: 50%; border: 1px solid rgba(192,226,154,.18); box-shadow: 0 0 0 27px rgba(192,226,154,.04), 0 0 0 54px rgba(192,226,154,.03); }
.result-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.result-pill { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(192,226,154,.3); border-radius: 999px; color: var(--green); font-size: 10px; font-weight: 800; }
.light-dot { width: 6px; height: 6px; background: var(--green); box-shadow: none; }
.result-label { position: relative; z-index: 1; margin: 33px 0 5px; color: rgba(255,253,235,.68); font-size: 12px; }
.result-value { position: relative; z-index: 1; color: var(--green); font-size: clamp(37px, 5vw, 53px); font-weight: 750; letter-spacing: -.075em; line-height: 1.08; }
.result-subtitle { position: relative; z-index: 1; margin: 8px 0 0; color: rgba(255,253,235,.65); font-size: 12px; }
.result-subtitle strong { color: var(--cream); }
.result-divider { position: relative; z-index: 1; height: 1px; margin: 27px 0 17px; background: rgba(255,253,235,.14); }
.result-only-note { position: relative; z-index: 1; margin: 0; color: rgba(255,253,235,.6); font-size: 11px; line-height: 1.6; }

.legal-note { display: flex; align-items: flex-start; gap: 11px; margin: 30px auto 0; padding: 0 6px; color: #7d858a; }
.legal-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 17px; height: 17px; border: 1px solid #b6bdba; border-radius: 50%; font-size: 10px; font-weight: 800; }
.legal-note p { margin: 0; font-size: 10px; line-height: 1.7; }
.site-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 42px; padding: 22px 0 27px; border-top: 1px solid rgba(23,46,74,.11); color: var(--muted); font-size: 11px; }
.site-footer img { width: 95px; }
.toast { position: fixed; z-index: 5; right: 24px; bottom: 24px; padding: 12px 17px; border-radius: 10px; color: var(--white); background: var(--blue); box-shadow: 0 8px 30px rgba(23,46,74,.24); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 560px); }
  .site-header { padding-top: 21px; }
  .brand img { width: 155px; }
  .hero { min-height: 0; padding: 39px 27px 32px; border-radius: 21px; }
  .hero-mark { position: absolute; right: 23px; top: 22px; width: 69px; height: 69px; }
  .hero-mark img { width: 46px; }
  .hero-copy { max-width: 100%; }
  .hero-description { max-width: 80%; font-size: 13px; }
  .trust-row { flex-direction: column; gap: 9px; margin-top: 22px; }
  h1 { max-width: 75%; font-size: 43px; }
  .simulator-grid { grid-template-columns: 1fr; }
  .input-card, .result-card { padding: 27px 23px 23px; }
  .result-card { min-height: 0; }
  .result-value { font-size: 46px; }
  .insight-card { min-height: 0; }
  .legal-note { margin-top: 24px; }
  .site-footer { margin-top: 30px; }
}

@media (max-width: 400px) {
  .header-note { font-size: 10px; }
  .hero-description { max-width: 100%; }
  h1 { max-width: 100%; }
  .hero-mark { opacity: .35; }
}
