@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --off-white: #f0f0f0;
  --border: 2px solid var(--black);
  --border-thick: 4px solid var(--black);
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --max-content: 1200px;
  --sidebar-w: 280px;
  --header-h: 64px;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; }
a:hover { color: var(--black); background: var(--green); }
p { margin-bottom: 1rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; }
th, td { border: var(--border); padding: 0.6rem 0.8rem; text-align: left; font-size: 0.9rem; }
th { background: var(--black); color: var(--green); font-family: var(--font-mono); }
tr:nth-child(even) td { background: var(--off-white); }

/* ─── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  border-left: 4px solid var(--green);
  padding-left: 0.5rem;
  margin-bottom: 0.4rem;
}

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: var(--border-thick);
  border-bottom-color: var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: var(--header-h);
  max-width: var(--max-content);
  margin: 0 auto;
}

.brand-link {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 160px;
}

.header-cta-group {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* ─── CTA Buttons ─────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0 1rem;
  min-height: 44px;
  border: 2px solid var(--green);
  cursor: pointer;
  white-space: nowrap;
}

.cta-signup {
  background: var(--green);
  color: var(--black);
}

.cta-signup:hover {
  background: var(--black);
  color: var(--green);
}

.cta-login {
  background: transparent;
  color: var(--green);
}

.cta-login:hover {
  background: var(--green);
  color: var(--black);
}

/* ─── Nav Toggle ──────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--green);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  order: -1;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
}

/* ─── Mobile Nav ──────────────────────────────────────────────── */
.mobile-nav {
  background: var(--black);
  border-top: 2px solid var(--green);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li { border-bottom: 1px solid #222; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav a:hover {
  background: var(--green);
  color: var(--black);
}

/* ─── Desktop Aside Nav ───────────────────────────────────────── */
.site-aside-nav {
  display: none;
}

/* ─── Page Body Layout ────────────────────────────────────────── */
.page-body {
  display: flex;
  align-items: flex-start;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

.main-col {
  flex: 1;
  min-width: 0;
}

/* ─── Hero (Home) ─────────────────────────────────────────────── */
.hero-home {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media .guide-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  max-width: 700px;
}

.hero-copy h1 {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 4rem);
  border-left: 6px solid var(--green);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-cta {
  font-size: 1rem;
  padding: 0 1.5rem;
  min-height: 52px;
}

/* ─── Guide Hero ──────────────────────────────────────────────── */
.guide-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: var(--black);
}

.guide-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

/* ─── Article Header ──────────────────────────────────────────── */
.article-header-section {
  border-left: 6px solid var(--green);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.article-header-section h1 {
  color: var(--black);
}

.byline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.byline time { font-weight: 600; }

.article-meta-row {
  margin-bottom: 0.5rem;
  min-height: 0;
}

/* ─── Stage Badge ─────────────────────────────────────────────── */
.stage-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 2px solid var(--black);
  display: inline-block;
}

.stage-awareness { background: var(--green); color: var(--black); }
.stage-consideration { background: var(--blue); color: var(--white); }
.stage-decision { background: var(--black); color: var(--green); }

/* ─── Body Content ────────────────────────────────────────────── */
.body-content {
  max-width: 72ch;
}

.body-content h2 { margin-top: 2rem; }
.body-content h3 { margin-top: 1.5rem; }
.body-content a { color: var(--blue); text-decoration: underline; }
.body-content a:hover { background: var(--green); color: var(--black); }

/* ─── Child Table Section ─────────────────────────────────────── */
.child-table-section {
  margin-top: 2.5rem;
}

.child-table-section h2 {
  margin-bottom: 1rem;
}

.child-table td a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
}

/* ─── Author Section ──────────────────────────────────────────── */
.author-section {
  margin-top: 3rem;
  padding: 1.5rem;
  border: var(--border-thick);
  border-color: var(--green);
  background: var(--off-white);
}

.author-section h2 {
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.author-bio { font-size: 0.95rem; }

/* ─── Sidebar Right ───────────────────────────────────────────── */
.sidebar-right {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  border: var(--border);
  padding: 1.25rem;
  background: var(--off-white);
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.4rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li { border-bottom: 1px solid #ccc; }

.sidebar-list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidebar-list a:hover {
  background: var(--green);
  color: var(--black);
  padding-left: 0.4rem;
}

.sidebar-cta-block {
  margin-top: 1.25rem;
  border-top: 2px solid var(--black);
  padding-top: 1rem;
}

.sidebar-cta {
  width: 100%;
  font-size: 0.8rem;
  padding: 0 0.75rem;
}

/* ─── FAQ Layout ──────────────────────────────────────────────── */
.faq-content details {
  border: var(--border);
  margin-bottom: 0.75rem;
}

.faq-content summary {
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: var(--off-white);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-content summary:hover { background: var(--green); }

.faq-guide-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-guide-list a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.faq-guides-section { margin-top: 2.5rem; }

/* ─── Changelog Layout ────────────────────────────────────────── */
.changelog-content {
  border-left: 4px solid var(--green);
  padding-left: 1.5rem;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border-thick);
  border-top-color: var(--green);
  padding: 2rem 1rem;
  text-align: center;
}

.footer-trust {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.footer-trust a {
  color: var(--green);
  text-decoration: underline;
  display: inline-block;
  padding: 0.2rem 0.3rem;
}

.footer-trust a:hover { background: var(--green); color: var(--black); }

.footer-copy {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.4rem;
}

.footer-rg {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── Stagger Animation ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
  }

  .stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Mobile ≤768px ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .brand-text {
    font-size: 0.8rem;
    max-width: 110px;
  }

  .header-inner { gap: 0.4rem; }

  .cta {
    font-size: 0.72rem;
    padding: 0 0.6rem;
    min-height: 44px;
  }

  .hero-home { height: 100svh; min-height: 480px; }
  .hero-copy { padding: 2rem 1rem; }
  .hero-copy h1 { font-size: clamp(1.5rem, 8vw, 2.5rem); }

  .page-body {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
  }

  .sidebar-right {
    width: 100%;
    position: static;
  }

  .guide-hero { height: 200px; }

  .child-table { font-size: 0.8rem; }
  .child-table td { padding: 0.4rem 0.5rem; }

  .site-footer { padding: 1.5rem 1rem; }
}

/* ─── Utility: no horizontal overflow ────────────────────────── */
body, .page-body, .main-col, .body-content {
  overflow-x: hidden;
}

/* ─── Home layout child table ─────────────────────────────────── */
.layout-home .child-table-section { margin-top: 2.5rem; }
.layout-home .hero-copy h1 { max-width: 660px; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}