:root {
  --ink: #10141f;
  --muted: #5f6878;
  --line: #e4e7ee;
  --soft: #f7f8fb;
  --green: #178857;
  --green-soft: #e8f7ee;
  --blue: #2563eb;
  --blue-soft: #edf4ff;
  --amber: #b7791f;
  --amber-soft: #fff7df;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(228, 231, 238, .9);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(16,20,31,.04);
}
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 950; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: #374151; font-weight: 850; }
.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 11px;
  white-space: nowrap;
}
.nav a:hover { background: var(--soft); color: var(--green); }
.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 44px;
  align-items: center;
  padding: 46px 0 68px;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #536071;
  font-size: 13px;
  font-weight: 850;
}
h1, h2, h3 { margin: 0; letter-spacing: 0; line-height: 1.04; }
h1 { font-size: clamp(46px, 6vw, 82px); }
h2 { font-size: clamp(31px, 4.6vw, 56px); }
h3 { font-size: 23px; }
.lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  max-width: 760px;
}
.micro { margin-top: 18px; color: #6b7280; font-size: 15px; max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary, .secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
}
.primary { background: var(--ink); color: #fff; }
.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.hero-panel, .mini-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 30px 90px rgba(16,20,31,.08);
}
.panel-row, .mini-board div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: #536071;
  font-weight: 750;
}
.panel-row:last-child, .mini-board div:last-child { border-bottom: 0; }
.panel-row b, .mini-board b { color: var(--ink); }
.panel-row.highlighted, .mini-board .final { border-radius: 8px; background: var(--green-soft); color: var(--green); }
section { padding: 70px 0; }
.section-head {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 34px;
  text-align: center;
}
.section-head p:not(.eyebrow) {
  max-width: 840px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
}
.keyword-map, .workflow, .faq, .guides, .comparison { background: var(--soft); }
.cards, .steps, .tool-grid, .guide-grid, .intent-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.cards.three, .steps, .tool-grid, .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards article, .steps article, .tool-grid a, .guide-grid a, .intent-grid article {
  min-height: 205px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 16px 50px rgba(16,20,31,.04);
}
.cards article > span, .intent-grid span {
  display: block;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cards p, .steps p, .intent-grid p, .tool-grid span, .guide-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}
.intent-note {
  width: min(980px, calc(100% - 32px));
  margin: 18px auto 0;
  border: 1px solid #f3d79f;
  border-radius: 8px;
  background: var(--amber-soft);
  padding: 18px 20px;
  color: #6b4b10;
  font-weight: 750;
}
.explainer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.explainer-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 16px 50px rgba(16,20,31,.04);
}
.explainer-grid h3 { font-size: 22px; }
.explainer-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}
.table-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16,20,31,.06);
}
.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}
.comparison-table th {
  padding: 16px;
  background: #f8fafc;
  color: #4b5563;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.comparison-table td {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: #253041;
  font-weight: 650;
}
.comparison-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 650;
}
.comparison-table .winner td {
  background: var(--green-soft);
  border-top-color: #bfe9cc;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.badge.winner {
  background: var(--green);
  color: #fff;
}
.steps span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}
.steps h3 { margin-top: 14px; }
.split {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
}
.split p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 20px; }
.split .primary { margin-top: 24px; }
.content { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
.content p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 20px; }
.article {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}
.article h2 {
  margin-top: 42px;
  font-size: clamp(30px, 4vw, 48px);
}
.article h3 {
  margin-top: 28px;
  font-size: 24px;
}
.article p, .article li {
  color: var(--muted);
  font-size: 19px;
}
.article p { margin-top: 16px; }
.article ul, .article ol {
  margin: 18px 0 0;
  padding-left: 22px;
}
.article li + li { margin-top: 8px; }
.article-callout {
  margin-top: 28px;
  border: 1px solid #bfe9cc;
  border-radius: 8px;
  background: var(--green-soft);
  padding: 20px;
  color: #145c3d;
  font-weight: 800;
}
.dark { background: #10141f; color: #fff; }
.dark .content p:not(.eyebrow) { color: #cbd5e1; }
.faq-list {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}
details p { padding: 0 20px 20px; color: var(--muted); font-size: 17px; }
.footer {
  padding: 54px 18px 34px;
  border-top: 1px solid var(--line);
  color: #6b7280;
  font-size: 14px;
  background: #fff;
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 26px;
  text-align: left;
}
.footer h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}
.footer p { margin: 0; color: #6b7280; }
.footer a {
  display: block;
  margin-top: 8px;
  color: #374151;
  font-weight: 800;
}
.footer a:hover { color: var(--green); }
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6b7280;
  text-align: left;
}
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-nav-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
.mobile-nav-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  .hero, .split { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .actions { justify-content: center; }
  .cards.three, .steps, .tool-grid, .guide-grid, .intent-grid, .explainer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .topbar {
    min-height: 66px;
    gap: 12px;
    padding: 10px 18px;
  }
  .topbar .brand { min-width: 0; overflow: hidden; }
  .topbar .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
  }
  .topbar.mobile-nav-open nav { display: flex !important; }
  .topbar nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 10px 12px;
    white-space: normal;
  }
  .topbar nav a:hover { background: rgba(15, 23, 42, .06); }
  .topbar .mobile-nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  section { padding: 54px 0; }
  .cards.three, .steps, .tool-grid, .guide-grid, .intent-grid, .explainer-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .primary, .secondary { width: 100%; }
  .panel-row, .mini-board div { flex-direction: column; gap: 4px; }
}
