/* ===== Topo + "Um dia com o Lino" num fluxo só: o celular nasce no topo e desce com o scroll ===== */
.hflow { background: var(--paper); padding: 0 0 40px; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 72px; max-width: 1120px; margin: 0 auto; }
.hflow .story-steps { list-style: none; padding: 0; margin: 0; }

/* bloco do topo */
.flow-hero { min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); max-width: none; opacity: 1 !important; border-top: 0 !important; padding: 40px 0 56px !important; justify-content: center; }
.eyebrow-pain { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; font: 600 15px/1.2 var(--font); color: var(--fossil); background: #fff; padding: 9px 14px 9px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--hair); margin: 0 0 26px; }
.eyebrow-pain::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none; }
.flow-hero h1 { font: 600 clamp(46px, 5.6vw, 84px)/.96 var(--font-display); letter-spacing: -.055em; color: var(--fossil); margin: 0; }
.flow-hero h1 > span > span { color: var(--orange-ink); }
.flow-hero .lead { margin: 26px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #4f5258; max-width: 520px; text-wrap: pretty; }
.flow-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.flow-hero .actions a.more { color: var(--fossil); font-size: 17px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--dino-orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.flow-hero .actions a.more::after { content: " ↗"; display: inline-block; margin-left: 4px; }
.flow-hero .assure { margin-top: 22px; font-size: 14px; color: #6e6e73; }

/* passos (desktop) */
.hflow .story-step:not(.flow-hero) { min-height: 78vh; }
.hflow .story-step .kicker { margin-bottom: 26px; }
.story-card { display: flex; flex-direction: column; align-items: flex-start; }
.hflow .story-pin { top: calc(50vh - 330px); margin-top: calc(50vh - 28px - 330px); }

.strip { padding-top: 56px; }

/* ===== celular: o mesmo efeito, com o celular preso no alto e o texto subindo num cartão ===== */
@media (max-width: 1023px) {
  .hflow { padding-bottom: 8px; }
  .flow-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .hflow .story-steps { display: contents; }
  .flow-hero { grid-row: 1; min-height: 0; padding: 28px 0 36px !important; }
  .flow-hero h1 { font-size: clamp(42px, 12.4vw, 60px); }
  .flow-hero .lead { margin-top: 18px; font-size: 18px; }
  .flow-hero .actions { margin-top: 26px; gap: 16px; }
  .flow-hero .actions .btn { width: 100%; justify-content: center; }
  .eyebrow-pain { font-size: 14px; margin-bottom: 20px; }
  .hflow .story-pin { display: grid; grid-row: 2 / span 4; grid-column: 1; position: sticky; top: 64px; margin: 0 auto; zoom: .62; height: 660px; width: 420px; z-index: 0; }
  .hflow .story-step:not(.flow-hero) { grid-column: 1; z-index: 1; min-height: 92vh; min-height: 92svh; max-width: none; opacity: 1; border-top: 0; padding: 0 0 20px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hflow .story-step:nth-child(2) { grid-row: 2; } .hflow .story-step:nth-child(3) { grid-row: 3; }
  .hflow .story-step:nth-child(4) { grid-row: 4; } .hflow .story-step:nth-child(5) { grid-row: 5; }
  .hflow .story-card { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 18px 40px -18px rgba(35, 38, 43, .35), 0 0 0 1px var(--hair); }
  .hflow .story-step .kicker { margin-bottom: 10px; }
  .hflow .story-step .time { margin-bottom: 10px; }
  .hflow .story-step h3 { font-size: 24px; }
  .hflow .story-step p { margin-top: 6px; font-size: 16px; }
  .story-dots { display: none; }
}
@media (max-width: 1023px) and (max-height: 720px) { .hflow .story-pin { zoom: .54; } }
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .hflow .story-phone { transform: none !important; } }

/* ajustes: título cabe em 3 linhas no desktop, linha de preço inteira, celular abaixo do menu no mobile */
@media (min-width: 1024px) {
  .flow-hero h1 { font-size: clamp(44px, 4.6vw, 68px); }
  .flow-hero h1 .v-d { white-space: nowrap; }
}
.flow-hero .assure { max-width: none; text-wrap: balance; }
@media (max-width: 1023px) { .hflow .story-pin { top: 110px; } }
@media (max-width: 1023px) and (max-height: 720px) { .hflow .story-pin { top: 120px; } }
@media (max-width: 1023px) and (min-height: 800px) { .hflow .story-pin { zoom: .7; top: 96px; } }

/* conexões: logos reais na cor de cada marca */
.connects { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; }
.connects > span { font-size: 13px; font-weight: 600; color: #6e6e73; }
.connects ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.connects li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--hair); font-size: 14px; font-weight: 500; color: var(--fossil); white-space: nowrap; }
.connects .logo-i { width: 18px; height: 18px; flex: none; }
.flow-hero .assure { margin-top: 16px; }

/* celular: topo enxuto para o celular já aparecer na primeira tela, junto do título */
@media (max-width: 1023px) {
  .flow-hero { padding: 18px 0 22px !important; }
  .eyebrow-pain { font-size: 13px; padding: 7px 12px 7px 10px; margin-bottom: 14px; }
  .flow-hero h1 { font-size: clamp(36px, 10.6vw, 52px); }
  .flow-hero .lead { margin-top: 12px; font-size: 16px; line-height: 1.45; }
  .flow-hero .actions { margin-top: 18px; gap: 12px; }
  .flow-hero .actions .btn { width: auto; flex: 1 1 auto; }
  .connects { margin-top: 16px; gap: 8px; flex-wrap: nowrap; }
  .connects > span { display: none; }
  .connects ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 -16px; padding: 2px 16px; }
  .connects ul::-webkit-scrollbar { display: none; }
  .connects li { height: 32px; font-size: 13px; padding: 0 11px 0 9px; }
  .connects .logo-i { width: 16px; height: 16px; }
  .flow-hero .assure { font-size: 12.5px; margin-top: 12px; }
  .hflow .story-pin { margin-top: -6px; }
}
/* toque: a rolagem encaixa passo a passo na história */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
}

