/* src/index.css */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple-900: #306;
  --purple-700: #3c0090;
  --purple-600: #4813a0;
  --purple-500: #5527ad;
  --purple-200: #d1bcff;
  --purple-100: #e9ddff;
  --purple-50: #f6edff;
  --gold-500: #ecb43d;
  --gold-400: #fcd34d;
  --gold-200: #fef2c7;
  --charcoal: #2c2c34;
  --offwhite: #f6f5f3;
  --blue-600: #3b82f6;
  --blue-700: #2563eb;
  --blue-50: #eff6ff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --red-500: #ef4444;
  --red-50: #fef2f2;
  --yellow-200: #fde68a;
  --green-500: #10b981;
  --green-100: #dcfce7;
  --green-800: #166534;
  --orange-100: #ffedd5;
  --orange-800: #9a3412;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --indigo-100: #e0e7ff;
  --indigo-800: #3730a3;
}

body {
  background: var(--slate-50);
  color: var(--slate-900);
  font-family: Public Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: var(--charcoal);
  color: #fff;
  display: flex;
  position: fixed;
  z-index: 50;
  flex-direction: column;
  width: 260px;
  transition: transform .2s;
  top: 0;
  bottom: 0;
  left: 0;
}

.sidebar-header {
  border-bottom: 1px solid #ffffff14;
  padding: 1.25rem 1rem;
}

.sidebar-header img {
  height: 28px;
}

.sidebar-nav {
  overflow-y: auto;
  flex: 1;
  padding: .75rem .5rem;
}

.sidebar-section {
  margin-bottom: 1rem;
}

.sidebar-section-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff6;
  margin-bottom: .25rem;
  padding: .25rem .75rem;
  font-size: .65rem;
  font-weight: 600;
}

.sidebar-link {
  display: flex;
  color: #ffffffb3;
  text-decoration: none;
  border-radius: .5rem;
  align-items:  center;
  gap: .625rem;
  padding: .5rem .75rem;
  transition: all .12s;
  font-size: .8125rem;
  font-weight: 500;
}

.sidebar-link:hover {
  color: #fff;
  text-decoration: none;
  background: #ffffff14;
}

.sidebar-link.active {
  background: var(--purple-900);
  color: #fff;
}

.sidebar-link svg {
  opacity: .7;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.sidebar-link.active svg {
  opacity: 1;
}

.sidebar-footer {
  color: #ffffff59;
  border-top: 1px solid #ffffff14;
  padding: .75rem 1rem;
  font-size: .75rem;
}

.main-content {
  flex: 1;
  min-height: 100vh;
  margin-left: 260px;
}

.page-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  color: var(--charcoal);
}

.page-header p {
  color: var(--slate-500);
  margin-top: .25rem;
  font-size: .875rem;
}

@media (width <= 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-header {
    display: flex;
    background: var(--charcoal);
    color: #fff;
    position: sticky;
    z-index: 40;
    align-items:  center;
    gap: .75rem;
    padding: .75rem 1rem;
    top: 0;
  }

  .mobile-header img {
    height: 24px;
  }

  .hamburger {
    color: #fff;
    background: none;
    padding: .25rem;
    font-size: 1.25rem;
  }

  .sidebar-overlay {
    position: fixed;
    z-index: 45;
    background: #00000080;
    inset: 0;
  }
}

