/* ============================================================
   Neuropsych Tools v2.0 — Clinical SaaS Design System
   Design Philosophy: Muted navy + soft teal/sage + warm off-white
   Charcoal text, domain icons, professional clinical feel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ---- Base Variables ---- */
:root {
  --npt-navy: #1e2d40;
  --npt-navy-light: #2a3f58;
  --npt-navy-dark: #141e2b;
  --npt-teal: #3a9e8f;
  --npt-teal-light: #4db8a7;
  --npt-teal-dark: #2d7d71;
  --npt-sage: #6b9e7e;
  --npt-sage-light: #85b596;
  --npt-warm: #c8834a;
  --npt-warm-light: #d9956b;
  --npt-bg: #f5f3ef;
  --npt-bg-card: #ffffff;
  --npt-bg-dark: #1a2535;
  --npt-bg-dark-card: #1e2d40;
  --npt-text: #1c2b3a;
  --npt-text-muted: #5a6a7a;
  --npt-text-light: #8a9aaa;
  --npt-border: #dde3ea;
  --npt-border-dark: #2e3f54;
  --npt-green: #2e7d52;
  --npt-green-bg: #e8f5ed;
  --npt-yellow: #b07d1a;
  --npt-yellow-bg: #fef8e7;
  --npt-red: #c0392b;
  --npt-red-bg: #fdecea;
  --npt-radius: 10px;
  --npt-radius-sm: 6px;
  --npt-radius-lg: 16px;
  --npt-shadow: 0 2px 12px rgba(30,45,64,0.08);
  --npt-shadow-md: 0 4px 24px rgba(30,45,64,0.12);
  --npt-shadow-lg: 0 8px 40px rgba(30,45,64,0.16);
  --npt-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --npt-mono: 'DM Mono', 'Fira Code', 'Consolas', monospace;
}

/* ---- Reset & Base ---- */
.npt-tool, .npt-homepage {
  font-family: var(--npt-font);
  color: var(--npt-text);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.npt-homepage {
  max-width: 1100px;
}

/* ---- Tool Header ---- */
.npt-tool-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--npt-border);
}

.npt-tool-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--npt-navy);
  border-radius: var(--npt-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.npt-tool-icon svg {
  width: 24px;
  height: 24px;
}

.npt-icon-teal { background: var(--npt-teal); }
.npt-icon-sage { background: var(--npt-sage); }
.npt-icon-warm { background: var(--npt-warm); }
.npt-icon-navy { background: var(--npt-navy); }

.npt-tool-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 6px;
  line-height: 1.2;
}

.npt-tool-subtitle {
  font-size: 0.95rem;
  color: var(--npt-text-muted);
  margin: 0;
  max-width: 600px;
}

/* ---- Form Card ---- */
.npt-form-card {
  background: var(--npt-bg-dark);
  border-radius: var(--npt-radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  border: 1px solid var(--npt-border-dark);
  box-shadow: var(--npt-shadow-md);
}

/* ---- Date Inputs ---- */
.npt-date-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.npt-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #c8d4e0;
  min-width: 140px;
  flex-shrink: 0;
}

.npt-label-sm {
  font-size: 0.82rem;
  font-weight: 500;
  color: #c8d4e0;
  display: block;
  margin-bottom: 6px;
}

.npt-date-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.npt-select {
  background: #0f1a26;
  border: 1.5px solid #3a4f66;
  color: #e8eef5;
  border-radius: var(--npt-radius-sm);
  padding: 9px 12px;
  font-family: var(--npt-font);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.npt-select:focus {
  outline: none;
  border-color: var(--npt-teal);
}

.npt-select-month { min-width: 110px; }
.npt-select-day { min-width: 75px; }
.npt-select-full { width: 100%; }

.npt-input {
  background: #0f1a26;
  border: 1.5px solid #3a4f66;
  color: #e8eef5;
  border-radius: var(--npt-radius-sm);
  padding: 9px 12px;
  font-family: var(--npt-font);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.npt-input:focus {
  outline: none;
  border-color: var(--npt-teal);
}

.npt-input-year { width: 90px; }
.npt-input-sm { width: 80px; }

/* ---- Filter Row ---- */
.npt-filter-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.npt-filter-group {
  flex: 1;
  min-width: 200px;
}

/* ---- Checkbox ---- */
.npt-checkbox-row {
  margin-bottom: 16px;
}

.npt-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #c8d4e0;
  font-size: 0.9rem;
}

.npt-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--npt-teal);
  cursor: pointer;
}