/* introdução do carrossel */
.strip { padding-top: 88px; }
.strip-head { margin-bottom: 40px; }
.strip-head p { max-width: 560px; }
@media (max-width: 1023px) { .strip { padding-top: 56px; } .strip-head { margin-bottom: 28px; } .strip-head p { font-size: 17px; } }

/* "Escolha o seu negócio" no celular: escolhe o negócio, vê o celular, toca a pergunta */
@media (max-width: 900px) {
  #funcionando .tour { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 420px; }
  #funcionando .tour-side, #funcionando #tour { display: contents; }
  #funcionando .tour-side .kicker { order: 1; justify-self: center; align-self: center; margin-bottom: 10px; }
  #funcionando .tour-side h2 { order: 2; text-align: center; font-size: 34px; margin: 0 0 18px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
  #funcionando .niche-select { order: 3; margin: 0 0 10px; }
  #funcionando .niche-select > span { display: none; }
  #funcionando .auto-row { order: 4; margin: 0 0 18px; }
  #funcionando .tour-stage { order: 5; align-self: center; zoom: .82; }
  #funcionando .tour-text { display: none; }
  #funcionando .ask { order: 6; margin-top: 18px; justify-items: center; text-align: center; }
  #funcionando .ask > span { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
}

/* correções: título do carrossel em 2 linhas no desktop; conexões quebram em linhas no celular (nada sai da tela) */
.strip-head { max-width: 1000px; }
@media (max-width: 1023px) {
  .connects ul { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 6px; }
  .connects { flex-wrap: wrap; }
}

/* ===== Tudo o que o Lino faz ===== */
.features { background: #fff; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.feat { border-top: 1px solid var(--hair); padding: 24px 0 40px; }
.feat-n { display: block; font: 600 14px/1 var(--font); color: var(--orange-ink); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.feat h3 { font: 600 26px/1.12 var(--font-display); letter-spacing: -.035em; color: var(--fossil); margin-bottom: 14px; text-wrap: balance; }
.feat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.feat li { position: relative; padding: 9px 0 9px 20px; font-size: 15.5px; line-height: 1.45; color: #4f5258; border-bottom: 1px solid rgba(35, 38, 43, .07); text-wrap: pretty; }
.feat li:last-child { border-bottom: 0; }
.feat li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; background: var(--dino-orange); }
.feat-note { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--dino-blue); }
@media (max-width: 1023px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; } }
@media (max-width: 640px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat { padding: 20px 0 26px; }
  .feat h3 { font-size: 23px; }
  .feat li { font-size: 15px; }
}

/* intro (todos os negócios piscando) no celular: no lugar do seletor, não acima do título */
@media (max-width: 900px) { #funcionando .niche-tabs { order: 3; margin: 0 0 12px; } }
/* Planos: o rótulo fica acima dos quadrados que voam */
#planos .sec-head { position: relative; z-index: 3; }

/* toque: cada seção encaixa no topo ao parar de rolar */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  /* (sem encaixe automático: no toque a rolagem é livre) */
}
#planos .kicker::before { background: none; box-shadow: none; width: auto; height: auto; }

/* ===== a tela inteira muda de cor a cada passo da história ===== */
.hflow { background: var(--story-bg, var(--paper)); transition: background-color .28s ease; }
.hflow[data-tone="dark"] .story-step h3, .hflow[data-tone="dark"] .story-step .kicker { color: #fff; }
.hflow[data-tone="dark"] .story-step p { color: rgba(255, 255, 255, .86); }
.hflow[data-tone="dark"] .story-step .time { background: #fff; color: var(--c); }
.hflow[data-tone="dark"] .story-step .kicker::before { color: #fff; }
.hflow[data-tone="dark"] .story-step { border-top-color: rgba(255, 255, 255, .22); }
.hflow[data-tone="dark"] .story-dots i { background: rgba(255, 255, 255, .4); }
.hflow[data-tone="dark"] .story-dots i.on { background: #fff; }
.hflow[data-tone="orange"] .story-step .time { background: var(--fossil); color: #fff; }
.hflow[data-tone="orange"] .story-step p { color: rgba(35, 38, 43, .82); }
.hflow[data-tone="orange"] .story-step .kicker::before { color: var(--fossil); }
/* fundo escuro: o cartão atrás do celular mantém a cor do passo */
/* no celular o texto fica no cartão branco: mantém as cores normais dentro dele */
@media (max-width: 1023px) {
  .hflow[data-tone] .story-card h3, .hflow[data-tone] .story-card .kicker { color: var(--fossil); }
  .hflow[data-tone] .story-card p { color: #55595f; }
  .hflow[data-tone] .story-card .time { background: var(--c); color: #fff; }
  .hflow[data-tone] .story-card .kicker::before { color: var(--orange-ink); }
  .hflow[data-tone] .flow-hero * { }
}
@media (prefers-reduced-motion: reduce) { .hflow { transition: none; } }
.feat li { text-wrap: balance; }
