/* Shared stylesheet for all generated SEO pages. Palette matches the
   interactive app (web/src/style.css): dark background, blue accent,
   system-ui type. Deliberately plain CSS, no build step. */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #0c0e14;
  color: rgba(224, 229, 240, 0.92);
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: #8ec5ff; text-decoration: none; }
a:hover { color: #c4ddff; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(18, 21, 30, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}
.brand {
  font-weight: 600;
  font-size: 17px;
  color: #e4e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand:hover { color: #e4e8f0; text-decoration: none; }
.brand-mark { color: #8ec5ff; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.nav-link {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: rgba(224,229,240,0.8);
}
.nav-link:hover { background: #2a3140; text-decoration: none; color: #e4e8f0; }
.nav-link--active { background: #2a3140; color: #8ec5ff; }

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: #4a6fa5; color: #fff; border-color: #4a6fa5; }
.btn--primary:hover { background: #5c82ba; color: #fff; }
.btn--secondary { background: #2a3140; color: #e4e8f0; }
.btn--secondary:hover { background: #3d4a5c; color: #e4e8f0; }

.site-main { max-width: 1080px; margin: 0 auto; padding: 32px 20px 80px; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px 40px;
  font-size: 13px;
  color: rgba(180,188,204,0.7);
}
.site-footer-row {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer-links a { margin-left: 14px; }

h1 { font-size: 30px; margin: 0 0 10px; color: #e4e8f0; }
h2 { font-size: 20px; margin: 40px 0 14px; color: #e4e8f0; }
h3 { font-size: 16px; margin: 24px 0 8px; color: #e4e8f0; }
p { color: rgba(210,216,230,0.9); }
.tagline { color: rgba(200,208,224,0.75); font-size: 16px; margin: 0 0 28px; }
.breadcrumbs { font-size: 13px; color: rgba(180,188,204,0.7); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(180,188,204,0.85); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-bottom: 8px;
}
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }
.hero-image {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Hero preview image — intrinsic pixel size where possible (no upscale). The
   global `img { max-width: 100% }` still lets it shrink on narrow viewports. */
.hero-image img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.panel {
  background: rgba(18, 21, 30, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 18px 20px;
}

table.param-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.param-table th, table.param-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
table.param-table th { color: rgba(180,188,204,0.75); font-weight: 500; width: 55%; }
table.param-table td { color: #e4e8f0; font-variant-numeric: tabular-nums; }

.download-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}
.card {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #141820;
  color: #e4e8f0;
}
.card:hover { background: #1a1f2c; text-decoration: none; border-color: rgba(142,197,255,0.4); }
.card-title { font-weight: 600; font-size: 15px; }
.card-sub { font-size: 12px; color: rgba(180,188,204,0.7); margin-top: 2px; }

/* Gear cards (with a thumbnail): image fills the card top edge-to-edge,
   text sits below in its own padded block — the base .card padding above
   would double up with .card-body's, so it's zeroed out here. */
.card--gear { padding: 0; overflow: hidden; }
.card-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.card--gear .card-body { padding: 4px 12px; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 10px 0; list-style: none; }
.link-list li { font-size: 14px; }

.guide-body :where(p, ul, ol) { font-size: 15px; color: rgba(210,216,230,0.92); }
.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body code { background: rgba(255,255,255,0.08); border-radius: 3px; padding: 1px 5px; font-size: 13px; }
.guide-body h2 { margin-top: 34px; }

.section-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #2a3140;
  color: rgba(224,229,240,0.85);
}

.callout {
  background: rgba(74,111,165,0.12);
  border: 1px solid rgba(74,111,165,0.35);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  margin: 20px 0;
}

/* Homepage live embed of /gear_creator/ — blue edge + CTA pill only. */
.creator-embed {
  --embed-accent: #8ec5ff; /* matches .nav-link--active / .brand-mark */
  margin: 8px 0 28px;
  border: 2px solid var(--embed-accent);
  border-radius: 10px;
  overflow: hidden;
  background: #0c0e14;
  box-shadow: 0 0 0 1px rgba(142, 197, 255, 0.28);
}
.creator-embed__stage {
  position: relative;
  width: 100%;
  /* 50% taller than the original 16/10 preview (same width → 16/15). */
  aspect-ratio: 16 / 15;
  background: #0c0e14;
}
.creator-embed__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0c0e14;
  pointer-events: none;
}
.creator-embed__launch {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: #0c0e14;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.creator-embed__launch:hover .creator-embed__launch-label,
.creator-embed__launch:focus-visible .creator-embed__launch-label {
  filter: brightness(1.06);
}
.creator-embed__launch:focus-visible {
  outline: none;
}
.creator-embed__launch:focus-visible .creator-embed__launch-label {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.creator-embed__launch-label {
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--embed-accent);
  color: #0c0e14;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
