/* BizCapto guide pages — aligned with app light theme (theme-light.css) */
:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --text: #13231d;
  --muted: #41564d;
  --muted-2: #6f8179;
  --line: #d9e2dc;
  --line-strong: #b8c8bf;
  --brand: #14865f;
  --brand-dark: #0f6f4e;
  --brand-soft: #e3f5ed;
  --shadow-card: 0 4px 16px rgba(16, 35, 29, 0.08);
  --max: 1180px;
  --reading: 760px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted-2);
  font-weight: 500;
}

.top-nav a:hover {
  color: var(--text);
}

.hero {
  background: var(--bg);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.dek {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.875rem;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--reading));
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.toc {
  position: sticky;
  top: 88px;
  padding: 20px;
  max-height: calc(100vh - 104px);
  overflow: auto;
}

.toc-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toc nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: 6px;
}

.toc a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.guide-content {
  min-width: 0;
  padding: 32px 36px;
}

.guide-content > p:first-child {
  font-size: 1.05rem;
  color: var(--muted);
}

.guide-content p {
  margin: 0 0 1.1em;
}

.section-title {
  margin: 48px 0 16px;
  padding-top: 8px;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.section-title:first-of-type {
  margin-top: 0;
}

.subsection-title {
  margin: 28px 0 12px;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.guide-content ul,
.guide-content ol {
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
}

.guide-content li {
  margin-bottom: 0.5rem;
}

.guide-content li > p {
  margin: 0;
}

.guide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9375rem;
}

.guide-table th,
.guide-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.guide-table th {
  background: #f8faf7;
  font-weight: 600;
  color: var(--text);
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px !important;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  margin-top: 0.28em;
  flex: 0 0 18px;
  background: var(--surface);
}

.guide-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

.guide-download-cta {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.guide-download-cta p {
  margin: 0 0 12px;
  color: var(--muted);
}

.guide-download-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.guide-download-cta a:hover {
  filter: brightness(1.05);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  color: var(--muted-2);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .toc {
    position: static;
    max-height: none;
  }

  .toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 32px;
  }

  .page {
    padding-top: 0;
  }

  .guide-content {
    padding: 24px 20px;
  }

  .top-nav {
    display: none;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  .guide-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .section-title {
    margin-top: 40px;
  }
}

@media print {
  .site-header,
  .toc {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero,
  .guide-content,
  .toc {
    box-shadow: none;
  }

  .hero-inner,
  .page {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .guide-layout {
    display: block;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
