:root {
  --teal: #0f766e;
  --teal-d: #0d5f59;
  --teal-l: #ccfbf1;
  --amber: #f59e0b;
  --amber-l: #fef3c7;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--font); color: var(--slate-900); background: var(--slate-50); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .btn {
  font: inherit; cursor: pointer; border: 0; border-radius: 999px;
  padding: 0.7rem 1.25rem; background: var(--teal); color: #fff; font-weight: 600;
  transition: .15s transform, .15s background;
}
button:hover, .btn:hover { background: var(--teal-d); }
button.secondary, .btn.secondary { background: #fff; color: var(--teal); border: 1px solid var(--slate-200); }
button.ghost { background: transparent; color: var(--slate-700); }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea {
  width: 100%; font: inherit; padding: .7rem .9rem; border-radius: 10px;
  border: 1px solid var(--slate-200); background: #fff;
}
label { display: block; font-size: .85rem; font-weight: 600; color: var(--slate-700); margin-bottom: .35rem; }
.field { margin-bottom: 1rem; }
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem;
}
.muted { color: var(--slate-500); font-size: .9rem; }
.err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; padding: .75rem 1rem; border-radius: 10px; margin: .75rem 0; }
.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; padding: .75rem 1rem; border-radius: 10px; margin: .75rem 0; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 999px; background: var(--teal-l); color: var(--teal-d);
}
.badge.warn { background: var(--amber-l); color: #b45309; }
.badge.bad { background: #fee2e2; color: #b91c1c; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* Marketing */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--slate-900); text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #14b8a6 50%, var(--amber));
}
.hero {
  max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; margin: 0 0 1rem;
}
.hero p.lead { font-size: 1.1rem; color: var(--slate-700); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-card {
  background: linear-gradient(160deg, #0f766e, #115e59 60%, #134e4a);
  color: #ecfeff; border-radius: 24px; padding: 1.5rem; min-height: 280px;
  box-shadow: var(--shadow);
}
.hero-card h3 { font-family: var(--display); margin-top: 0; }
.steps { max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem 3rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--teal-l); color: var(--teal);
  display: grid; place-items: center; font-weight: 700; margin-bottom: .75rem;
}
.section { max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem 2.5rem; }
.section h2 { font-family: var(--display); font-size: 1.75rem; }
.disclaimer {
  background: var(--amber-l); border-left: 4px solid var(--amber);
  padding: 1rem 1.1rem; border-radius: 0 12px 12px 0; color: #78350f;
}
footer.site {
  border-top: 1px solid var(--slate-200); margin-top: 2rem;
  padding: 2rem 1.25rem; color: var(--slate-500); font-size: .9rem;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}

/* App shell */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 800px) { .app-shell { grid-template-columns: 1fr; } }
.sidebar {
  background: #0b3b38; color: #ecfeff; padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.sidebar a {
  color: #ccfbf1; text-decoration: none; padding: .65rem .8rem; border-radius: 10px; font-weight: 500;
}
.sidebar a.active, .sidebar a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.sidebar .side-brand { font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; padding: .4rem .5rem; }
.main { padding: 1.25rem 1.5rem 2rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.stat {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 1rem 1.1rem;
}
.stat .n { font-size: 1.75rem; font-weight: 700; color: var(--teal); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--slate-200); }
.table th { color: var(--slate-500); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--slate-50); }

/* Finger review */
.finger-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: .55rem;
  text-align: center;
}
.finger-card img {
  width: 100%; aspect-ratio: 1; object-fit: contain; background: #f8fafc;
  border-radius: 8px; border: 1px solid var(--slate-100);
}
.finger-card .name { font-size: .72rem; font-weight: 700; color: var(--slate-500); margin: .35rem 0; }
.finger-card select { font-size: .78rem; padding: .35rem; }
.sticky-bar {
  position: sticky; bottom: 0; background: rgba(248,250,252,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--slate-200); padding: .9rem 0; display: flex; gap: .75rem; flex-wrap: wrap;
  justify-content: flex-end; margin-top: 1rem;
}
.hbar { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; font-size: .85rem; }
.hbar .lab { width: 100px; color: var(--slate-500); }
.hbar .track { flex: 1; height: 8px; background: var(--slate-100); border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--teal); border-radius: 99px; }
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(circle at top right, #ccfbf1, transparent 40%), var(--slate-50);
}
.login-card { width: min(400px, 100%); }
.login-card h1 { font-family: var(--display); font-size: 1.6rem; margin: 0 0 .25rem; }
