:root {
  --ink: #111827;
  --muted: #5f6877;
  --soft: #f6f7f9;
  --line: #e5e7eb;
  --brand: #0b0d12;
  --blue: #2563eb;
  --green: #0f9f6e;
  --amber: #b7791f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  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; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.02em; }
.links { display: flex; align-items: center; gap: 20px; color: #374151; font-size: 14px; font-weight: 650; }
.links a:hover { color: #000; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  border: 1px solid var(--brand);
}
.cta.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.cta.text { background: transparent; color: var(--blue); border-color: transparent; padding: 0; min-height: auto; }

.hero {
  padding: 86px 0 56px;
  background:
    radial-gradient(circle at 20% 10%, rgba(37,99,235,.12), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(15,159,110,.10), transparent 28%),
    linear-gradient(#fff, #fafafa);
}
.hero .wrap { text-align: center; }
.hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
.hero .hero-actions { justify-content: center; }
.home-hero { padding: 78px 0 48px; }
.home-hero .wrap,
.center { text-align: center; }
.home-hero h1,
.home-hero .lead,
.center h2,
.center .muted { margin-left: auto; margin-right: auto; }
.home-hero .hero-actions,
.center .hero-actions,
.center .tool-row { justify-content: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 750;
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.05; }
h1 { max-width: 850px; margin-top: 22px; font-size: clamp(42px, 7vw, 78px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 22px; }
.lead { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { color: #6b7280; font-size: 13px; margin-top: 12px; }

.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section.border { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(17,24,39,.05);
}
.card.flat { box-shadow: none; }
.tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3343a0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; }
.list { padding-left: 20px; margin: 18px 0 0; color: var(--muted); }
.list li { margin: 9px 0; }
.example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.sample {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
}
.sample strong { display: block; margin-bottom: 8px; }
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 13px; font-weight: 700; background: #fff; }
.table-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  margin: 28px 0 12px;
  padding: 14px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: #f0fdf4;
  color: #064e3b;
}
.table-intro strong { font-size: 17px; }
.table-intro span { color: #047857; font-weight: 650; font-size: 14px; text-align: right; }
.compare-table { width: 100%; min-width: 900px; border-collapse: collapse; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare-table th { background: #f9fafb; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #4b5563; white-space: nowrap; }
.compare-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: 0 18px 50px rgba(17,24,39,.05); }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; }
.compare-table td:first-child { font-weight: 800; min-width: 160px; }
.compare-table small { display: block; margin-top: 4px; color: #6b7280; font-size: 12px; line-height: 1.35; }
.yes, .no, .score, .single, .plain-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}
.yes { width: 38px; color: #047857; background: #d1fae5; font-size: 0; }
.no { width: 38px; color: #b91c1c; background: #fee2e2; font-size: 0; }
.yes::before { content: "✓"; font-size: 20px; line-height: 1; }
.no::before { content: "✕"; font-size: 19px; line-height: 1; }
.score { min-width: 44px; color: #064e3b; background: #a7f3d0; font-size: 19px; box-shadow: inset 0 0 0 2px rgba(4,120,87,.08); }
.single { min-width: 36px; color: #991b1b; background: #fecaca; font-size: 18px; }
.plain-yes { color: #374151; background: #f3f4f6; padding: 0 12px; }
.winner-row { background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%); }
.winner-row td { border-top: 1px solid #bbf7d0; border-bottom: 1px solid #bbf7d0; }
.section-head { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0; }
.quick-link { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: #fff; font-size: 14px; font-weight: 750; color: #374151; }
.quick-link:hover { border-color: var(--brand); color: var(--brand); }
.practice { max-width: 900px; margin: 0 auto; }
.practice h3 { margin-top: 28px; }
.practice p { color: var(--muted); }
.practice .card { margin-top: 18px; }
.article { max-width: 900px; margin: 0 auto; text-align: center; }
.article p { color: var(--muted); }
.article .list { display: inline-block; max-width: 760px; text-align: left; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 28px auto 0; text-align: left; }
.article-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(17,24,39,.04);
}
.article-card h3 { font-size: 20px; margin-bottom: 10px; }
.article-card p { margin: 0; }
.article-note { max-width: 840px; margin: 22px auto 0; padding: 18px 20px; border: 1px solid #bfdbfe; border-radius: 16px; background: #eff6ff; color: #1e3a8a; }
.article-note p { color: #1e40af; margin: 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
}
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); margin-bottom: 0; }
.footer { padding: 44px 0; border-top: 1px solid var(--line); color: #6b7280; font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.disclaimer { max-width: 760px; }

@media (max-width: 860px) {
  .links { display: none; }
  .hero { padding-top: 58px; }
  .split, .grid.two, .grid.three, .grid.four, .example, .article-grid, .article-grid.three { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 28px, 1120px); }
  .nav-inner { height: 64px; }
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  .compare-table thead { display: none; }
  .compare-table tr {
    border-bottom: 1px solid var(--line);
    padding: 14px;
  }
  .compare-table tr:last-child { border-bottom: 0; }
  .compare-table td {
    border-bottom: 0;
    padding: 8px 0;
    text-align: center;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
  }
  .compare-table td:first-child {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .compare-table td:first-child::before { display: none; }
}

@media (max-width: 520px) {
  .nav-inner { justify-content: center; }
  .nav .cta { display: none; }
}

/* Mobile navbar */
.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, #e5e7eb);
  border-radius: 8px;
  background: var(--panel, var(--paper, #fff));
  color: var(--ink, #111827);
  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: 780px) {
  .topbar {
    position: sticky;
    top: 0;
    min-height: 66px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 10px 0;
  }
  .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% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 8px;
    background: var(--panel, var(--paper, #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;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 10px 12px;
    white-space: normal;
  }
  .topbar nav a:hover { background: rgba(15, 23, 42, .06); }
  .topbar .mobile-nav-toggle,
  .nav-inner .mobile-nav-toggle { display: inline-flex; }
  .nav-inner { position: relative; }
  .nav-inner .links { display: none; }
  .nav.mobile-nav-open .links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
  }
  .nav.mobile-nav-open .links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 10px 12px;
  }
  .nav.mobile-nav-open .links a:hover { background: rgba(15, 23, 42, .06); }
}

