/* SEO Intel — shared stylesheet
   Built: 2026-05-03 from design/mockup_v1.html
   Dark mode default with toggle. Off-black palette + single accent. */

/* ── Tokens ──────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --raised: #21262d;
  --border: #30363d;
  --border-hi: #484f58;
  --text: #e6edf3;
  --text-mute: #8b949e;
  --text-dim: #6e7681;
  --accent: #6c8eef;
  --accent-hi: #8aa3f4;
  --accent-bg: rgba(108,142,239,.12);
  --success: #56b67c;
  --warning: #d4a64f;
  --danger: #e8675c;
  --halo: radial-gradient(ellipse at 50% 0%, rgba(108,142,239,.18), transparent 60%);
}
:root[data-theme="light"] {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --raised: #ffffff;
  --border: #e2e6ec;
  --border-hi: #c8cfd8;
  --text: #1a1f2c;
  --text-mute: #5a6478;
  --text-dim: #8a92a3;
  --accent: #4361d9;
  --accent-hi: #5878e8;
  --accent-bg: rgba(67,97,217,.08);
  --success: #2f8a52;
  --warning: #b58332;
  --danger: #c84d40;
  --halo: radial-gradient(ellipse at 50% 0%, rgba(67,97,217,.10), transparent 60%);
}

/* ── Reset / base ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 65ch; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p { color: var(--text-mute); margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--text-mute); margin: 0 0 16px 24px; }
.prose li { margin-bottom: 6px; }

/* ── Header ─────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { font-weight: 700; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent); display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-mute); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: all .15s ease;
  text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--text-mute); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-hi); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); color: #fff; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-mute); display: inline-flex;
  align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-hi); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 80px 0 64px; background: var(--halo); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: 48px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--text-mute); line-height: 1.55; max-width: 52ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--success); }

/* ── Hero preview card ──────────────────────────────────────────── */
.preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.1);
}
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.preview-title { font-size: 13px; font-weight: 500; color: var(--text-mute); }
.preview-pass {
  font-size: 12px; font-weight: 500; color: var(--success);
  background: rgba(86,182,124,.12); padding: 4px 10px; border-radius: 999px;
}
.preview h3 { font-size: 17px; color: var(--text); margin-bottom: 14px; line-height: 1.35; }
.preview-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border);
  font-size: 13px;
}
.preview-row:first-of-type { border-top: none; }
.preview-row span:first-child { color: var(--text-mute); }
.preview-row span:last-child { color: var(--text); font-weight: 500; }
.preview-row .warn { color: var(--warning); }
.preview-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }

/* ── Value band ─────────────────────────────────────────────────── */
section.value-band {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.value-band-inner { text-align: center; }
.value-band-text {
  font-size: 24px; font-weight: 500; line-height: 1.4;
  color: var(--text); max-width: 52ch;
  margin: 0 auto 14px; letter-spacing: -0.01em;
}
.value-band-text .accent-strong { color: var(--accent); font-weight: 700; }
.value-band-sub { font-size: 15px; color: var(--text-mute); max-width: 60ch; margin: 0 auto; line-height: 1.6; }

/* ── Tool grid ──────────────────────────────────────────────────── */
section.tools { padding: 64px 0; }
.section-head { margin-bottom: 36px; }
.section-eyebrow {
  font-size: 13px; font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; max-width: 22ch; }
.section-head p { color: var(--text-mute); margin-top: 12px; max-width: 56ch; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color .15s ease, transform .15s ease;
  cursor: pointer;
  text-align: left;
  position: relative;
}
.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-bg); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tool-icon svg { width: 18px; height: 18px; }
.tool h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tool p { font-size: 13px; color: var(--text-mute); line-height: 1.5; }
.tool-link { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.tool-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 500;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent);
}
.tool-badge.live { background: rgba(86,182,124,.12); color: var(--success); }

