/* ==========================================================================
   Página de captação — Alexsandro Vieira
   Mobile-first. Breakpoints: 600px, 768px, 960px.
   ========================================================================== */

:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --ink: #121417;
  --muted: #4B5160;
  --line: #E2E0D8;
  --line-soft: #D6D3C9;
  --line-strong: #8C897F;      /* bordas de campos: contraste ≥ 3:1 com o branco */
  --accent: #2747E8;
  --accent-strong: #1D3BC4;
  --accent-soft: #EEF1FD;
  --accent-on-dark: #9DB0FF;
  --muted-on-dark: #B4B8C2;
  --line-on-dark: #3A3F4A;

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-card: 20px;
  --container: 1200px;
  --gutter: 24px;
  --section-y: 64px;
}

@media (min-width: 768px) {
  :root { --section-y: 96px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
}

p { margin: 0; }

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

a { color: inherit; }

[hidden] { display: none !important; }

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

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 28px;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2E35; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg); }

.btn--ghost-light { border-color: var(--muted-on-dark); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Tipografia de seção ---------- */

.eyebrow {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--on-dark { color: var(--accent-on-dark); }

.h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section { padding-block: var(--section-y); }

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--ink);
  color: var(--bg);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 40px;
}

.section--dark .section-head { margin-bottom: 48px; }

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

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

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

.nav__links {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 8px;
  font-size: .9375rem;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  text-decoration: none;
  color: var(--ink);
}

.nav__links a:hover { color: var(--accent); }

.nav__cta {
  padding: 10px 18px;
  font-size: .9375rem;
  white-space: nowrap;
}

@media (min-width: 400px) {
  .logo { font-size: 1.25rem; }
}

@media (min-width: 768px) {
  .site-header__inner { padding-block: 16px; }
  .nav__cta { padding-inline: 22px; }
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
}

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

.hero { padding-block: 48px var(--section-y); }

.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions .btn { flex: 1 1 220px; }

.seals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}

.seals li {
  padding: 6px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

@media (min-width: 600px) {
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  .hero { padding-block: 88px var(--section-y); }
  .hero__copy { gap: 28px; }
  .hero__lead { font-size: 1.25rem; }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
  }
}

/* Mockup de celular (decorativo) */

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: 260px;
  height: 520px;
  padding: 11px;
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 0 32px 64px rgba(18, 20, 23, .18);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px 18px 20px;
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
}

.phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.phone__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.phone__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 124px;
  padding: 16px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
}

.phone__card-kicker {
  font-size: .8125rem;
  opacity: .85;
}

.phone__card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
}

.phone__tiles {
  display: flex;
  gap: 10px;
}

.phone__tiles span {
  flex: 1;
  height: 56px;
  border-radius: 16px;
  background: #F1F0EC;
}

.phone__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone__thumb {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.phone__lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.phone__lines span {
  height: 10px;
  border-radius: 6px;
  background: var(--line);
}

.phone__lines span + span { background: #EDEBE5; }

.phone__button {
  height: 46px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--ink);
}

@media (min-width: 768px) {
  .phone {
    width: 290px;
    height: 580px;
    padding: 12px;
    border-radius: 46px;
  }
  .phone__screen {
    gap: 16px;
    padding: 32px 20px 22px;
    border-radius: 36px;
  }
  .phone__title { font-size: 1.25rem; }
  .phone__avatar { width: 34px; height: 34px; }
  .phone__card { height: 140px; padding: 18px; }
  .phone__card-title { font-size: 1.25rem; }
  .phone__tiles span { height: 64px; }
  .phone__thumb { width: 40px; height: 40px; }
  .phone__button { height: 48px; }
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 600px) {
  .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card--soft { background: var(--bg); }

.card h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
}

.card p { color: var(--muted); }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Como funciona ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 2px solid var(--line-on-dark);
}

.step__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--accent-on-dark);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.step p {
  font-size: 1rem;
  color: var(--muted-on-dark);
}

/* ---------- Quem vai construir + Projetos ---------- */

.about {
  display: grid;
  gap: 56px;
  align-items: start;
}

.about__bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.about__bio > p:not(.eyebrow) { color: var(--muted); }

.person {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  object-fit: cover;
}

.person__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.person__name {
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}

.person__role { color: var(--muted); }

