/*
 * Next CRM — site institucional.
 *
 * Conceito: "a conversa que vira venda". O balão de conversa do logo é o
 * motivo visual: blocos de destaque têm o canto inferior esquerdo "cortado",
 * como um balão, e a cor de destaque é o verde-água da régua do produto
 * (#0b7369, o mesmo grau 600 do app). Neutros puxam levemente para o verde.
 *
 * Os tokens abaixo espelham `app/globals.css` e `lib/branding/desenho.ts` do
 * CRM. Mudou a marca lá? Mude aqui também.
 */

:root {
  /* Cor */
  --bg: #f6f5ee;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --ink: #03332e;
  --ink-soft: #46625d;
  --ink-faint: #6f8782;
  --line: #dde4de;
  --accent: #0b7369;
  --accent-strong: #165c54;
  --accent-bright: #13a999;
  --accent-soft: #daedea;
  --accent-fg: #ffffff;
  --mint: #10baa5;
  --deep: #0b2c2a;
  --deep-ink: #f5f4ef;
  --deep-soft: #a8c7c1;
  --deep-line: #1f4a46;
  --deep-accent: #62ead5;
  --warn: #9a5b13;
  --warn-soft: #f6ead9;
  --bubble-in: #ffffff;
  --bubble-out: #d7f3ec;
  --shadow: 0 1px 2px rgb(3 51 46 / 6%), 0 12px 32px -12px rgb(3 51 46 / 18%);

  /* Tipo */
  --font-display:
    "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);

  /* Forma e ritmo */
  --radius: 18px;
  --radius-sm: 10px;
  --bubble-cut: 6px; /* o canto "da cauda" do balão */
  --wrap: 1160px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b2321;
    --surface: #0f302d;
    --surface-2: #123733;
    --ink: #f2f5f1;
    --ink-soft: #b3cbc6;
    --ink-faint: #86a39d;
    --line: #21443f;
    --accent: #20c2af;
    --accent-strong: #62ead5;
    --accent-bright: #4ea79c;
    --accent-soft: #143f3a;
    --accent-fg: #03201d;
    --mint: #62ead5;
    --deep: #071a18;
    --deep-ink: #f5f4ef;
    --deep-soft: #a8c7c1;
    --deep-line: #1a3d39;
    --deep-accent: #62ead5;
    --warn: #e8b46a;
    --warn-soft: #3a2c16;
    --bubble-in: #163d39;
    --bubble-out: #0f5249;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 36px -14px rgb(0 0 0 / 55%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b2321;
  --surface: #0f302d;
  --surface-2: #123733;
  --ink: #f2f5f1;
  --ink-soft: #b3cbc6;
  --ink-faint: #86a39d;
  --line: #21443f;
  --accent: #20c2af;
  --accent-strong: #62ead5;
  --accent-bright: #4ea79c;
  --accent-soft: #143f3a;
  --accent-fg: #03201d;
  --mint: #62ead5;
  --deep: #071a18;
  --deep-ink: #f5f4ef;
  --deep-soft: #a8c7c1;
  --deep-line: #1a3d39;
  --deep-accent: #62ead5;
  --warn: #e8b46a;
  --warn-soft: #3a2c16;
  --bubble-in: #163d39;
  --bubble-out: #0f5249;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 36px -14px rgb(0 0 0 / 55%);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: var(--step-4);
  font-weight: 700;
}

h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

ul {
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

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

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 62ch;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: var(--step--1);
}

.measure {
  max-width: 65ch;
}

/* ── Botões ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.35em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  font-family: var(--font-body);
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-wa svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn-lg {
  padding: 1em 1.6em;
  font-size: 1.05rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

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

/* ── Cabeçalho ────────────────────────────────────────────────────────── */

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand svg {
  height: 34px;
  width: auto;
}

.logo-bubble {
  fill: var(--accent);
}

.logo-name {
  fill: var(--ink);
}

