/* =====================================================
   MDP — Omni por segmento (home: seletor | páginas de segmento)
   Usa as variáveis e as classes .phone-* do styles.css
   ===================================================== */

/* ---------- Home: seletor de segmentos ---------- */
.seg-wrap { width: 100%; }
.seg-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}
.seg-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.seg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(11,45,97,.05);
  color: var(--navy);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.seg-card:hover,
.seg-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 12px 26px rgba(11,45,97,.10);
}
.seg-card svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seg-card strong { font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.seg-card em {
  font-style: normal;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.seg-card .seg-go {
  margin-top: auto;
  padding-top: 4px;
  color: var(--orange);
  font-weight: 700;
  font-size: .82rem;
}
.seg-real-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
}
.seg-real-link span { color: var(--orange); margin-left: 2px; }
.seg-real-link:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .seg-picker { grid-template-columns: 1fr; }
}

/* ---------- Páginas de segmento ---------- */
.od-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,248,251,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,45,97,.06);
}
.od-header-in {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.od-header-in img { width: 150px; display: block; }
.od-btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  text-align: center;
}
.od-btn:hover { background: #e06f10; }
.od-btn-sm { padding: 10px 18px; font-size: .88rem; }
.od-btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.od-btn-ghost:hover { background: var(--navy); color: #fff; }

.od-hero { padding: 48px 0 40px; }
.od-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 48px;
  align-items: start;
}
.od-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245,130,32,.12);
  color: #b85a0a;
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.4;
}
.od-hero h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -1px;
}
.od-hero h1 span { color: var(--orange); }
.od-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 640px;
}
.od-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.od-points { display: grid; gap: 12px; }
.od-point {
  padding: 14px 16px;
  border: 1px solid rgba(11,45,97,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.76);
}
.od-point strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: .96rem; }
.od-point span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.od-demo-col { display: flex; flex-direction: column; align-items: center; gap: 12px; scroll-margin-top: 90px; }
.od-demo-tag {
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245,130,32,.1);
  color: #b85a0a;
  font-weight: 600;
  font-size: .82rem;
  text-align: center;
}
.od-trace-toggle {
  padding: 8px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: .84rem;
  cursor: pointer;
}
.od-trace-toggle:hover,
.od-trace-toggle[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* celular: ajustes para o modo interativo */
.od-demo-col .phone-screen { min-height: 0; }
.od-demo-col .phone-chat {
  max-height: 300px;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 2px;
}
.od-demo-col .phone-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.od-demo-col .phone-actions button { padding: 9px 10px; font-size: .8rem; line-height: 1.3; }
.od-demo-col .phone-actions button::before { margin-right: 5px; }
.od-demo-col .phone-actions button.demo-reset { grid-column: 1 / -1; }
.od-demo-col .phone-actions button.demo-chip { cursor: pointer; transition: background .15s ease; }
.od-demo-col .phone-actions button.demo-chip:hover { background: rgba(7,34,62,.92); }
.od-demo-col .phone-actions button.demo-chip:disabled { opacity: .55; cursor: wait; }
.od-demo-col .phone-actions button.demo-reset {
  background: transparent;
  border-style: dashed;
  color: #9ec4e6;
  cursor: pointer;
}
.od-demo-col .phone-actions button.demo-reset::before { content: "↺"; color: #9ec4e6; }
.demo-bot-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.demo-trace {
  display: none;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px dashed rgba(110,190,230,.45);
  color: #9ee3f5;
  font-size: .72rem;
  line-height: 1.45;
}
.od-demo-col.show-trace .demo-trace { display: block; }
.demo-trace b { color: #fff; font-weight: 700; }
.demo-note {
  margin: 0 0 0 43px;
  color: #9ec4e6;
  font-size: .74rem;
  font-style: italic;
  line-height: 1.45;
}
.demo-typing .phone-message { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.demo-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7d8da5;
  animation: demoDot 1s infinite ease-in-out;
}
.demo-typing i:nth-child(2) { animation-delay: .15s; }
.demo-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes demoDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .demo-typing i { animation: none; opacity: .7; }
  .od-demo-col .phone-chat { scroll-behavior: auto; }
}
.od-channels-note { margin: 0; color: var(--muted); font-size: .74rem; text-align: center; max-width: 300px; }
.od-demo-col .channel-icon { cursor: default; }
.od-demo-col .channel-icon:hover { transform: none; }

.od-section { padding: 20px 0 44px; }
.od-section h2 { margin: 0 0 18px; color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.od-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.od-step {
  padding: 20px 20px 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(11,45,97,.05);
}
.od-step strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 1.02rem; }
.od-step p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

.od-cta {
  margin: 8px 0 44px;
  padding: 34px clamp(20px, 4vw, 40px);
  border-radius: 16px;
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 32px rgba(6,26,60,.17);
}
.od-cta h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.od-cta p { max-width: 560px; margin: 0 auto 18px; color: rgba(255,255,255,.88); line-height: 1.65; }
.od-cta-links { margin-top: 14px; font-size: .88rem; }
.od-cta-links a { color: #fff; text-decoration: underline; margin: 0 8px; }

.od-footer { background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 28px 0; }
.od-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.od-footer img { height: 44px; width: auto; display: block; }
.od-footer small { line-height: 1.7; }
.od-footer a { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .od-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .od-hero { padding-top: 32px; }
  .od-demo-col { order: 2; }
}
@media (max-width: 520px) {
  .od-header-in img { width: 120px; }
  .od-cta-row .od-btn { width: 100%; }
}

/* ---------- Home: celular com áreas + textos ---------- */
.phone-actions a.home-seg {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(110,190,230,.30);
  border-radius: 9px;
  background: rgba(7,34,62,.72);
  color: #fff;
  font-size: .84rem;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.phone-actions a.home-seg::before { content: "›"; color: var(--orange); margin-right: 8px; font-weight: 800; }
.phone-actions a.home-seg:hover,
.phone-actions a.home-seg:focus-visible { border-color: var(--orange); background: rgba(7,34,62,.95); }
.home-cost { margin: 18px 0 0; max-width: 560px; }
.home-cost h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.home-cost p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.phone-channel-labels em.soon,
.od-demo-col .phone-channel-labels em.soon { display: block; font-style: normal; color: var(--orange); font-size: .54rem; font-weight: 700; }
.od-footer-seal { display: flex; align-items: center; gap: 12px; }
.od-footer-seal span { font-size: .8rem; line-height: 1.4; }
.home-cost + .business-24h-bridge { margin-top: 22px; }
.home-phone .business-24h-demo-real-link { color: #cfe3f5; }
.home-phone .business-24h-demo-real-link span { color: var(--orange); }

/* ---------- Página de teste: formulário e entrada de pergunta ---------- */
.ot-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(11,45,97,.05); max-width: 560px; }
.ot-label { display: block; margin: 14px 0 6px; color: var(--navy); font-weight: 700; font-size: .92rem; }
.ot-label:first-child { margin-top: 0; }
.ot-label span { color: var(--muted); font-weight: 500; }
.ot-input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; color: var(--navy); background: #fff; }
.ot-input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.ot-textarea { min-height: 130px; resize: vertical; }
.ot-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ot-pill { padding: 8px 12px; border: 1.5px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.ot-pill:hover, .ot-pill:focus-visible { background: var(--navy); color: #fff; }
.ot-more { margin-top: 14px; }
.ot-more summary { cursor: pointer; color: var(--orange); font-weight: 700; font-size: .92rem; }
.ot-hint { margin: 6px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.ot-go { margin-top: 18px; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.ot-aviso { margin: 10px 0 0; color: #b85a0a; font-size: .86rem; line-height: 1.5; min-height: 1.2em; }
.ot-ask { display: flex; gap: 8px; margin: 10px 0 12px; }
.ot-ask[hidden] { display: none; }
.ot-ask input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid rgba(110,190,230,.35); border-radius: 9px; background: rgba(7,34,62,.72); color: #fff; font: inherit; font-size: .84rem; }
.ot-ask input::placeholder { color: #9ec4e6; }
.ot-ask button { padding: 0 14px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; font-size: .85rem; font-weight: 700; cursor: pointer; }
.od-demo-col .channel-icon[href] { cursor: pointer; }
.od-demo-col .channel-icon[href]:hover { transform: scale(1.06); }
@media (min-width: 901px) { #ot-demo { position: sticky; top: 90px; align-self: start; } }

/* voltar ao celular inicial (home) */
.demo-back { display: inline-block; margin: 0 0 6px; padding: 4px 2px; color: #9ee3f5; font-size: .78rem; font-weight: 600; text-decoration: none; }
.demo-back:hover, .demo-back:focus-visible { color: #fff; text-decoration: underline; }

/* home: campo de segmento dentro do celular */
.home-seg-form { display: flex; gap: 8px; margin: 10px 0 12px; }
.home-seg-form input[type=text] { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.96); color: var(--navy); font: inherit; font-size: .85rem; }
.home-seg-form input[type=text]:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.home-seg-form button { width: auto; margin: 0; padding: 0 14px; border: 0; border-radius: 10px; background: var(--orange); color: #fff; font-size: .85rem; font-weight: 700; text-align: center; cursor: pointer; }
.home-seg-form button::before { content: none; }

/* omni-teste: resumo do segmento escolhido (esconde as opcoes depois de escolher) */
.ot-resumo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f4f8fc; color: var(--navy); font-size: .95rem; }
.ot-resumo[hidden] { display: none; }
.ot-trocar { border: 0; background: none; color: var(--orange); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.demo-chip.demo-colar { border-style: dashed; border-color: var(--orange); }

/* caixa de texto que a Omni abre no chat (pede uma informacao): ocupa a largura toda e o texto cinza quebra de linha */
.phone-slots .ot-caixa { grid-column: 1 / -1; width: 100%; margin: 0; align-items: flex-end; }
.ot-caixa textarea { flex: 1; font-size: .8rem !important; min-width: 0; resize: none; padding: 9px 11px; border: 1px solid rgba(110,190,230,.35); border-radius: 9px; background: rgba(7,34,62,.72); color: #fff; font: inherit; font-size: .84rem; line-height: 1.3; }
.ot-caixa textarea::placeholder { color: #9ec4e6; }
.ot-caixa button { height: 36px; }

/* contato no chat: dois campos empilhados + enviar */
.phone-slots .ot-contato { grid-column: 1 / -1; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 6px; }
.ot-contato input { font-size: .8rem !important; min-width: 0; padding: 9px 11px; border: 1px solid rgba(110,190,230,.35); border-radius: 9px; background: rgba(7,34,62,.72); color: #fff; font-family: inherit; }
.ot-contato input::placeholder { color: #9ec4e6; }
.ot-contato button { height: 36px; align-self: flex-end; padding: 0 16px; }
