/* SafeBrowz blog + landing page styles - shared across all /blog/ and marketing landing pages */

:root, [data-theme="dark"] {
  --bg: #050510;
  --bg-2: #0a0a1a;
  --surface: #0f0f20;
  --surface-2: #14142a;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #ffffff;
  --text-dim: #9ca3af;
  --text-mute: #6b7280;
  --green: #10b981;
  --green-2: #34d399;
  --green-dim: rgba(16,185,129,0.15);
  --green-glow: rgba(16,185,129,0.4);
  --yellow: #f59e0b;
  --yellow-dim: rgba(245,158,11,0.15);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand svg { width: 22px; height: 22px; }
.brand-text { font-weight: 900; font-size: 19px; letter-spacing: -0.6px; }
.brand-text .g { color: var(--green); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
/* Hide the dropdown-only CTA on desktop (only appears inside mobile dropdown) */
.nav-links a[data-nav="cta"] { display: none !important; }
.cta-mini {
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .15s, box-shadow .15s;
}
.cta-mini:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--green-glow); }

/* Hero */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, var(--green-dim), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-section > .container { position: relative; z-index: 1; }
.kicker {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  padding: 7px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 18px;
}
h1 .grad {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.cta-btn-primary {
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.2px;
  transition: transform .15s, box-shadow .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--green-glow); }
.cta-btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-btn-outline:hover { border-color: var(--green); background: var(--green-dim); }

/* Branded store install buttons */
.store-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.store-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: border-color .15s, transform .15s, background .15s;
}
.store-btn:hover { border-color: var(--green); transform: translateY(-2px); }
.store-btn img { width: 20px; height: 20px; display: block; }
.store-btn.chrome:hover { border-color: #4285f4; background: rgba(66,133,244,0.08); }
.store-btn.firefox:hover { border-color: #ff7139; background: rgba(255,113,57,0.08); }
.store-btn.edge:hover { border-color: #0078d4; background: rgba(0,120,212,0.08); }
.store-btn-primary {
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  border-color: transparent;
}
.store-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--green-glow); }

/* Sections */
.section { padding: 70px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section p {
  font-size: 16.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.section-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Feature grid (3-col) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(16,185,129,0.25); transform: translateY(-2px); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}
.step-list .step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  position: relative;
  padding-left: 72px;
}
.step-list .step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.step-list { counter-reset: step; }
.step-list .step h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}
.step-list .step p { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; margin: 0; }

/* Compare table */
.compare-table-wrap { overflow-x: auto; margin-top: 32px; border-radius: 14px; border: 1px solid var(--border); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
  min-width: 560px;
}
.compare-table thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  text-align: left;
  padding: 16px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}
