/* Studio Pilot — content/guides stylesheet.
   Standalone (no build step): served verbatim from /blog/style.css.
   Mirrors the app's brand tokens (gold on near-black, DM Serif + DM Sans). */

:root {
  --bg: hsl(220 14% 6%);
  --bg-soft: hsl(220 14% 9%);
  --fg: hsl(43 20% 92%);
  --muted: hsl(220 8% 58%);
  --border: hsl(220 12% 15%);
  --gold: hsl(43 78% 56%);
  --gold-light: hsl(43 88% 68%);
  --gold-dark: hsl(43 65% 40%);
  --gold-muted: hsl(43 30% 22%);
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient gold glow at the top — pure CSS, no images. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 480px;
  background: radial-gradient(60% 100% at 50% 0%, hsl(43 78% 56% / 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: hsl(220 14% 6% / 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px hsl(43 78% 56% / 0.8);
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: hsl(220 14% 6%);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 20px hsl(43 78% 56% / 0.18);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 10px 28px hsl(43 78% 56% / 0.30); }
.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-muted);
  box-shadow: none;
}

/* ---------- Layout ---------- */
.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1040px; }

main { padding: 56px 0 40px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.18;
  margin: 56px 0 16px;
  scroll-margin-top: 80px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--fg);
  scroll-margin-top: 80px;
}
p { margin: 0 0 18px; color: hsl(43 14% 86%); }
.lead { font-size: 1.2rem; color: var(--fg); line-height: 1.6; }

.meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  color: var(--muted); font-size: 0.92rem; margin-bottom: 30px;
}
.meta .sep { opacity: 0.4; }

ul, ol { padding-left: 1.3em; margin: 0 0 22px; }
li { margin: 8px 0; color: hsl(43 14% 86%); }
li::marker { color: var(--gold); }

strong { color: var(--fg); }

hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ---------- Callouts ---------- */
.callout {
  border: 1px solid var(--gold-muted);
  background: linear-gradient(180deg, hsl(43 78% 56% / 0.06), transparent);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .label { color: var(--gold); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--gold);
  color: var(--fg);
  font-size: 1.15rem;
  font-style: italic;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 64px;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: hsl(220 14% 6%);
  font-weight: 800;
  font-family: "DM Serif Display", serif;
}
.steps > li strong { display: block; margin-bottom: 4px; font-size: 1.08rem; }

/* ---------- Tables (comparisons) ---------- */
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-soft); color: var(--fg); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
td .yes { color: var(--gold-light); font-weight: 700; }
td .no { color: var(--muted); }
.col-feature { color: var(--fg); font-weight: 600; }

/* ---------- FAQ (details/summary — no JS) ---------- */
.faq { margin: 24px 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  margin: 12px 0;
  background: var(--bg-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  color: var(--fg);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: 16px; margin: 0; }

/* ---------- Cards (hub) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 28px 0; }
.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  background: var(--bg-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold-muted); transform: translateY(-2px); text-decoration: none; }
.card .tag { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.card p { font-size: 0.96rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta {
  margin: 56px 0 8px;
  border: 1px solid var(--gold-muted);
  background: linear-gradient(135deg, hsl(43 78% 56% / 0.10), hsl(220 14% 9% / 0.4));
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}
.cta h2 { margin: 0 0 12px; }
.cta p { max-width: 520px; margin: 0 auto 22px; color: var(--fg); }

/* ---------- TOC ---------- */
.toc {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 32px 0;
  background: var(--bg-soft);
}
.toc strong { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.toc ol { margin: 0; }
.toc a { color: hsl(43 14% 86%); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 36px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  main { padding: 36px 0 24px; }
}
