/* ==========================================================================
   DevHeaders — shared stylesheet (index.html + privacy.html)
   Design system mirrors the extension popup: light surface, blue accent,
   system font stack, no external dependencies.
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-tint: rgba(37, 99, 235, 0.12);
  --header-bg: rgba(255, 255, 255, 0.85);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --container-width: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #334155;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-tint: rgba(59, 130, 246, 0.18);
    --header-bg: rgba(15, 23, 42, 0.85);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--accent-tint);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.05rem;
}

/* ---- Site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand svg {
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding-block: 64px 48px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.value-prop {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 14px;
}

.supporting {
  color: var(--muted);
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

@media (max-width: 420px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ---- Section headings shared ---- */
.section {
  padding-block: 40px;
}

.section-heading {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-subheading {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Product preview / popup mock ---- */
.popup-mock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.popup-mock {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.popup-mock__titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.popup-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.popup-mock__title {
  margin-left: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
}

.popup-mock__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-master-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.mock-toggle {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.mock-toggle__thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mock-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mock-tab {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
}

.mock-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mock-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.mock-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.mock-table tr:last-child td {
  border-bottom: none;
}

.mock-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.mock-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mock-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  background: var(--bg);
}

.mock-add-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.popup-mock-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* ---- Features ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- How to start ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
  padding: 0;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Trust strip ---- */
.trust {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-block: 12px 48px;
}

.trust p {
  font-weight: 600;
  margin-bottom: 10px;
}

.trust a {
  font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-block: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Privacy page prose ---- */
.prose {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 48px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--accent);
}

.prose h1 {
  font-size: 2rem;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 4px;
}

.prose p + h2 {
  margin-top: 32px;
}
