/* camada3.css — 4 Fluxos críticos */

.c3-hero {
  padding: 80px 40px 40px;
  max-width: 1560px; margin: 0 auto;
}
.c3-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: end;
}

.c3-flow {
  padding: 64px 40px 80px;
  max-width: 1560px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.c3-flow-head {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  margin-bottom: 40px;
}
.c3-flow-head .code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em;
  color: #E89A4A;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.c3-flow-head .code .star { color: #E89A4A; }
.c3-flow-head h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 44px; letter-spacing: -0.02em; line-height: 1.05; font-weight: 400;
  margin: 0 0 14px;
}
.c3-flow-head h2 em { font-style: italic; color: #E89A4A; }
.c3-flow-head .desc { font-size: 15px; color: #b0b0b0; line-height: 1.55; margin: 0 0 20px; max-width: 640px; }
.c3-flow-head .transitions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.c3-flow-head .tr {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(232,154,74,0.08);
  border: 1px solid rgba(232,154,74,0.25);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #E89A4A;
  letter-spacing: 0.06em;
}
.c3-flow-head .side {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 2px solid #E89A4A;
  border-radius: 10px;
  padding: 20px;
}
.c3-flow-head .side .t {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #E89A4A; font-family: 'JetBrains Mono', monospace; margin-bottom: 10px;
}
.c3-flow-head .side ul { margin: 0; padding: 0; list-style: none; }
.c3-flow-head .side li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px; color: #b0b0b0; line-height: 1.5;
  display: flex; gap: 10px;
}
.c3-flow-head .side li:last-child { border-bottom: 0; }
.c3-flow-head .side li .n {
  color: #E89A4A; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; flex-shrink: 0; margin-top: 2px;
}

/* Step strip */
.c3-steps {
  display: grid;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.05);
}
.c3-steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.c3-steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
.c3-steps.cols-5 { grid-template-columns: repeat(5, 1fr); }
.c3-steps.cols-6 { grid-template-columns: repeat(6, 1fr); }

.c3-step {
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  min-height: 680px;
  position: relative;
}
.c3-step:last-child { border-right: 0; }
.c3-step.celebration {
  background: linear-gradient(180deg, rgba(76,175,80,0.06), transparent 60%);
}
.c3-step-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.c3-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #E89A4A;
  letter-spacing: 0.1em;
}
.c3-step-kind {
  font-size: 10px; color: #555;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.c3-step-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px; letter-spacing: -0.01em; line-height: 1.15;
  margin: 0 0 8px; font-weight: 400;
  color: #e8e6e2;
}
.c3-step-caption {
  font-size: 12px; color: #8a8a8a; line-height: 1.5;
  margin: 0 0 18px;
}

/* Phone in step (smaller than camada 2) */
.c3-phone {
  width: 220px;
  margin: 0 auto 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 5px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.c3-phone-inner {
  width: 100%; aspect-ratio: 9/19.5;
  background: #141414;
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.c3-phone-statusbar {
  display: flex; justify-content: space-between;
  padding: 8px 14px 4px;
  font-size: 8px; font-weight: 600; color: #e8e6e2;
  flex-shrink: 0;
}
.c3-phone-content {
  flex: 1; padding: 8px 12px 12px;
  overflow: hidden;
  font-size: 9px;
}

/* Step notes */
.c3-step-notes {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.c3-note-row {
  display: grid; grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 11px; line-height: 1.45;
}
.c3-note-row .k {
  color: #7a7a7a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
}
.c3-note-row .v { color: #b0b0b0; }
.c3-note-row .v b { color: #e8e6e2; font-weight: 600; }
.c3-note-row.highlight .v b { color: #E89A4A; }
.c3-note-row.ok .k { color: #4CAF50; }

/* Phone block styles — compact */
.ph-hero {
  padding: 8px;
  background: linear-gradient(135deg, #1f1f1f, #161616);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 6px;
}
.ph-hero.ok { border-color: rgba(76,175,80,0.3); background: linear-gradient(135deg,rgba(76,175,80,0.1),#161616); }
.ph-hero.warn { border-color: rgba(232,154,74,0.3); background: linear-gradient(135deg,rgba(232,154,74,0.1),#161616); }
.ph-hero .l { font-size: 7px; color: #E89A4A; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.ph-hero.ok .l { color: #4CAF50; }
.ph-hero .t { font-size: 10.5px; color: #e8e6e2; font-weight: 500; line-height: 1.25; margin-bottom: 4px; }
.ph-hero .b { font-size: 8px; color: #8a8a8a; line-height: 1.4; margin-bottom: 6px; }
.ph-hero .btn { background: #E89A4A; color: #141414; font-size: 8px; font-weight: 600; padding: 4px 7px; border-radius: 5px; display: inline-block; }
.ph-hero.ok .btn { background: #4CAF50; color: #0a0a0a; }

.ph-field {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 5px;
  font-size: 8px;
  display: flex; justify-content: space-between; align-items: center;
  color: #e8e6e2;
}
.ph-field .k { color: #7a7a7a; font-size: 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.ph-field .v { font-weight: 500; font-size: 9px; }
.ph-field.focus { border-color: #E89A4A; }

.ph-ctarow { display: flex; gap: 4px; margin-top: 4px; }
.ph-cta { flex: 1; background: #E89A4A; color: #141414; font-size: 8px; padding: 6px; border-radius: 6px; text-align: center; font-weight: 600; }
.ph-cta.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.14); color: #e8e6e2; }

.ph-big {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px; color: #E89A4A; text-align: center;
  letter-spacing: -0.02em;
  padding: 10px 0 4px;
}
.ph-big.ok { color: #4CAF50; }

.ph-otp {
  display: flex; gap: 4px; justify-content: center;
  margin: 8px 0;
}
.ph-otp .d {
  width: 22px; height: 28px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #e8e6e2;
}
.ph-otp .d.active { border-color: #E89A4A; }

/* Legend top of fluxos */
.c3-legend {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  font-size: 12px;
  color: #8a8a8a;
}
.c3-legend .item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em; font-size: 11px;
}
.c3-legend .dot { width: 10px; height: 10px; border-radius: 2px; background: #4A9EE8; }
.c3-legend .dot.ok { background: #4CAF50; }
.c3-legend .dot.warn { background: #E89A4A; }
.c3-legend .dot.danger { background: #ef4444; }
