:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0f766e;
  --accent: #0284c7;
  --line: #e2e8f0;
  --ok: #047857;
  --warn: #b45309;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 8px 24px rgba(15, 23, 42, 0.08);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --shell: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.m4 {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
}
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.shell.narrow { max-width: 760px; }
.muted { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: #f1f5f9; padding: 0.1em 0.35em; border-radius: 6px; }

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,248,251,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img, .brand svg { width: 32px; height: 32px; border-radius: 8px; }
.brand-text { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.brand-text strong { color: var(--primary); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); }
.nav a:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
.hero h1, .article-head h1 {
  font-family: var(--display); font-size: 44px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px;
}
.lede { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--primary); color: #ffffff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  transition: background 150ms ease;
}
.btn:hover { background: #115e59; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.hero-points { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card, .panel, .tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-kicker { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.stat-dl { display: grid; gap: 12px; margin: 0; }
.stat-dl div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.stat-dl dt { color: var(--muted); font-size: 14px; }
.stat-dl dd { margin: 0; font-weight: 700; text-align: right; }
.source { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

.section { padding: 48px 0; }
.section-head { margin-bottom: 24px; max-width: 70ch; }
.section-head h2 { font-family: var(--display); font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field select, .field input {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; background: var(--surface); color: var(--text); font: inherit;
}
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.compare-table th { background: #f1f5f9; font-size: 13px; color: #334155; }
.compare-table .win { color: var(--ok); font-weight: 700; }
.cost-box { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cost-box .panel { padding: 16px; }
.cost-box strong { display: block; font-size: 22px; font-family: var(--display); margin-top: 4px; }

.intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.intent-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform 150ms ease, box-shadow 150ms ease;
}
.intent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.intent-card h3 { margin: 0 0 6px; font-size: 16px; font-family: var(--display); }
.intent-card p { margin: 0; color: var(--muted); font-size: 14px; }

.article { padding: 32px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--display); font-size: 28px; line-height: 1.2; margin: 32px 0 12px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p, .prose li { color: #1e293b; }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; background: var(--surface); }
.prose th { background: #f1f5f9; }
.callout {
  border-left: 4px solid var(--accent); background: var(--surface); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0; box-shadow: var(--shadow);
}
.callout.warn { border-left-color: var(--warn); }

.site-foot { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--surface); margin-top: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.foot-h { font-weight: 700; margin-bottom: 10px; }
.site-foot a { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; font-size: 14px; }
.site-foot a:hover { color: var(--text); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; padding-bottom: 8px; }

@media (max-width: 640px) {
  .hero h1, .article-head h1 { font-size: 30px; }
  .hero-grid, .tool-grid, .intent-grid, .foot-grid, .cost-box { grid-template-columns: 1fr; }
  .head-row { min-height: 56px; flex-wrap: wrap; }
  .nav { width: 100%; gap: 8px 12px; padding-bottom: 10px; }
  .btn { width: 100%; }
}
