/* ==========================================================================
   Bohuainter — Design system
   Inspired by a calm, privacy-first, editorial aesthetic
   ========================================================================== */

:root {
  --blue: #155eef;
  --blue-dark: #0f4ccc;
  --blue-50: #eaf3ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --yellow: #fde047;
  --yellow-soft: rgba(253, 224, 71, 0.55);
  --ink: #111827;
  --ink-2: #1e293b;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #f1f3f6;
  --bg: #ffffff;
  --bg-soft: #f7fbff;
  --cream: #fbf6ea;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 4px 16px -4px rgba(16, 24, 40, 0.08), 0 2px 6px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 24px 48px -24px rgba(21, 94, 239, 0.28), 0 8px 24px -12px rgba(16, 24, 40, 0.1);
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-right: 14px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--blue) 0%, #3b82f6 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(21, 94, 239, 0.32);
}
.brand-text b { font-weight: 800; }
.brand-text span { color: var(--gray-400); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
  padding: 9px 13px;
  border-radius: 12px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--blue-50); color: var(--blue); }

.nav-item { position: relative; }
.nav-caret { width: 13px; height: 13px; transition: transform 0.2s ease; opacity: 0.7; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  width: min(380px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown-head {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.dropdown-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 12px;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}
.dropdown-item:hover { background: var(--blue-50); }
.dropdown-item:hover .dd-title { color: var(--blue); }
.dd-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.dropdown-item > span:last-child { min-width: 0; flex: 1 1 auto; display: block; }
.dropdown-item .dd-title, .dropdown-item .dd-desc { display: block; }
.dd-title { font-size: 13.5px; font-weight: 650; color: var(--ink); line-height: 1.35; }
.dd-desc { font-size: 12px; color: var(--gray-500); line-height: 1.4; margin-top: 1px; }
.dropdown-foot {
  margin-top: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
}
.dropdown-foot a { font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  background: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 460px;
  background: linear-gradient(to bottom, #f0f8ff 0%, rgba(240, 248, 255, 0.4) 55%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  width: 880px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.75) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-center { text-align: center; max-width: 820px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #92400e;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #fde68a;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}
.eyebrow i { color: #f59e0b; font-style: normal; font-size: 12px; }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.06;
  margin: 22px 0 0;
  font-weight: 780;
}
.mark {
  background-image: linear-gradient(transparent 62%, var(--yellow-soft) 62%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}
.hero p.lead {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-600);
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(21, 94, 239, 0.55);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 14px 28px -10px rgba(21, 94, 239, 0.6); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f9fafb; border-color: #d1d5db; color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  padding: 18px 0 0;
}
.crumbs a { color: var(--gray-500); }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--gray-400); opacity: 0.7; }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }
.crumbs-bar { border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-cream { background: var(--cream); }

.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { margin-top: 14px; color: var(--gray-600); font-size: 17px; }
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  color: inherit;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
  color: inherit;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: 4px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17.5px; font-weight: 700; }
.card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }
.card .card-more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Tool UI ---------- */
.tool-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fcfdff;
}
.tool-toolbar .spacer { margin-left: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--gray-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.chip:hover { border-color: var(--blue-200); color: var(--blue); background: var(--blue-50); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.link-btn {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--gray-500);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.link-btn:hover { background: #f3f4f6; color: var(--ink); }

textarea.tool-input {
  display: block;
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 0;
  outline: none;
  padding: 22px 24px;
  font-family: inherit;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  background: #fff;
}
textarea.tool-input::placeholder { color: var(--gray-400); }
textarea.tool-input:focus { background: #fff; }

.tool-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  border-top: 1px solid var(--line-soft);
  background: #fcfdff;
}
.stat {
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: 24px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat .lab {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 3px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 22px 24px;
  background: #fff;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 650; color: var(--gray-600); letter-spacing: 0.01em; }
.field input[type="number"], .field input[type="text"], .field select {
  height: 44px;
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-2);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.result-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.result-box .stat { background: #fff; border: 0; }
.result-hero {
  padding: 26px 24px;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  border-top: 1px solid var(--line-soft);
}
.result-hero .big {
  font-size: 44px;
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.result-hero .cap { font-size: 13.5px; color: var(--gray-500); margin-top: 4px; }

.warn {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
}

/* meter bar */
.meter { width: 100%; height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--blue); transition: width 0.25s ease; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 27px; margin: 40px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; color: var(--gray-700); font-size: 16.5px; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--gray-700); line-height: 1.8; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--blue-200); text-underline-offset: 3px; }
.prose blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--yellow);
  color: var(--gray-600);
  font-style: italic;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--blue-50);
  color: var(--blue-dark);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: 13.5px; }

/* callout */
.callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  margin: 22px 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}
.callout b { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(to bottom, var(--bg-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 44px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 20px; }
.page-hero p { margin-top: 14px; color: var(--gray-600); font-size: 17.5px; max-width: 680px; line-height: 1.75; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 4px 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
details.faq[open] { border-color: var(--blue-200); box-shadow: var(--shadow); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 680;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1;
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { content: "–"; transform: none; }
details.faq .faq-body { padding: 0 0 18px; color: var(--gray-600); font-size: 15.5px; line-height: 1.75; }
details.faq .faq-body p { margin-bottom: 10px; }

/* ---------- Blog list ---------- */
.post-list { display: grid; gap: 18px; }
.post-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-200); color: inherit; }
.post-card .pc-body { flex: 1; min-width: 0; }
.post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-50);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 9px;
}
.post-card h3 { font-size: 19px; margin-bottom: 7px; }
.post-card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.65; }
.post-meta { margin-top: 10px; font-size: 12.5px; color: var(--gray-400); display: flex; gap: 10px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 52px 0 24px;
  margin-top: 24px;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 34px;
}
.footer-brand p { margin-top: 14px; color: var(--gray-500); font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 550;
  background-image: linear-gradient(var(--yellow-soft), var(--yellow-soft));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0 0.5em;
  padding: 0 0.1em;
  margin: 0 -0.1em;
  transition: background-size 0.25s ease, color 0.15s ease;
}
.footer-col a:hover { background-size: 100% 0.5em; color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  font-size: 13px;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--blue); }
.footer-wordmark {
  font-size: clamp(3.5rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 18px 0 -0.12em;
  background-image: linear-gradient(to bottom, var(--blue-200), rgba(219, 234, 254, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  text-align: center;
}

/* ---------- misc ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.center { text-align: center; }
.muted { color: var(--gray-500); }
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fcfdff;
  position: sticky;
  top: 88px;
}
.side-card h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 14px; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-card a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 9px;
}
.side-card a:hover { background: var(--blue-50); color: var(--blue); }

/* 404 */
.err-code {
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-200) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tool-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(16, 24, 40, 0.3);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { justify-content: space-between; width: 100%; padding: 12px 12px; }
  .dropdown {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 12px;
    background: #fafbff;
    padding: 6px;
    margin: 2px 0 8px;
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open:hover .dropdown { display: block; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .post-card { flex-direction: column; gap: 12px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
  .tool-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .field-row { padding: 18px; }
  .field { width: 100%; }
  .field input, .field select { width: 100%; }
  .result-hero .big { font-size: 36px; }
}
