/* ============================================================================
   landing.css — layout do site comercial (Início/Sobre/Planos). Só estrutura;
   cor/tipo/espaço vêm de tokens.css/theme.css/accent.css (zero hex cru).
   Carregar depois de theme.css nas 3 páginas do site.
   ============================================================================ */

/* site comercial é 100% neutro (cinza + branco + preto) — sobrescreve só aqui
   os tokens semânticos de destaque, sem mexer em tokens.css (compartilhado
   com o app, que tem accent selecionável em Configurações). */
:root {
  --accent:             var(--color-gray-200);
  --accent-text:        var(--color-black);
  --btn-secondary-bg:   var(--color-gray-150);
  --focus-ring:         2px solid var(--color-black);
}

.landing-container {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 900px) {
  .landing-container { padding-inline: var(--sp-6); }
}

/* kerning "estilo Apple" nos títulos — regra única, todos os títulos da landing */
.lp-hero__title, .section__title, .cta-band__title, .feature__title,
.plan-card__name, .step__title, .faq__q, .about-module__title {
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------- header ---- */
.landing-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  transition: background-color var(--transition), border-color var(--transition);
}

.page-home .landing-header {
  position: fixed; left: 0; right: 0;
}

/* home: hero escuro cobre o topo -> header nasce transparente (texto claro),
   só ganha fundo/blur/borda quando landing.js marca .is-scrolled (scrollY > 8). */
.page-home .landing-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-home .landing-header:not(.is-scrolled) .wordmark,
.page-home .landing-header:not(.is-scrolled) .landing-nav a,
.page-home .landing-header:not(.is-scrolled) .landing-nav-mobile summary {
  color: var(--color-white);
}
.page-home .landing-header:not(.is-scrolled) .landing-nav-mobile summary {
  border-color: var(--hero-border);
}
.page-home .landing-header:not(.is-scrolled) .badge--muted {
  background: rgb(from var(--color-white) r g b / 0.12);
  color: var(--color-white);
}
.page-home .landing-header:not(.is-scrolled) .btn--ghost {
  color: var(--color-white);
  border-color: var(--hero-border);
}
.page-home .landing-header:not(.is-scrolled) .btn--ghost:hover {
  background: rgb(from var(--color-white) r g b / 0.08);
}
.page-home .landing-header:not(.is-scrolled) .btn--primary {
  background: var(--color-white);
  color: var(--color-black);
}
.landing-header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
}
@media (max-width: 900px) {
  .landing-header__inner { padding-block: var(--sp-4); }
}
.landing-header__brand { display: flex; align-items: center; gap: var(--sp-3); }
.wordmark { font-size: var(--fs-lg); font-weight: var(--fw-700); color: var(--text); text-decoration: none; }

.landing-nav { display: flex; align-items: center; gap: var(--sp-5); }
/* padding-block garante alvo de toque >=24px (WCAG 2.5.8) sem alterar o gap visual do texto */
.landing-nav a { color: var(--text-muted); font-weight: var(--fw-500); text-decoration: none; padding-block: var(--sp-2); }
.landing-nav a:hover, .landing-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.landing-header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.landing-nav-mobile { display: none; }
.landing-nav-mobile summary {
  list-style: none; cursor: pointer;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.landing-nav-mobile summary::-webkit-details-marker { display: none; }
.landing-nav-mobile summary svg { width: 20px; height: 20px; }
.landing-nav-mobile[open] summary { border-color: var(--border-strong); }
.landing-nav-mobile__panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--sp-4) var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.landing-nav-mobile__panel a { color: var(--text); font-weight: var(--fw-500); }

@media (max-width: 900px) {
  .landing-nav, .landing-header__actions { display: none; }
  .landing-nav-mobile { display: block; }
}

/* --------------------------------------------------------------- hero ---- */
.lp-hero-full {
  position: relative;
  min-height: calc(65vh + 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* fundo sólido near-black — sem imagem por ora; .lp-hero-full__media segue
   pronta pra receber foto/vídeo de volta (só destrocar a <img> comentada). */
.lp-hero-full__media { position: absolute; inset: 0; z-index: 0; background: var(--color-black); }
.lp-hero-full__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* gradiente de legibilidade sobre a imagem — escurece a base (texto fica em baixo/esquerda) */
.lp-hero-full__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--hero-overlay-strong), var(--hero-overlay-soft) 60%);
}
/* .lp-hero-full é flex: sem width:100%, o .landing-container (filho flex) encolhe
   pro conteúdo em vez de ocupar 1160px, descentralizando do eixo do logo. */