.logo-suffix {
  fill: var(--mint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}

.nav-links a,
.nav-links button.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links button.menu-trigger:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.has-menu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  list-style: none;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.submenu {
  display: none;
}

.has-menu.open .submenu {
  display: block;
}

@media (min-width: 961px) {
  .has-menu:hover .submenu,
  .has-menu:focus-within .submenu {
    display: block;
  }

  /* ponte invisível entre o botão e o submenu, para o hover não cair no vão */
  .has-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
  }
}

.menu-trigger[data-active] {
  color: var(--accent);
}

.submenu a {
  display: block;
  border-radius: 8px;
}

.submenu small {
  display: block;
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 0.82rem;
}

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

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter-r) 20px var(--gutter-l);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links:not(.open) {
    display: none;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    background: transparent;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-cta .btn {
    padding: 0.65em 1em;
  }
}

@media (max-width: 420px) {
  .nav-cta .btn .label-long {
    display: none;
  }
}

/* ── Seções ───────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 760px;
}

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

.section-deep h2,
.section-deep h3 {
  color: var(--deep-ink);
}

.section-deep .lead,
.section-deep .muted {
  color: var(--deep-soft);
}

.section-deep .eyebrow {
  color: var(--deep-accent);
}

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

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.proof-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proof-row svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  display: grid;
  gap: 18px;
}

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

/* ── Demonstração de conversa (o balão) ───────────────────────────────── */

.phone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px var(--radius) var(--radius) var(--bubble-cut);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

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

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.phone-top strong {
  display: block;
  font-size: 0.95rem;
}

.phone-top span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.status-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.chat {
  display: grid;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(
        circle at 1px 1px,
        color-mix(in srgb, var(--ink) 7%, transparent) 1px,
        transparent 0
      )
      0 0 / 18px 18px,
    var(--surface-2);
}

.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px var(--bubble-cut);
  background: var(--bubble-in);
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgb(3 51 46 / 6%);
}

.msg.out {
  justify-self: end;
  border-radius: 16px 16px var(--bubble-cut) 16px;
  background: var(--bubble-out);
}

