/* Styles for the generated guide pages (site-src/build.mjs). Colors match the homepage. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #080b0f;
  --bg2: #0d1117;
  --surface: #111820;
  --surface2: #161f2a;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --green: #38D9A9;
  --amber: #F5B731;
  --red: #FF6370;
  --text: #e8edf2;
  --body: #c3cdd8;
  --muted: #8195ab;
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #6fe8c4; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; height: 60px;
  background: rgba(8,11,15,0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 15px; white-space: nowrap; }
.logo img { border-radius: 7px; }
.logo b, .footer-logo b { color: var(--green); font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.topbar nav a:hover { color: var(--text); }
.topbar .nav-cta { color: var(--bg); background: var(--green); padding: 7px 14px; border-radius: 8px; font-weight: 600; }
.topbar .nav-cta:hover { color: var(--bg); background: #6fe8c4; }

/* ── Layout ── */
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }

.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 28px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 8px; opacity: 0.6; }

.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(27px, 6.5vw, 40px); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 4.2vw, 27px); font-weight: 700; margin: 48px 0 14px; }
h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
strong { color: var(--text); }

.byline { font-size: 14px; color: var(--muted); margin-bottom: 26px; }

.answer {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 8px;
}
.answer p { margin: 0; color: var(--text); font-size: 18px; }

.lede { font-size: 18px; color: var(--body); }

/* ── Example chats ── */
.chat { margin: 22px 0 28px; padding: 18px 16px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; }
.chat ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; margin: 0; display: flex; flex-direction: column; }
.msg .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin: 0 6px 3px; }
.msg p { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.5; }
.msg.them { align-self: flex-start; }
.msg.them p { background: var(--surface2); color: var(--text); border-bottom-left-radius: 5px; }
.msg.you { align-self: flex-end; align-items: flex-end; }
.msg.you p { background: #1d4f43; color: #eafff8; border-bottom-right-radius: 5px; }
.msg .tag { font-family: var(--font-mono); font-size: 11px; color: var(--amber); margin: 4px 6px 0; }
.chat figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ── Comparison table ── */
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.compare th { font-family: var(--font-head); color: var(--text); font-size: 14px; }
@media (max-width: 560px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .compare td { border: 0; padding: 4px 0; }
  .compare td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
}

/* ── App call to action ── */
.app-cta { margin: 48px 0 0; padding: 22px 20px; background: linear-gradient(160deg, rgba(56,217,169,0.10), rgba(56,217,169,0.02)); border: 1px solid rgba(56,217,169,0.25); border-radius: 16px; }
.app-cta h2 { margin-top: 0; }
.btn { display: inline-block; background: var(--green); color: var(--bg); font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 10px; }
.btn:hover { background: #6fe8c4; color: var(--bg); }

/* ── Numbered steps (export guides) ── */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 14px 46px; margin: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--bg); background: var(--green);
}
.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--border2); }
.steps strong { display: block; margin-bottom: 2px; }
.ui { font-family: var(--font-mono); font-size: 0.88em; color: var(--text); background: var(--surface2); border: 1px solid var(--border2); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-size: 16px; }
.note strong:first-child { color: var(--amber); }
.cta-sub { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* ── FAQ, sources ── */
.faq-item { border-top: 1px solid var(--border); padding-top: 4px; }
.faq-item h3 { margin-top: 18px; }
.sources ol { font-size: 15px; color: var(--muted); }
.sources a { word-break: break-word; }

/* ── Safety note ── */
.safety { margin: 44px 0 0; padding: 18px 20px; border: 1px solid rgba(245,183,49,0.35); background: rgba(245,183,49,0.06); border-radius: 14px; }
.safety h2 { font-size: 18px; margin: 0 0 8px; color: var(--amber); }
.safety p { margin: 0; font-size: 15px; }

/* ── Cards (hub + related) ── */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--body); transition: border-color 0.15s; }
.cards a:hover { border-color: rgba(56,217,169,0.5); color: var(--body); }
.cards strong { display: block; font-family: var(--font-head); font-size: 18px; margin-bottom: 4px; }
.cards span { font-size: 15px; line-height: 1.55; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.hub-head { margin-bottom: 26px; }
.related h2 { margin-top: 44px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 28px 16px 36px; text-align: center; }
.footer-logo { font-family: var(--font-head); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 14px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0; }

@media (max-width: 480px) {
  .topbar .hide-sm { display: none; }
  .topbar nav { gap: 14px; }
  .logo span { font-size: 14px; }
}

/* /what-we-fixed: quoted reviews and counts */
.review { margin: 16px 0; padding: 14px 18px; border: 1px solid var(--border); border-left: 3px solid var(--amber); background: var(--surface); border-radius: 0 10px 10px 0; }
.review p { margin: 0 0 .4rem; font-style: italic; }
.review footer { font-size: 13px; color: var(--muted); }
.finding .count { color: var(--text); font-weight: 600; }

/* /compare: dated screenshots */
.shot { margin: 18px auto; max-width: 260px; text-align: center; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border2); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.compare th[scope="row"] { text-align: left; font-weight: 600; color: var(--text); }
@media (max-width: 560px) { .compare th[scope="row"] { display: block; padding: 0 0 4px; border: 0; } }