.lp-hero-full > .landing-container { width: 100%; }
.lp-hero-full__overlay {
  position: relative; z-index: 1;
  max-width: 640px;
  padding-block: var(--sp-7);
  display: flex; flex-direction: column; align-items: flex-start;
}
.lp-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--fw-700);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--sp-4);
  text-wrap: balance;
}
.lp-hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.5;
  margin-bottom: var(--sp-5);
}
.lp-hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); width: 100%; }

/* dentro do hero full-bleed o texto fica branco sobre o scrim da foto */
.lp-hero-full .lp-hero__title { color: var(--color-white); }
.lp-hero-full .lp-hero__subtitle { color: var(--hero-text-muted); }
/* primário preto ganha contorno branco sólido no hero escuro */
.lp-hero-full .btn--primary { border-color: var(--color-white); }
/* secundário (Planos e preços): só texto — sem preenchimento e sem contorno */
.lp-hero-full .btn--ghost { color: var(--color-white); background: transparent; border-color: transparent; padding-inline: 0; }
.lp-hero-full .btn--ghost:hover { background: transparent; text-decoration: underline; }

@media (max-width: 900px) {
  .lp-hero-full { min-height: 55vh; }
  .lp-hero-full__overlay { padding-block: var(--sp-6); }
}

/* ------------------------------------------------------- waitlist form --- */
.waitlist-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.waitlist-form .input { width: auto; flex: 1 1 240px; }
/* no hero: input em linha própria e os dois botões lado a lado, centralizados */
.lp-hero__actions .waitlist-form { flex-direction: column; align-items: stretch; gap: var(--sp-3); width: 100%; max-width: 420px; }
.lp-hero__actions .waitlist-form .input { flex: 1 1 auto; width: 100%; }
.waitlist-form__actions { display: flex; gap: var(--sp-3); justify-content: flex-start; flex-wrap: wrap; }
.waitlist-form__actions .btn { flex: 1 1 auto; }
.waitlist-form input[name="company"] { position: absolute; left: -9999px; }
.waitlist__done { font-weight: var(--fw-500); color: var(--success); }

/* ------------------------------------------------------------ segmentos --- */
.segments-section { padding-block: var(--sp-8); }
.segments-section .section__head { margin-bottom: var(--sp-6); }

/* já é filho direto de .section-band (sem max-width) — full-bleed sem
   precisar do truque 100vw, que soma a largura da scrollbar e causa overflow-x. */
.segment-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.segment-track {
  display: flex; gap: var(--sp-3); list-style: none; width: max-content;
  animation: segment-scroll 36s linear infinite;
}
.segment-marquee:hover .segment-track { animation-play-state: paused; }
@keyframes segment-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .segment-track { animation: none; }
}

.segment-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: var(--sp-3) var(--sp-5); font-size: var(--fs-base); font-weight: var(--fw-500);
  white-space: nowrap;
}
.segment-chip svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); }

/* ---------------------------------------------------------- pain-grid ---- */
.pain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4); margin-bottom: var(--sp-5); list-style: none;
}
.pain-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.pain-card__before, .pain-card__after { display: flex; align-items: flex-start; gap: var(--sp-2); }
.pain-card__before { color: var(--text-muted); font-size: var(--fs-sm); }
.pain-card__after { color: var(--text); font-weight: var(--fw-600); font-size: var(--fs-lg); }
.pain-card__icon { flex-shrink: 0; font-weight: var(--fw-700); }
.pain-card__before .pain-card__icon { color: var(--text-faint); }
.pain-card__after .pain-card__icon { color: var(--text); }
.pain-cta { text-align: center; margin-top: var(--sp-2); }

@media (max-width: 640px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- proof ---- */
.proof {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  gap: var(--sp-6); min-height: 560px;
}
.proof__col { display: flex; flex-direction: column; justify-content: center; }
.proof__col .section__title { text-align: left; }
.proof__quote {
  max-width: 480px; font-size: var(--fs-lg); color: var(--text); line-height: 1.5;
  border-left: 3px solid var(--accent); padding-left: var(--sp-5); margin: 0;
}
.proof__media {
  background: var(--color-black); border-radius: var(--radius-xl);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  color: var(--hero-text-muted); font-size: var(--fs-sm);
}
@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr; min-height: 0; }
  .proof__media { min-height: 220px; }
}

