/* ============================================================
   HTML TO IMAGE — snapshot card stack hero visual
   ============================================================ */
.snap {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  height: 380px;
}
.snap-card {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(10, 37, 64, 0.04),
    0 18px 36px -22px rgba(10, 37, 64, 0.28);
  transition: transform .25s, box-shadow .25s;
}
.snap-back {
  top: 14px;
  right: -8px;
  width: 64%;
  height: 230px;
  background: #cfe1f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  transform: rotate(4deg);
  z-index: 1;
}
.snap-mid {
  top: 56px;
  left: 8px;
  width: 56%;
  height: 200px;
  background: #f4d7c0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  transform: rotate(-3.5deg);
  z-index: 2;
}
.snap-fmt {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a2540;
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 5px;
  align-self: flex-start;
}
.snap-back .snap-fmt { color: #0a2540; }
.snap-dim {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(10, 37, 64, 0.62);
  align-self: flex-end;
}

.snap-front {
  top: 20px;
  left: 10%;
  width: 80%;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(10, 37, 64, 0.04),
    0 28px 56px -22px rgba(10, 37, 64, 0.32),
    0 8px 18px -8px rgba(10, 37, 64, 0.16);
  z-index: 3;
}
[data-theme="dark"] .snap-front { background: #f4f7fb; color: #0a2540; }
.snap-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.snap-dots {
  display: flex;
  gap: 4px;
}
.snap-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.snap-dots i:nth-child(1) { background: #f59e0b; opacity: 0.7; }
.snap-dots i:nth-child(2) { background: #fbbf24; opacity: 0.7; }
.snap-dots i:nth-child(3) { background: #4ade80; opacity: 0.7; }
.snap-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #475569;
  padding: 4px 10px;
  background: #fff;
  border-radius: 5px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.snap-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.snap-line {
  height: 6px;
  background: #cbd5e1;
  border-radius: 3px;
  opacity: 0.7;
}
.snap-line.w55 { width: 55%; }
.snap-line.w70 { width: 70%; }
.snap-line.w80 { width: 80%; }
.snap-line.w90 { width: 90%; }
.snap-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 6px;
}
.snap-h1, .snap-h2 {
  height: 56px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(11, 102, 194, 0.18), rgba(11, 102, 194, 0.06));
}
.snap-h2 {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.06));
}
.snap-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.snap-grid3 span {
  display: block;
  height: 26px;
  border-radius: 4px;
  background: #e2e8f0;
  opacity: 0.78;
}
.snap-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px dashed #cbd5e1;
  background: #f8fafc;
}
.snap-fmt-front {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.snap-size {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #64748b;
}

.snap-burst {
  position: absolute;
  bottom: -8px;
  right: -4px;
  width: 80px;
  height: 80px;
  color: var(--accent);
  z-index: 4;
  pointer-events: none;
  opacity: 0.85;
}
.snap-burst svg { width: 100%; height: 100%; display: block; }

@media (max-width: 1000px) {
  .snap { max-width: 380px; height: 320px; }
}
@media (max-width: 760px) {
  .snap { max-width: 320px; height: 280px; }
  .snap-burst { width: 60px; height: 60px; }
  .snap-body { padding: 12px 14px 10px; gap: 8px; }
}
