:root {
  --ink: #23282e;
  --muted: #6f6a63;
  --bg: #faf6f0;
  --card: #ffffff;
  --navy: #1f3864;
  --accent: #c0653a;
  --accent-soft: #f4e2d6;
  --line: #ece2d5;
  --green-t: #1f7a4d; --green-b: #d9f0e1;
  --amber-t: #94620a; --amber-b: #fbeccb;
  --red-t: #b3261e;   --red-b: #fbdcd8;
  --shadow: 0 1px 2px rgba(35,40,46,.06), 0 8px 28px rgba(35,40,46,.07);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.2; }

a { color: var(--accent); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* hero */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #fffdfa, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34a853; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 18px 0 10px; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 60ch; margin: 0 0 26px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }

/* sections */
section { padding: 56px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
h2.title { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 30px; }

/* proof grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.tile h3 { margin: 0 0 6px; font-size: 19px; }
.tile .tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* panel / sheet mock */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px;
}
.panel-head .tabs { margin-left: auto; display: flex; gap: 6px; font-size: 12px; opacity: .85; }
.panel-head .tabs span { background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 6px; }
.panel-head .tabs span.on { background: var(--accent); opacity: 1; }

.table-scroll { overflow-x: auto; }
table.sheet { border-collapse: collapse; width: 100%; font-size: 14px; }
table.sheet th, table.sheet td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: center; }
table.sheet th { background: #f0eadf; color: var(--navy); font-weight: 700; position: sticky; top: 0; }
table.sheet td.name, table.sheet th.name { text-align: left; font-weight: 600; }
table.sheet td.dept, table.sheet th.dept { text-align: left; color: var(--muted); }
table.sheet tbody tr:nth-child(even) td { background: #fcfaf6; }

.bar { position: relative; height: 18px; border-radius: 5px; background: #eee7db; min-width: 84px; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: #6f97c7; border-radius: 5px; }
.bar > b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; color: #1b2a3d; }

.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill.excellent { background: var(--green-b); color: var(--green-t); }
.pill.on-track  { background: var(--amber-b); color: var(--amber-t); }
.pill.needs     { background: var(--red-b);   color: var(--red-t); }
.score.g { color: var(--green-t); font-weight: 700; }
.score.a { color: var(--amber-t); font-weight: 700; }
.score.r { color: var(--red-t); font-weight: 700; }

.att { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.att .d { width: 9px; height: 9px; border-radius: 50%; }

/* dashboard */
.dash { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.kpi .v { font-family: Georgia, serif; font-size: 28px; color: var(--navy); font-weight: 700; }
.kpi .k { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.kpi.good .v { color: var(--green-t); }
.kpi.warn .v { color: var(--amber-t); }
.kpi.bad .v  { color: var(--red-t); }

.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.chart-card h3 { margin: 0 0 16px; font-size: 16px; }
.hbar { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; }
.hbar .track { height: 20px; background: #eee7db; border-radius: 6px; overflow: hidden; }
.hbar .track > i { display: block; height: 100%; border-radius: 6px; }
.hbar .val { text-align: right; font-weight: 700; color: var(--navy); }

.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ""; position: absolute; inset: 30px; background: var(--card); border-radius: 50%; }
.legend { display: grid; gap: 10px; font-size: 14px; }
.legend .row { display: flex; align-items: center; gap: 10px; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; }
.legend b { color: var(--navy); }

/* model */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.model-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.model-table th, .model-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.model-table th { color: var(--navy); }
.model-table td.w { text-align: right; font-weight: 700; }

pre.code {
  background: #1e2530; color: #e7edf5; border-radius: 12px; padding: 16px 18px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.7; box-shadow: var(--shadow);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
pre.code .fn { color: #7fd1b9; } pre.code .c { color: #8a97a8; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }

.reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