/* --------------------------------------------------------- section band -- */
.section-band { background: var(--surface); }
.section-band--alt { background: var(--bg); }

/* ----------------------------------------------------------- features ---- */
.section { padding-block: var(--sp-8); }
.section__head { max-width: 640px; margin-inline: auto; margin-bottom: var(--sp-6); text-align: center; }
.section__title { font-size: var(--fs-2xl); font-weight: var(--fw-700); margin-bottom: var(--sp-2); text-wrap: balance; }
.section__subtitle { color: var(--text-muted); font-size: var(--fs-base); }

/* ------------------------------------------------------------- erro 404/500 --- */
.error-page { max-width: 480px; text-align: center; padding-block: var(--sp-8); display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.error-page__code { font-size: var(--fs-2xl); font-weight: var(--fw-700); color: var(--text-muted); margin: 0; }
.error-page .btn { margin-top: var(--sp-3); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.feature {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.feature:hover { box-shadow: var(--shadow); }
.feature__icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg); background: var(--accent); color: var(--accent-text);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { font-weight: var(--fw-600); }
.feature__text { color: var(--text-muted); font-size: var(--fs-sm); }
.features-cta { text-align: center; margin-top: var(--sp-6); }

/* --------------------------------------------------------- soluções ---- */
.solutions { display: flex; flex-direction: column; gap: var(--sp-6); padding-bottom: var(--sp-8); }

.solution-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
  transition: box-shadow var(--transition);
}
.solution-card:hover { box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .solution-card { grid-template-columns: 1fr 1.2fr; gap: var(--sp-6); padding: var(--sp-6); }
  /* alterna: imagem à esquerda nos cards marcados --reverse */
  .solution-card--reverse .solution-card__media { order: -1; }
}

.solution-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-700);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  text-wrap: balance;
}
@media (min-width: 900px) { .solution-card__title { font-size: var(--fs-2xl); } }

.solution-card__text { color: var(--text-muted); font-size: var(--fs-base); margin-bottom: var(--sp-5); }

.solution-card__list { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); }
.solution-card__list li { display: flex; gap: var(--sp-2); align-items: flex-start; color: var(--text); }
.solution-card__list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }

/* no desktop o card estica na altura da imagem e o texto+lista descem pra base,
   deixando o título fixo no topo (respiro entre título e corpo). */
@media (min-width: 900px) {
  .solution-card { align-items: stretch; }
  .solution-card__body { display: flex; flex-direction: column; }
  .solution-card__body .solution-card__title { margin-bottom: auto; }
}

/* moldura estilo "janela flutuante sobre gradiente suave": a screenshot fica
   emoldurada num painel com tint da marca, cantos arredondados e sombra —
   o print parece flutuar dentro do card (ref. da pagina de Solucoes). */
.solution-card__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 15% 10%, var(--surface-2) 0%, transparent 55%),
    linear-gradient(150deg, var(--surface-2) 0%, var(--surface) 52%, var(--surface-2) 100%);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .solution-card__media { padding: var(--sp-3); }
  .solution-card:not(.solution-card--reverse) .solution-card__media img { transform: translateX(6%) scale(1.14); transform-origin: left center; }
  .solution-card--reverse .solution-card__media img { transform: translateX(-6%) scale(1.14); transform-origin: right center; }
}

/* -------------------------------------------------------- como funciona -- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.step__num { font-size: var(--fs-xl); font-weight: var(--fw-700); color: var(--text-faint); margin-bottom: var(--sp-2); }
.step__title { font-weight: var(--fw-600); margin-bottom: var(--sp-1); }
.step__text { color: var(--text-muted); font-size: var(--fs-sm); }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ cta band --- */
.cta-band {
  background: var(--surface);
  color: var(--text);
  padding-block: var(--sp-8);
  text-align: center;
}
.cta-band__title { font-size: var(--fs-2xl); font-weight: var(--fw-700); margin-bottom: var(--sp-2); text-wrap: balance; }
.cta-band__subtitle { color: var(--text-muted); margin-bottom: var(--sp-5); }
.cta-band__footnote { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); }
.cta-band__footnote a { color: var(--text-muted); }
.cta-band__footnote a:hover { color: var(--text); }

