/* LeadAdd "Lead Leak Diagnostic" — bespoke theme, reproducing the Claude export design.
   Palette: ink #0B0D3A, accent #2D8FE2, highlight #F7E500. Font: Poppins. */

@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('/asset/poppins-400.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url('/asset/poppins-500.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url('/asset/poppins-600.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url('/asset/poppins-700.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap; src:url('/asset/poppins-800.woff2') format('woff2'); }

@keyframes lld-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lld-pop  { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

* { box-sizing: border-box; }

body.lead {
  margin: 0;
  background: #F2F4F7;
  color: #0B0D3A;
  font-family: 'Poppins', system-ui, sans-serif;
  min-height: 100vh;
}

body.lead ::selection { background: #2D8FE2; color: #fff; }

body.lead a { color: inherit; }

/* ---- Top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 244, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 13, 58, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  gap: 16px;
}
.topbar-logo { height: 56px; width: auto; display: block; }
.topbar-progress { display: flex; align-items: center; gap: 14px; }
.topbar-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: #0B0D3A;
  opacity: 0.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.progress-track {
  width: 120px;
  height: 6px;
  border-radius: 99px;
  background: rgba(11, 13, 58, 0.1);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: #2D8FE2;
  transition: width 0.4s ease;
}

/* ---- Page wrap ---- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 120px;
}

/* ---- Hero ---- */
.hero { animation: lld-fade 0.5s ease both; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2D8FE2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.hero h1 .accent { color: #2D8FE2; }
.hero .sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(11, 13, 58, 0.68);
  max-width: 560px;
  margin: 0 0 28px;
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F7E500;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.callout-icon {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 99px;
  background: #0B0D3A;
  color: #F7E500;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout-icon--dark { background: #F7E500; color: #0B0D3A; }
.callout-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.callout-body { font-size: 13.5px; color: rgba(11, 13, 58, 0.75); }

/* ---- Gate (email capture) ---- */
.gate {
  margin-top: 44px;
  background: #fff;
  border: 1px solid rgba(11, 13, 58, 0.08);
  border-radius: 18px;
  padding: 30px 28px;
  animation: lld-fade 0.5s ease both;
}
.gate h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
}
.gate > .sub { font-size: 14px; color: rgba(11, 13, 58, 0.6); margin: 0 0 18px; }
.gate-error {
  background: #f5d9d4;
  color: #7a1f0f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 16px;
}
.gate-form { display: flex; gap: 12px; flex-wrap: wrap; }
.gate-input {
  flex: 1 1 160px;
  border: 1.5px solid rgba(11, 13, 58, 0.15);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: #0B0D3A;
  background: #fff;
}
.gate-input:focus { outline: none; border-color: #2D8FE2; }
.gate-input[type="email"] { flex-basis: 200px; }
.gate-submit {
  flex: none;
  background: #0B0D3A;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
}
.gate-submit:hover { opacity: 0.92; }
.gate-hint { margin-top: 14px; font-size: 12.5px; color: rgba(11, 13, 58, 0.45); }

/* ---- Scorecard ---- */
.scorecard { margin-top: 56px; }
.scorecard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.scorecard-head h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.scale-hint { font-size: 13px; font-weight: 700; color: rgba(11, 13, 58, 0.45); }
.scorecard > .sub { font-size: 14.5px; color: rgba(11, 13, 58, 0.6); margin: 6px 0 24px; }

.area {
  background: #fff;
  border: 1px solid rgba(11, 13, 58, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}
.area .num {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 99px;
  background: #0B0D3A;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.area-body { flex: 1 1 260px; min-width: 200px; }
.area-label { font-weight: 700; font-size: 15.5px; margin-bottom: 2px; }
.area .q { font-size: 13.5px; color: rgba(11, 13, 58, 0.6); margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.opts { display: flex; gap: 6px; flex: none; }
.opt { cursor: pointer; }
.opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.opt span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(11, 13, 58, 0.12);
  background: #F2F4F7;
  color: rgba(11, 13, 58, 0.55);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.opt input:checked + span {
  border-color: #0B0D3A;
  background: #0B0D3A;
  color: #fff;
}
.opt input:focus-visible + span { outline: 2px solid #2D8FE2; outline-offset: 2px; }
.opt small {
  /* the export shows only the number in the button; keep the label for
     screen readers / accessibility without changing the visual. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.override-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0B0D3A;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 8px 0 4px;
  animation: lld-pop 0.3s ease;
}
.override-warning[hidden] { display: none; }
.override-title { font-weight: 700; font-size: 14.5px; color: #fff; margin-bottom: 3px; }
.override-body { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }

/* ---- Calculator ---- */
.calc {
  margin-top: 48px;
  background: #fff;
  border: 1px solid rgba(11, 13, 58, 0.08);
  border-radius: 18px;
  padding: 28px 26px;
}
.calc h2 { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.calc > .sub { font-size: 14px; color: rgba(11, 13, 58, 0.6); margin: 0 0 22px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.calc-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: rgba(11, 13, 58, 0.6); }
.calc-grid input,
.capture input {
  border: 1.5px solid rgba(11, 13, 58, 0.15);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: #0B0D3A;
  background: #fff;
}
.calc-grid input:focus,
.capture input:focus { outline: none; border-color: #2D8FE2; }
.calc-out {
  margin-top: 20px;
  background: #eef2fb;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.calc-out span { font-size: 13.5px; font-weight: 700; color: rgba(11, 13, 58, 0.65); }
.calc-out strong { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 700; color: #0B0D3A; }
.calc-formula { margin-top: 10px; font-size: 12px; color: rgba(11, 13, 58, 0.4); text-align: center; }

/* ---- Name/email capture ---- */
.capture {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.capture label {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(11, 13, 58, 0.6);
}
.capture input { font-size: 14.5px; }

/* ---- Submit ---- */
.submit-wrap { margin-top: 48px; text-align: center; }
.submit {
  background: #0B0D3A;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
}
.submit:hover { opacity: 0.92; }
.submit-hint { margin-top: 10px; font-size: 12.5px; color: rgba(11, 13, 58, 0.45); }

/* ---- Result card ---- */
.result {
  margin-top: 40px;
  background: var(--band-bg, #dbe8fb);
  color: var(--band-fg, #123a7a);
  border-radius: 20px;
  padding: 32px 30px;
  animation: lld-fade 0.5s ease both;
}
.result-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}
.result-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.result-head .score { font-family: 'Poppins', sans-serif; font-size: 40px; font-weight: 700; }
.result-head .label { font-size: 20px; font-weight: 700; }
.result .desc { font-size: 15px; line-height: 1.6; margin: 0 0 20px; max-width: 520px; opacity: 0.9; }
.fix { background: rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 16px 18px; }
.fix-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.75; margin-bottom: 6px; }
.fix-title { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }
.fix-detail { font-size: 13.5px; opacity: 0.85; }

/* ---- Soft close ---- */
.soft-close {
  margin-top: 40px;
  border: 1px solid rgba(11, 13, 58, 0.08);
  border-radius: 18px;
  padding: 26px 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.soft-close h3 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.soft-close p { font-size: 13.5px; color: rgba(11, 13, 58, 0.6); margin: 0; }
.restart { margin: 0; }
.restart a {
  flex: none;
  display: inline-block;
  color: #fff;
  background: #2D8FE2;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
}
.restart a:hover { opacity: 0.92; }

/* ---- Footer tag ---- */
.foot-tag {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(11, 13, 58, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.foot-logo { height: 13px; width: auto; opacity: 0.5; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .wrap { padding: 32px 16px 96px; }
  .hero h1 { font-size: 32px; }
  .topbar-inner { padding: 10px 16px; }
  .topbar-progress-label { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .area { padding: 16px; gap: 14px; }
  .gate { padding: 22px 18px; }
  .gate-form { flex-direction: column; }
  /* In a column flex, flex-basis governs the main (vertical) axis, so the
     desktop `flex: 1 1 160px` / `flex-basis: 200px` was stretching each input
     to 160–200px tall. Reset to auto height and full width when stacked. */
  .gate-input,
  .gate-input[type="email"] { flex: none; width: 100%; }
  .gate-submit { width: 100%; }
  .soft-close { flex-direction: column; align-items: flex-start; }
  .result-head .score { font-size: 32px; }
}
