/* ─── How It Works — compact, scannable ─── */

.how-hero {
  padding: 60px 0 40px;
}
.how-hero h1 {
  font-size: 42px;
  line-height: 1.1;
}
.how-hero .hero-sub {
  max-width: 620px;
  font-size: 16px;
  margin-top: 16px;
}
.hero-print {
  margin-top: 24px;
}

.how-section {
  padding: 50px 0;
}
.how-section.dark {
  background: var(--bg2);
}
.how-section h2 {
  font-size: 28px;
  margin: 10px 0 8px;
}
.how-section .section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 620px;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(8, 196, 211, 0.1);
  color: #08c4d3;
}

/* ─── Overview cards (Section 1) ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.how-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.how-card .how-icon {
  font-size: 26px;
  margin-bottom: 8px;
}
.how-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.how-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Flow steps (Section 2) ─── */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}
.flow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 196, 211, 0.12);
  color: #08c4d3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.step-body h3 {
  font-size: 15px;
  margin: 4px 0 6px;
}
.step-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.code-block {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(8, 196, 211, 0.15);
  font-family: 'SF Mono', 'Menlo', monospace;
}
.code-label {
  font-size: 10px;
  color: #08c4d3;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.code-block pre {
  margin: 0;
  font-size: 11px;
  color: #bbb;
  line-height: 1.5;
}

/* ─── Comparison table (Section 3) ─── */
.comparison-table {
  overflow-x: auto;
  margin-top: 16px;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.comparison-table th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(8, 196, 211, 0.08);
  color: #08c4d3;
  font-weight: 700;
  border-bottom: 2px solid rgba(8, 196, 211, 0.2);
}
.comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.comparison-table td.yes { color: #22c55e; font-weight: 600; }
.comparison-table td.no { color: #ef4444; font-weight: 600; }
.comparison-table td.partial { color: #f59e0b; font-weight: 600; }

.callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(8, 196, 211, 0.05);
  border: 1px solid rgba(8, 196, 211, 0.15);
}
.callout h3 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #08c4d3;
}
.callout p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.callout p:last-child { margin-bottom: 0; }

/* ─── Control grid (Section 4) ─── */
.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.control-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.control-icon {
  font-size: 22px;
  margin-bottom: 6px;
}
.control-card h3 {
  font-size: 14px;
  margin: 4px 0 4px;
}
.control-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0;
}
.control-card p strong {
  color: #08c4d3;
  font-size: 11px;
}

/* ─── Cannot list (Section 5) ─── */
.cannot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-top: 20px;
}
.cannot-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.12);
}
.cannot-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.cannot-item h4 {
  font-size: 13px;
  margin: 2px 0 4px;
}
.cannot-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Crypto stack (Section 6) ─── */
.crypto-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: 820px;
}
.crypto-row {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.crypto-name {
  flex-shrink: 0;
  width: 130px;
  font-weight: 700;
  color: #08c4d3;
  font-size: 13px;
  font-family: 'SF Mono', 'Menlo', monospace;
}
.crypto-what {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .how-hero h1 { font-size: 32px; }
  .how-section { padding: 40px 0; }
  .how-section h2 { font-size: 22px; }
  .crypto-row { flex-direction: column; gap: 6px; }
  .crypto-name { width: auto; }
}

/* ─── Print to PDF ─── */
@media print {
  .nav, .footer, .hero-print, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  .how-section, .how-section.dark, .hero { background: #fff !important; padding: 20px 0 !important; }
  h1, h2, h3, h4 { color: #111 !important; page-break-after: avoid; }
  .gradient-text { -webkit-text-fill-color: #08c4d3; color: #08c4d3; }
  .how-card, .control-card, .cannot-item, .crypto-row, .callout, .code-block {
    background: #f7f9fa !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  p, .card-grid, .crypto-stack { color: #333 !important; }
  .how-card p, .control-card p, .cannot-item p, .crypto-what, .callout p, .section-sub { color: #555 !important; }
  .comparison-table th { background: #e6f7f9 !important; color: #08c4d3 !important; }
  .flow-step { page-break-inside: avoid; }
  .how-section + .how-section { page-break-before: auto; }
}
