/* ─── Document Capture page ───────────────────────────────────────── */

.hero-figure {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Problem section */
.problem {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-body h2 {
  margin: 0 0 22px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.018em;
}

.problem-body p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--fg-soft);
}

.problem-aside {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 28px;
}

.aside-stat {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.aside-label {
  margin: 6px 0 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.problem-aside .aside-label:last-child {
  margin-bottom: 0;
}

/* How it works */
.how-it-works {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.step {
  padding: 32px 28px;
  background: var(--bg);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  margin: 0 0 14px;
  letter-spacing: 0.06em;
}

.step h3 {
  margin: 0 0 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-soft);
}

/* Document types */
.capture-types {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}

.types-intro {
  max-width: 58em;
  margin-bottom: 38px;
}

.types-intro h2 {
  margin: 0 0 14px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.types-intro h2 em {
  color: var(--accent);
  font-style: italic;
}

.types-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 44em;
}

.type-bucket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.type-bucket {
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 94%, white);
  padding: 30px 28px;
}

.type-bucket-wide {
  grid-column: 1 / -1;
}

.bucket-tag {
  margin: 0 0 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-bucket h3 {
  margin: 0 0 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.type-bucket p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-soft);
}

.type-list {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule-soft);
}

.type-list li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-soft);
  padding: 6px 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.type-list li::before {
  content: '-';
  color: var(--muted);
  flex-shrink: 0;
}

.type-list strong {
  color: var(--fg);
  font-weight: 500;
}

/* Gallery */
.gallery {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-deep);
}

.gallery-intro {
  max-width: 58em;
  margin-bottom: 38px;
}

.gallery-intro h2 {
  margin: 0 0 14px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.gallery-intro h2 em {
  color: var(--accent);
  font-style: italic;
}

.gallery-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 44em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--bg);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-soft);
}

.gallery-item figcaption strong {
  color: var(--fg);
  font-weight: 500;
}

/* PDF download link in signin section */
.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.pdf-download:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero-figure { order: -1; }
  .problem-grid,
  .steps-grid,
  .type-bucket-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .type-bucket-wide {
    grid-column: auto;
  }
  .problem-aside {
    border-left: none;
    border-top: 2px solid var(--accent);
    padding: 28px 0 0;
  }
}

@media (max-width: 760px) {
  .problem,
  .how-it-works,
  .capture-types,
  .gallery {
    padding: 60px 0;
  }
  .aside-stat {
    font-size: 44px;
  }
}