/* ── Tool #5 panel (modal-style) ────────────────────────────────── */
.panel-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.panel-overlay.open { display: flex; }
.panel {
  width: 100%; max-width: 820px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.panel-head h2 { font-size: 22px; font-weight: 700; }
.panel-head p { font-size: 13px; color: var(--text-mute); margin-top: 4px; }
.panel-close {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-mute); width: 32px; height: 32px;
  border-radius: 8px; font-size: 18px; line-height: 1;
}
.panel-close:hover { color: var(--text); border-color: var(--border-hi); }
.panel-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.panel-tab {
  background: transparent; border: none;
  color: var(--text-mute); padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.panel-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.panel-tab:hover { color: var(--text); }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-mute); margin-bottom: 6px;
}
.field label .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px;
  font-family: inherit; font-size: 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { min-height: 70px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.quota-bar {
  font-size: 12px; color: var(--text-dim);
  padding: 10px 14px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Result cards (tool #5 outputs) ─────────────────────────────── */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-top: 14px;
}
.result-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.result-platform { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.copy-btn {
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid transparent;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px;  /* big tap target for accessibility */
}
.copy-btn:hover { background: var(--accent); color: #fff; }
.copy-btn.copied { background: var(--success); color: #fff; }
.result-body { font-size: 13px; color: var(--text); }
.result-body .field-name { color: var(--text-mute); font-weight: 500; margin-top: 10px; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.result-body .field-value { white-space: pre-wrap; word-break: break-word; }
.result-body ul { margin-left: 18px; margin-top: 4px; }

.error-card {
  background: rgba(232,103,92,.08);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 14px; border-radius: 10px;
  font-size: 13px;
}

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Founder ────────────────────────────────────────────────────── */
section.founder { padding: 64px 0; border-top: 1px solid var(--border); }
.founder-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 36px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; align-items: start;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a5fef);
  color: #fff; font-weight: 700; font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.founder-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; line-height: 1.25; }
.founder-card p { color: var(--text-mute); max-width: 60ch; margin-bottom: 14px; }
.founder-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
  padding-top: 14px; border-top: 1px solid var(--border);
}
.founder-meta strong { color: var(--text); font-weight: 500; }

/* ── Inner page hero (about / legal / contact) ──────────────────── */
.inner-hero { padding: 64px 0 32px; }
.inner-hero h1 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.inner-hero p.lead { font-size: 17px; color: var(--text-mute); max-width: 60ch; }
.inner-body { padding: 16px 0 80px; }

/* ── Legal page hash-anchor nav ─────────────────────────────────── */
.legal-toc {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.legal-toc a {
  font-size: 13px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-mute);
}
.legal-toc a:hover { color: var(--text); border-color: var(--border-hi); }

/* ── Footer ─────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 32px; color: var(--text-dim); font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-grid a { color: var(--text-mute); margin-right: 18px; }
.footer-grid a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .nav-links { display: none; }
  .founder-card { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .panel-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .panel-tab { white-space: nowrap; }
  section.value-band { padding: 40px 0; }
  .value-band-text { font-size: 20px; }
  .inner-hero h1 { font-size: 30px; }
}

/* Pass 3: My audits header dropdown */
.my-audits-wrap { position: relative; }
.my-audits-toggle {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--text-mute); font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
}
.my-audits-toggle:hover { color: var(--text); }
.my-audits-toggle[aria-expanded="true"] { color: var(--text); }
.my-audits-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 9px; background: rgba(108,142,239,0.18);
  color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1;
}
.my-audits-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 320px; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  z-index: 50;
}
.my-audits-dropdown[hidden] { display: none; }
.my-audits-list { display: flex; flex-direction: column; gap: 2px; }
.my-audits-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none;
}
.my-audits-item:hover { background: var(--bg); }
.ma-store { font-size: 14px; font-weight: 600; word-break: break-all; line-height: 1.3; }
.ma-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-mute); }
.ma-tier {
  display: inline-flex; align-items: center; padding: 2px 7px;
  border-radius: 4px; font-weight: 700; font-size: 10px; letter-spacing: 0.5px;
}
.ma-tier-free     { background: rgba(150,155,165,0.18); color: var(--text-mute); }
.ma-tier-standard { background: rgba(108,142,239,0.18); color: var(--accent); }
.ma-tier-recovery { background: rgba(80,200,120,0.18); color: #50c878; }
.my-audits-foot {
  padding: 10px 12px 4px; font-size: 12px; color: var(--text-mute);
  border-top: 1px solid var(--border); margin-top: 6px;
}
@media (max-width: 768px) {
  .my-audits-dropdown { right: -8px; min-width: 280px; }
}
