/* Páginas "WhatsApp para <segmento>" e o índice /segmentos/. Mesmo kit das outras páginas:
   topo escuro com grade, títulos com índice (01, 02…), cartões brancos com borda fina. */

@media (min-width: 1281px) {   /* abaixo disso a coluna já ocupa a tela toda (ver site.css) */
  [data-raiz] > .sg-topo,
  [data-raiz] > .sg-fim { box-shadow: 0 0 0 100vmax #0F2830; clip-path: inset(0 -100vmax); }
}

.sg-topo { position: relative; background: #0F2830; color: #fff; overflow: hidden; padding-bottom: 96px; }
.sg-grade { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(53,208,222,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(53,208,222,.07) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%); }
.sg-topo::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; top: -180px; right: -140px; background: radial-gradient(circle, rgba(21,181,198,.38), transparent 65%); filter: blur(20px); pointer-events: none; }

.sg-hero { position: relative; z-index: 2; padding: 48px 70px 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; }
.sg-topo-idx .sg-hero { grid-template-columns: minmax(0, 820px); }
.sg-hero-txt { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sg-trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: #8FA3AA; }
.sg-trilha a { color: #CDD8DC; text-decoration: none; }
.sg-trilha a:hover { color: #fff; text-decoration: underline; }
.sg-trilha [aria-current] { color: #6FE0EA; }
.sg-hero h1 { margin: 0; font-size: 58px; line-height: 1.04; font-weight: 800; letter-spacing: -2.2px; text-wrap: balance; }
.sg-h1-k { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .04em; line-height: 1.4; color: #6FE0EA; }
.sg-resumo { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.65; color: #B7C7CC; text-wrap: pretty; }
.sg-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.sg-btn-2 { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.sg-btn-2:hover { background: rgba(255,255,255,.12); color: #fff; }
.sg-selos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #9FB0B6; }
.sg-selos li { display: inline-flex; align-items: center; gap: 8px; }
.sg-selos li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #15B5C6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* conversa de exemplo */
.sg-chat { margin: 0; background: #F6FAFB; color: #16211F; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.sg-chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid #E1E9EC; }
.sg-av { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #E3F7FA; color: #0C8695; font-size: 13px; font-weight: 700; }
.sg-chat-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sg-chat-id strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-chat-id small { font-size: 12px; color: #586A71; }
.sg-on { font-size: 12px; font-weight: 600; color: #17B26A; }
.sg-chat-corpo { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 300px; }
.sg-chat-corpo .bubble { margin: 0; max-width: 86%; font-size: 13.5px; }
.sg-quem { display: block; font-size: 12px; color: #0C8695; margin-bottom: 2px; }
.sg-ia { align-self: flex-end; max-width: 92%; padding: 12px 14px; border-radius: 14px; border-top-right-radius: 4px; background: #F1EEFC; border: 1px solid #D9D2F6; animation: pop .45s cubic-bezier(.2,.9,.3,1.2) both; }
.sg-ia-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #6B5EAE; }
.sg-ia-sig { font-size: 12px; }
.sg-ia p { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.5; color: #16211F; }
.sg-ia-b { display: flex; gap: 8px; }
.sg-ia-b span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: #6B5EAE; color: #fff; }
.sg-ia-b span + span { background: #fff; color: #6B5EAE; border: 1px solid #D9D2F6; }
.sg-nota-int { margin: 0; align-self: stretch; padding: 10px 13px; border-radius: 12px; background: #FFF7E0; border: 1px dashed #E8C766; font-size: 13px; line-height: 1.45; color: #5C4A12; animation: pop .45s cubic-bezier(.2,.9,.3,1.2) both; }
.sg-nota-int b { display: block; font-size: 12px; margin-bottom: 2px; }

/* seções claras */
.sg-sec { padding: 96px 70px 0; display: flex; flex-direction: column; gap: 36px; }
.sg-cab { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.sg-cab .h2 { margin: 0; }

.sg-chips { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sg-chips li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid #E1E9EC; font-size: 15.5px; font-weight: 600; color: #16211F; }
.sg-chips li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #15B5C6; }

.sg-antes { border-radius: 22px; background: #fff; border: 1px solid #E1E9EC; overflow: hidden; }
.sg-antes-cab, .sg-antes-l { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.sg-antes-cab span { padding: 16px 28px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: #586A71; background: #F6FAFB; border-bottom: 1px solid #E1E9EC; }
.sg-antes-cab span + span { color: #0C8695; background: #ECFBFD; }
.sg-antes-l + .sg-antes-l { border-top: 1px solid #E1E9EC; }
.sg-antes-l p { margin: 0; padding: 22px 28px; font-size: 16px; line-height: 1.55; }
.sg-hoje { color: #586A71; text-decoration: line-through; text-decoration-color: rgba(88,106,113,.35); }
.sg-com { color: #16211F; font-weight: 500; background: linear-gradient(90deg, rgba(21,181,198,.06), transparent 60%); }

.sg-recs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sg-rec { margin: 0; padding: 26px 26px 28px; border-radius: 18px; background: #fff; border: 1px solid #E1E9EC; display: flex; flex-direction: column; gap: 10px; }
.sg-rec h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; line-height: 1.3; font-weight: 700; color: #16211F; letter-spacing: -.3px; }
.sg-rec p { margin: 0; font-size: 15px; line-height: 1.6; color: #586A71; }
.sg-opc { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; padding: 3px 8px; border-radius: 20px; background: #F1EEFC; color: #6B5EAE; }
.sg-nota { margin: -12px 0 0; font-size: 14px; color: #586A71; }
.sg-nota a { color: #0C8695; }

.sg-faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.sg-faq details { background: #fff; border: 1px solid #E1E9EC; border-radius: 14px; padding: 0; }
.sg-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16.5px; font-weight: 600; color: #16211F; }
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after { content: "+"; flex-shrink: 0; font-family: var(--mono); font-size: 18px; line-height: 1; color: #0C8695; transition: transform .2s; }
.sg-faq details[open] summary::after { transform: rotate(45deg); }
.sg-faq details p { margin: 0; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; color: #3F4E54; }

.sg-outros { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-outros a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 30px; background: #fff; border: 1px solid #E1E9EC; font-size: 14.5px; font-weight: 600; color: #16211F; text-decoration: none; transition: border-color .2s, background .2s; }
.sg-outros a:hover { border-color: #15B5C6; background: #ECFBFD; }
.sg-outros .sg-todos { background: #0F2830; border-color: #0F2830; color: #fff; }
.sg-outros .sg-todos:hover { background: #16384A; color: #fff; }

/* índice */
.sg-idx { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sg-idx-c { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid #E1E9EC; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.sg-idx-c:hover { border-color: #15B5C6; transform: translateY(-2px); }
.sg-idx-c h3 { margin: 0; font-size: 19px; font-weight: 700; color: #16211F; letter-spacing: -.3px; }
.sg-idx-c h3::after { content: " →"; color: #0C8695; }
.sg-idx-c p { margin: 0; font-size: 15px; line-height: 1.55; color: #3F4E54; }
.sg-idx-a { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #586A71; }
.sg-az { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 40px; }
.sg-az li { break-inside: avoid; border-top: 1px solid #E1E9EC; }
.sg-az a { display: block; padding: 11px 0; font-size: 15.5px; color: #16211F; text-decoration: none; }
.sg-az a:hover { color: #0C8695; }

/* chamada final */
.sg-fim { position: relative; overflow: hidden; margin-top: 112px; padding: 80px 70px; background: #0F2830; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sg-fim-t { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.sg-fim h2 { margin: 0; font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -1.6px; }
.sg-fim p { margin: 0; font-size: 17px; line-height: 1.6; color: #B7C7CC; }
.sg-fim .sg-acoes { position: relative; }

/* tablet deitado: o título do topo quebrava em quatro linhas ao lado da conversa */
@media (min-width: 901px) and (max-width: 1100px) {
  .sg-hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; padding: 40px 48px 0; }
  .sg-hero h1 { font-size: 48px; letter-spacing: -1.6px; }
}
@media (max-width: 900px) {
  .sg-topo { padding-bottom: 64px; }
  .sg-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 24px 0 0; }
  .sg-hero h1 { font-size: 42px; letter-spacing: -1.4px; }
  .sg-chat { max-width: 460px; }
  .sg-sec { padding-top: 72px; gap: 28px; }
  .sg-recs, .sg-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-fim { margin-top: 80px; padding-top: 56px; padding-bottom: 56px; }
  .sg-fim h2 { font-size: 34px; letter-spacing: -1px; }
}
@media (max-width: 560px) {
  .sg-hero { padding-top: 16px; }
  .sg-hero h1 { font-size: 34px; letter-spacing: -1px; }
  .sg-h1-k { font-size: 13px; margin-bottom: 14px; }
  .sg-resumo { font-size: 16.5px; }
  .sg-acoes .btn { flex: 1 1 100%; }
  .sg-chat-corpo { padding: 14px; min-height: 0; }
  .sg-recs, .sg-idx { grid-template-columns: minmax(0, 1fr); }
  .sg-chips { grid-template-columns: minmax(0, 1fr); }
  .sg-antes-cab { display: none; }
  .sg-antes-l { grid-template-columns: minmax(0, 1fr); }
  .sg-antes-l p { padding: 16px 20px; }
  .sg-hoje { padding-bottom: 4px !important; font-size: 14.5px !important; }
  .sg-com { padding-top: 4px !important; background: none; }
  .sg-com::before { content: "Com o ExiZap → "; font-family: var(--mono); font-size: 12px; font-weight: 500; color: #0C8695; display: block; margin-bottom: 4px; }
  .sg-faq summary { padding: 16px 18px; font-size: 15.5px; }
  .sg-faq details p { padding: 0 18px 18px; }
  .sg-fim h2 { font-size: 30px; }
}
