*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #111827;
  background: #FFFFFF;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / nav ---------- */
.web-header {
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
  position: sticky; top: 0; z-index: 10;
}
.web-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.web-brand { display: flex; align-items: center; gap: 10px; color: #111827; text-decoration: none; }
.web-brand:hover { text-decoration: none; }
.web-brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}
.web-brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.web-nav { display: flex; gap: 22px; align-items: center; }
.web-nav a {
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.web-nav a:hover { color: #111827; text-decoration: none; }
.web-nav a.active { color: #111827; border-bottom-color: #1a73e8; }

/* ---------- Layout ---------- */
.web-main { flex: 1; padding: 56px 0; }
.web-main h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #111827;
}
.web-main h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: #111827;
}
.web-main h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: #111827;
}
.web-main p { color: #374151; font-size: 15px; margin-bottom: 14px; }
.web-main ul, .web-main ol { color: #374151; font-size: 15px; padding-left: 24px; margin-bottom: 14px; }
.web-main li { margin-bottom: 6px; }
.web-main code {
  background: #F3F4F6;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #111827;
}

/* ---------- Hero (landing) ---------- */
.web-hero {
  text-align: center;
  padding: 30px 0 50px;
}
.web-hero p.web-lede {
  font-size: 18px;
  color: #4B5563;
  max-width: 620px;
  margin: 0 auto 30px;
}
.web-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.web-cta-primary,
.web-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.web-cta-primary { background: #1a73e8; color: white; box-shadow: 0 0 32px 16px rgb(26 115 232 / 10%); }
.web-cta-primary:hover {
  background: #1557b0;
  text-decoration: none;
}
.web-cta-secondary { background: #FFFFFF; color: #111827; border: 1px solid #E5E7EB; }
.web-cta-secondary:hover { background: #F9FAFB; border-color: #D1D5DB; text-decoration: none; }

/* ---------- Feature grid ---------- */
.web-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.web-feature {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px;
}
.web-feature-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #111827; }
.web-feature-body { color: #4B5563; font-size: 14px; line-height: 1.55; }

/* ---------- Pricing card ---------- */
.web-pricing {
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-top: 30px;
}
.web-pricing h2 { margin-top: 0; }
.web-pricing > p { color: #4B5563; }
.web-pricing > p.web-pricing-fineprint { font-size: 13px; color: #6B7280; margin-top: 18px; }
.web-pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.web-tier {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 18px;
}
.web-tier-name { font-weight: 700; font-size: 14px; color: #6B7280; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.web-tier-price { font-size: 26px; font-weight: 800; color: #111827; }
.web-tier-price-sub { font-size: 13px; color: #6B7280; margin-top: 2px; }
.web-tier-features { margin-top: 14px; text-align: left; padding-left: 18px; color: #374151; font-size: 13px; }
.web-tier-features li { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.web-faq-section { margin-top: 28px; }
.web-faq-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
  margin: 28px 0 10px;
}
details.web-faq {
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 0;
}
details.web-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
details.web-faq summary::-webkit-details-marker { display: none; }
details.web-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -1px;
  color: #9CA3AF;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
details.web-faq[open] summary::after { content: '−'; }
details.web-faq .web-faq-answer { color: #4B5563; font-size: 14.5px; margin-top: 10px; line-height: 1.6; }
details.web-faq .web-faq-answer p { margin-bottom: 10px; }
details.web-faq .web-faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Legal pages (privacy / terms) ---------- */
.web-legal-meta {
  color: #6B7280;
  font-size: 13px;
  margin-bottom: 24px;
}
/* ---------- Footer ---------- */
.web-footer {
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
  padding: 22px 0;
  margin-top: 60px;
}
.web-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 13px;
}
.web-footer-sep { color: #D1D5DB; }
.web-footer a { color: #6B7280; }
.web-footer a:hover { color: #111827; }

/* ---------- Theme toggle (moon ⇄ sun) ---------- */
.web-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.web-theme-toggle:hover { color: #111827; background: #F3F4F6; }
.web-theme-toggle:focus-visible {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}
.web-theme-toggle svg { display: block; }
/* Moon shows in light mode; sun shows in dark mode. Selectors are
   `.web-theme-toggle .web-theme-X` rather than `.web-theme-X` so they beat
   the `.web-theme-toggle svg` rule above on specificity. */
.web-theme-toggle .web-theme-sun { display: none; }
html.dark .web-theme-toggle .web-theme-moon { display: none; }
html.dark .web-theme-toggle .web-theme-sun { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .web-main h1 { font-size: 30px; }
  .web-main { padding: 36px 0; }
  .web-hero { padding: 10px 0 30px; }
  .web-hero p.web-lede { font-size: 16px; }
  .web-nav { gap: 14px; }
  .web-nav a { font-size: 13px; }
}

/* ============================================================
   DARK MODE: palette mirrors the add-on sidebar's `body.dark`
   for visual consistency across surfaces. Tailwind-ish grays:
     bg                  #111827  (gray-900)
     surface             #1f2937  (gray-800)
     surface-2           #374151  (gray-700)
     border-hover        #4B5563  (gray-600)
     text                #F9FAFB  (gray-50)
     text-muted          #D1D5DB  (gray-300)
     text-faint          #9CA3AF  (gray-400)
     text-fainter        #6B7280  (gray-500)
     link                #60a5fa  (blue-400)
     link-hover          #93c5fd  (blue-300)
   ============================================================ */
html.dark body { background: #111827; color: #F9FAFB; }

/* Header */
html.dark .web-header { background: #111827; border-bottom-color: #374151; }
html.dark .web-brand { color: #F9FAFB; }
html.dark .web-nav a { color: #9CA3AF; }
html.dark .web-nav a:hover { color: #F9FAFB; }
html.dark .web-nav a.active { color: #F9FAFB; border-bottom-color: #60a5fa; }
html.dark .web-theme-toggle { color: #9CA3AF; }
html.dark .web-theme-toggle:hover { color: #F9FAFB; background: #1f2937; }
html.dark .web-theme-toggle:focus-visible { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }

/* Body text */
html.dark .web-main h1,
html.dark .web-main h2,
html.dark .web-main h3 { color: #F9FAFB; }
html.dark .web-main p { color: #D1D5DB; }
html.dark .web-main ul,
html.dark .web-main ol { color: #D1D5DB; }
html.dark .web-main code { background: #1f2937; color: #F9FAFB; }

/* Hero */
html.dark .web-hero p.web-lede { color: #9CA3AF; }
html.dark .web-cta-secondary { background: #1f2937; color: #F9FAFB; border-color: #374151; }
html.dark .web-cta-secondary:hover { background: #374151; border-color: #4B5563; }

/* Features grid */
html.dark .web-feature { background: #1f2937; border-color: #374151; }
html.dark .web-feature-title { color: #F9FAFB; }
html.dark .web-feature-body { color: #9CA3AF; }

/* Pricing card */
html.dark .web-pricing {
  background: linear-gradient(135deg, #0b1f3a 0%, #111016 100%);
  border-color: #1e3a5f;
}
html.dark .web-pricing > p { color: #9CA3AF; }
html.dark .web-tier { background: #1f2937; border-color: #374151; }
html.dark .web-tier-name { color: #9CA3AF; }
html.dark .web-tier-price { color: #F9FAFB; }
html.dark .web-tier-price-sub { color: #9CA3AF; }
html.dark .web-tier-features { color: #D1D5DB; }

/* FAQ accordions */
html.dark details.web-faq { border-bottom-color: #374151; }
html.dark details.web-faq summary { color: #F9FAFB; }
html.dark details.web-faq summary::after { color: #6B7280; }
html.dark details.web-faq .web-faq-answer { color: #9CA3AF; }
html.dark .web-faq-section-label { color: #9CA3AF; }

/* Legal pages */
html.dark .web-legal-meta { color: #9CA3AF; }

/* Footer */
html.dark .web-footer { background: #0b1220; border-top-color: #374151; }
html.dark .web-footer-inner { color: #9CA3AF; }
html.dark .web-footer-sep { color: #4B5563; }
html.dark .web-footer a { color: #9CA3AF; }
html.dark .web-footer a:hover { color: #F9FAFB; }

/* Dark mode scrollbars (matches the add-on sidebar's pattern) */
html.dark { scrollbar-color: #4B5563 #1f2937; }
html.dark ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark ::-webkit-scrollbar-track { background: #1f2937; }
html.dark ::-webkit-scrollbar-thumb { background: #4B5563; border-radius: 5px; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #6B7280; }