.compare-table thead th:last-child { color: var(--green); }
.compare-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(16,185,129,0.03); }
.compare-table td:first-child { color: var(--text); font-weight: 600; }
.compare-table td:last-child { color: var(--green-2); font-weight: 700; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 22px;
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: rgba(255,255,255,0.02); }
.faq-item-body {
  padding: 4px 24px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item-body p { margin-bottom: 10px; }
.faq-item-body p:last-child { margin-bottom: 0; }

/* Also style direct <p>/<ul>/<ol> inside <details> (no wrapper needed) */
.faq-item details > p,
.faq-item details > ul,
.faq-item details > ol {
  padding: 4px 24px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.faq-item details > p + p { padding-top: 0; margin-top: -14px; padding-bottom: 22px; }
.faq-item details > ul { padding-left: 44px; list-style: disc; }
.faq-item details > ol { padding-left: 44px; }

/* Bullet list */
.bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullet-list li {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  padding-left: 28px;
  position: relative;
}
.bullet-list li::before {
  content: "▸";
  color: var(--green);
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 18px;
}
.bullet-list li strong { color: var(--text); font-weight: 700; }

/* Highlight box (for price callouts, important stats) */
.highlight-box {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 24px 0;
}
.highlight-box h3 {
  color: var(--green);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.highlight-box p { margin: 0; font-size: 17px; color: var(--text); line-height: 1.6; }

/* Warning box (for recovery guides, red/urgent content) */
.warning-box {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(245,158,11,0.04));
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 24px 0;
}
.warning-box h3 {
  color: var(--yellow);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ─── Article (blog) ─── */
.article-page { padding: 0; }
.article-header {
  text-align: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--green-dim), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.article-header .container-narrow { position: relative; z-index: 1; }
.article-header h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.article-lede {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.article-meta {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.article-body {
  padding: 50px 0 60px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
}
.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-top: 48px;
  margin-bottom: 18px;
  color: var(--text);
  scroll-margin-top: 80px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.article-body p { margin-bottom: 20px; }
.article-body strong, .article-body b { color: var(--text); font-weight: 700; }
.article-body a { color: var(--green-2); border-bottom: 1px solid rgba(52,211,153,0.35); transition: border-color .15s; }
.article-body a:hover { border-bottom-color: var(--green); }
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 22px;
}
.article-body ul li, .article-body ol li { margin-bottom: 10px; }
.article-body ul li::marker { color: var(--green); }
.article-body ol li::marker { color: var(--green); font-weight: 700; }
.article-body code {
  background: var(--surface-2);
  color: var(--green-2);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
}
.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 22px;
}
.article-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  display: block;
}
.article-body blockquote {
  border-left: 3px solid var(--green);
  padding: 8px 20px;
  margin: 22px 0;
  color: var(--text-dim);
  font-style: italic;
}

/* Article CTA block (end of article) */
.article-cta {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 50px 0 30px;
  text-align: center;
}
.article-cta h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.article-cta p { color: var(--text-dim); margin-bottom: 22px; font-size: 15px; }
.article-cta .buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.article-cta .buttons a {
  padding: 11px 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, transform .15s;
  border-bottom: 1px solid var(--border-strong);
}
.article-cta .buttons a:hover { border-color: var(--green); transform: translateY(-1px); }
.article-cta .buttons a.primary {
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  border-color: transparent;
}

/* Article related links */
.article-related {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 30px;
}
.article-related h3 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  font-weight: 700;
}
.article-related ul { list-style: none; padding: 0; }
.article-related li { margin-bottom: 8px; }
.article-related a {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  border-bottom: none;
}
.article-related a:hover { color: var(--green-2); }
.article-related a::before { content: "→ "; color: var(--green); }

/* Install CTA section (landing pages) */
.install-cta-section {
  background: linear-gradient(180deg, rgba(16,185,129,0.05), transparent);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.install-cta-section h2 { margin-bottom: 16px; }
.install-cta-section p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 32px;
}
.install-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.install-buttons a {
  padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color .15s, transform .15s;
}
.install-buttons a:hover { border-color: var(--green); transform: translateY(-2px); }
.install-buttons a img { width: 20px; height: 20px; }
.install-footnote {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* Footer — matches homepage footer */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
footer .meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  margin-top: 8px;
}
footer > .container > div > a,
footer .links a {
  color: var(--text-dim);
  margin: 0 12px;
  transition: color 0.2s;
  text-decoration: none;
}
footer > .container > div > a:hover,
footer .links a:hover { color: var(--green); }
footer .social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 8px;
}
footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0;
  transition: all 0.2s;
}
footer .social a:hover {
  background: var(--green-dim);
  border-color: var(--green);
  transform: translateY(-2px);
}
footer .social svg {
  width: 16px;
  height: 16px;
  fill: var(--text-dim);
  transition: fill 0.2s;
}
footer .social a:hover svg { fill: var(--green); }

/* Mobile hamburger menu */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--green); background: var(--green-dim); }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; color: var(--text); }
.nav-toggle svg.nav-toggle-open { display: block; }
.nav-toggle svg.nav-toggle-close { display: none; }
.nav-toggle.open svg.nav-toggle-open { display: none; }
.nav-toggle.open svg.nav-toggle-close { display: block; }

/* Narrow screens (tablet + mobile) — hide Install Free CTA (it goes into dropdown), show hamburger */
@media (max-width: 860px) {
  nav { padding: 12px 0; }
  .nav-row { gap: 10px; flex-wrap: nowrap; justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-text { font-size: 18px; }
  /* Hide the inline Install Free button on narrow screens — dropdown includes it */
  nav .cta-mini { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,5,16,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 10px 0 16px;
    z-index: 9;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a[data-nav="cta"] {
    display: block !important;
    margin: 12px 24px 0;
    text-align: center;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green), #059669);
    color: #fff;
    font-weight: 800;
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .hero-section { padding: 56px 0 40px; }
  .section { padding: 50px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-list .step { padding: 20px 20px 20px 60px; }
  .step-list .step::before { left: 18px; top: 18px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  .article-body { font-size: 16px; line-height: 1.7; }
  .article-body h2 { font-size: 22px; }
}
