/*
 * Landing page do Lavixx. CSS puro, sem build.
 * As cores espelham os tokens do app (app/src/index.css): azul Mercosul (primary) para
 * ações e identidade; amarelo de sinalização (signal) só para a fila e o que pede atenção.
 */

:root {
  --primary-50: #eef3fb;
  --primary-100: #dce6f7;
  --primary-200: #bccdef;
  --primary-300: #8faee2;
  --primary-400: #5e87d0;
  --primary-500: #3866bc;
  --primary-600: #1d4aa0;
  --primary-700: #183d85;
  --primary-800: #15336c;
  --primary-900: #132b58;
  --primary-950: #0c1a37;

  --signal-100: #ffefbf;
  --signal-400: #ffc21a;
  --signal-500: #f5b700;
  --signal-700: #8a6300;

  --green-600: #15803d;
  --green-100: #dcfce7;
  --red-600: #dc2626;
  --red-100: #fee2e2;

  --font-sans: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  /* Superfícies e texto (claro). */
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #94a3b8;
  --accent: var(--primary-600);
  --accent-hover: var(--primary-500);
  --accent-soft: var(--primary-50);
  --signal-text: var(--signal-700);
  --signal-soft: var(--signal-100);
  --green-text: var(--green-600);
  --green-soft: var(--green-100);
  --red-text: var(--red-600);
  --red-soft: var(--red-100);
  --totem-bg: var(--primary-950);

  --radius: 0.75rem;
  --container: 72rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #020617;
    --bg-alt: #0b1222;
    --surface: #0f172a;
    --border: #1e293b;
    --text: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-faint: #64748b;
    --accent: var(--primary-500);
    --accent-hover: var(--primary-400);
    --accent-soft: color-mix(in oklab, var(--primary-500) 18%, transparent);
    --signal-text: var(--signal-400);
    --signal-soft: color-mix(in oklab, var(--signal-500) 18%, transparent);
    --green-text: #4ade80;
    --green-soft: color-mix(in oklab, #22c55e 16%, transparent);
    --red-text: #f87171;
    --red-soft: color-mix(in oklab, #ef4444 16%, transparent);
    --totem-bg: #050c1c;
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

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

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.narrow {
  max-width: 48rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: 500 0.9375rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms;
}

.btn-lg {
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-alt);
}

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

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-signal {
  background: var(--signal-500);
  color: var(--primary-950);
}

.btn-signal:hover {
  background: var(--signal-400);
}

/* --------------------------------------------------------------- placa */

/*
 * Placa desenhada como a física, igual ao componente Plate do app: Mercosul (branca,
 * faixa azul "BRASIL") ou modelo antigo (cinza, ABC-1234). Tudo em `em`, então o
 * tamanho vem só do font-size.
 */
.plate {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  border: 0.08em solid #1e293b;
  border-radius: 0.22em;
  background: #fff;
  color: #0f172a;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.plate-strip {
  display: block;
  background: var(--primary-600);
  color: #fff;
  font-size: 0.3em;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.35em;
  text-align: center;
  /* Compensa o espaçamento da última letra para centralizar "BRASIL". */
  padding-left: 0.35em;
}

.plate-text {
  padding: 0.18em 0.45em;
  letter-spacing: 0.08em;
  text-align: center;
}

.plate-sm {
  font-size: 0.875rem;
}

.plate-sm .plate-strip {
  height: 0.28em;
}

.plate-lg {
  font-size: 2.25rem;
}

.plate-xl {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
}

.plate-legacy {
  background: #cbd5e1;
}

.plate-legacy .plate-strip {
  display: none;
}

/* Placa editável do hero: o input ocupa o lugar do texto. */
.plate-input {
  cursor: text;
  box-shadow: 0 0.25em 0.6em rgb(0 0 0 / 0.35);
}

.plate-input input {
  /* Cabe "ABC-1234" (8 caracteres com o hífen) com o espaçamento da placa. */
  width: 5.6em;
  margin: 0;
  padding: 0.12em 0.4em 0.14em;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

.plate-input:focus-within {
  outline: 3px solid var(--signal-400);
  outline-offset: 4px;
}

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Marca: uma mini placa Mercosul com o "L". */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  width: 1.9rem;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 0.3rem;
  background: #fff;
  color: #0f172a;
  font: 700 1.05rem/1.25 var(--font-display);
  text-align: center;
}

.brand-mark > span {
  height: 0.3rem;
  background: var(--primary-600);
}

.brand-name {
  font: 700 1.5rem/1 var(--font-display);
  letter-spacing: 0.01em;
}

.header-nav {
  display: none;
  gap: 1.75rem;
  margin-left: 1rem;
}

.header-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 880px) {
  .header-nav {
    display: flex;
  }
}

@media (max-width: 420px) {
  .header-actions .btn-ghost {
    display: none;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  max-width: 13ch;
}

.lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.1875rem;
}

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

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.25rem;
  max-width: 30rem;
  color: var(--text-faint);
  font-size: 0.9375rem;
}

