/* Landing da LotaClinica (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;
  --brand-ink: #17324d;
  --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: 76px;
}

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

.brand__mark {
  display: block;
  width: 46px;
  height: 44px;
}

.brand__name {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.brand__name b {
  font-weight: 700;
  color: var(--brand-ink);
}

.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: 34px;
  height: 32px;
}

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

/* Telas menores */
/* Segmentos atendidos, abaixo do preço no topo */
.segments {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Comparação "jeito de sempre" x LotaClinica */
.section__lead {
  margin-top: 12px;
  font-size: 18px;
  max-width: 40em;
}

.compare {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(23 50 77 / 4%),
    0 12px 32px -12px rgb(23 50 77 / 12%);
}

.compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}

.compare th,
.compare td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-muted);
}

.compare thead th.compare__old {
  padding-left: 58px;
}

.compare thead th.compare__new {
  background: var(--brand);
  color: #fff;
}

.compare__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.compare__brand img {
  padding: 3px;
  border-radius: 7px;
  background: #fff;
}

.compare tbody th {
  width: 28%;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.compare td {
  position: relative;
  padding-left: 58px;
}

.compare td::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
}

.compare td::after {
  content: '';
  position: absolute;
}

/* Jeito de sempre: texto apagado com um "x" */
.compare td.compare__old {
  color: var(--text-muted);
}

.compare td.compare__old::before {
  background: #f3f4f4;
}

.compare td.compare__old::after {
  left: 30px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background:
    linear-gradient(45deg, transparent 43%, #9aa3a0 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #9aa3a0 43% 57%, transparent 57%);
}

/* Com a LotaClinica: coluna destacada com um "check" */
.compare td.compare__new {
  color: var(--text);
  font-weight: 600;
  background: #f4faf7;
  border-left: 1px solid var(--border);
}

.compare td.compare__new::before {
  background: var(--brand);
}

.compare td.compare__new::after {
  left: 32px;
  top: 50%;
  width: 6px;
  height: 11px;
  margin-top: -7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 700px) {
  .compare {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .compare table {
    min-width: 0;
  }

  .compare thead {
    display: none;
  }

  .compare tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
  }

  .compare tbody th,
  .compare td {
    display: block;
    width: auto;
  }

  .compare tbody th {
    padding: 16px 18px 12px;
  }

  .compare td {
    padding: 12px 18px 14px 52px;
  }

  .compare td.compare__new {
    border-left: 0;
  }

  .compare tbody tr > th,
  .compare tbody tr > td.compare__old {
    border-bottom: 1px solid var(--border);
  }

  .compare tbody tr > td.compare__new {
    border-bottom: 0;
  }

  .compare td::before {
    left: 18px;
    top: 16px;
    margin-top: 0;
  }

  .compare td.compare__old::after {
    left: 24px;
    top: 22px;
    margin-top: 0;
  }

  .compare td.compare__new::after {
    left: 26px;
    top: 20px;
    margin-top: 0;
  }
}

/* Contato */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact__intro .muted {
  margin: 14px 0 20px;
  font-size: 18px;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

.field small {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c9d8cf;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}

.field--trap {
  position: absolute;
  left: -9999px;
}

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

button.btn {
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Termos de Uso e Política de Privacidade */
.legal h1 {
  font-size: clamp(32px, 4.5vw, 44px);
}

.legal__meta {
  margin: 10px 0 28px;
  color: var(--text-muted);
  font-size: 15px;
}

.legal section {
  padding-top: 28px;
  scroll-margin-top: 90px;
}

.legal h2 {
  margin-bottom: 12px;
  font-size: 23px;
}

.legal p,
.legal li {
  color: #3b4440;
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 12px;
}

.legal ul,
.legal ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal__toc {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.legal__toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.legal__toc li + li {
  margin-top: 4px;
}

.legal__highlight {
  margin-top: 28px;
  padding: 4px 24px 24px;
  border: 1px solid #e8c9a5;
  border-left: 4px solid #c27a2c;
  border-radius: var(--radius);
  background: #fdf7ef;
}

.legal__table {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal__table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal__table th,
.legal__table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal__table + p {
  margin-top: 16px;
}

.legal__table thead th {
  background: var(--surface-muted);
  font-size: 14px;
}

.legal__table tbody tr:last-child td {
  border-bottom: 0;
}

.topnav a[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--brand);
}

@media (max-width: 640px) {
  .legal__toc ol {
    columns: 1;
  }

  .legal__highlight {
    padding: 2px 16px 18px;
  }

  .legal .topnav,
  body:has(.legal) .topnav {
    display: flex;
  }
}

/* Páginas de retorno do formulário */
.result {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.result h1 {
  font-size: clamp(30px, 4vw, 42px);
}

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

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

@media (max-width: 900px) {
  .hero__grid,
  .split,
  .price,
  .contact {
    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,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .form {
    padding: 22px;
  }

  .brand__mark {
    width: 40px;
    height: 38px;
  }

  .brand__name {
    font-size: 24px;
  }

  .price__card {
    padding: 24px;
  }

  .btn {
    width: 100%;
  }

  .topbar .btn {
    width: auto;
  }
}

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

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