/* ---- Premature Fields ---- */
.npt-premature-fields {
  background: rgba(58,158,143,0.1);
  border: 1px solid rgba(58,158,143,0.3);
  border-radius: var(--npt-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

/* ---- Inline Fields ---- */
.npt-inline-fields {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.npt-inline-field {
  display: flex;
  flex-direction: column;
}

/* ---- Calculate Button ---- */
.npt-btn-calculate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2e7d52;
  color: white;
  border: none;
  border-radius: var(--npt-radius);
  padding: 13px 28px;
  font-family: var(--npt-font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

.npt-btn-calculate svg {
  width: 20px;
  height: 20px;
}

.npt-btn-calculate:hover {
  background: #236040;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,125,82,0.4);
}

.npt-btn-teal {
  background: var(--npt-teal);
}

.npt-btn-teal:hover {
  background: var(--npt-teal-dark);
  box-shadow: 0 4px 16px rgba(58,158,143,0.4);
}

/* ---- Result Card ---- */
.npt-result-card {
  background: var(--npt-bg-dark);
  border: 1px solid var(--npt-border-dark);
  border-radius: var(--npt-radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.npt-result-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.npt-result-age {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--npt-teal-light);
  font-family: var(--npt-mono);
  line-height: 1;
}

.npt-result-age-label {
  font-size: 1rem;
  color: #8a9aaa;
}

.npt-result-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--npt-border-dark);
  border-bottom: 1px solid var(--npt-border-dark);
  margin-bottom: 16px;
}

.npt-result-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.npt-result-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8eef5;
  font-family: var(--npt-mono);
}

.npt-result-stat-label {
  font-size: 0.78rem;
  color: #8a9aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.npt-result-note {
  background: rgba(58,158,143,0.1);
  border-left: 3px solid var(--npt-teal);
  border-radius: 0 var(--npt-radius-sm) var(--npt-radius-sm) 0;
  padding: 12px 16px;
  color: #c8d4e0;
  font-size: 0.9rem;
}

.npt-result-note strong {
  color: var(--npt-teal-light);
}

.npt-corrected-age {
  background: rgba(107,158,126,0.1);
  border-left: 3px solid var(--npt-sage);
  border-radius: 0 var(--npt-radius-sm) var(--npt-radius-sm) 0;
  padding: 12px 16px;
  color: #c8d4e0;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ---- Info Panels ---- */
.npt-info-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .npt-info-panels { grid-template-columns: 1fr; }
}

.npt-info-panel {
  background: var(--npt-bg-card);
  border: 1px solid var(--npt-border);
  border-radius: var(--npt-radius);
  padding: 20px 24px;
}

.npt-info-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.npt-info-panel p {
  font-size: 0.88rem;
  color: var(--npt-text-muted);
  margin: 0 0 10px;
  line-height: 1.65;
}

.npt-info-panel p:last-child { margin-bottom: 0; }

.npt-note {
  font-size: 0.82rem !important;
  background: #fff8e7;
  border-left: 3px solid #c8834a;
  padding: 10px 14px;
  border-radius: 0 var(--npt-radius-sm) var(--npt-radius-sm) 0;
  color: #5a4020 !important;
}

.npt-ordered-list {
  padding-left: 20px;
  margin: 0 0 10px;
}

.npt-ordered-list li {
  font-size: 0.88rem;
  color: var(--npt-text-muted);
  margin-bottom: 6px;
  line-height: 1.55;
}

/* ---- Eligibility Results ---- */
#ee-result {
  margin-bottom: 28px;
}

.npt-eligibility-summary {
  background: var(--npt-bg-dark);
  border: 1px solid var(--npt-border-dark);
  border-radius: var(--npt-radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.npt-eligibility-age-line {
  font-size: 1.1rem;
  color: #e8eef5;
  margin-bottom: 16px;
  font-weight: 500;
}

.npt-eligibility-age-line strong {
  color: var(--npt-teal-light);
  font-family: var(--npt-mono);
}

.npt-eligibility-counts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.npt-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
}

.npt-count-badge.green {
  background: rgba(46,125,82,0.2);
  color: #6fcf97;
  border: 1px solid rgba(46,125,82,0.4);
}

.npt-count-badge.yellow {
  background: rgba(200,131,74,0.2);
  color: #f2c97e;
  border: 1px solid rgba(200,131,74,0.4);
}

.npt-count-badge.red {
  background: rgba(192,57,43,0.2);
  color: #eb8f8f;
  border: 1px solid rgba(192,57,43,0.4);
}

.npt-eligibility-section {
  margin-bottom: 20px;
}

.npt-eligibility-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--npt-radius-sm) var(--npt-radius-sm) 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
}