@media (max-width: 480px) {
  .hero-ctas .btn {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 5rem 0 6rem;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
  }
}

/* Totem: a tela de atendimento do app, num "tablet" azul-noite. */
.totem-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 1.75rem;
  border: 10px solid #1e293b;
  border-radius: 1.75rem;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--primary-600) 45%, transparent), transparent 70%),
    var(--totem-bg);
  color: #fff;
  text-align: center;
}

.totem-title {
  font: 700 2rem/1.1 var(--font-display);
}

.totem-sub {
  margin: 0.35rem 0 1.75rem;
  color: var(--primary-200);
}

.plate-kind {
  margin-top: 0.9rem;
  color: var(--primary-200);
  font-size: 0.875rem;
  min-height: 1.4em;
}

.totem-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in oklab, var(--primary-300) 40%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--primary-600) 22%, transparent);
  text-align: left;
  transition: opacity 160ms;
}

.totem-match[hidden] {
  display: flex;
  visibility: hidden;
  opacity: 0;
}

.totem-match-car {
  display: block;
  font-weight: 600;
}

.totem-match-owner {
  display: block;
  color: var(--primary-200);
  font-size: 0.875rem;
}

.totem-match-action {
  color: var(--signal-400);
  font-weight: 600;
  font-size: 0.9375rem;
}

.totem-caption {
  margin-top: 0.9rem;
  color: var(--text-faint);
  font-size: 0.875rem;
  text-align: center;
}

/* ------------------------------------------------------------- seções */

.section {
  padding: 4.5rem 0;
}

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

@media (min-width: 960px) {
  .section {
    padding: 6rem 0;
  }
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}

.section-head h2,
.split-copy h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.fine {
  margin-top: 0.75rem;
  color: var(--text-faint);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------- passos da OS */

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding-top: 3.25rem;
}

/* Faixa entre os passos, como a linha de uma estrada. */
.steps li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 2.75rem;
  right: -1.5rem;
  border-top: 2px dashed var(--border);
}

.steps li:last-child::before {
  display: none;
}

.step-n {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 1.25rem/1 var(--font-display);
}

.step-n-signal {
  background: var(--signal-500);
  color: var(--primary-950);
}

.step-n-done {
  background: var(--green-soft);
  color: var(--green-text);
}

.steps h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.steps p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps li:nth-child(2)::before {
    display: none;
  }
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps li:nth-child(2)::before {
    display: block;
  }
}

@media (max-width: 639px) {
  .steps li::before {
    display: none;
  }
}

/* -------------------------------------------------------- painel do dia */

.board {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-alt);
  overflow: hidden;
}

.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.board-title {
  font: 700 1.5rem/1 var(--font-display);
}

.board-updated {
  color: var(--text-faint);
  font-size: 0.875rem;
}

.board-cols {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 760px) {
  .board-cols {
    grid-template-columns: repeat(3, 1fr);
    padding: 1.25rem;
  }
}

.board-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.board-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem 0.25rem;
  font: 600 1.125rem/1.2 var(--font-display);
}

.count {
  min-width: 1.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 0.875rem/1.4 var(--font-sans);
  text-align: center;
}

.count-signal {
  background: var(--signal-500);
  color: var(--primary-950);
}

.count-done {
  background: var(--green-soft);
  color: var(--green-text);
}

.ticket {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 0.6rem;
  background: var(--surface);
}

.ticket-waiting {
  border-left-color: var(--signal-500);
}

.ticket-progress {
  border-left-color: var(--accent);
}

.ticket-done {
  border-left-color: var(--green-text);
}

