/* PARA QUEM É — dois cards de decisor, marcador de leitura só em CSS */

.sec-pq {
  --surface: var(--white);
  --surface-tile: var(--off);
  --tile-active: #e4dffa;
  --border-card: var(--lb);
  --border-tile: #eeeaf8;
  --border-active: #b9aeee;
  --ink: var(--navy);
  --ink-body: var(--gray);
  --ink-item: #3b3956;
  --accent: var(--teal);
  --accent-hover: #4c3fa1;
  --shadow-card: 6px 12px 24px -12px rgba(23, 22, 50, .14),
                 10px 22px 48px -26px rgba(23, 22, 50, .24);
  --pq-mono: ui-monospace, "Segoe UI Mono", monospace;
  background: var(--surface);
  padding: clamp(28px, 5vw, 88px) clamp(16px, 4vw, 64px);
  overflow-x: clip;
}

.sec-pq .inner {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.6vw, 56px);
}

.pq-head {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.2vw, 18px);
  max-width: none;
}

.sec-pq .eyebrow {
  margin-bottom: 0;
  color: var(--accent);
}

.sec-pq h2 {
  margin-bottom: 0;
  color: var(--ink);
}

.pq-h2-line {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .pq-h2-line {
    white-space: normal;
  }
}

.sec-pq .lead {
  margin-bottom: 0;
  max-width: 42rem;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--ink-body);
}

.pq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 336px), 1fr));
  grid-template-rows: auto auto auto auto;
  gap: clamp(14px, 1.8vw, 26px);
}

.pq-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: clamp(12px, 1.4vw, 20px);
  min-width: 0;
  padding: clamp(20px, 2.2vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: clamp(16px, 1.4vw, 22px);
  box-shadow: var(--shadow-card);
}

.pq-card::before {
  content: "01";
  position: absolute;
  top: clamp(-6px, -.4vw, -2px);
  right: clamp(10px, 1.4vw, 22px);
  font-family: var(--display);
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-tile);
  pointer-events: none;
}

.pq-card:nth-child(2)::before {
  content: "02";
}

.pq-role {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - clamp(64px, 7.5vw, 112px));
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

.pq-role::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.pq-card h3 {
  position: relative;
  margin: 0;
  max-width: min(32ch, calc(100% - clamp(64px, 7.5vw, 112px)));
  font-family: var(--display);
  font-size: clamp(18px, 1.75vw, 27px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -.022em;
  line-height: 1.16;
  color: var(--ink);
}

.pq-card > p {
  position: relative;
  margin: 0;
  max-width: min(44ch, calc(100% - clamp(36px, 4vw, 72px)));
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--ink-body);
}

.pq-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, .7vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pq-topic {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.1vw, 14px);
  padding: clamp(11px, 1.05vw, 15px) clamp(13px, 1.2vw, 17px);
  border-radius: 12px;
  background: var(--surface-tile);
  border: 1px solid var(--border-tile);
}

.pq-topic:nth-child(1) { animation: fRow1 12s ease-in-out infinite; }
.pq-topic:nth-child(2) { animation: fRow2 12s ease-in-out infinite; }
.pq-topic:nth-child(3) { animation: fRow3 12s ease-in-out infinite; }

.pq-topic-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform-origin: center;
  pointer-events: none;
}

.pq-topic:nth-child(1) .pq-topic-bar { animation: fBar1 12s ease-in-out infinite; }
.pq-topic:nth-child(2) .pq-topic-bar { animation: fBar2 12s ease-in-out infinite; }
.pq-topic:nth-child(3) .pq-topic-bar { animation: fBar3 12s ease-in-out infinite; }

.pq-idx {
  flex: none;
  font-family: var(--pq-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--accent);
}

.pq-topic > span:last-child {
  font-size: clamp(13px, 1.02vw, 15px);
  line-height: 1.45;
  color: var(--ink-item);
}

.sec-pq .btn {
  align-self: center;
}

@keyframes fBar1 {
  0%, 2% { opacity: 0; transform: scaleY(.3); }
  7%, 29% { opacity: 1; transform: scaleY(1); }
  34%, 100% { opacity: 0; transform: scaleY(.3); }
}

@keyframes fBar2 {
  0%, 35% { opacity: 0; transform: scaleY(.3); }
  40%, 62% { opacity: 1; transform: scaleY(1); }
  67%, 100% { opacity: 0; transform: scaleY(.3); }
}

@keyframes fBar3 {
  0%, 68% { opacity: 0; transform: scaleY(.3); }
  73%, 95% { opacity: 1; transform: scaleY(1); }
  99%, 100% { opacity: 0; transform: scaleY(.3); }
}

@keyframes fRow1 {
  0%, 2% { background: #f7f6fc; border-color: #eeeaf8; }
  7%, 29% { background: #e4dffa; border-color: #b9aeee; }
  34%, 100% { background: #f7f6fc; border-color: #eeeaf8; }
}

@keyframes fRow2 {
  0%, 35% { background: #f7f6fc; border-color: #eeeaf8; }
  40%, 62% { background: #e4dffa; border-color: #b9aeee; }
  67%, 100% { background: #f7f6fc; border-color: #eeeaf8; }
}

@keyframes fRow3 {
  0%, 68% { background: #f7f6fc; border-color: #eeeaf8; }
  73%, 95% { background: #e4dffa; border-color: #b9aeee; }
  99%, 100% { background: #f7f6fc; border-color: #eeeaf8; }
}

@supports not (grid-template-rows: subgrid) {
  .pq-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    gap: clamp(12px, 1.4vw, 20px);
  }

  .pq-role { min-height: 1.15em; }
  .pq-card h3 { min-height: 2.5em; }
  .pq-card > p { min-height: 4.5em; }
}

@media (prefers-reduced-motion: reduce) {
  .sec-pq * {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
  }
}
