/* =====================================================================
   v4 — identidade Dino IA: laranja sempre presente, Paper no lugar do branco
   ===================================================================== */
:root {
  --dino-orange: #ff8c00;   /* laranja dos frames do banner */
  --dino-orange-2: #ff9f2e; /* hover */
  --orange-ink: #e87500;    /* laranja para texto grande sobre fundo claro */
  --paper: #f6f5f3;
  --sky-mid: #dde8f6;
}

/* fundos: Paper, azul suave e azul Dino (nada de branco chapado) */
body, section, .hero { background: var(--paper); }
.nav { background: rgba(246, 245, 243, .82); }
section.gray { background: var(--sky-soft); }
section.soft { background: var(--sky-mid); }
footer { background: var(--paper); }
::selection { background: rgba(255, 140, 0, .28); }

/* ação principal sempre em laranja, texto grafite */
.btn.blue, .btn.primary { background: var(--dino-orange); color: var(--fossil); font-weight: 500; }
.btn.blue:hover, .btn.primary:hover { background: var(--dino-orange-2); }
.btn.white { background: var(--dino-orange); color: var(--fossil); font-weight: 500; }
.btn.white:hover { background: var(--dino-orange-2); color: var(--fossil); }
.hero .actions a.more { color: var(--fossil); text-decoration: underline; text-decoration-color: var(--dino-orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* palavra de destaque do topo em laranja */
.hero h1 > span > span { color: var(--orange-ink); }

/* marcador de pixels da marca antes de cada rótulo de seção */
.kicker { color: var(--fossil); display: inline-flex; align-items: center; gap: 0; }
.kicker::before { content: ""; width: 9px; height: 9px; margin-right: 36px; background: var(--dino-orange); box-shadow: 12px 0 0 var(--dino-blue), 24px 0 0 var(--sky); flex: none; }
section.dark .kicker { color: #fff; }
section.dark .kicker::before { box-shadow: 12px 0 0 #fff, 24px 0 0 var(--sky); }
.sec-head.center .kicker { justify-content: center; }

/* marcadores de lista e planos */
.plan li::before, .topics li::before, section.soft .topics li::before { background-color: var(--dino-orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323262b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.quote li::before { background: var(--dino-orange); border-radius: 2px; }
.plan.hl { box-shadow: inset 0 0 0 2px var(--dino-orange); }
.plan.hl:hover { box-shadow: inset 0 0 0 2px var(--dino-orange), 0 24px 48px -28px rgba(35, 38, 43, .35); }
.plan .tag { color: var(--fossil); background: var(--dino-orange); padding: 3px 10px; border-radius: 999px; font-size: 12px; }

/* abas de nicho: selecionada em azul Dino com faixa laranja */
.niche-tabs button { background: #fff; }
.niche-tabs button[aria-selected="true"] { background: var(--dino-blue); color: #fff; box-shadow: inset 0 -3px 0 var(--dino-orange); }

/* seção dos celulares em azul Dino */
section.dark .demo h3 { color: #fff; }
section.dark .demo p { color: rgba(255, 255, 255, .8); }
section.dark .sec-head h2 > span > span { color: #fff; }

/* números e cartões com toque de laranja */
.limit { background: #fff; }
.limit h4 { flex-direction: column; gap: 16px; }
.limit h4::before { width: 26px; height: 26px; margin: 0; border-radius: 6px; background: var(--dino-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323262b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.logo-cell { background: #fff; }

/* ---------- tipografia: nada de palavra sozinha na última linha ---------- */
h1, h2, h3, h4, summary, .price { text-wrap: balance; }
p, li, dd, .topics span, .lead, .field { text-wrap: pretty; }
.price { white-space: nowrap; }
/* centralizado só em título; parágrafo longo centralizado vira "convite de casamento" */
.sec-head.center p { max-width: 620px; margin-left: auto; margin-right: auto; }
.limit h4 { text-wrap: balance; }

/* ---------- topo: título em cima, banner na largura do conteúdo ---------- */
.hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 72px; padding: 96px 0 104px; }
.hero .art { width: 100%; }
@media (min-width: 901px) {
  .hero .wrap > div:first-child { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: 72px; align-items: end; }
  .hero h1 { grid-row: 1 / 3; }
  .hero p.lead { margin-top: 0; max-width: 420px; }
  .hero .actions { margin-top: 28px; }
}
@media (max-width: 900px) {
  .hero .wrap { gap: 44px; padding: 48px 0 56px; }
  /* celular: amplia e mostra a parte do "IA" e do Dino, sem ficar miúdo */
  .hero .art { overflow: hidden; margin-right: -24px; width: calc(100% + 24px); }
  .hero .pixels { width: 165%; margin-left: -65%; }
}

/* ---------- "Veja funcionando": escolha o negócio, um celular, três passos ---------- */
#funcionando .niche-tabs { justify-content: center; margin: -12px auto 56px; max-width: 900px; }
#funcionando .niche-tabs button { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
#funcionando .niche-tabs button:hover { background: rgba(255, 255, 255, .22); }
#funcionando .niche-tabs button[aria-selected="true"] { background: var(--dino-orange); color: var(--fossil); font-weight: 500; }
.niche-select { display: none; }
.tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 80px; align-items: center; max-width: 980px; margin: 0 auto; }
.tour-side { display: grid; gap: 36px; }
.tour-steps { display: grid; gap: 8px; }
.tour-steps button { display: flex; gap: 18px; align-items: flex-start; text-align: left; padding: 20px 24px; border: 0; border-radius: 20px; background: transparent; color: #fff; cursor: pointer; font: inherit; transition: background .25s; }
.tour-steps button:hover { background: rgba(255, 255, 255, .07); }
.tour-steps button[aria-selected="true"] { background: rgba(255, 255, 255, .13); }
.tour-steps .n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .16); font-weight: 600; font-size: 15px; }
.tour-steps button[aria-selected="true"] .n { background: var(--dino-orange); color: var(--fossil); }
.tour-steps .tt { display: grid; gap: 6px; }
.tour-steps .tt b { font: 600 21px/1.25 var(--font-display); letter-spacing: -.02em; }
.tour-steps .tt small { font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .8); text-wrap: pretty; }
.tour-steps button:not([aria-selected="true"]) .tt small { display: none; }
.tour-steps button:not([aria-selected="true"]) .tt b { opacity: .78; }
.tour-steps .short { display: none; }
.tour-topics { padding: 0 24px; }
.tour-topics h3 { font: 600 15px/1.3 var(--font); color: rgba(255, 255, 255, .7); margin-bottom: 12px; }
.tour-topics ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.tour-topics li { display: flex; gap: 12px; align-items: baseline; color: #fff; font-size: 16px; line-height: 1.4; }
.tour-topics li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--dino-orange); transform: translateY(-2px); }
.tour-topics .soon { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.tour-stage { display: grid; justify-items: center; gap: 20px; }
.tour-caption { display: none; }
@media (max-width: 900px) {
  #funcionando .sec-head { margin-bottom: 28px; }
  #funcionando .niche-tabs { display: none; }
  .niche-select { display: grid; gap: 8px; max-width: 420px; margin: 0 auto 14px; color: rgba(255, 255, 255, .8); font-size: 15px; }
  .niche-select select { height: 52px; border-radius: 14px; border: 0; padding: 0 44px 0 16px; font: 500 17px var(--font); color: var(--fossil); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323262b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; appearance: none; }
  .tour { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 420px; }
  .tour-side { display: contents; }
  .tour-steps { order: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
  .tour-steps button { padding: 10px 4px; min-height: 44px; border-radius: 10px; justify-content: center; align-items: center; font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; }
  .tour-steps button[aria-selected="true"] { background: #fff; color: var(--dino-blue); }
  .tour-steps .n, .tour-steps .tt { display: none; }
  .tour-steps .short { display: block; }
  .tour-stage { order: 2; }
  .tour-caption { display: block; text-align: center; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.45; max-width: 340px; }
  .tour-caption b { display: block; color: #fff; font: 600 19px/1.25 var(--font-display); margin-bottom: 4px; }
  .tour-topics { order: 3; padding: 8px 4px 0; }
}
@media (max-width: 360px) { .phone { width: 272px; height: 560px; } }

/* acessibilidade: foco visível no teclado em qualquer tela */
:focus-visible { outline: 3px solid var(--dino-orange); outline-offset: 3px; border-radius: 8px; }
.sec-head h1.h2 { font-weight: 600; letter-spacing: -.04em; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; }

/* efeitos no tom da marca */
.glow::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 140, 0, .13), transparent 45%); }
.read-progress { background: var(--dino-orange); height: 3px; }
/* segunda frase do título em azul Dino (sem caixa alta, sem gradiente) */
.sec-head h2 > span > span { color: var(--dino-blue); }
section.dark .sec-head h2 > span > span { color: #fff; }

/* ---------- Instagram: antes e depois ---------- */
.ba { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1000px; margin: 8px auto 72px; }
.ba figure { margin: 0; display: grid; gap: 14px; }
.ba figcaption { font-size: 15px; font-weight: 600; color: var(--label-2); }
.ba-bubble { background: #d9fdd3; border-radius: 18px 18px 18px 4px; padding: 6px 6px 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 340px; }
.ba-bubble img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 13px; filter: saturate(.9) brightness(.97); }
.ba-bubble p { font-size: 16px; color: #111b21; padding: 8px 8px 0; display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; }
.ba-bubble p span { font-size: 11px; color: #667781; white-space: nowrap; }
.ba-arrow { display: grid; justify-items: center; gap: 6px; }
.ba-arrow i { width: 12px; height: 12px; background: var(--dino-orange); }
.ba-arrow i:nth-child(2) { background: var(--dino-blue); }
.ba-arrow i:nth-child(3) { background: var(--sky); }
.ba-arrow span { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--fossil); }
.ba-out img { width: 100%; border-radius: 22px; box-shadow: 0 40px 70px -34px rgba(35, 38, 43, .55); }
@media (max-width: 760px) {
  .ba { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 48px; }
  .ba-bubble { max-width: 250px; }
  .ba-arrow { grid-auto-flow: column; justify-content: center; align-items: center; }
  .ba-arrow span { margin: 0 0 0 6px; }
}
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:nth-child(3) { display: none; } }
.nowrap { white-space: nowrap; }
.hero p.lead b { color: var(--fossil); font-weight: 600; }

/* ---------- ícones e notificações flutuando no banner ---------- */
.hero .art { position: relative; }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.fl { position: absolute; left: var(--x); top: var(--y); opacity: 0; animation: fl-in .8s var(--spring) forwards, fl-float 6s ease-in-out infinite; animation-delay: calc(var(--d) * 1s + .6s), calc(var(--d) * 1s + 1.4s); }
.fl.app { width: 68px; height: 68px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(35, 38, 43, .08), 0 14px 30px -12px rgba(35, 38, 43, .35); }
.fl.app .logo-i { width: 36px; height: 36px; }
.fl.app.big { width: 84px; height: 84px; border-radius: 22px; }
.fl.app.big .logo-i { width: 46px; height: 46px; }
.fl.app em { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10px/1 var(--font); font-style: normal; background: var(--fossil); color: #fff; padding: 4px 7px; border-radius: 999px; }
.fl.note { display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 1px 2px rgba(35, 38, 43, .08), 0 16px 36px -14px rgba(35, 38, 43, .4); max-width: 280px; }
.fl.note .logo-i { width: 30px; height: 30px; flex: none; }
.fl.note b { display: block; font-size: 14px; font-weight: 600; color: var(--fossil); line-height: 1.25; }
.fl.note small { display: block; font-size: 13px; color: #5f6368; line-height: 1.3; margin-top: 2px; }
.fl.note .stars { color: var(--dino-orange); font-size: 13px; letter-spacing: 1px; flex: none; }
.fl.note.n2 { flex-direction: column; align-items: flex-start; gap: 4px; }
@keyframes fl-in { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 900px) {
  .fl.hide-m { display: none; }
  .fl.app { width: 52px; height: 52px; border-radius: 14px; }
  .fl.app .logo-i { width: 28px; height: 28px; }
  .fl.app.big { width: 60px; height: 60px; border-radius: 16px; }
  .fl.app.big .logo-i { width: 34px; height: 34px; }
  .fl.note { max-width: 220px; padding: 9px 12px 9px 9px; gap: 9px; }
  .fl.note b { font-size: 12.5px; } .fl.note small { font-size: 11.5px; }
  .fl.note .logo-i { width: 24px; height: 24px; }
  .fl.app.big { --x: 3% !important; --y: 8% !important; }
  .fl.note.n1 { --x: 3% !important; --y: 58% !important; }
  .fl.note.n2 { display: none; }
  .fl.app[style*="24%"] { --x: 46% !important; --y: 40% !important; }
  .fl.app[style*="92%"] { --x: calc(100% - 64px) !important; --y: 6% !important; }
}
@media (prefers-reduced-motion: reduce) { .fl { animation: none; opacity: 1; } }
@media (prefers-reduced-transparency: reduce) { .fl.note { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- fundo que muda com o negócio ---------- */
#funcionando { position: relative; overflow: hidden; isolation: isolate; }
#funcionando > .wrap { position: relative; z-index: 1; }
.niche-bg { position: absolute; inset: 0; z-index: 0; }
.niche-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s linear; }
.niche-bg img.on { opacity: 1; transform: scale(1); }
/* azul Dino por cima: mais forte no título, mais aberto embaixo, onde a foto aparece */
.niche-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 90, 147, .94) 0%, rgba(47, 90, 147, .86) 38%, rgba(47, 90, 147, .66) 100%); }
/* barrinha do próximo negócio + pausar */
.auto-row { display: flex; align-items: center; gap: 14px; max-width: 420px; margin: -36px auto 48px; }
.auto-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.auto-bar i { display: block; height: 100%; width: 0; background: var(--dino-orange); }
#funcionando.auto .auto-bar i { animation: auto-fill 9s linear forwards; }
@keyframes auto-fill { from { width: 0; } to { width: 100%; } }
.auto-toggle { border: 0; background: none; color: rgba(255, 255, 255, .85); font: 500 14px var(--font); cursor: pointer; padding: 10px 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.auto-toggle:hover { color: #fff; }
#funcionando:not(.auto) .auto-row { opacity: .55; }
@media (max-width: 900px) {
  .auto-row { margin: 0 auto 18px; }
  .niche-bg::after { background: linear-gradient(180deg, rgba(47, 90, 147, .95) 0%, rgba(47, 90, 147, .84) 30%, rgba(47, 90, 147, .7) 100%); }
}
@media (prefers-reduced-motion: reduce) { .niche-bg img { transition: none; transform: none; } .auto-row { display: none; } }

/* ---------- abertura: todos os negócios piscando ---------- */
#funcionando .niche-tabs button { transition: background .18s, color .18s, transform .35s var(--spring); }
#funcionando.intro .niche-tabs button[aria-selected="true"]:not(.flash) { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 400; }
#funcionando .niche-tabs button.flash { background: var(--dino-orange); color: var(--fossil); font-weight: 500; }
#funcionando.all .niche-tabs button { transform: scale(1.06); }
#funcionando.intro .niche-bg img { transition: opacity .35s ease, transform 9s linear; }
#funcionando.intro .auto-row { visibility: hidden; }
@media (max-width: 900px) {
  /* no celular os nomes aparecem como etiquetas só na abertura; depois volta o seletor */
  #funcionando.intro .niche-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 18px; max-width: 420px; }
  #funcionando.intro .niche-tabs button { height: 34px; padding: 0 13px; font-size: 14px; }
  #funcionando.intro .niche-select { display: none; }
}
