:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --accent: #14b8a6;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--primary);
}

.page-wrap {
  padding-top: 32px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.hero-compact {
  margin-bottom: 48px;
}

.hero-header {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 32px 0 16px;
  font-weight: 700;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 24px 0 12px;
  font-weight: 600;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.prose-section p, .prose-section li {
  max-width: 70ch;
}

.prose-section img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0 24px;
  display: block;
}

.prose-section pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}

.prose-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.prose-section th, .prose-section td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.prose-section th {
  background: var(--bg);
  font-weight: 600;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-primary:focus-visible, .btn-outline:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline[data-gf-liked], .btn-outline[aria-pressed="true"] {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.engage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.engage-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.privacy-pill {
  font-size: 12px;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tool-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}

.tool-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
}

.form-row {
  margin-bottom: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comments-list:not([data-gf-empty]) .empty-comments-tip {
  display: none;
}

.comment-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.owner-tag {
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
}

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 420px;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
  .card {
    padding: 16px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .btn-primary, .btn-outline {
    width: 100%;
  }
}