.about__projects {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.projects__title {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.projects {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
  }
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.project__media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 160px;
  background: var(--accent-soft);
}

.project__media--neutral { background: #F1F0EC; }

.project__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project__lines span {
  width: 60px;
  height: 10px;
  border-radius: 6px;
  background: #DCE3FC;
}

.project__lines .is-strong { width: 90px; background: #C9D3FB; }

.project__media--neutral .project__lines span { background: var(--line); }
.project__media--neutral .project__lines .is-strong { background: var(--line-soft); }

.project__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.project__body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.project__body p {
  font-size: .9375rem;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tag--progress { color: var(--accent-strong); background: var(--accent-soft); }
.tag--concept { color: var(--muted); background: #EDEBE5; }

/* ---------- Formulário ---------- */

.contact {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__intro > p:not(.eyebrow) { color: var(--muted); }

.contact__intro .contact__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
}

.contact__note svg { flex: none; margin-top: 2px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}

@media (min-width: 600px) {
  .form { padding: 32px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-size: .9375rem;
  font-weight: 600;
}

legend.field__label { margin-bottom: 10px; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: max(1rem, 16px); /* evita zoom automático no iOS */
}

.input::placeholder { color: #6B7080; opacity: 1; }

.input:hover { border-color: var(--ink); }

.input:focus-visible,
.input:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.input--area {
  min-height: 128px;
  resize: vertical;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill { position: relative; }

.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: .9375rem;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pill:hover span { border-color: var(--ink); }

.pill input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pill input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.form__submit {
  width: 100%;
  margin-top: 4px;
}

.form__submit:disabled {
  border-color: transparent;
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.form__submit:disabled .form__submit-icon { display: none; }

.form__status {
  font-size: .9375rem;
  color: var(--muted);
}

.form__status:empty { display: none; }

.form__status a { color: var(--accent-strong); font-weight: 600; }

.form__noscript { font-size: .9375rem; color: var(--muted); }

/* ---------- Perguntas frequentes ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 880px;
}

.faq__list { border-top: 1px solid var(--line-soft); }

.faq__item { border-bottom: 1px solid var(--line-soft); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-block: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary:hover { color: var(--accent); }

.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.6px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__item p {
  max-width: 70ch;
  padding-bottom: 24px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .faq__item summary { font-size: 1.25rem; }
}

/* Marcação visível dos textos pendentes: remover antes de publicar */
.pendente {
  padding: 0 4px;
  border-radius: 4px;
  outline: 1px dashed #8A6A00;
  background: #FFF4CC;
  color: #4D3B00;
}

/* ---------- Chamada final ---------- */

.cta-final {
  background: var(--accent);
  color: #fff;
}

.cta-final__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: var(--section-y);
}

.cta-final h2 {
  flex: 1 1 520px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cta-final :focus-visible { outline-color: #fff; }

/* ---------- Rodapé ---------- */

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 104px; /* espaço para o botão flutuante no mobile */
  font-size: .875rem;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.site-footer a:hover { color: var(--ink); }

@media (min-width: 768px) {
  .site-footer__inner { padding-block: 32px 48px; }
}

/* ---------- Botão flutuante (mobile) ---------- */

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 20, 23, .25);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}

.fab:hover { background: var(--accent-strong); }

.fab.is-hidden,
.has-cookie-banner .fab {
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

@media (min-width: 768px) {
  .fab { display: none; }
}

/* ---------- Banner de cookies ---------- */

.cookie {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 16px 40px rgba(18, 20, 23, .3);
}

.cookie p { font-size: .9375rem; line-height: 1.5; }

.cookie a { color: var(--accent-on-dark); font-weight: 600; }

.cookie :focus-visible { outline-color: var(--accent-on-dark); }

.cookie__actions {
  display: flex;
  gap: 10px;
}

.cookie__actions .btn { flex: 1 1 0; }

@media (min-width: 768px) {
  .cookie {
    right: auto;
    bottom: 24px;
    left: 24px;
  }
}

/* ---------- Página de política ---------- */

.policy {
  max-width: 760px;
  padding-block: 48px var(--section-y);
}

.policy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.policy__updated {
  margin-top: 12px;
  font-size: .875rem;
  color: var(--muted);
}

.policy h2 {
  margin-top: 40px;
  font-size: 1.375rem;
  line-height: 1.3;
}

.policy p,
.policy ul { margin-top: 12px; color: var(--muted); }

.policy ul { padding-left: 1.25rem; }

.policy li + li { margin-top: 6px; }

.policy a { color: var(--accent-strong); }

.policy strong { color: var(--ink); }

.policy .btn { margin-top: 16px; }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.back-link:hover { color: var(--accent); }

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
