/* ==========================================================================
   Shoks Solutions — página de case
   Complementa css/style.css (tokens e componentes compartilhados)
   ========================================================================== */

/* ============ Hero do case ============ */
.case-hero {
  position: relative;
  padding: 170px 0 88px;
  overflow: hidden;
}

.case-hero__glow {
  position: absolute;
  width: 960px;
  height: 640px;
  left: 50%;
  top: -300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(232, 65, 44, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.case-hero .container { position: relative; }

.case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  transition: color var(--duration-base) var(--ease-out);
}

.case-hero__back:hover { color: var(--text-primary); }

.case-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.06;
  max-width: 820px;
  margin: 20px 0 22px;
}

.case-hero__sub {
  font-size: 17px;
  max-width: 640px;
}

.case-hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.case-hero__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  background: var(--surface-raised);
}

.case-hero__facts b {
  font: 700 15px/1 var(--font-display);
  background: linear-gradient(120deg, var(--red-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ============ Etapas da solução ============ */
.solution-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.solution-steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.solution-steps li::before {
  content: "0" counter(step);
  counter-increment: step;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(232, 65, 44, 0.1);
  border: 1px solid rgba(232, 65, 44, 0.3);
  font: 700 15px/1 var(--font-display);
  color: var(--red-400);
}

.solution-steps h3 { font-size: 17px; margin-bottom: 6px; }
.solution-steps p { font-size: 14.5px; }

/* ============ Conversa animada (chatphone) ============ */
.chatphone {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 80px rgba(232, 65, 44, 0.07);
  overflow: hidden;
}

.chatphone__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-card);
}

.chatphone__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chatphone__avatar img { height: 20px; width: auto; }

.chatphone__id strong {
  display: block;
  font: 600 14px/1.3 var(--font-display);
  color: var(--text-primary);
}

.chatphone__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.chatphone__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fae6a;
  box-shadow: 0 0 8px rgba(47, 174, 106, 0.7);
}

.chatphone__badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  white-space: nowrap;
}

.chatphone__messages {
  height: 520px;
  overflow: hidden;
  overflow-anchor: none;
  /* respiro extra embaixo: o toast flutua sobre a área e não pode cobrir o último balão */
  padding: 20px 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: var(--gray-0);
}

.chatphone__inputbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 14px;
  padding: 10px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-tertiary);
}

.chatphone__toast {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gray-0);
  border: 1px solid rgba(47, 174, 106, 0.5);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  color: #2fae6a;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}

.chatphone__toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* --- Conteúdos especiais dentro dos balões (.msg vem do style.css) --- */
.msg__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.msg__options b {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 65, 44, 0.35);
  color: var(--text-primary);
  background: rgba(232, 65, 44, 0.08);
}

.msg--patient .msg__options b {
  border-color: var(--gray-300);
  background: rgba(255, 255, 255, 0.04);
}

.msg__redacted {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--gray-300);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.msg__redacted svg { color: var(--text-tertiary); flex: none; }

.msg__redacted small {
  display: block;
  font-size: 10.5px;
  color: var(--text-tertiary);
}

.msg__doc {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msg__doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(232, 65, 44, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-400);
  flex: none;
}

.msg__doc b { display: block; font-size: 12.5px; color: var(--text-primary); }
.msg__doc small { font-size: 11px; color: var(--text-tertiary); }

.msg__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(232, 65, 44, 0.25);
  border-radius: 10px;
  font-size: 12px;
}

.msg__summary i { font-style: normal; color: var(--text-tertiary); }
.msg__summary b { color: var(--text-primary); font-weight: 600; }

.chat-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
  text-align: left;
}

.chat-note svg { flex: none; margin-top: 3px; color: var(--red-400); }

/* ============ Kanban ============ */
.kanban { margin: 0; }

.kanban img {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.kanban figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
}

.kanban-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.kanban-legend li {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.kanban-legend b {
  display: block;
  font: 600 14px/1.3 var(--font-display);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.kanban-legend span { font-size: 13.5px; color: var(--text-secondary); }

/* ============ CTA final ============ */
.case-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.case-cta__glow {
  position: absolute;
  width: 1000px;
  height: 700px;
  left: 50%;
  bottom: -350px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(232, 65, 44, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.case-cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-cta__inner h2 { max-width: 620px; margin-bottom: 16px; }
.case-cta__inner p { max-width: 480px; font-size: 16px; }

.case-cta__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

/* ============ Responsivo ============ */
@media (max-width: 1024px) {
  .kanban-legend { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .case-hero { padding: 130px 0 64px; }
  .case-hero__facts { gap: 8px; }
  .solution-steps li { grid-template-columns: 38px 1fr; gap: 14px; padding: 20px; }
  .solution-steps li::before { width: 38px; height: 38px; font-size: 13px; }
  .chatphone__messages { height: 460px; }
  .chatphone__badge { display: none; }
}

/* ============ Tour de produto (case central de laudos) ============ */
.tour {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 12px;
}

.tour__item {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.tour__item--flip .tour__media { order: 2; }

.tour__media { margin: 0; }

.browser {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
}

.browser__url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  color: var(--text-tertiary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser img {
  width: 100%;
  display: block;
}

.tour__role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font: 600 11.5px/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.tour__role i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-400);
}

.tour__body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.tour__body > p {
  font-size: 15px;
  color: var(--text-secondary);
}

.tour__points {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tour__points svg {
  flex: none;
  margin-top: 2px;
  color: var(--red-400);
}

@media (max-width: 1024px) {
  .tour { gap: 48px; }
  .tour__item { grid-template-columns: 1fr; gap: 24px; }
  .tour__item--flip .tour__media { order: 0; }
}
