:root{
  --bg:#f6f7f9;
  --surface:#ffffff;
  --ink:#111827;
  --ink-soft:#374151;
  --muted:#6b7280;
  --faint:#9ca3af;
  --border:#e5e7eb;
  --accent:#0d9488;
  --accent-deep:#0f766e;
  --accent-soft:#ccfbf1;
  --amber:#b45309;
  --amber-soft:#fef3c7;
  --blue:#2563eb;
  --violet:#7c3aed;
  --slate:#64748b;
  --rose:#be123c;
  --radius:12px;
  --maxw:1120px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"tnum" 1;
}
a{color:var(--accent-deep);text-decoration:none}
a:hover{text-decoration:underline}

/* Top nav */
.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(246,247,249,.86);
  backdrop-filter:saturate(1.4) blur(8px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;
  display:flex;align-items:center;gap:24px;
  padding:14px 24px;
}
.nav-brand{
  font-weight:700;font-size:15px;color:var(--ink);
  letter-spacing:-.01em;
}
.nav-brand span{color:var(--accent-deep)}
.nav-links{display:flex;gap:4px;margin-left:auto}
.nav-links a{
  padding:6px 14px;border-radius:8px;
  font-size:14px;font-weight:500;color:var(--ink-soft);
}
.nav-links a:hover{background:var(--border);text-decoration:none}
.nav-links a.active{background:var(--ink);color:#fff}
.nav-links a.active:hover{background:var(--ink)}

/* Layout */
.wrap{max-width:var(--maxw);margin:0 auto;padding:40px 24px 80px}
.page-head{margin-bottom:36px}
.page-head h1{
  font-size:clamp(1.8rem,4vw,2.6rem);
  letter-spacing:-.03em;line-height:1.1;
  text-wrap:balance;margin-bottom:10px;
}
.page-head p.sub{
  color:var(--muted);font-size:16px;max-width:68ch;text-wrap:pretty;
}

section{margin-bottom:52px}
section > h2{
  font-size:1.35rem;letter-spacing:-.02em;margin-bottom:6px;
}
section > p.lead{
  color:var(--muted);font-size:15px;margin-bottom:20px;max-width:70ch;
}

/* Chart card */
.chart-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
}
.chart-card h3{
  font-size:15px;font-weight:600;margin-bottom:4px;letter-spacing:-.01em;
}
.chart-card p.hint{color:var(--muted);font-size:13px;margin-bottom:16px}
.chart-box{position:relative;height:340px}
.chart-box.tall{height:420px}
.chart-box.short{height:260px}

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

/* Tables */
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--border)}
th{font-weight:600;color:var(--ink-soft);font-size:13px;text-transform:none}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
tr:last-child td{border-bottom:none}
.table-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
}
.table-card .tbl-head{
  padding:16px 20px;border-bottom:1px solid var(--border);
}
.table-card .tbl-head h3{font-size:15px;font-weight:600;letter-spacing:-.01em}
.table-card .tbl-head p{color:var(--muted);font-size:13px;margin-top:2px}
.table-card table{margin:0 6px}
.table-card table th:first-child, .table-card table td:first-child{padding-left:14px}

/* Callout */
.callout{
  background:var(--accent-soft);
  border-radius:var(--radius);
  padding:18px 20px;
  font-size:15px;color:var(--ink-soft);
}
.callout strong{color:var(--accent-deep)}
.callout.warn{background:var(--amber-soft)}
.callout.warn strong{color:var(--amber)}

/* Verdict tags */
.verdict{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.tag{
  background:var(--surface);border:1px solid var(--border);
  border-radius:10px;padding:10px 14px;font-size:13.5px;
}
.tag b{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-bottom:2px}

/* SWOT matrix */
.swot-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.swot-cell{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:22px;
}
.swot-cell h3{font-size:15px;font-weight:700;margin-bottom:12px;letter-spacing:-.01em}
.swot-cell ul{list-style:none}
.swot-cell li{
  padding:9px 0;border-bottom:1px solid var(--border);
  font-size:14px;color:var(--ink-soft);line-height:1.45;
}
.swot-cell li:last-child{border-bottom:none}
.swot-cell li b{color:var(--ink)}
.swot-s{background:#ecfdf5}
.swot-s h3{color:var(--accent-deep)}
.swot-w{background:#fef2f2}
.swot-w h3{color:var(--rose)}
.swot-o{background:#eff6ff}
.swot-o h3{color:var(--blue)}
.swot-t{background:#fffbeb}
.swot-t h3{color:var(--amber)}

/* Strategy blocks */
.strategy{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:22px;margin-bottom:16px;
}
.strategy h3{font-size:15px;font-weight:700;margin-bottom:8px;letter-spacing:-.01em}
.strategy ul{margin-left:18px;color:var(--ink-soft);font-size:14.5px}
.strategy li{margin-bottom:6px}

/* Steps */
.steps{counter-reset:step;list-style:none}
.steps li{
  counter-increment:step;position:relative;
  padding:14px 0 14px 44px;border-bottom:1px solid var(--border);
  font-size:15px;
}
.steps li:last-child{border-bottom:none}
.steps li::before{
  content:counter(step);
  position:absolute;left:0;top:12px;
  width:28px;height:28px;border-radius:8px;
  background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:600;
}

.footer{
  border-top:1px solid var(--border);margin-top:60px;padding-top:24px;
  color:var(--faint);font-size:13px;
}

@media (max-width:720px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  .swot-grid{grid-template-columns:1fr}
  .chart-box{height:280px}
  .chart-box.tall{height:340px}
  .nav-inner{flex-wrap:wrap;gap:10px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
}
