:root {
  --ink: #102033;
  --muted: #5f6f82;
  --soft: #f5f8fb;
  --line: #dce6ef;
  --navy: #0b1722;
  --navy-2: #102437;
  --teal: #00a9b7;
  --teal-dark: #008a98;
  --green: #16a34a;
  --green-soft: #e9f8ee;
  --amber: #f59e0b;
  --amber-soft: #fff7e6;
  --blue: #2563eb;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #f3f6f9;
  line-height: 1.55;
}

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

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--navy);
  color: #d8e3ec;
  padding: 28px 22px;
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
}

.subbrand {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: #7f97aa;
  margin-bottom: 36px;
}

.nav-section {
  margin: 22px 0 8px;
  color: #6f879a;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7e1ea;
  padding: 9px 10px;
  border-radius: 8px;
  margin: 4px 0;
  font-size: 14px;
}

.nav a:hover, .nav a.active {
  background: var(--navy-2);
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.badge.green { background: var(--green); color: #fff; }
.badge.teal { background: var(--teal); color: #fff; }
.badge.soft { background: #e7eef5; color: #40566b; margin-left: 4px; }

.main {
  padding: 34px 44px 60px;
  max-width: 1280px;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4fbfc 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 24px;
  margin: 34px 0 14px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}

.lead {
  font-size: 19px;
  max-width: 920px;
  color: #3a4b5c;
  margin: 0 0 20px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c9e6e9;
  background: #f0fbfc;
  color: #096d78;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 0 rgba(16,32,51,.02);
}

.card.span-4 { grid-column: span 4; }
.card.span-6 { grid-column: span 6; }
.card.span-8 { grid-column: span 8; }
.card.span-12 { grid-column: span 12; }

.metric {
  font-size: 36px;
  color: var(--teal);
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

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

.checklist li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}

.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 145px;
  flex: 1 1 145px;
}

.step strong {
  display: block;
  color: var(--teal-dark);
  margin-bottom: 2px;
}

.callout {
  border-left: 5px solid var(--teal);
  background: #eefbfc;
  padding: 16px 18px;
  border-radius: 10px;
  margin: 18px 0;
}

.warning {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.code {
  background: #0f172a;
  color: #dbeafe;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.footer {
  margin-top: 50px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; min-height: auto; }
  .main { padding: 24px 18px 44px; }
  .card.span-4, .card.span-6, .card.span-8 { grid-column: span 12; }
  .split { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