.ticket-dim {
  opacity: 0.6;
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ticket-time {
  color: var(--text-faint);
  font-size: 0.8125rem;
}

.ticket-car {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.ticket-items,
.ticket-crew {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.ticket-crew::before {
  content: "Equipe: ";
  color: var(--text-faint);
}

.ticket-next {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 0.4rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
}

.ticket-paid,
.ticket-pending {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ticket-paid {
  color: var(--green-text);
}

.ticket-pending {
  color: var(--red-text);
}

/* ------------------------------------------------------------ recursos */

.feature-groups {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .feature-groups {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.feature-group h3 {
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent);
  font-size: 1.75rem;
  font-weight: 700;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.features strong {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
}

.features span {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.55;
}

/* ------------------------------------------------ whatsapp + fidelidade */

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split-copy p {
  margin-top: 1rem;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.split-visual {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.chat {
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #efeae2;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: #075e54;
  color: #fff;
  font-weight: 600;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #25d366;
  font-size: 0.9rem;
}

.chat-body {
  padding: 1.25rem 1rem 1.5rem;
}

.bubble {
  position: relative;
  margin-left: auto;
  max-width: 88%;
  padding: 0.6rem 0.75rem 1.35rem;
  border-radius: 0.6rem 0 0.6rem 0.6rem;
  background: #d9fdd3;
  color: #111b21;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.bubble-time {
  position: absolute;
  right: 0.6rem;
  bottom: 0.3rem;
  color: #667781;
  font-size: 0.7rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chat {
    background: #0b141a;
  }
  :root:not([data-theme="light"]) .chat-head {
    background: #202c33;
  }
  :root:not([data-theme="light"]) .bubble {
    background: #005c4b;
    color: #e9edef;
  }
  :root:not([data-theme="light"]) .bubble-time {
    color: #8696a0;
  }
}

.loyalty {
  width: 100%;
  max-width: 24rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.loyalty-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.loyalty-head strong {
  font: 600 1.25rem/1 var(--font-display);
}

.loyalty-head span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0.9rem;
  padding: 0;
  list-style: none;
}

.stamps li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: 999px;
  font: 700 0.875rem/1 var(--font-display);
}

.stamps li.on {
  border: 0;
  background: var(--accent);
}

.stamps li.on::after {
  content: "";
  width: 40%;
  height: 22%;
  margin-top: -12%;
  border: solid #fff;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
}

.stamps li.prize {
  border: 2px solid var(--signal-500);
  background: var(--signal-soft);
  color: var(--signal-text);
}

.loyalty-foot {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ----------------------------------------------------- fechamento de caixa */

.cash {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

@media (min-width: 760px) {
  .cash {
    padding: 1.75rem;
  }
}

.cash-period {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.chip-on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
}

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

@media (min-width: 960px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  background: var(--bg-alt);
}

.tile dt {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.tile dd {
  margin: 0.2rem 0 0;
  font: 700 1.625rem/1.1 var(--font-display);
}

.tile-green dd {
  color: var(--green-text);
}

.tile-red dd {
  color: var(--red-text);
}

.tile-strong {
  background: var(--accent);
  color: #fff;
}

.tile-strong dt {
  color: var(--primary-100);
}

.cash-split {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 760px) {
  .cash-split {
    grid-template-columns: 1fr 1fr;
  }
}

.cash-table h3 {
  margin-bottom: 0.4rem;
  font: 600 1.125rem/1.2 var(--font-sans);
}

.cash-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.cash-table th,
.cash-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.cash-table th {
  font-weight: 500;
  text-align: left;
}

.cash-table td {
  color: var(--text-muted);
  text-align: right;
}

.cash-table td:last-child {
  width: 8.5rem;
  color: var(--text);
  font-weight: 600;
}

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

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.3rem;
  border: solid var(--text-faint);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 150ms;
}

.faq details[open] summary::after {
  margin-top: 0.3rem;
  transform: rotate(-135deg);
}

.faq details p {
  padding: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--text-muted);
}

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

.final-cta {
  padding: 5rem 0;
  background: var(--primary-700);
  color: #fff;
}

.final-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .final-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.final-cta .plate {
  margin-bottom: 1.75rem;
  transform: rotate(-3deg);
}

.final-cta h2 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  max-width: 16ch;
}

.final-copy p {
  margin-top: 1rem;
  max-width: 30rem;
  color: var(--primary-100);
  font-size: 1.125rem;
}

.final-cta :focus-visible {
  outline-color: var(--signal-400);
}

/* Formulário de interesse: cartão claro sobre o azul, nos dois temas. */
.lead-form,
.lead-done {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  color: #0f172a;
}

@media (min-width: 640px) {
  .lead-form {
    grid-template-columns: 1fr 1fr;
    padding: 1.75rem;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.field input,
.field select {
  width: 100%;
  height: 2.9rem;
  padding: 0 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
  font: 400 1rem/1 var(--font-sans);
  color-scheme: light;
}

.field input::placeholder {
  color: #94a3b8;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary-600);
  outline: 3px solid var(--primary-200);
  outline-offset: 0;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--red-600);
}

.hp {
  position: absolute;
  left: -9999px;
}

.lead-submit,
.lead-status,
.lead-privacy {
  grid-column: 1 / -1;
}

.lead-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.lead-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.lead-status:empty {
  display: none;
}

.lead-status {
  color: var(--red-600);
  font-weight: 500;
  font-size: 0.9375rem;
}

.lead-privacy {
  color: #64748b;
  font-size: 0.8125rem;
  text-align: center;
}

.lead-form[hidden],
.lead-done[hidden] {
  display: none;
}

.lead-done {
  gap: 0.5rem;
  padding: 2rem 1.75rem;
  border-left: 6px solid var(--green-600);
}

.lead-done:focus {
  outline: none;
}

.lead-done h3 {
  font-size: 2rem;
  font-weight: 700;
}

.lead-done p {
  color: #475569;
}

/* -------------------------------------------------------------- footer */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand-sm .brand-mark {
  width: 1.5rem;
  font-size: 0.85rem;
}

.brand-sm .brand-name {
  color: var(--text);
  font-size: 1.2rem;
}
