/* Styles for the static content pages (guides / tips / comparisons). Brand-consistent
   with the app but self-contained — these pages are plain HTML, served outside the SPA. */
:root {
  --c-bg: #0d0e14;
  --c-surface: #14161f;
  --c-border: #262b36;
  --c-border-strong: #3a4150;
  --c-text: #e8ecf4;
  --c-muted: #9aa3b2;
  --c-faint: #6b7280;
  --c-cyan: #4fd6c9;
  --c-cyan-ink: #04201d;
  --c-coral: #f24b5c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- nav (an exact port of the SPA's <SiteNav> so the static pages and /pricing,
   /faq render the same navbar — same markup, same class names, same styles) ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(13, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
/* Pixel wordmark — the same Silkscreen face the SPA editor/nav brand uses. */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--c-text) !important;
  font-family: 'Silkscreen', 'Courier New', monospace;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}
.site-brand b { color: var(--c-cyan); font-weight: 400; }
.site-beta {
  font-family: 'Silkscreen', 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--c-cyan);
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  padding: 3px 6px 2px;
  flex: none;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 15px;
  font-weight: 600;
}
.site-nav-links a { color: var(--c-muted) !important; text-decoration: none !important; }
.site-nav-links a:hover { color: var(--c-text) !important; }
.site-nav-cta { display: flex; align-items: center; gap: 16px; }
.site-quiet {
  color: var(--c-muted) !important;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none !important;
}
.site-quiet:hover { color: var(--c-text) !important; }
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #ff7a85, #f24b5c);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(242, 75, 92, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  cursor: pointer;
}
.site-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242, 75, 92, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  filter: brightness(1.04);
}
.site-btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ---- hamburger (mobile only) ---- */
.site-burger {
  display: none; /* shown ≤760px via the media query below */
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  color: var(--c-text);
  cursor: pointer;
}
.site-burger span { display: inline-flex; }
.site-burger:hover { background: rgba(255, 255, 255, 0.05); }
.site-burger .sg-burger-close { display: none; }
.site-burger[aria-expanded='true'] .sg-burger-open { display: none; }
.site-burger[aria-expanded='true'] .sg-burger-close { display: inline-flex; }
.site-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: clamp(16px, 4vw, 40px);
  margin-top: 8px;
  z-index: 30;
  flex-direction: column;
  min-width: 200px;
  padding: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.site-mobile-menu.is-open { display: flex; }
.site-mobile-menu a {
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--c-muted) !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
}
.site-mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--c-text) !important; }

/* In-article callout button (body copy, not the nav). */
.c-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #ff7a85, #f24b5c);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(242, 75, 92, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.c-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(242, 75, 92, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* ---- layout ---- */
.c-main { max-width: 760px; margin: 0 auto; padding: 28px 22px 8px; }
.c-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--c-faint); margin-bottom: 18px; }
.c-crumbs a { color: var(--c-muted); }
.c-crumbs span[aria-current] { color: var(--c-faint); }
.c-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-cyan); margin-bottom: 8px; }

/* ---- article ---- */
.c-article h1 { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 14px; }
.c-lede { font-size: 19px; line-height: 1.55; color: var(--c-muted); margin: 0 0 28px; }
.c-article h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.3px; margin: 38px 0 12px; }
.c-article h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.c-article p { margin: 0 0 16px; }
.c-article ul, .c-article ol { margin: 0 0 18px; padding-left: 24px; }
.c-article li { margin: 0 0 8px; }
.c-article strong { color: #fff; font-weight: 700; }
.c-article code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.88em; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 5px; padding: 1px 6px; }
.c-article blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--c-cyan); background: var(--c-surface); border-radius: 0 8px 8px 0; color: var(--c-muted); }
.c-article blockquote p { margin: 0; }
.c-article hr { border: none; border-top: 1px solid var(--c-border); margin: 32px 0; }
/* Screenshots / figures. Small panel shots show at their natural size (centered); large
   shots (the full editor) cap to the column width. Never upscale — keeps them crisp. */
.c-shot { margin: 24px 0; }
.c-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.c-shot figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--c-faint); text-align: center; }
.c-tablewrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.c-article table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 0; font-size: 15px; }
.c-article th, .c-article td { text-align: left; padding: 9px 13px; border: 1px solid var(--c-border); vertical-align: top; }
.c-article th { background: var(--c-surface); font-weight: 700; color: var(--c-text); }
.c-article td { color: var(--c-muted); }

/* ---- callout ---- */
.c-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 40px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--c-border-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 214, 201, 0.08), rgba(242, 75, 92, 0.06)), var(--c-surface);
}
.c-callout h2 { margin: 0 0 4px; font-size: 20px; }
.c-callout p { margin: 0; color: var(--c-muted); font-size: 15px; max-width: 46ch; }

/* ---- related ---- */
.c-related { max-width: 760px; margin: 36px auto 0; padding: 22px; border-top: 1px solid var(--c-border); }
.c-related h2 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-faint); margin: 0 0 12px; }
.c-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* ---- hub ---- */
.c-hub-head { margin-bottom: 26px; }
.c-hub-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 10px; }
.c-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding-bottom: 12px; }
.c-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-surface);
  color: var(--c-text);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.c-card:hover { transform: translateY(-3px); border-color: var(--c-cyan); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); text-decoration: none; }
.c-card h2 { margin: 0; font-size: 19px; font-weight: 700; }
.c-card p { margin: 0; color: var(--c-muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.c-card-go { color: var(--c-cyan); font-weight: 700; font-size: 14px; }

/* ---- footer ---- */
.c-footer { max-width: 980px; margin: 48px auto 0; padding: 26px 22px 40px; border-top: 1px solid var(--c-border); text-align: center; color: var(--c-faint); font-size: 14px; }
.c-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 14px; }
.c-foot-links a { color: var(--c-muted); font-weight: 600; }

@media (max-width: 760px) {
  /* Collapse the primary links + quiet auth link into the hamburger menu; keep the
     "Open the editor" CTA visible just to the left of the burger. */
  .site-nav-links { display: none; }
  .site-nav-cta .site-quiet { display: none; }
  .site-burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .c-article h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  /* Phones: drop the "spritegen.io" text, keep the logo + Beta badge, so the CTA + hamburger fit. */
  .site-brand > span:not(.site-beta) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .c-card:hover { transform: none; } html { scroll-behavior: auto; } }
