/* SNIPPET 2/3: calculator.css (create /calculator.css and paste this entire file) */

:root{
  --calc-blue:#0b3e74;
  --calc-blue2:#082f58;
  --calc-green:#12a150;
  --calc-red:#c0392b;
  --calc-muted:#566;
  --calc-border:#dde3ea;
}

/* Dark hero background + white left copy */
.calc-hero-wrap{
  padding: 7.5rem 1.5rem 3rem;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(22,219,147,.16), transparent 55%),
    radial-gradient(900px 500px at 80% 30%, rgba(11,62,116,.22), transparent 55%),
    linear-gradient(180deg, #0b3e74 0%, #072b4f 100%);
}
.calc-hero{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width: 980px){
  .calc-hero{ grid-template-columns: 1fr; }
  .calc-hero-wrap{ padding-top: 6.5rem; }
}

.calc-hero-copy h1{
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(2.0rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.calc-hero-copy p{
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 54ch;
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.calc-pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  padding: .55rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.calc-actions{
  display:flex;
  gap:.85rem;
  flex-wrap: wrap;
  margin-top: .6rem;
}
.calc-actions a{
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .9rem 1.15rem;
  border-radius: 12px;
  font-weight: 900;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .01em;
}
.calc-actions .btn-primary{
  background: #0a2f57;
  color:#fff;
  border: 1px solid rgba(255,255,255,.12);
}
.calc-actions .btn-secondary{
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}

/* Calculator card */
.js-leak-inner{
  background:#fff;
  border-radius:22px;
  padding:26px;
  text-align:center;
  position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.05);
}
.js-leak-kicker{
  display:inline-block;
  font-weight:900;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--calc-blue);
  background:rgba(11,62,116,.08);
  padding:8px 12px;
  border-radius:999px;
  margin-bottom:12px;
}
.js-leak-inner h2{
  font-size:22px;
  color:var(--calc-blue);
  margin:0 0 6px;
  font-family:"Outfit",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.js-leak-sub{
  margin:0 0 14px;
  color:var(--calc-muted);
  font-size:14px;
  font-family:"Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.js-leak-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:10px 0 10px;
  text-align:left;
}
@media(max-width:900px){ .js-leak-grid{ grid-template-columns:1fr; } }

.js-field{ display:flex; flex-direction:column; gap:6px; }
.js-field label{
  font-size:12px;
  color:#445;
  font-weight:800;
  font-family:"Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.js-field input,
.js-field textarea{
  padding:11px;
  border-radius:12px;
  border:1px solid var(--calc-border);
  font-size:14px;
  outline:none;
  font-family:"Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.js-field input:focus,
.js-field textarea:focus{
  border-color:var(--calc-blue);
  box-shadow:0 0 0 4px rgba(11,62,116,.10);
}
.js-field-full{ grid-column:1/-1; }

.js-sep{ height:1px; background:#eef2f7; margin:14px 0; }

.js-btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:6px;
}

.js-btn{
  background:var(--calc-blue);
  color:#fff;
  border:none;
  padding:14px 18px;
  font-size:15px;
  border-radius:14px;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:220px;
  position:relative;
  overflow:hidden;
  font-weight:900;
  font-family:"Outfit",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.js-btn:hover{ background:var(--calc-blue2); transform:translateY(-2px); }
.js-btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; }

.js-btn.secondary{ background:#eef2f7; color:var(--calc-blue); }
.js-btn.secondary:hover{ background:#e3eaf4; }

.js-spin{
  width:16px;height:16px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  display:none;
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.js-check{ display:none; font-weight:900; font-size:18px; line-height:1; }

.js-out,.js-recs,.js-status,.js-gatehint{
  opacity:0;
  transform:translateY(10px);
  transition:all .45s ease;
}
.js-out.show,.js-recs.show,.js-status.show,.js-gatehint.show{
  opacity:1;
  transform:translateY(0);
}

.js-out{
  margin-top:12px;
  font-size:16px;
  font-weight:900;
  text-align:center;
  font-family:"Outfit",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.js-urgency{
  margin-top:6px;
  font-size:12px;
  color:var(--calc-muted);
  font-weight:800;
  font-family:"Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.js-recs{ margin-top:10px; text-align:left; }
.js-rec{
  border:1px solid #e8eef6;
  border-radius:14px;
  padding:12px;
  margin:10px 0;
  background:#fbfdff;
}
.js-rec h3{
  margin:0 0 6px;
  color:var(--calc-blue);
  font-size:15px;
  font-family:"Outfit",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.js-rec p{
  margin:0;
  color:#445;
  font-size:13px;
  line-height:1.5;
  font-family:"Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.js-status{
  margin-top:10px;
  text-align:center;
  font-size:13px;
  color:var(--calc-muted);
  font-family:"Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.js-status .ok{ color:var(--calc-green); font-weight:900; }
.js-status .err{ color:var(--calc-red); font-weight:900; }

.js-gatehint{
  margin-top:10px;
  font-size:12px;
  color:#6a7687;
  font-weight:700;
  font-family:"Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.js-honeypot{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

@keyframes pop {0%{transform:scale(1)}40%{transform:scale(1.02)}100%{transform:scale(1)}}
@keyframes glow {0%{box-shadow:0 20px 60px rgba(0,0,0,.25)}35%{box-shadow:0 20px 60px rgba(18,161,80,.18)}100%{box-shadow:0 20px 60px rgba(0,0,0,.25)}}
.js-success-pop{ animation:pop .55s ease; }
.js-success-glow{ animation:glow 1.1s ease; }

.js-btn-success{ background:var(--calc-green) !important; }
.js-btn-success:hover{ transform:none; background:var(--calc-green) !important; }

/* Ensure helper/status text is readable on the white card */
#js-card .js-gatehint,
#js-card .js-status{
  color: #6a7687 !important;
}

#js-card .js-status .ok{ color: var(--calc-green) !important; }
#js-card .js-status .err{ color: var(--calc-red) !important; }

#js-card .js-status{
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  color: #556;
}

#js-card .js-status .info{ color:#2c3e50; font-weight:600; }
#js-card .js-status .ok{ color:#12a150; font-weight:700; }
#js-card .js-status .err{ color:#c0392b; font-weight:700; }

/* Status message directly under buttons (always readable on white card) */
#js-card .js-status{
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  color: #2c3e50;
}
#js-card .js-status .info{ color:#2c3e50; font-weight:700; }
#js-card .js-status .ok{ color:#12a150; font-weight:800; }
#js-card .js-status .err{ color:#c0392b; font-weight:800; }

/* Unlock Animation */
.js-out,
.js-recs {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.js-out.show,
.js-recs.show {
  opacity: 1;
  transform: translateY(0);
}

/* Opportunity Badge */
.opportunity-badge {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-low {
  background: #eaf6ec;
  color: #1e7d3f;
}

.badge-medium {
  background: #fff4e5;
  color: #c47b00;
}

.badge-high {
  background: #fdeaea;
  color: #c0392b;
}

/* Urgency Copy */
.urgency-copy {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}