.npt-eligibility-section-header.green {
  background: rgba(46,125,82,0.15);
  color: #6fcf97;
  border: 1px solid rgba(46,125,82,0.3);
}

.npt-eligibility-section-header.yellow {
  background: rgba(200,131,74,0.15);
  color: #f2c97e;
  border: 1px solid rgba(200,131,74,0.3);
}

.npt-eligibility-section-header.red {
  background: rgba(192,57,43,0.15);
  color: #eb8f8f;
  border: 1px solid rgba(192,57,43,0.3);
}

.npt-eligibility-section-body {
  border: 1px solid var(--npt-border-dark);
  border-top: none;
  border-radius: 0 0 var(--npt-radius-sm) var(--npt-radius-sm);
  overflow: hidden;
}

.npt-test-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--npt-border-dark);
  background: var(--npt-bg-dark);
  gap: 16px;
  flex-wrap: wrap;
}

.npt-test-row:last-child { border-bottom: none; }

.npt-test-name {
  font-weight: 600;
  color: #e8eef5;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.npt-test-range {
  font-size: 0.8rem;
  color: #8a9aaa;
  font-family: var(--npt-mono);
}

.npt-test-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.npt-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(58,158,143,0.15);
  color: #7dd3c8;
  border: 1px solid rgba(58,158,143,0.3);
}

/* ---- Battery Builder ---- */
.npt-progress-bar {
  margin-bottom: 32px;
}

.npt-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.npt-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.npt-progress-step.active,
.npt-progress-step.completed {
  opacity: 1;
}

.npt-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--npt-navy-light);
  border: 2px solid var(--npt-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8a9aaa;
  transition: all 0.3s;
}

.npt-progress-step.active .npt-step-dot {
  background: var(--npt-teal);
  border-color: var(--npt-teal);
  color: white;
  box-shadow: 0 0 0 4px rgba(58,158,143,0.2);
}

.npt-progress-step.completed .npt-step-dot {
  background: var(--npt-navy);
  border-color: var(--npt-teal);
  color: var(--npt-teal-light);
}

.npt-progress-step span {
  font-size: 0.75rem;
  color: #8a9aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.npt-progress-step.active span {
  color: var(--npt-teal-light);
}

.npt-progress-line {
  flex: 1;
  height: 2px;
  background: var(--npt-border-dark);
  min-width: 30px;
  max-width: 80px;
  margin-bottom: 22px;
}

/* ---- Step Content ---- */
.npt-step-panel {
  animation: nptFadeIn 0.3s ease;
}

@keyframes nptFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.npt-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 8px;
}

.npt-step-desc {
  font-size: 0.92rem;
  color: var(--npt-text-muted);
  margin: 0 0 24px;
}

