:root {
  --bg: #0a0e17;
  --card-bg: #111827;
  --card-border: #1f2937;
  --primary: #f97316;
  --primary-hover: #2563eb;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  padding: 24px 16px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.hint {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input, select {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  padding: 10px 80px 10px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

select {
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.input-wrap input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.input-suffix {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
}

/* Results Card */
.result-hero {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.result-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-number {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fb923c;
  line-height: 1.1;
}

.sub-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.sub-hero-col {
  background: #0b132b;
  border: 1px solid #1e3a8a;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.sub-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sub-hero-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.sub-hero-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
}

.spec-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 2px;
}

/* Amazon Supplies Card */
.supplies-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.supplies-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.supplies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .supplies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.supply-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.supply-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
}

.supply-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
}

.btn-amazon {
  display: inline-block;
  background: #f59e0b;
  color: #000000;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.btn-amazon:hover {
  background: #d97706;
}

/* Clinical / Legal / Safety Card */
.medical-card {
  background: #0f172a;
  border: 1px solid #dc2626;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}

.medical-card h3 {
  font-size: 1.15rem;
  color: #f87171;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-callout {
  background: rgba(220, 38, 38, 0.12);
  border-left: 4px solid #ef4444;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #fca5a5;
  margin-bottom: 14px;
  line-height: 1.45;
}

.citations-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.citations-section h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.citations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.citation-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.citation-title {
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 4px;
}

.citation-authors {
  color: #94a3b8;
  font-size: 0.78rem;
}

.citation-link {
  display: inline-block;
  margin-top: 6px;
  color: #fb923c;
  text-decoration: underline;
  font-size: 0.78rem;
}

/* FAQ */
.faq-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.faq-item {
  border-bottom: 1px solid #1e293b;
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

footer {
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  padding: 16px 0;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
}
