/* Landing da Vendora (spec 007). Mesmos tokens do painel (spec 006b): branco + verde-claro. */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('/fonts/source-sans-3-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5faf7;
  --surface: #ffffff;
  --surface-muted: #ecf4ef;
  --border: #ddebe3;
  --text: #1f2523;
  --text-muted: #5d6661;
  --brand: #2e6b55;
  --brand-hover: #245746;
  --brand-soft: #e3f1ea;
  --radius: 12px;
  --radius-control: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--brand-hover);
}

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-control);
  z-index: 10;
}

.skip:focus {
  left: 12px;
}

/* Topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-control);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
}

.topnav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms;
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

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

.btn--ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-muted);
  color: var(--text);
}

/* Abertura */
.hero {
  background: var(--bg);
  padding: 72px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pill {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 34em;
}

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

.note {
  font-size: 15px;
  color: var(--text-muted);
}

/* Conversa de exemplo */
.chat {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.chat__head small {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.chat__body {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-muted);
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
}

.msg--in {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 4px;
}

.msg--out {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat figcaption {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Seções */
.section {
  padding: 88px 0;
}

.section--tint {
  background: var(--bg);
}

.band {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band h2 {
  max-width: 22em;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cards {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

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

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

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.step {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.step__n {
  min-width: 40px;
  color: var(--brand);
  font-size: 24px;
  font-weight: 700;
}

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split h2 + .muted {
  margin-top: 14px;
}

.split__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  color: var(--text-muted);
}

.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat dt {
  font-weight: 700;
  font-size: 18px;
}

.stat dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Preço */
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
}

.price__intro .muted {
  margin-top: 14px;
  font-size: 18px;
}

.price__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.price__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price__currency {
  font-size: 22px;
  font-weight: 700;
}

.price__amount {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price__period {
  color: var(--text-muted);
}

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

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.checks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price__card .note {
  text-align: center;
}

/* Dúvidas */
.faq {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  padding: 0 0 20px;
  color: var(--text-muted);
}

.closing {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing .muted {
  margin: 14px 0 28px;
  font-size: 18px;
}

/* Rodapé */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand--small .brand__mark {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.brand--small .brand__name {
  font-size: 17px;
}

/* Telas menores */
@media (max-width: 900px) {
  .hero__grid,
  .split,
  .price {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .cards--3,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .topnav {
    display: none;
  }

  .topbar .btn {
    margin-left: auto;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .section {
    padding: 60px 0;
  }

  .lead {
    font-size: 18px;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .price__card {
    padding: 24px;
  }

  .btn {
    width: 100%;
  }

  .topbar .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0ms !important;
  }
}