/* ---- Age Toggle ---- */
.npt-age-input-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.npt-toggle-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid #3a4f66;
  background: transparent;
  color: #8a9aaa;
  font-family: var(--npt-font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.npt-toggle-btn.active {
  background: var(--npt-teal);
  border-color: var(--npt-teal);
  color: white;
}

.npt-age-display {
  background: rgba(58,158,143,0.1);
  border: 1px solid rgba(58,158,143,0.3);
  border-radius: var(--npt-radius-sm);
  padding: 12px 16px;
  color: var(--npt-teal-light);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--npt-mono);
  margin-top: 12px;
}

/* ---- Setting Cards ---- */
.npt-setting-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.npt-setting-card {
  background: var(--npt-bg-card);
  border: 2px solid var(--npt-border);
  border-radius: var(--npt-radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.npt-setting-card:hover {
  border-color: var(--npt-teal);
  box-shadow: var(--npt-shadow);
  transform: translateY(-2px);
}

.npt-setting-card.selected {
  border-color: var(--npt-teal);
  background: rgba(58,158,143,0.06);
  box-shadow: 0 0 0 3px rgba(58,158,143,0.15);
}

.npt-setting-icon {
  width: 44px;
  height: 44px;
  background: var(--npt-navy);
  border-radius: var(--npt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: white;
}

.npt-setting-icon svg {
  width: 20px;
  height: 20px;
}

.npt-setting-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin-bottom: 6px;
}

.npt-setting-desc {
  font-size: 0.78rem;
  color: var(--npt-text-muted);
  line-height: 1.5;
}

/* ---- Chips ---- */
.npt-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.npt-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--npt-border);
  background: var(--npt-bg-card);
  color: var(--npt-text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.npt-chip svg {
  width: 15px;
  height: 15px;
  color: var(--npt-text-muted);
  flex-shrink: 0;
}

.npt-chip:hover {
  border-color: var(--npt-teal);
  color: var(--npt-teal-dark);
}

.npt-chip.selected {
  background: var(--npt-teal);
  border-color: var(--npt-teal);
  color: white;
  box-shadow: 0 2px 8px rgba(58,158,143,0.3);
}

.npt-chip.selected svg {
  color: rgba(255,255,255,0.8);
}

.npt-chip-modifier.selected {
  background: var(--npt-navy);
  border-color: var(--npt-navy);
}

/* ---- Step Navigation ---- */
.npt-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--npt-border);
  margin-top: 8px;
  gap: 12px;
}

.npt-step-nav-results {
  flex-wrap: wrap;
}

.npt-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--npt-navy);
  color: white;
  border: none;
  border-radius: var(--npt-radius);
  padding: 12px 24px;
  font-family: var(--npt-font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.npt-btn-next svg { width: 16px; height: 16px; }

.npt-btn-next:hover {
  background: var(--npt-navy-light);
  transform: translateY(-1px);
}

.npt-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--npt-text-muted);
  border: 1.5px solid var(--npt-border);
  border-radius: var(--npt-radius);
  padding: 11px 20px;
  font-family: var(--npt-font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.npt-btn-back svg { width: 15px; height: 15px; }

.npt-btn-back:hover {
  border-color: var(--npt-text-muted);
  color: var(--npt-text);
}

.npt-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--npt-teal-dark);
  border: 1.5px solid var(--npt-teal);
  border-radius: var(--npt-radius);
  padding: 10px 18px;
  font-family: var(--npt-font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.npt-btn-secondary:hover {
  background: var(--npt-teal);
  color: white;
}

.npt-cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Battery Results ---- */
.npt-battery-results-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--npt-border);
}

.npt-battery-results-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 6px;
}

.npt-battery-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.npt-battery-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--npt-text-muted);
  background: var(--npt-bg);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--npt-border);
}

.npt-domain-section {
  margin-bottom: 24px;
  border: 1px solid var(--npt-border);
  border-radius: var(--npt-radius);
  overflow: hidden;
}

.npt-domain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--npt-navy);
  color: white;
}

