/* ClevSec shared styles */
* { font-family: 'DM Sans', system-ui, sans-serif; }
.font-heading { font-family: 'Instrument Serif', Georgia, serif; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease-out both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

.grain {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(16,185,129,0.06) 0%, transparent 70%);
}

/* Tool-specific styles */
.tool-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(16,185,129,0.08);
}

/* Range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #334155;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10B981;
  cursor: pointer;
  border: 2px solid #0F172A;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10B981;
  cursor: pointer;
  border: 2px solid #0F172A;
}

/* Result bar chart */
.bar-segment {
  transition: width 0.6s ease-out;
}

/* Checkbox styling */
.check-label input:checked + span {
  background: #10B981;
  border-color: #10B981;
}
.check-label input:checked + span svg {
  opacity: 1;
}