.msg .meta {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.msg.out .meta::before {
  content: "Agente de IA · ";
  color: var(--accent);
  font-weight: 600;
}

.event {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--accent);
  color: var(--accent);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px 16px var(--bubble-cut) 16px;
  background: var(--bubble-out);
  justify-self: end;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

.demo-note {
  padding: 10px 18px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* ── Grades de cards ──────────────────────────────────────────────────── */

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

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

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

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

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

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px var(--bubble-cut);
  background: var(--accent-soft);
  color: var(--accent);
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.section-deep .card {
  background: color-mix(in srgb, var(--deep-ink) 4%, transparent);
  border-color: var(--deep-line);
}

.section-deep .card p {
  color: var(--deep-soft);
}

.card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.card ul li {
  padding-left: 20px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 3px 3px 3px 1px;
  background: var(--accent);
}

.tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ── Dor x solução ────────────────────────────────────────────────────── */

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

.versus .card:first-child {
  background: var(--warn-soft);
  border-color: transparent;
}

.versus .card:first-child h3 {
  color: var(--warn);
}

.versus .card:first-child ul li::before {
  background: var(--warn);
  border-radius: 50%;
}

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

/* ── Passos (sequência real) ──────────────────────────────────────────── */

.steps {
  list-style: none;
  counter-reset: passo;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps li {
  counter-increment: passo;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.steps li::before {
  content: "Etapa " counter(passo);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.steps li p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-deep .steps li {
  background: color-mix(in srgb, var(--deep-ink) 4%, transparent);
  border-color: var(--deep-line);
}

.section-deep .steps li::before {
  color: var(--deep-accent);
}

.section-deep .steps li p {
  color: var(--deep-soft);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ── Mockups do produto ───────────────────────────────────────────────── */

.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.mock-bar span {
  margin-left: 8px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
}

.col {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-2);
}

.col h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

.deal {
  padding: 10px;
  border-radius: 10px 10px 10px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  display: grid;
  gap: 4px;
}

.deal strong {
  font-size: 0.86rem;
}

.deal span {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.deal .chip {
  justify-self: start;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.deal.hot {
  border-color: var(--accent);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.kpi {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  gap: 2px;
}

.kpi span {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.kpi strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 90px;
  padding: 0 14px 14px;
}

.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--accent-soft);
}

.bars i.peak {
  background: var(--accent);
}

/* ── Calculadora ──────────────────────────────────────────────────────── */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-radius: var(--radius) var(--radius) var(--radius) var(--bubble-cut);
  overflow: hidden;
  border: 1px solid var(--deep-line);
}

.calc-inputs {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  background: color-mix(in srgb, var(--deep-ink) 5%, transparent);
}

.field {
  display: grid;
  gap: 6px;
}

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

.field .hint {
  font-size: 0.8rem;
  color: var(--deep-soft);
}

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

.field-row output {
  min-width: 4.5ch;
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--deep-accent);
}

input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--deep-accent);
}

.calc-result {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--accent);
  color: #ffffff;
}

.calc-result .big {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.calc-result p {
  color: rgb(255 255 255 / 86%);
}

.calc-result .btn {
  justify-self: start;
  background: #ffffff;
  color: #0b4a43;
}

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

/* ── Formulário de orçamento ──────────────────────────────────────────── */

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.quote form {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.quote fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.quote legend {
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

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

.choices label {
  position: relative;
}

.choices input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choices span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.92rem;
  cursor: pointer;
}

.choices input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

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

.quote input[type="text"],
.quote textarea,
.quote select {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.quote textarea {
  min-height: 96px;
  resize: vertical;
}

.preview-box {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 88px);
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius) var(--radius) var(--radius) var(--bubble-cut);
  background: var(--deep);
  color: var(--deep-ink);
}

.preview-box .msg {
  max-width: 100%;
  background: var(--bubble-out);
  color: var(--ink);
  white-space: pre-wrap;
  border-radius: 16px 16px var(--bubble-cut) 16px;
}

.preview-box .muted {
  color: var(--deep-soft);
}

.notice {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.88rem;
}

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

  .preview-box {
    position: static;
  }
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 20px;
}

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

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

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

.faq details > div {
  padding-bottom: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
}

/* ── Faixa de chamada final ───────────────────────────────────────────── */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px 28px 28px var(--bubble-cut);
  background: linear-gradient(135deg, #13a999 0%, #0b7369 100%);
  color: #ffffff;
}

.cta-band h2 {
  color: #ffffff;
  font-size: var(--step-3);
}

.cta-band p {
  color: rgb(255 255 255 / 88%);
  margin-top: 10px;
}

.cta-band .btn {
  background: #ffffff;
  color: #0b4a43;
}

.cta-band .btn:hover {
  background: #e9faf6;
  color: #0b4a43;
}

@media (max-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* ── Prosa (páginas de texto) ─────────────────────────────────────────── */

.prose {
  display: grid;
  gap: 16px;
  max-width: 70ch;
  color: var(--ink-soft);
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 18px;
}

.prose h3 {
  margin-top: 8px;
}

.prose ul {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

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

/* ── Tabelas ──────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

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

td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ── Rodapé ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--deep);
  color: var(--deep-soft);
  padding-block: 56px 36px;
  margin-top: clamp(56px, 8vw, 104px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer .logo-bubble {
  fill: var(--deep-accent);
}

.site-footer .logo-name {
  fill: var(--deep-ink);
}

.site-footer .logo-suffix {
  fill: var(--deep-accent);
}

.site-footer h4 {
  color: var(--deep-ink);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--deep-soft);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--deep-line);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ── Botão flutuante do WhatsApp ──────────────────────────────────────── */

.wa-float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px 999px 999px 8px;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.wa-float:hover {
  background: var(--accent-strong);
  color: var(--accent-fg);
}

.wa-float svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 560px) {
  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 14px;
  }
}

/* ── Utilidades ───────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split > * {
  min-width: 0;
}

.split .copy {
  display: grid;
  gap: 16px;
}

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

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 8px 8px 8px 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--accent);
  margin-top: 2px;
}

.section-deep .checklist li {
  color: var(--deep-soft);
}

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

.anchor-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: var(--surface);
}

.anchor-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.module {
  scroll-margin-top: 96px;
}

.center {
  text-align: center;
  justify-items: center;
  margin-inline: auto;
}

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

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

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