/* ══════════════════════════════════════════════════════
   PERCENTILE CALCULATOR — landing page styles
   ══════════════════════════════════════════════════════ */

.calc-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  color: #1a1a2e;
  line-height: 1.6;
}
.calc-main h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  color: #111827;
}
.calc-main h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 36px 0 12px;
  color: #111827;
}
.calc-main p {
  font-size: 15px;
  margin: 0 0 14px;
  color: #374151;
}
.calc-main a {
  color: #4361ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 97, 238, 0.25);
  transition: border-color 0.15s;
}
.calc-main a:hover {
  border-bottom-color: rgba(67, 97, 238, 0.7);
}
.calc-lead {
  font-size: 16px !important;
  color: #4B5563 !important;
}

/* ── Calc tool ─────────────────────────────────────── */
.calc-tool {
  margin: 28px 0 36px;
  padding: 28px 28px 24px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.calc-tool-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6B7280;
  margin-bottom: 12px;
}
.calc-tool-input-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
#calc-raw-input {
  width: 88px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  color: #111827;
}
#calc-raw-input:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}
#calc-raw-slider {
  flex: 1;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, #E5E7EB 0%, #E5E7EB 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
#calc-raw-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: #4361ee;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(67, 97, 238, 0.35);
}
#calc-raw-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #4361ee;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(67, 97, 238, 0.35);
}

.calc-result {
  background: #F8F9FB;
  border-radius: 12px;
  padding: 22px 22px 20px;
  text-align: center;
}
.calc-result-pct {
  font-size: 44px;
  font-weight: 800;
  color: #4361ee;
  line-height: 1;
  letter-spacing: -1px;
}
.calc-result-pct-suffix {
  font-size: 16px;
  font-weight: 600;
  color: #6B7280;
  margin-left: 6px;
  letter-spacing: 0;
}
.calc-result-bucket {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  background: #EEF1FE;
  color: #2941b5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
}
.calc-result-desc {
  font-size: 14px !important;
  color: #4B5563 !important;
  margin: 14px 0 0 !important;
  max-width: 480px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.calc-cta {
  display: block;
  margin-top: 18px;
  padding: 12px 18px;
  text-align: center;
  background: #4361ee;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
  border: none !important;
  transition: background 0.15s, transform 0.15s;
}
.calc-cta:hover {
  background: #3451d1;
  transform: translateY(-1px);
}

/* ── Sources / methodology paragraph ─────────────── */
.calc-source {
  font-size: 13.5px !important;
  color: #6B7280 !important;
  background: #F9FAFB;
  border-left: 3px solid #E5E7EB;
  padding: 14px 18px !important;
  border-radius: 4px;
  margin: 0 0 14px !important;
}

/* ── Lookup table ────────────────────────────────── */
.calc-table-wrap {
  margin: 16px 0 28px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.calc-table thead {
  background: #F9FAFB;
}
.calc-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6B7280;
  border-bottom: 1px solid #E5E7EB;
}
.calc-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #F3F4F6;
  color: #374151;
}
.calc-table tr:last-child td {
  border-bottom: none;
}
.calc-table td:first-child,
.calc-table th:first-child {
  font-weight: 600;
  color: #111827;
  width: 80px;
}
.calc-table td:nth-child(2) {
  width: 120px;
  font-variant-numeric: tabular-nums;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .calc-main { padding: 24px 16px 48px; }
  .calc-main h1 { font-size: 26px; }
  .calc-main h2 { font-size: 19px; }
  .calc-tool { padding: 20px 18px 18px; }
  .calc-tool-input-row { flex-direction: column; align-items: stretch; gap: 14px; }
  #calc-raw-input { width: 100%; }
  .calc-result-pct { font-size: 36px; }
  .calc-table th, .calc-table td { padding: 8px 10px; font-size: 13px; }
}
