/* ==========================================================================
   Modesto Soluções — Landing Page
   Tema "Nortech Noite": fundo escuro em todo o site (não só nas faixas de
   destaque), azul #3d8bff, WhatsApp green #1faf52 (só no mockup do telefone
   e como cor funcional — nunca reaproveitado como cor de marca).
   Paper #14141f · Display: Sora 600/700 · Mono: IBM Plex Mono · Body: Inter
   Sem símbolo: a marca é só o wordmark (ver index.html §header/footer).
   ========================================================================== */

:root {
  --ink: #0a0a12;
  --ink-deep: #050508;
  --blue: #3d8bff;
  --blue-deep: #2a6bdb;
  --blue-light: #9cc4ff;
  --blue-tint: #1b2a40;
  --whats: #1faf52;
  --whats-light: #8fe0aa;
  --paper: #14141f;
  --paper-soft: #1b1b2b;
  --text: #ececf7;
  --text-soft: #9f9fbe;
  --line: #2c2c40;

  --font-display: "Sora", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius: 3px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --container: 1120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
}

h3 {
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
}

.section {
  padding: 88px 0;
}

/* O header é sticky (76px): sem isso, o link de âncora do menu para com o
   título da seção escondido atrás dele. */
section[id],
main[id] {
  scroll-margin-top: 92px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 17px;
}

.section--soft {
  background: var(--paper-soft);
}

.section--ink {
  background: var(--ink);
  color: #d7deeb;
}

.section--ink h2 {
  color: #ffffff;
}

.section--ink .eyebrow {
  color: var(--blue-light);
}

.section--ink .eyebrow::before {
  background: var(--blue-light);
}

/* O --text-soft padrão do .section-head não tem contraste suficiente sobre o ink. */
.section--ink .section-head p {
  color: #b6c1d4;
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: var(--shadow-md);
}

.btn-on-ink {
  background: #ffffff;
  color: var(--ink);
}

.btn-on-ink:hover {
  background: var(--blue-light);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-ghost:hover {
  background: var(--blue-tint);
}

.btn-small {
  padding: 10px 18px;
  font-size: 13px;
}

/* -------------------- Header -------------------- */

/* Header escuro (--ink) de propósito: ancora a marca com confiança logo de cara
   e ecoa as seções escuras mais abaixo (cases, CTA final, footer) — em vez do
   branco/translúcido padrão que qualquer criador de site usa. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand:hover {
  text-decoration: none;
}

.brand__word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__word strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand__word span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--blue-light);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: #d7deeb;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav__links a:hover {
  text-decoration: none;
  color: #ffffff;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}

.nav__toggle svg {
  width: 26px;
  height: 26px;
}

/* -------------------- Hero -------------------- */

.hero {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__content h1 {
  margin-bottom: 20px;
}

.hero__content p.lead {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 40px;
}

.cta-microcopy {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
}

.cta-microcopy--on-ink {
  margin-top: 12px;
  color: #a9b6cc;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.trust-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}

/* Phone mockup — signature element */

.phone {
  justify-self: center;
  width: min(300px, 82vw);
  background: var(--ink-deep);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

/* Fixo claro de propósito, independente do tema do site: é a simulação de
   uma tela de WhatsApp real, e inverter isso pareceria erro, não decisão. */
.phone__screen {
  background: #ece5dd;
  border-radius: 22px;
  overflow: hidden;
  padding-top: 20px;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 14px;
  background: var(--ink);
}

.phone__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--whats);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.phone__avatar svg {
  width: 16px;
  height: 16px;
}

.phone__bar-text strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.phone__bar-text span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--whats-light);
  font-size: 11px;
}

.phone__bar-text span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--whats);
}

.phone__chat {
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.5s var(--ease) forwards;
}

.bubble--in {
  align-self: flex-start;
  background: #ffffff;
  color: #1f2430;
  border: 1px solid #d8d6da;
  border-bottom-left-radius: 4px;
  animation-delay: 0.9s;
}