@media (width >= 769px) {
  .mobile-header, .sidebar-overlay {
    display: none;
  }
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.items-center {
  align-items:  center;
}

.items-start {
  align-items:  flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: .5rem;
}

.gap-3 {
  gap: .75rem;
}

.flex-1 {
  flex: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.space-y-3 > * + * {
  margin-top: .75rem;
}

.grid {
  display: grid;
}

.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: .875rem;
}

.text-xs {
  font-size: .75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.font-mono {
  font-family: ui-monospace, monospace;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.cursor-pointer {
  cursor: pointer;
}

.overflow-y-auto {
  overflow-y: auto;
}

.max-h-96 {
  max-height: 24rem;
}

.p-3 {
  padding: .75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-2 {
  padding-left: .5rem;
  padding-right: .5rem;
}

.px-3 {
  padding-left: .75rem;
  padding-right: .75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1\.5 {
  padding-top: .375rem;
  padding-bottom: .375rem;
}

.py-2 {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.py-3 {
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: .25rem;
}

.mt-2 {
  margin-top: .5rem;
}

.mt-3 {
  margin-top: .75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-20 {
  margin-top: 5rem;
}

.pt-2 {
  padding-top: .5rem;
}

.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.bg-white {
  background-color: #fff;
}

.bg-slate-50 {
  background-color: var(--slate-50);
}

.border {
  border: 1px solid var(--slate-200);
}

.border-t {
  border-top: 1px solid var(--slate-100);
}

.border-b {
  border-bottom: 1px solid var(--slate-200);
}

.rounded-lg {
  border-radius: .5rem;
}

.rounded-xl {
  border-radius: .75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-sm {
  box-shadow: 0 1px 2px #0000000d;
}

.text-slate-400 {
  color: var(--slate-400);
}

.text-slate-500 {
  color: var(--slate-500);
}

.text-slate-700 {
  color: var(--slate-700);
}

.text-slate-900 {
  color: var(--slate-900);
}

.text-blue-600 {
  color: var(--blue-600);
}

.text-red-500 {
  color: var(--red-500);
}

.bg-blue-600 {
  background-color: var(--blue-600);
}

.bg-blue-50 {
  background-color: var(--blue-50);
}

.bg-purple-900 {
  background-color: var(--purple-900);
}

.bg-purple-600 {
  background-color: var(--purple-600);
}

.bg-purple-50 {
  background-color: var(--purple-50);
}

.text-purple-900 {
  color: var(--purple-900);
}

.text-gold-500 {
  color: var(--gold-500);
}

.bg-offwhite {
  background-color: var(--offwhite);
}

.btn-brand {
  background: var(--purple-900);
  color: #fff;
  border-radius: .75rem;
  padding: .75rem 1.5rem;
  font-weight: 500;
}

.btn-brand:hover:not(:disabled) {
  background: var(--purple-700);
}

.coverage-bar {
  background: var(--slate-200);
  overflow: hidden;
  border-radius: 3px;
  height: 6px;
}

.coverage-bar-fill {
  background: var(--purple-600);
  border-radius: 3px;
  height: 100%;
  transition: width .3s;
}

.text-white {
  color: #fff;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-10 {
  z-index: 10;
}

input, select {
  border: 1px solid var(--slate-300);
  outline: none;
  border-radius: .5rem;
  width: 100%;
  padding: .5rem .75rem;
  font-size: .875rem;
}

input:focus, select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px #2563eb33;
}

button {
  cursor: pointer;
  border: none;
  border-radius: .75rem;
  transition: all .15s;
  font-size: .875rem;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  padding: .75rem 1.5rem;
  font-weight: 500;
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-700);
}

.btn-outline {
  border: 1px solid var(--slate-300);
  color: var(--slate-500);
  background: #fff;
  padding: .375rem .75rem;
}

.btn-outline:hover:not(:disabled) {
  background: var(--slate-50);
}

.badge {
  display: inline-block;
  border-radius: 9999px;
  padding: .125rem .5rem;
  font-size: .75rem;
  font-weight: 600;
}

.badge-purple {
  background: var(--purple-100);
  color: var(--purple-800);
}

.badge-indigo {
  background: var(--indigo-100);
  color: var(--indigo-800);
}

.badge-orange {
  background: var(--orange-100);
  color: var(--orange-800);
}

.badge-amber {
  background: var(--amber-100);
  color: var(--amber-800);
}

.badge-green {
  background: var(--green-100);
  color: var(--green-800);
}

.badge-blue {
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge-slate {
  background: var(--slate-100);
  color: var(--slate-700);
}

mark {
  background: var(--yellow-200);
  border-radius: 2px;
  padding: 0 2px;
}

.card {
  border: 1px solid var(--slate-200);
  background: #fff;
  border-radius: .75rem;
  padding: 1rem;
  transition: box-shadow .15s;
}

.card:hover {
  box-shadow: 0 1px 3px #00000014;
}

.leading-relaxed {
  line-height: 1.625;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.tool-card {
  border: 1px solid var(--slate-200);
  text-decoration: none;
  color: inherit;
  display: flex;
  background: #fff;
  border-radius: .75rem;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem;
  transition: all .15s;
}

.tool-card:hover {
  border-color: var(--purple-200);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #33006614;
}

.tool-card-icon {
  display: flex;
  border-radius: .625rem;
  justify-content: center;
  align-items:  center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
}

.tool-card h3 {
  font-family: Public Sans, sans-serif;
  font-size: .9375rem;
  font-weight: 600;
}

.tool-card p {
  color: var(--slate-500);
  font-size: .8125rem;
  line-height: 1.4;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.form-group label {
  color: var(--slate-700);
  font-size: .8125rem;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.result-box {
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: .75rem;
  padding: 1.25rem;
}

.result-value {
  color: var(--purple-900);
  font-family: Fraunces, serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.result-label {
  color: var(--slate-500);
  font-size: .8125rem;
}

.stat-card {
  border: 1px solid var(--slate-200);
  text-align: center;
  background: #fff;
  border-radius: .75rem;
  padding: 1rem;
}

.stat-value {
  color: var(--purple-900);
  font-family: Fraunces, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  color: var(--slate-500);
  margin-top: .25rem;
  font-size: .75rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.inline-flex {
  display: inline-flex;
}

.select-none {
  user-select: none;
}

@media (width <= 640px) {
  .grid-cols-5, .grid-cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-cols-3, .tools-grid {
    grid-template-columns: 1fr;
  }

  .hidden-sm {
    display: none;
  }
}