/* ------------------------------------------------------------ pricing ---- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); align-items: stretch; }
.plan-grid--2col { max-width: 820px; margin: 0 auto; }
.plan-card { display: flex; flex-direction: column; position: relative; border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan-card__name { font-size: var(--fs-lg); font-weight: var(--fw-600); margin-bottom: var(--sp-1); }
.plan-card__audience { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.plan-card__price { font-size: var(--fs-2xl); font-weight: var(--fw-700); margin-bottom: var(--sp-4); }
.plan-card__price span { font-size: var(--fs-sm); font-weight: var(--fw-400); color: var(--text-muted); }
.plan-card__features { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); font-size: var(--fs-sm); }
.plan-card__features li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.plan-card__features svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--text); }
.plan-card .btn { margin-top: auto; }

/* ------------------------------------------------------------ about-modules -- */
.about-modules {
  display: flex; flex-direction: column; gap: var(--sp-8);
  max-width: 960px; margin-inline: auto; margin-top: var(--sp-7);
}
.about-module {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
/* card branco do texto: avança sobre a imagem e fica por cima */
.about-module__text {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
  margin-right: calc(var(--sp-7) * -1);
}
.about-module__title { font-size: var(--fs-lg); font-weight: var(--fw-600); margin-bottom: var(--sp-3); }
.about-module__body { color: var(--text-muted); line-height: 1.6; }
/* bloco escuro da imagem: maior/mais alto que o card de texto */
.about-module__media {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm);
}
@media (max-width: 720px) {
  .about-module { grid-template-columns: 1fr; }
  .about-module__text { margin-right: 0; }
  .about-module__media { min-height: 220px; }
}

/* ----------------------------------------------------------------- faq --- */
.faq { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 720px; margin-inline: auto; }
.faq__q { font-weight: var(--fw-600); margin-bottom: var(--sp-1); }
.faq__a { color: var(--text-muted); font-size: var(--fs-sm); }

/* faq em accordion (Home/Planos) — <details class="faq__item"><summary class="faq__q"> */
.faq__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
}
summary.faq__q {
  margin-bottom: 0; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
summary.faq__q::-webkit-details-marker { display: none; }
summary.faq__q::after {
  content: '+'; color: var(--text-faint); font-weight: var(--fw-400); flex-shrink: 0;
  display: inline-block;
}
/* gira 45° em vez de trocar o caractere: dá pra animar (motion.css) e ainda
   funciona sem JS/motion (rotação instantânea via o atributo nativo [open]) */
.faq__item[open] summary.faq__q::after { transform: rotate(45deg); }
.faq__item .faq__a { margin-top: var(--sp-3); }

/* -------------------------------------------------------------- footer --- */
.landing-footer { border-top: 1px solid var(--border); background: var(--bg); }
.landing-footer__inner {
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  color: var(--text-muted); font-size: var(--fs-sm);
}
.landing-footer__links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
/* padding-block garante alvo de toque >=24px (WCAG 2.5.8) sem alterar o gap visual do texto */
.landing-footer__links a { color: var(--text-muted); text-decoration: none; padding-block: var(--sp-2); }
.landing-footer__links a:hover { color: var(--text); text-decoration: none; }

/* --------------------------------------------------------- páginas legais --- */
.legal-content { max-width: 760px; margin-inline: auto; padding-block: var(--sp-8); }
.legal-content h1 { font-size: var(--fs-2xl); font-weight: var(--fw-700); letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.legal-content h2 { font-size: var(--fs-xl); font-weight: var(--fw-700); margin: var(--sp-7) 0 var(--sp-3); }
.legal-content p, .legal-content li { color: var(--text); line-height: 1.7; }
.legal-content ul { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.legal-content__updated { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }
.legal-content__notice {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-4); font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-6);
}

/* --------------------------------------------------------- utilitário ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* pula o header e vai direto pro conteúdo — só aparece com foco de teclado */
.skip-link {
  position: absolute; top: -40px; left: var(--sp-4); z-index: 100;
  background: var(--surface); color: var(--text);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: var(--sp-4); }


/* line-height dos títulos = 1.2 (corpos seguem 1.5 herdado do body).
   Bloco único e no fim do arquivo pra vencer o 1.5 herdado e o 1.1 do hero. */
.lp-hero__title,
.section__title,
.solution-card__title,
.feature__title,
.about-module__title,
.cta-band__title,
.plan-card__name,
.step__title,
.faq__q { line-height: 1.2; }