.bubble--out {
  align-self: flex-end;
  background: #d9fdd3;
  color: var(--ink);
  border-bottom-right-radius: 4px;
  animation-delay: 0.15s;
}

.bubble--out .bubble__meta {
  color: #5b6472;
}

/* Cor fixa (não var(--text-soft)): a legenda vive dentro do balão claro do
   mockup, que fica claro em qualquer tema do site (ver .phone__screen). */
.bubble__meta {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #6b6b72;
}

.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  opacity: 0;
  animation: typingShow 0.5s var(--ease) forwards;
  animation-delay: 0.5s;
}

.typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: typingDot 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingShow {
  0% {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
  }
}

@keyframes typingDot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .typing {
    display: none;
  }
}

/* -------------------- Cards (reaproveitado pelos cards de Planos) -------------------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue-tint);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  font-size: 15px;
}

/* -------------------- Planos -------------------- */

/* Linha de auto-identificação ("É você se: ...") — vem antes do nome do pacote
   de propósito: o cliente se reconhece primeiro, o rótulo comercial vem depois. */
.plano__fit {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 10px;
}

.plano__list {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.plano__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-soft);
}

.plano__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--whats);
  border-bottom: 2px solid var(--whats);
  transform: rotate(-45deg);
}

.plano__list em {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}

.planos-cta {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}

.planos-cta__text {
  color: var(--text-soft);
  font-size: 15px;
}

.planos-cta__text strong {
  color: var(--text);
}

.planos-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* Fase de fundador: comunicada como condição por tempo/quantidade limitada,
   nunca como preço de tabela (ver Comercial/pacotes.md §6). */
.selo-fundador {
  display: block;
  max-width: 560px;
  margin: 24px auto 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* -------------------- Sempre no Ar -------------------- */

.sempre__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sempre__item svg {
  width: 28px;
  height: 28px;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.sempre__item h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.sempre__item p {
  font-size: 15px;
  color: #b6c1d4;
}

.sempre__note {
  max-width: 680px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 15px;
  color: #b6c1d4;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}

.sempre__note strong {
  color: #ffffff;
}

/* -------------------- Processo -------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  position: relative;
}

/* Marcação em estilo tag de sistema (mono) — é a única sequência real da página */
.step__num {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-soft);
  font-size: 15px;
}

/* -------------------- Nichos (versão compacta) -------------------- */

.nichos-compact {
  padding: 40px 0;
}

.nichos-compact__text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}

.nichos-compact__text strong {
  color: var(--text);
}

.tag-row {
  display: inline;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 12px;
  margin: 0 4px 6px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

/* -------------------- Cases (alimentado por /clientes/manifest.json) -------------------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(143, 173, 245, 0.25);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-light);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.case-card h3 {
  color: #ffffff;
}

.case-card p {
  color: #d7deeb;
  font-size: 15px;
}

.case-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--blue-light);
  padding: 4px 10px;
  border-radius: 100px;
}

.case-card__tag--progress {
  color: #d7deeb;
  background: rgba(255, 255, 255, 0.12);
}

.case-card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
}

/* -------------------- FAQ -------------------- */

.faq {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 32px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq-item p {
  padding: 0 32px 24px 0;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 62ch;
}

/* -------------------- CTA final -------------------- */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 14px;
}

.cta-final p {
  color: #d7deeb;
  font-size: 18px;
  margin-bottom: 36px;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--ink-deep);
  color: #9aa7bd;
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand__word strong {
  color: #ffffff;
}

.footer-brand .brand__word span {
  color: var(--blue-light);
}

.footer-tagline {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--blue-light);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #9aa7bd;
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: #7883a0;
}

/* -------------------- Reveal on scroll -------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero__content {
    order: 1;
  }

  .phone {
    order: 2;
    margin-top: 8px;
  }

  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }

  .sempre__grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .nav__links,
  .nav .btn {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  body.nav-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
  }

  body.nav-open .nav__links a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.nav-open .nav .btn {
    display: inline-flex;
    position: absolute;
    top: 130px;
    right: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .sempre__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .planos-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .proof-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 18px;
  }
}
