/* ─────────────────────────────────────────────
   BLOCO 9 — PROFUNDIDADE
   "Decifrado. Personalizado. Diário." centralizada com pontos terracota.
   4 cards 2x2 com mini-mockup. Hover: card eleva + visual dispara.
   ───────────────────────────────────────────── */

.profundidade {
  position: relative;
  background: var(--bg-2);
  padding: clamp(80px, 10vw, 140px) 0;
  overflow-x: clip;
  isolation: isolate;
  border-top: 1px solid rgba(10, 10, 18, 0.06);
}

.profundidade__head {
  text-align: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}

.profundidade__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 22px;
}

.profundidade__eyebrow::before {
  content: "● ";
  color: var(--purple);
}

.profundidade h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
}

.profundidade h2 .word {
  display: inline-flex;
  align-items: baseline;
}

.profundidade h2 .word .dot {
  color: var(--terracota);
  margin-left: 2px;
}

.profundidade h2 .word.italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  background: linear-gradient(120deg, var(--purple) 0%, var(--terracota) 90%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Grid 2x2 ─────────────────────── */

.profundidade__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 1080px;
  margin: 0 auto;
}

.prof-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(10, 10, 18, 0.06);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 24px;
  align-items: start;
  transition: transform 320ms var(--ease-out), border-color 320ms, box-shadow 320ms;
  overflow: hidden;
  cursor: default;
}

.prof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 44px -16px rgba(124, 58, 237, 0.25),
    0 4px 14px -4px rgba(10, 10, 18, 0.08);
}

.prof-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  display: block;
  transition: color 280ms;
}

.prof-card:hover .prof-card__num {
  color: var(--purple);
}

.prof-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  font-variation-settings: "opsz" 100, "SOFT" 50;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 12px;
}

.prof-card__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  background: linear-gradient(120deg, var(--purple) 0%, var(--terracota) 90%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prof-card__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

.prof-card__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border-radius: 12px;
  overflow: hidden;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Padding interno pra animação não colar nas bordas do box */
  padding: 18px;
  transition: background 320ms var(--ease-out);
}

.prof-card:hover .prof-card__visual {
  background: rgba(124, 58, 237, 0.06);
}

/* ─── Visuais por card (mini-mockups) ─────────────────────── */

/* 01 — Padrão da prova: mini gráfico de barras */
.viz-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.viz-bars i {
  display: block;
  height: 5px;
  background: rgba(10, 10, 18, 0.1);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.viz-bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  background: var(--text);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}

.prof-card:hover .viz-bars i::after {
  transform: scaleX(1);
}

.prof-card:hover .viz-bars i:nth-child(1)::after { background: var(--purple); transition-delay: 0ms; }
.prof-card:hover .viz-bars i:nth-child(2)::after { background: var(--purple); transition-delay: 80ms; opacity: 0.85; }
.prof-card:hover .viz-bars i:nth-child(3)::after { background: var(--purple); transition-delay: 160ms; opacity: 0.7; }
.prof-card:hover .viz-bars i:nth-child(4)::after { background: var(--purple); transition-delay: 240ms; opacity: 0.55; }
.prof-card:hover .viz-bars i:nth-child(5)::after { background: var(--purple); transition-delay: 320ms; opacity: 0.4; }

/* 02 — Plano diário: mini calendário */
.viz-cal {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.viz-cal i {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: rgba(10, 10, 18, 0.08);
  transition: background 280ms var(--ease-out);
}

.prof-card:hover .viz-cal i {
  background: rgba(124, 58, 237, 0.18);
}

.prof-card:hover .viz-cal i.today {
  background: var(--purple);
  box-shadow: 0 0 0 2px var(--terracota);
}

/* Stagger fill do calendário */
.prof-card:hover .viz-cal i:nth-child(1)  { transition-delay: 0ms; }
.prof-card:hover .viz-cal i:nth-child(2)  { transition-delay: 30ms; }
.prof-card:hover .viz-cal i:nth-child(3)  { transition-delay: 60ms; }
.prof-card:hover .viz-cal i:nth-child(4)  { transition-delay: 90ms; }
.prof-card:hover .viz-cal i:nth-child(5)  { transition-delay: 120ms; }
.prof-card:hover .viz-cal i:nth-child(6)  { transition-delay: 150ms; }
.prof-card:hover .viz-cal i:nth-child(7)  { transition-delay: 180ms; }
.prof-card:hover .viz-cal i:nth-child(8)  { transition-delay: 210ms; }
.prof-card:hover .viz-cal i:nth-child(9)  { transition-delay: 240ms; }
.prof-card:hover .viz-cal i:nth-child(10) { transition-delay: 270ms; }

/* 03 — Hoje: mini lista de tarefas */
.viz-tasks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viz-tasks i {
  height: 14px;
  border-radius: 4px;
  background: rgba(10, 10, 18, 0.08);
  position: relative;
  padding-left: 16px;
  overflow: hidden;
}

.viz-tasks i::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.2);
  transition: background 320ms;
}

.prof-card:hover .viz-tasks i:nth-child(1)::before { background: var(--pulse-green); }
.prof-card:hover .viz-tasks i:nth-child(2)::before {
  background: var(--purple);
  animation: pulsePurple 1.4s ease-out infinite;
}
.prof-card:hover .viz-tasks i:nth-child(3)::before { background: rgba(10, 10, 18, 0.3); }
.prof-card:hover .viz-tasks i:nth-child(4)::before { background: rgba(10, 10, 18, 0.3); }

/* 04 — Adapta: mini line chart de evolução */
.viz-line {
  width: 100%;
  height: 80px;
  position: relative;
}

.viz-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.viz-line .grid-line {
  stroke: rgba(10, 10, 18, 0.06);
  stroke-width: 1;
}

.viz-line .data-line {
  fill: none;
  stroke: rgba(10, 10, 18, 0.25);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1000ms var(--ease-out), stroke 320ms;
}

.prof-card:hover .viz-line .data-line {
  stroke: var(--purple);
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.4));
}

.viz-line .data-dot {
  fill: var(--terracota);
  opacity: 0;
  transition: opacity 320ms 800ms;
}

.prof-card:hover .viz-line .data-dot {
  opacity: 1;
}

/* ─── Responsivo ─────────────────────── */

@media (max-width: 760px) {
  .profundidade__grid {
    grid-template-columns: 1fr;
  }
  .prof-card {
    grid-template-columns: 1fr 100px;
    gap: 18px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .prof-card {
    grid-template-columns: 1fr;
  }
  .prof-card__visual {
    aspect-ratio: auto;
    height: 96px;
    padding: 14px 18px;
  }
  /* Calendar: 5x4 cropa em visual baixo. Vira 10x2 pra caber. */
  .viz-cal {
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    align-content: center;
  }
  /* Tasks: 4 itens em coluna ainda cabem em 96px (4*14 + 3*6 = 74) */
  .viz-tasks {
    gap: 4px;
  }
  .viz-tasks i {
    height: 12px;
  }
  /* Line chart respeita height 80, mas o container já é 96 com padding */
  .viz-line {
    height: 100%;
  }
}
