/* Style: Analytics dashboard (slate canvas, white panels, KPI tiles, horizontal bar chart, status track, emerald + blue accents, Figtree) */
:root {
  --canvas: #eef2f7;
  --panel: #fff;
  --navy: #0f172a;
  --slate: #475569;
  --line: #e2e8f0;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--canvas);
}

a { color: var(--blue); text-underline-offset: 3px; }

a:focus-visible, .btn:focus-visible, summary:focus-visible, .top__cta:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--blue);
  color: #fff;
  z-index: 10;
}

.skip:focus { left: 8px; }

/* Top */
.top { background: var(--navy); }

.top__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; }

.top__brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }

.top__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--emerald); }

.top__cta { padding: 6px 14px; border-radius: 8px; background: var(--emerald); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { display: grid; gap: 24px; padding: 40px 0 24px; align-items: end; }

.crumb { margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--slate); }

h1 { font-weight: 800; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; }

.lede { color: var(--slate); margin: 0 0 22px; max-width: 60ch; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: #1d4ed8; }

.btn--ghost { background: var(--panel); color: var(--navy); border: 1px solid var(--line); }

.btn--ghost:hover { background: var(--canvas); }

.btn--light { background: #fff; color: var(--navy); }

.btn--light:hover { background: var(--emerald-soft); }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }

.kpi p { margin: 0; }

.kpi__k { font-size: .8rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }

.kpi__v { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--emerald); }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; margin-top: 20px; }

h2 { font-weight: 800; font-size: clamp(1.35rem, 3.5vw, 1.8rem); line-height: 1.2; margin: 0 0 16px; }

h3 { font-weight: 800; font-size: 1.08rem; margin: 6px 0 4px; }

.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }

.legend { margin: 0 0 16px; font-size: .85rem; color: var(--slate); }

/* Track */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.track__item { border-radius: 14px; padding: 16px 18px; border: 1px solid var(--line); }

.track__item p { margin: 0; color: var(--slate); }

.track__badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

.track__item--online { background: var(--emerald-soft); border-color: #a7f3d0; }

.track__item--online .track__badge { background: var(--emerald); color: #fff; }

.track__item--field { background: var(--amber-soft); border-color: #fde68a; }

.track__item--field .track__badge { background: var(--amber); color: #fff; }

.track__item--renew { background: var(--blue-soft); border-color: #bfdbfe; }

.track__item--renew .track__badge { background: var(--blue); color: #fff; }

/* Bars */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.bars li { display: grid; grid-template-columns: 1fr 28px; grid-template-areas: "name n" "track track"; gap: 4px 8px; align-items: center; }

.bars__name { grid-area: name; font-size: .95rem; font-weight: 600; }

.bars__track { grid-area: track; height: 12px; border-radius: 999px; background: var(--canvas); overflow: hidden; }

.bars__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), #34d399); }

.bars__n { grid-area: n; text-align: right; font-weight: 800; color: var(--slate); }

.w2 { width: 25%; }

.w3 { width: 37.5%; }

.w4 { width: 50%; }

.w5 { width: 62.5%; }

.w6 { width: 75%; }

.w8 { width: 100%; }

.foot-note { margin: 16px 0 0; font-size: .9rem; color: var(--slate); }

.grid2 { display: grid; gap: 0 20px; }

.ticks { list-style: none; margin: 0; padding: 0; }

.ticks li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }

.ticks li:last-child { border-bottom: 0; }

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--emerald-soft);
  box-shadow: inset 0 0 0 5px var(--emerald);
}

.muted { color: var(--slate); margin: 12px 0 0; font-size: .95rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 40px 14px 0;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--blue); }

.faq details[open] summary::after { content: "−"; }

.faq details p { margin: 0 0 16px; color: var(--slate); }

/* CTA */
.cta {
  margin: 20px 0 56px;
  border-radius: 18px;
  padding: 32px 24px;
  background: var(--navy);
  color: #fff;
  display: grid;
  gap: 20px;
  align-items: center;
}

.cta h2 { color: #fff; }

.cta p { margin: 0; color: #cbd5e1; max-width: 64ch; }

.cta a:not(.btn) { color: #6ee7b7; }

.cta .btn { justify-self: start; }

/* Foot */
.foot { padding: 20px 0; font-size: .9rem; color: var(--slate); border-top: 1px solid var(--line); }

.foot__inner { display: grid; gap: 4px; }

.foot p { margin: 0; }

@media (max-width: 380px) {
  .top__brand { font-size: .9rem; }
  .top__cta { font-size: .85rem; padding: 5px 10px; }
}

@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .track { grid-template-columns: repeat(3, 1fr); }
  .bars li { grid-template-columns: 240px 1fr 28px; grid-template-areas: "name track n"; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .panel { padding: 28px; }
  .cta { grid-template-columns: 1fr auto; padding: 36px; }
  .foot__inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