.npt-domain-header svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.npt-domain-title {
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}

.npt-domain-count {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.15);
  padding: 2px 10px;
  border-radius: 100px;
}

.npt-measure-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--npt-border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.npt-measure-row:last-child { border-bottom: none; }

.npt-measure-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.npt-measure-status.core { background: var(--npt-teal); }
.npt-measure-status.addon { background: var(--npt-sage); }
.npt-measure-status.ruleout { background: var(--npt-warm); }

.npt-measure-name {
  font-weight: 600;
  color: var(--npt-text);
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.npt-measure-why {
  font-size: 0.82rem;
  color: var(--npt-text-muted);
  line-height: 1.5;
}

.npt-measure-type-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: auto;
  flex-shrink: 0;
}

.npt-measure-type-tag.core {
  background: rgba(58,158,143,0.12);
  color: var(--npt-teal-dark);
  border: 1px solid rgba(58,158,143,0.3);
}

.npt-measure-type-tag.addon {
  background: rgba(107,158,126,0.12);
  color: #4a7a5a;
  border: 1px solid rgba(107,158,126,0.3);
}

.npt-measure-type-tag.ruleout {
  background: rgba(200,131,74,0.12);
  color: #8a5020;
  border: 1px solid rgba(200,131,74,0.3);
}

/* ---- Disclaimer ---- */
.npt-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff8e7;
  border: 1px solid #f0d080;
  border-radius: var(--npt-radius);
  padding: 16px 20px;
  margin-top: 24px;
}

.npt-disclaimer svg {
  width: 18px;
  height: 18px;
  color: #b07d1a;
  flex-shrink: 0;
  margin-top: 2px;
}

.npt-disclaimer p {
  font-size: 0.85rem;
  color: #6b4e10;
  margin: 0;
  line-height: 1.55;
}

/* ---- Homepage ---- */
.npt-hero {
  background: var(--npt-navy);
  border-radius: var(--npt-radius-lg);
  padding: 64px 56px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.npt-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(58,158,143,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.npt-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(107,158,126,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.npt-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.npt-hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(58,158,143,0.2);
  border: 1px solid rgba(58,158,143,0.4);
  border-radius: 100px;
  color: var(--npt-teal-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.npt-hero-headline {
  font-size: 2.4rem;
  font-weight: 700;
  color: #f0f4f8;
  line-height: 1.2;
  margin: 0 0 16px;
}

.npt-hero-subhead {
  font-size: 1.05rem;
  color: #8a9aaa;
  margin: 0 0 32px;
  line-height: 1.65;
}

.npt-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.npt-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--npt-teal);
  color: white;
  text-decoration: none;
  border-radius: var(--npt-radius);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s;
}

.npt-btn-hero-primary svg { width: 18px; height: 18px; }

.npt-btn-hero-primary:hover {
  background: var(--npt-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,158,143,0.4);
  color: white;
  text-decoration: none;
}

.npt-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #c8d4e0;
  text-decoration: none;
  border: 1.5px solid rgba(200,212,224,0.3);
  border-radius: var(--npt-radius);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.npt-btn-hero-secondary svg { width: 16px; height: 16px; }

.npt-btn-hero-secondary:hover {
  border-color: rgba(200,212,224,0.6);
  color: white;
  text-decoration: none;
}

/* ---- Section Headers ---- */
.npt-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--npt-teal-dark);
  margin-bottom: 8px;
}

.npt-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 10px;
}

.npt-section-desc {
  font-size: 0.95rem;
  color: var(--npt-text-muted);
  margin: 0 0 32px;
  max-width: 600px;
}

/* ---- Tools Grid ---- */
.npt-tools-section {
  margin-bottom: 64px;
}

