
*{box-sizing:border-box}
:root{
  --prax:#e11d2e;
  --prax2:#ef4444;
  --ink:#171923;
  --muted:#667085;
  --line:#e5e7eb;
  --soft:#fff1f2;
  --paper:#f8fafc;
  --success:#15803d;
  --danger:#c62828;
  --shadow:0 18px 50px rgba(15,23,42,.08);
}
html{scroll-behavior:smooth}
body.finance-tool-page{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,#fff 0,#fff8f8 44%,#f8fafc 100%);
  color:var(--ink);
  line-height:1.65;
}
a{color:inherit;text-decoration:none}
a:hover{color:var(--prax)}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  height:70px;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 14px rgba(15,23,42,.05);
}
.header-inner{
  width:min(1120px,calc(100% - 28px));
  height:100%;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.brandHome{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--ink);
  text-decoration:none;
}
.brandLogo{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--prax),#b91c1c);
  color:#fff;
  font-weight:950;
  font-size:20px;
  box-shadow:0 8px 20px rgba(225,29,46,.20);
}
.brandText{font-size:19px;font-weight:850;letter-spacing:-.2px}
.brandSection{
  padding-left:10px;
  border-left:1px solid var(--line);
  color:var(--prax);
  font-size:14px;
  font-weight:850;
  white-space:nowrap;
}
.header-nav{display:flex;align-items:center;gap:18px}
.header-nav a{font-size:13px;font-weight:750;color:#475467}
.header-nav a:hover{color:var(--prax)}

.wrap{width:min(1120px,calc(100% - 28px));margin:auto}
.hero{text-align:center;padding:50px 0 26px}
.eyebrow{
  display:inline-flex;
  padding:6px 11px;
  border-radius:999px;
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#be123c;
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.hero h1{
  margin:14px auto 10px;
  max-width:900px;
  font-size:clamp(30px,5vw,46px);
  line-height:1.08;
  letter-spacing:-.9px;
  color:#111827;
}
.hero p{
  max-width:760px;
  margin:0 auto;
  color:var(--muted);
  font-size:15px;
}

.tool-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);
  gap:22px;
  align-items:start;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
}
.tool-grid>.card:first-child{border-top:5px solid var(--prax)}
.tool-grid>aside.card{border-top:5px solid var(--prax)}
.card-pad{padding:clamp(18px,3vw,26px)}
.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.section-title h2{margin:0;font-size:18px;color:#1f2937}
.muted{color:var(--muted);font-size:12px;font-weight:700}

.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:13px;font-weight:800;color:#344054}
input,select,button{font:inherit}
input,select{
  width:100%;
  min-height:44px;
  padding:11px 12px;
  border:1px solid #d8dde6;
  border-radius:10px;
  background:#fff;
  color:#111827;
  outline:0;
  transition:.18s ease;
}
input:focus,select:focus{
  border-color:#ef9aa4;
  box-shadow:0 0 0 3px rgba(225,29,46,.10);
}
.inline-help{font-size:12px;color:var(--muted)}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:10px;
  align-items:end;
  padding:13px;
  margin-bottom:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafbfc;
}
button,.btn{
  border:1px solid #d8dde6;
  background:#fff;
  color:#344054;
  border-radius:10px;
  padding:10px 13px;
  cursor:pointer;
  font-weight:750;
  transition:.18s ease;
}
button:hover,.btn:hover{
  border-color:var(--prax);
  color:var(--prax);
  background:var(--soft);
  transform:translateY(-1px);
}
.btn-primary{
  color:#fff!important;
  background:linear-gradient(135deg,var(--prax),#c91829)!important;
  border-color:var(--prax)!important;
  box-shadow:0 7px 18px rgba(225,29,46,.18)!important;
}
.btn-soft{
  color:#b42335;
  background:#fff1f2;
  border-color:#fecdd3;
}
.btn-light{background:#f8fafc}
.btn-danger{
  color:#b42335;
  background:#fff;
  border-color:#fecdd3;
}
.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}

.results{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}
.result{
  min-width:0;
  padding:15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fafbfc;
}
.result small{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.result strong{
  display:block;
  color:#111827;
  font-size:20px;
  line-height:1.25;
  word-break:break-word;
}
.result.highlight{
  background:#fff1f2;
  border-color:#fecdd3;
}
.result.highlight strong{color:#b42335}
.result.good strong{color:var(--success)}
.result.bad strong{color:var(--danger)}

.kpi-note{margin:12px 0;color:var(--muted);font-size:12px}
.notice{
  margin-top:13px;
  padding:14px 16px;
  border:1px solid #fed7aa;
  border-left:4px solid #f97316;
  border-radius:12px;
  background:#fff7ed;
  color:#7c2d12;
  font-size:12px;
}

.content{margin:40px auto 52px}
.content .card{margin-bottom:18px}
.content .card-pad{padding:clamp(20px,4vw,32px)}
.content h2{
  margin:0 0 10px;
  font-size:clamp(21px,3vw,27px);
  line-height:1.3;
  color:#111827;
}
.content p,.content li{color:#475467}
.steps{padding-left:21px}
.faq details{border-bottom:1px solid var(--line);padding:14px 0}
.faq details:last-child{border-bottom:0}
.faq summary{cursor:pointer;font-weight:800;color:#344054}
.faq details p{margin:8px 0 0}

.site-footer{
  margin-top:44px;
  background:#171923;
  color:#fff;
}
.footer-inner{
  width:min(1120px,calc(100% - 28px));
  margin:auto;
  padding:24px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.footer-inner span{color:#aeb2bf;font-size:12px}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{color:#dfe1e8;font-size:12px}
.footer-links a:hover{color:#fff}
.footer-bottom{
  border-top:1px solid #2a2d35;
  padding:12px 14px;
  text-align:center;
  color:#aeb2bf;
  font-size:12px;
}

@media(max-width:900px){
  .brandText{display:inline}
  .header-nav{gap:12px}
  .tool-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .site-header{height:64px}
  .header-inner{width:min(100% - 20px,1120px)}
  .brandLogo{width:36px;height:36px}
  .brandSection{font-size:12px}
  .header-nav a:nth-child(3),.header-nav a:nth-child(4){display:none}
  .hero{padding:34px 0 20px}
  .card{border-radius:17px}
  .form-grid{grid-template-columns:1fr}
  .row{grid-template-columns:1fr 1fr}
  .row .remove-wrap{grid-column:1/-1}
  .row .remove-wrap .btn{width:100%}
  .content{margin-top:26px}
  .footer-inner{align-items:flex-start;flex-direction:column}
}
@media(max-width:460px){
  .header-nav{gap:9px}
  .header-nav a{font-size:12px}
  .brandSection{display:none}
  .results{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
  .row .remove-wrap{grid-column:auto}
  .hero h1{font-size:32px}
}
