:root {
  --paper: #ffffff !important;
  --paper-dim: #f7f8ff !important;
  --ink: #151834 !important;
  --ink-soft: #494d70 !important;
  --verdigris: #4f46e5 !important;
  --verdigris-dim: #818cf8 !important;
  --amber: #7c3aed !important;
  --rule: #e1e4f2 !important;
  --shadow: 0 24px 65px rgba(57, 47, 122, .12) !important;
}

body {
  background:
    radial-gradient(circle at 95% 5%, rgba(124, 58, 237, .14), transparent 30rem),
    radial-gradient(circle at 0 35%, rgba(37, 99, 235, .08), transparent 26rem),
    #f9faff !important;
  font-family: "Manrope", "Inter", sans-serif !important;
}

.wrap { max-width: 1180px !important; padding-top: 10rem !important; }
.mark { gap: 12px !important; color: var(--ink) !important; text-decoration: none; }
.mark img { width: 46px; height: 46px; object-fit: contain; }
.mark-copy { display: flex; flex-direction: column; line-height: .9; text-transform: uppercase; }
.mark-copy strong { font-size: 15px; font-weight: 900 !important; letter-spacing: -.04em; }
.mark-copy small { margin-top: 5px; font-size: 8px; font-weight: 700; letter-spacing: .28em; }
.top > a:last-child { border: 0 !important; color: #4f46e5 !important; font-family: "Manrope", sans-serif !important; font-weight: 700; }

.hero { max-width: 760px !important; }
.eyebrow { color: #5b5bd6 !important; font-family: "Manrope", sans-serif !important; font-weight: 800; }
h1 {
  margin: 0 0 1.35rem !important;
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(3rem, 5.2vw, 4.5rem) !important;
  font-weight: 800 !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
}
h1 em { color: transparent !important; background: linear-gradient(100deg, #2563eb, #7c3aed); background-clip: text; -webkit-background-clip: text; font-style: normal !important; }

.panel, .gauge-card, .receipt, .input-panel, .brief {
  border-radius: 24px !important;
  border-color: #e1e4f2 !important;
}

.cta-btn, .gen-btn {
  border: 0 !important;
  border-radius: 10px !important;
  background: #4f46e5 !important;
  color: #fff !important;
  font-family: "Manrope", sans-serif !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .18);
}
.cta-btn:hover, .gen-btn:hover { transform: translateY(-1px) !important; background: #4338ca !important; box-shadow: 0 8px 20px rgba(79,70,229,.2); }
.cta-btn.disabled { opacity: .42; pointer-events: none; }

input[type=range] { accent-color: #5b5bd6; }
.opt.checked, textarea:focus { background: #f5f3ff !important; }
.bottom { border-color: #e1e4f2 !important; }
.bottom-social { display: inline-flex; flex-wrap: wrap; gap: .75rem; }
.bottom-social a { color: #4f46e5; font-weight: 800; text-decoration: none; }
.bottom-social a:hover { color: #2563eb; }

.privacy-note {
  margin-top: 16px;
  color: #737795;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Readiness score refinements */
.qcount, .gauge-card .gtitle, .gauge-score, .gauge-score span,
.gauge-label, .gauge-progress, .rec-label, .rec-tier, .rec-price {
  font-family: "Manrope", sans-serif !important;
}
.qcount .bar {
  height: 6px !important;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e9f7 !important;
}
.qcount .bar-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #6366f1 52%, #7c3aed) !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, .35);
}
.gauge-card { display: flex; align-items: center; flex-direction: column; }
.gauge-card .gtitle { width: 100%; font-weight: 800; letter-spacing: .1em !important; }
svg#gauge { display: block; width: min(100%, 270px) !important; margin-inline: auto; overflow: visible; }
.gauge-score { width: 100%; font-weight: 800 !important; letter-spacing: -.055em; text-align: center; }
.gauge-score span { font-weight: 600; letter-spacing: -.025em; }
.gauge-label, .gauge-progress { width: 100%; text-align: center; }
.gauge-label { font-weight: 800 !important; }
.rec { width: 100%; }
.rec-tier { font-weight: 800 !important; letter-spacing: -.025em; }
.rec-price { color: #6366f1 !important; font-weight: 800 !important; }

/* Manual cost calculator refinements */
.panel h2, .field-label, .field-value, .field-hint,
.receipt, .receipt-head .rtitle, .receipt-head .rsub, .rline,
.rtotal-label, .rtotal-val, .rnote, .cta-sub {
  font-family: "Manrope", sans-serif !important;
}
.panel h2 { font-weight: 800 !important; letter-spacing: -.025em; }
.field-label span { font-weight: 700 !important; }
.field-value { color: #4f46e5 !important; font-weight: 800 !important; }
input[type="range"] {
  height: 6px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #2563eb, #6366f1 52%, #7c3aed) !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, .2);
}
input[type="range"]::-webkit-slider-thumb {
  width: 20px !important;
  height: 20px !important;
  border: 3px solid #6366f1 !important;
  background: #fff !important;
  box-shadow: 0 5px 14px rgba(79, 70, 229, .25);
}
input[type="range"]::-webkit-slider-thumb:hover { background: #f3f4ff !important; }
input[type="range"]::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border: 3px solid #6366f1 !important;
  background: #fff !important;
  box-shadow: 0 5px 14px rgba(79, 70, 229, .25);
}
.receipt-frame { width: 100%; }
.receipt, .receipt-frame .cta { width: 100%; max-width: 420px; margin-inline: auto; }
.receipt { position: relative; overflow: hidden; font-family: "Manrope", sans-serif !important; }
.receipt::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #2563eb, #6366f1 52%, #7c3aed); }
.receipt-head .rtitle { font-weight: 800 !important; letter-spacing: .1em !important; }
.rline .rval { font-weight: 800 !important; }
.rdivider { height: 2px; border: 0 !important; background: linear-gradient(90deg, #2563eb, #7c3aed); opacity: .75; }
.rtotal .rtotal-val {
  color: transparent !important;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  letter-spacing: -.04em;
}
.rtotal.secondary .rtotal-val { color: #4f46e5 !important; background: none; -webkit-text-fill-color: initial; }

@media (max-width: 640px) {
  .wrap { padding: 8.5rem 18px 60px !important; }
  .panel, .gauge-card, .input-panel { padding: 24px !important; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.25rem) !important; }
}
