/* ============================================================
   page-core.css — página do produto D3 Core
   Depende de css/d3.css e css/blocks.css
   ============================================================ */

.chero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(400px, 1.08fr);
  gap: clamp(30px, 4vw, 62px);
  align-items: center;
  min-height: min(92svh, 840px);
  padding: clamp(64px, 9vw, 104px) var(--gutter) clamp(48px, 6vw, 84px);
  overflow: clip;
}
.chero__glow { top: -32%; right: -20%; width: min(72vw, 940px); aspect-ratio: 1; }
.chero__copy { position: relative; z-index: 2; }
.chero__copy .h1 { margin-bottom: 24px; }
.chero__copy .lede { margin-bottom: 32px; }
.chero__stats { margin-top: 38px; }

.chero__visual { position: relative; z-index: 1; }
.chero__visual .frame { box-shadow: var(--shadow-3); }
.chero__phone {
  position: absolute;
  right: -3%;
  bottom: -12%;
  width: clamp(84px, 15%, 128px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-3);
}

/* ── VITRINE DE MÓDULOS ─────────────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.showcase__list { border-top: 1px solid var(--line); }
.showcase__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--tx-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-align: left;
  transition: color .25s ease, padding-left .3s var(--ease), box-shadow .25s ease;
}
.showcase__item .icon { width: 16px; height: 16px; color: var(--tx-3); transition: color .25s ease; }
.showcase__item .icon-right { opacity: 0; transition: opacity .25s ease, transform .3s var(--ease); }
.showcase__item:hover { color: var(--tx); }
.showcase__item:hover .icon { color: var(--blue); }
.showcase__item[aria-selected="true"] {
  padding-left: 12px;
  box-shadow: inset 2px 0 0 var(--blue);
  color: var(--tx);
}
.showcase__item[aria-selected="true"] .icon { color: var(--blue); }
.showcase__item[aria-selected="true"] .icon-right { opacity: 1; }

.showcase__view { position: sticky; top: calc(var(--nav-h) + 30px); }
.showcase__view .frame { box-shadow: var(--shadow-3); }
.showcase__view img { transition: opacity .3s ease; }
.showcase__view.is-loading img { opacity: .45; }
.showcase__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 16px;
}
.showcase__meta strong { font-size: 16px; font-weight: 700; letter-spacing: -.028em; }
.showcase__meta span { color: var(--tx-3); font-size: 13px; line-height: 1.5; }
.showcase__hint {
  margin-top: 20px;
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* ── VÍDEO EXPLICATIVO ──────────────────────────────────── */
.video-frame {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: clamp(34px, 5vw, 54px);
  border-radius: var(--r-md);
}
.video-frame .frame { aspect-ratio: 16 / 9; border-radius: var(--r-md); }
.video-frame .frame img { height: 100%; object-fit: cover; transition: scale .7s var(--ease), filter .4s ease; }
.video-frame:hover .frame img { scale: 1.025; filter: brightness(.93); }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  background: color-mix(in srgb, #060A12 32%, transparent);
  place-items: center;
  transition: background .3s ease;
}
.video-frame:hover .video-play { background: color-mix(in srgb, #060A12 22%, transparent); }
.video-play span {
  display: grid;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: #0A101C;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  place-items: center;
  transition: scale .3s var(--ease);
}
.video-frame:hover .video-play span { scale: 1.06; }
.video-play .icon { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.video-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(6, 10, 18, .55);
  backdrop-filter: blur(10px);
  color: #F3F6FB;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.pricing__note {
  max-width: 74ch;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--tx-2);
  font-size: 14px;
  line-height: 1.68;
}
.pricing__note strong { color: var(--tx); font-weight: 700; }

@media (max-width: 1080px) {
  .chero { grid-template-columns: minmax(280px, 1fr) minmax(340px, 1fr); }
  .showcase { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 860px) {
  .chero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    min-height: 0;
    padding-top: 92px;
  }
  .chero__phone { display: none; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__view { position: static; order: -1; }
  .showcase__hint { display: none; }
}
