/* Shared styles for Dehook answer/help articles (GEO/SEO content).
   Matches the dehook.ai landing look: white, high-contrast, system font. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #111;
  --body: #333;
  --muted: #666;
  --line: #e6e6e6;
  --bg: #fff;
  --soft: #f5f5f5;
  --accent: #4f8cff;
  --good: #22a06b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.site-head .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-head .brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-head .brand span { font-weight: 800; color: var(--ink); font-size: 18px; }
.site-head .cta {
  background: #333; color: #fff; text-decoration: none; font-weight: 600;
  font-size: 14px; padding: 9px 16px; border-radius: 8px;
}

/* Breadcrumb + meta */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.updated { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Article */
article h1 {
  font-size: 34px; line-height: 1.2; color: var(--ink);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px;
}
.answer {
  font-size: 18px; color: var(--ink); background: var(--soft);
  border-left: 3px solid var(--good); border-radius: 8px;
  padding: 16px 18px; margin: 20px 0 28px;
}
article h2 {
  font-size: 24px; color: var(--ink); font-weight: 700;
  margin: 36px 0 12px; letter-spacing: -0.01em;
}
article h3 { font-size: 18px; color: var(--ink); font-weight: 700; margin: 24px 0 8px; }
article p { margin: 12px 0; }
article a { color: var(--accent); }

.steps { counter-reset: step; list-style: none; margin: 18px 0; }
.steps > li {
  position: relative; padding: 14px 16px 14px 52px; margin: 10px 0;
  background: var(--soft); border-radius: 10px;
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #333; color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps b { color: var(--ink); }

/* Popup mockup (a faithful mini Dehook popup) */
.mockup {
  width: 300px; max-width: 100%; margin: 22px auto; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.10); font-size: 14px;
}
.mockup .mk-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.mockup .mk-head img { width: 22px; height: 22px; border-radius: 6px; }
.mockup .mk-head b { color: var(--ink); font-size: 15px; }
.mockup .mk-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid #f0f0f0; color: var(--body);
}
.mockup .mk-row:last-child { border-bottom: 0; }
.mockup .mk-row.hl { background: #eef4ff; }
.mockup .mk-row.hl .mk-label { color: var(--ink); font-weight: 600; }
.mk-toggle { width: 38px; height: 22px; border-radius: 11px; background: #d5d5d5; position: relative; flex: none; }
.mk-toggle.on { background: #8c8c8c; }
.mk-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: left .2s;
}
.mk-toggle.on::after { left: 18px; }
.mk-caption { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 24px; }
.mk-arrow { text-align: center; color: var(--accent); font-weight: 700; font-size: 13px; margin-top: -8px; }

/* FAQ */
.faq h2 { margin-bottom: 8px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: 17px; }
.faq details p { color: var(--body); }

/* Related */
.related { margin: 40px 0; }
.related ul { list-style: none; }
.related li { margin: 8px 0; }
.related a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* CTA block */
.cta-block {
  text-align: center; background: var(--soft); border-radius: 14px;
  padding: 28px 20px; margin: 36px 0;
}
.cta-block h2 { margin: 0 0 8px; }
.cta-block p { color: var(--muted); margin: 0 0 16px; }
.cta-block a.install {
  display: inline-block; background: #333; color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 24px; border-radius: 10px;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 48px;
  font-size: 13px; color: var(--muted); text-align: center;
}
.site-foot a { color: var(--muted); }

@media (max-width: 520px) {
  article h1 { font-size: 27px; }
  article h2 { font-size: 21px; }
}

/* Mockup extras: sliders, chips, topics, inputs (match popup.css look) */
.mk-slider { display: flex; align-items: center; gap: 8px; }
.mk-slider-track { width: 90px; height: 4px; border-radius: 2px; background: #d5d5d5; position: relative; display: inline-block; }
.mk-slider-knob { position: absolute; top: -5px; left: 55%; width: 14px; height: 14px; border-radius: 50%; background: #555; }
.mk-slider-val { font-size: 12px; color: var(--ink); font-weight: 700; }
.mk-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1.5px solid #ccc; color: var(--muted); }
.mk-chip.on { background: #333; border-color: #333; color: #fff; }
.mk-topic { display: flex; align-items: center; gap: 10px; }
.mk-toggle-sm { transform: scale(.85); }
.mk-x { color: #bbb; font-weight: 700; }
.mk-input { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; background: #fafafa; }
.mk-btn { font-size: 12px; background: #333; color: #fff; border-radius: 6px; padding: 5px 10px; font-weight: 600; }

/* Answers index */
.answers-index h1 { font-size: 32px; color: var(--ink); font-weight: 800; margin-bottom: 6px; }
.answers-index .sub { color: var(--muted); margin-bottom: 24px; }
.answers-index h2 { font-size: 20px; color: var(--ink); font-weight: 700; margin: 26px 0 8px; }
.answers-index ul { list-style: none; }
.answers-index li { margin: 7px 0; }
.answers-index a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Wiki-style answers index */
.answers-index .crumbs { margin-bottom: 10px; }
.start-here { margin: 26px 0 8px; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.start-card {
  display: block; background: var(--soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; text-decoration: none;
}
.start-card b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.start-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.start-card:hover { border-color: #bbb; }
.cat-block { margin: 30px 0; }
.cat-count {
  display: inline-block; background: var(--soft); color: var(--muted);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px;
  vertical-align: 3px; margin-left: 6px;
}
.cat-desc { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.cat-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 0; }
.cat-grid a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.cat-grid a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .start-grid, .cat-grid { grid-template-columns: 1fr; }
}