.npt-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.npt-tool-card {
  background: var(--npt-bg-card);
  border: 1.5px solid var(--npt-border);
  border-radius: var(--npt-radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--npt-text);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.npt-tool-card:hover {
  border-color: var(--npt-teal);
  box-shadow: var(--npt-shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--npt-text);
}

.npt-tool-card-featured {
  border-color: var(--npt-navy);
  background: var(--npt-navy);
  color: #e8eef5;
  grid-column: span 2;
}

@media (max-width: 640px) {
  .npt-tool-card-featured { grid-column: span 1; }
}

.npt-tool-card-featured:hover {
  border-color: var(--npt-teal);
  color: #e8eef5;
}

.npt-tool-card-featured h3 { color: #f0f4f8; }
.npt-tool-card-featured p { color: #8a9aaa; }

.npt-tool-card-icon {
  width: 44px;
  height: 44px;
  background: var(--npt-navy);
  border-radius: var(--npt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}

.npt-tool-card-featured .npt-tool-card-icon {
  background: rgba(58,158,143,0.2);
  color: var(--npt-teal-light);
}

.npt-tool-card-icon svg { width: 20px; height: 20px; }

.npt-tool-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--npt-teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
}

.npt-tool-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 8px;
}

.npt-tool-card p {
  font-size: 0.87rem;
  color: var(--npt-text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}

.npt-tool-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--npt-teal-dark);
  margin-top: auto;
}

.npt-tool-card-featured .npt-tool-card-cta { color: var(--npt-teal-light); }

/* ---- Products Section ---- */
.npt-products-section {
  margin-bottom: 48px;
}

.npt-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.npt-product-card {
  background: var(--npt-bg-card);
  border: 1.5px solid var(--npt-border);
  border-radius: var(--npt-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
}

.npt-product-card:hover {
  box-shadow: var(--npt-shadow);
}

.npt-product-icon {
  width: 44px;
  height: 44px;
  background: var(--npt-bg);
  border: 1px solid var(--npt-border);
  border-radius: var(--npt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--npt-text-muted);
  margin-bottom: 16px;
}

.npt-product-icon svg { width: 20px; height: 20px; }

.npt-product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f5f3ef;
  color: var(--npt-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--npt-border);
}

.npt-product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 8px;
}

.npt-product-card p {
  font-size: 0.85rem;
  color: var(--npt-text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}

.npt-product-price {
  font-size: 0.82rem;
  color: var(--npt-text-light);
  margin-bottom: 14px;
}

.npt-btn-waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--npt-navy);
  border: 1.5px solid var(--npt-navy);
  border-radius: var(--npt-radius);
  padding: 10px 20px;
  font-family: var(--npt-font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.npt-btn-waitlist:hover {
  background: var(--npt-navy);
  color: white;
}

/* ---- Modal ---- */
.npt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.npt-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14,20,30,0.7);
  backdrop-filter: blur(4px);
}

.npt-modal-content {
  position: relative;
  background: white;
  border-radius: var(--npt-radius-lg);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--npt-shadow-lg);
}

.npt-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--npt-text-muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
}

.npt-modal-close svg { width: 18px; height: 18px; }
.npt-modal-close:hover { color: var(--npt-text); }

.npt-modal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--npt-navy);
  margin: 0 0 8px;
}

.npt-modal-content p {
  font-size: 0.9rem;
  color: var(--npt-text-muted);
  margin: 0 0 20px;
}

.npt-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.npt-modal-form .npt-input {
  background: white;
  border: 1.5px solid var(--npt-border);
  color: var(--npt-text);
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.npt-modal-form .npt-input:focus {
  border-color: var(--npt-teal);
}

.npt-success-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--npt-green);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
}

.npt-success-msg svg { width: 20px; height: 20px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .npt-hero { padding: 40px 28px; }
  .npt-hero-headline { font-size: 1.7rem; }
  .npt-date-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .npt-label { min-width: unset; }
  .npt-form-card { padding: 20px; }
  .npt-tool-header { flex-direction: column; gap: 12px; }
  .npt-progress-steps { gap: 4px; }
  .npt-progress-line { min-width: 16px; }
  .npt-step-nav { flex-direction: column-reverse; align-items: stretch; }
  .npt-btn-next, .npt-btn-back { justify-content: center; }
}
